This content was uploaded by our users and we assume good faith they have the permission to share this book. If you own the copyright to this book and it is wrongfully on our website, we offer a simple DMCA procedure to remove your content from our site. Start by pressing the button below!
elements are the sibling region of the
Levels from bottom up
The highest 2nd highest
4th ancestor
article bdy
fm
3rd ancestor
bm
sec
sec
rd
2nd ancestor
3 highest ss1 st
p
4th highest
1st ancestor …
p
fig
p
…
Fig. 1. The logical regions
A region can be treated as an atomic retrieval unit, like a document, and then any standard IR model can be applied to a region just as it might be applied to a document. At this stage of our work, we focus on investigating the impact of the XML logical structure on retrieving XML multimedia objects. Therefore, we use simple indexing and retrieval methods, where it is straightforward to perform experiments that will inform us on the suitability of our approach. For this purpose indexing is based on the basic tf-idf weighting and retrieval is based on the vector space model. The ranking score of a multimedia element is computed as follows: rsv o = ∑ α r rsv r r∈o
(1)
where α r is a weight assigned to a logical region r, where ∑ α r = 1 . Finally, rsv r is the r ∈o retrieval status value of the region r computed by the vector space model.
Using XML Logical Structure to Retrieve (Multimedia) Objects
103
This approach was previously presented in [7] and an evaluation on a small test collection [8] showed the approach to be promising. In particular, it was showed that using elements higher in a document’s logical structure works well in selecting the documents containing relevant multimedia objects, whereas elements lower in the structure are necessary to select the relevant images within a document. However, as the evaluation was performed on a very small data set (7864 images and 37 MB text), it is necessary to perform a large-scale evaluation to properly validate the proposed approach.
4 Building the Test Collection INEX started a multimedia track in 2005 [14]. However, the test collection is not appropriate for the evaluation of our approach due to the following reasons. First, the images in this test collection have been organized together in the same parent element (the
2
The INEX 2006 multimedia track provides a large and more suitable multimedia collection. We are currently continuing our work with this collection.
104
Z. Kong and M. Lalmas
4.2 The Document Collection, Topics and Relevant Elements We use the INEX 2004 text collection, which consists of 12,107 articles, totalling 494MB in size, where the average depth of an element is 6.9 [4]. The INEX collection can be considered an adequately sized data set due to the large number of documents and the fact that the elements are distributed in an appropriate tree structure, having deep logical relationships. The benefit of using the INEX collection is that we can we use its topics and its relevant assessments. Our approach is to make use of the regions to represent the content of multimedia elements and then apply content-oriented retrieval as defined in INEX based on this representation. For this reasons, we use the CO (content-only) topics in INEX, which are free-text queries. Our test collection thus contains a subset of the INEX 2004 CO topics. For this subset of topics (the precise numbers and how the set was selected are described below), we need to identify the relevant simulated XML multimedia elements. We aim to study how the use of regions impacts on the retrieval of the most relevant multimedia elements. Thus, only the highly relevant elements will be considered as relevant in our test collection. Relevance in INEX 2004 is defined according to two dimensions, Exhaustivity (E) and Specificity (S), each of which is measured on a 4-point scale: not (0), marginally (1), fairly (2), and highly (3). We define the highly relevant elements as those at least highly exhaustive or highly specific. In addition, if only highly exhaustive, then the element should be at least fairly specific, and vice versa. In summary, only elements that have been assessed as (3,3), (3,2) and (2,3) are considered for building the relevant simulated XML multimedia elements, where (x,y) stands for (exhaustive value, specificity value). We exclude any overlapping elements in our test collection as the real multimedia objects would not be overlapping with each other (in INEX, two overlapping elements, e.g. an element and its parent element, may both be assessed as (3,3) for a given topic). To make sure each topic has an appropriate number of simulated relevant elements, we do not select the topics that have less than 10 relevant elements. As a result, our test collection has 25 topics, following from [15] who show that to obtain any significant results when comparing approaches, at least 25 topics should be used. These selected 25 topics have in total 5773 selected relevant simulated multimedia elements, on average 231 relevant elements per topic. The maximum depth is 9 and minimum depth is 2, with an average of 5.21. 4.3 Select a Collection of Simulated Multimedia Elements The selection of the non-relevant simulated multimedia elements in the test collection is done by a random process, performed by traversing the XML document, where overlapping elements are excluded. To avoid that the selected elements are contained within a small number of documents, whilst other documents have no selected elements, the process will select at least 10 elements from each document. The depth distribution of selected elements in this process is kept similar to the depth distribution of the relevant simulated elements. Those selected elements are viewed as irrelevant elements as they are randomly selected. In total, the built test collection contains 143,034 (including the relevant ones) simulated multimedia elements, on average 12
Using XML Logical Structure to Retrieve (Multimedia) Objects
105
elements per document. For simplicity, we will use “multimedia element” instead of “simulated multimedia element” in the remaining of this paper.
5 Experiments, Results and Analysis Extensive experiments were carried out using the built test collections to test the use of the regions. The title field of 25 selected INEX topics are used as query terms. In section 5.1 we present the results obtained using regions from the lowest level up. Section 5.2 presents the results using regions from the document root level down. Subsequently, in section 5.3, we compared the results using any types of region with the element’s self content (own region). In section 5.4, we compare the results using combinations of regions with those using the whole document. At last, we present the results obtained using a weighted combination of regions in section 5.5. In all our experiments, the retrieval status values are calculated according to formula 1. When the representations are composed of single regions, α r =1 (Sections 5.1 to 5.3). In addition, stop-words were removed and stemming was applied. We report the precision values for the 11 standard recall values. In addition, we present the Mean Average Precision (MAP) and sometimes the precisions at element cut-off (5, 10, 15 and 20). 5.1 Using Lowest Level Region to Up Level Regions These experiments were performed to investigate the use of region levels for retrieving multimedia elements. The results from using the sibling region to the highest level region (8th ancestor in this collection) are shown in figure 2. The MAP values obtained using regions from sibling level to 8th ancestor level are: 0.1166, 0.1383, 0.1900, 0.1828, 0.0807, 0.0196, 0.0047, 0.0067, and 0.0019. We can see that effectiveness decreases from the 2nd ancestor level to the highest level. This is what we expected, the region closer to a given multimedia element in the document’s logical hierarchy produces a more accurate representation of the element. However, the MAP obtained with the 2nd (or 3rd) ancestor regions is better than that with the 1st ancestor (or sibling) regions. We expected that the 1st level regions, which are closer to the multimedia elements in the document hierarchy, should lead to better performance than when using 2nd ancestor regions. There is, however, a clear explanation why this is not the case. As the regions are disjoint from each other, and due to the nested logical structure, the 2nd ancestor regions have more terms than the 1st ancestor regions (as shown in figure 1). The greater number of terms increases the number of matches between a query and the region having more terms, which is why 2nd ancestor regions led to better performance. Therefore, the impact of the regions on retrieval performance could be a balance of two aspects. A lower level region offers more accurate representation than a higher level region and a higher level region supplies more terms than a lower level region. The difference between 1st and 2nd ancestor regions clearly demonstrates this to be the case. As presented in table 1 of section 5.3, using 1st ancestor regions produces better
106
Z. Kong and M. Lalmas 1 Sibling 1st Ancestor
0.9
2nd Ancestor 3rd Ancestor
0.8
4th Ancestor 5th Ancestor
0.7
6th Ancestor 7th Ancestor
Precision
0.6
8th Ancestor
0.5 0.4 0.3 0.2 0.1 0 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Recall
Fig. 2. Regions from sibling upwards
performance at top 20 cut-off values than using 2nd ancestor regions. The higher performance at top cut-off level obtained using 1st ancestor regions is due to them providing more accurate representations and the higher performance of MAP using 2nd ancestor regions is due to them having more terms. We observed that the highest levels, the 7th and 8th ancestor level, almost retrieved nothing. We found that only 0.09% of the relevant multimedia elements have 8th ancestor region and 1.44% of those have 7th and higher level ancestors. This means that those not having these level regions will certainly not be retrieved. 5.2 Using Regions from Document Root Level Down This section presents a second set of experiments to investigate the use of regions to represent multimedia objects, starting from regions at the document root level and going down the logical structure. In the built test collection, most of the multimedia elements are located in the
Using XML Logical Structure to Retrieve (Multimedia) Objects
107
1 the highest level the 2nd highest level
0.9
the 3rd highest level 0.8 0.7
Precision
0.6 0.5 0.4 0.3 0.2 0.1 0 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Recall
Fig. 3. Regions from root level down
The results show that the highest level region is still useful for retrieving multimedia elements, although it performs worse than its lower levels. This indicates that the regions at all logical levels seem useful. 5.3 Effectiveness of Self Content The aim of this section is to compare the use of regions and the element itself (the own region). As the multimedia elements are actually simulated by text elements, the own region here simply refers to the text element itself. Table 1 compares the results from using the own region up to the 3rd ancestor level. Table 1. MAP values and precisions at element cut-off from own regionup to 3rd level region
Own Sibling 1st 2nd 3rd
MAP 0.1587 0.1166 0.1383 0.1900 0.1828
precision @ 5 precision @ 10 precision @15 precision @ 20 0.3680 0.3920 0.3520 0.3340 0.3760 0.3320 0.3013 0.2900 0.4240 0.3920 0.3707 0.3400 0.3120 0.3600 0.3360 0.3260 0.2400 0.2320 0.2427 0.2560
The results show that the self content obtained poorer MAP than the 2nd and 3rd ancestor levels (table 1), although its precisions at 5, 10, 15 and 20 are higher than those of the 2nd and 3rd ancestor levels. The results illustrate that other parts of documents (here the regions) are necessary to lead to better representation, thus more effective retrieval, of the text element. This is not a new result in itself, and has been observed in INEX, where it is now common to include collection and article statistics in representing and/or retrieving elements [4]. 5.4 Using Regions Instead of Document This section provides two sets of experiments, each of which contains three experiments. The first set represents multimedia objects in three ways: 1. Using the whole surrounding document text (excluding the self content) to represent the multimedia element. 2. Using the whole document text (including the self content) to represent
108
Z. Kong and M. Lalmas
the multimedia element. 3. Combining surrounding logical regions from sibling up to the highest level. The second set is as follows: 1. Combining own region with the whole surrounding document text. 2. Combining own region with the whole document text (including the self content). 3. Combining regions from own region up to the highest level. All the combinations above are based on the average combination (formula 1). The results of the first set of experiments are presented in figure 4. The MAP values of the first set are 0.1922, 0.1900, and 0.3114. There is almost no difference between representation using the whole document and that using the surrounding text. However, combining regions led to higher performance than either of these methods. It obtained 62.02% higher MAP than that of using surrounding text and 63.89% higher MAP than that of using whole document. The combination of the text in the regions is the same as the text of the whole surrounding text. The terms in the whole surrounding text that match query terms are exactly the same as those in the hierarchical regions (from sibling to the highest level). So why did combining the term matching of regions obtained distinctly better performance? 1 surrounding context whole document combining surrounding regions
0.9 0.8 0.7
Precision
0.6 0.5 0.4 0.3 0.2 0.1 0 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Recall
Fig. 4. Combination vs. whole document (1)
In the combination formula, each region is treated as an atomic unit to which the standard cosine function is applied. As the regions are logically nested within each other, a higher region has more terms. Thus a term occurring in a lower region can obtain a higher weight than one occurring in a higher region due to the smaller value of the normalization factor. When we use the text as a whole unit to apply the vector space model, a term located at different positions in the whole text obtains the same term weight. Therefore, the terms in the combination of regions that match the query terms are the same as those in the whole text that match the query terms. The matched terms’ frequencies in the combination of regions are also the same as those in the whole text. However, the terms’ weights in the combination are different from those in the whole text. A term matching the query located in the lower level region is weighted higher and thus provides more impact on the retrieval than the same term located in its higher level region. The results further demonstrate the conclusions of previous sections: a lower level region offers more accurate representation and thus leads to better performance; the
Using XML Logical Structure to Retrieve (Multimedia) Objects
109
higher level region contains more terms and the “more” terms involved in higher level make the region more effective. The combination of regions benefits from both of the these points, as it assigns higher weight to the terms matching the query in the lower level region and provides the whole terms of the text from sibling to the highest level regions. This is the reason why combining regions performs better. Furthermore, when using the whole text or whole document to represent the multimedia elements in the XML documents, the representations can only be used to discriminate the multimedia elements located in different XML documents. However, combining the logically structured regions offers different weights in the representations of multimedia elements within the same XML documents. This can further discriminate between elements within the same documents in addition to multimedia elements located in different XML documents. This is another reason why combining regions led to better performance than using whole surrounding text and using whole document. The aim of the second set of experiments is to further demonstrate the advantage of using the logical structure. We combine the self content (own region) with the whole surrounding text or whole document to further discriminate between elements within the same documents and thus to improve performance. Then, the results will be compared with the combination of logically structured regions (including the own region). 1 own + surrounding own + whole document combining all regions
0.9 0.8 0.7
Precision
0.6 0.5 0.4 0.3 0.2 0.1 0 0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Recall
Fig. 5. Combination vs. whole document (2)
The results of the second set experiments are presented in figure 5. The MAP values of the second set are 0.2918, 0.2911, and 0.3488. Compared with figure 4, the results show that the MAP of combining the own region with the whole surrounding text increase by 51.82% from using the whole surrounding text and that of combining the own region with whole document leads to an increase of 53.21% over using the whole document. Combining the self content improves the effectiveness due to the further discrimination between elements within the same documents. However, combining logically structured regions (including the own region) obtained obviously better result than the combination of own region and whole document. The MAP of the former is an increase of 19.53% over the latter. Even combining logically structured regions without the own region (figure 4) gained better MAP
110
Z. Kong and M. Lalmas
than the latter. This demonstrates that combining logically structured regions not only discriminate between elements contained in different documents as well as discriminate between elements within the same documents but also improve the accuracy of the overall representation. This is because combining logically structured regions emphasizes the lower level regions, which can offer more accurate representation than the higher level ones. Therefore, combining logically structured document regions proves essential in XML multimedia retrieval. 5.5 The Weighted Combination We applied a number of weighted combinations. All led to little effectiveness improvement. The best one, which emphasizes the own, 2nd highest and 3rd highest regions, leads to an increase of 0.49% compared to the average combination. This is due to the following reason: In the average combination, the terms in a lower level region have already been highly weighted compared to those in a higher level region, as discussed in section 5.4. Therefore, further weighting the lower level regions can only lead to very limited improvement.
6 Conclusions and Future Work This paper investigated the use of the logical structure in XML documents to retrieve XML multimedia objects. We studied the use of region levels and their combination for retrieving multimedia elements. We showed that all levels allow discriminating between multimedia elements contained in different XML documents, whereas the lower level regions allow discriminating between elements within a document. In addition, we found that the lower level regions provide more precise representation than the higher level regions, leading to improved precision, whereas higher level regions contain more terms than lower level regions, leading to improved recall. We compared the combination of the logically structured regions with using the whole document as representation. We showed that the former was better for representing and retrieving multimedia elements. Therefore, we can conclude that using the XML logical structure is important in XML multimedia retrieval. A strong challenge to the validity of the experiments described in this paper comes from using text elements to simulate multimedia elements. However, as a multimedia element is just an element, there is no difference between the retrieval of a multimedia element and the retrieval of a text element, when using their regions to represent them. Further work needs to be carried out into the use of these methods, or more sophisticated ones, within a large XML multimedia document collection. We are currently working with the collection of INEX 2006 multimedia track [16].
Acknowledgements This work was carried in the context of INEX, an activity of the DELOS Network of Excellence.
Using XML Logical Structure to Retrieve (Multimedia) Objects
111
References 1. Aslandogan, Y.A., Yu, C.T.: Diogenes: A Web search agent for content based indexing of personal images. In: Proceedings of the eighth ACM international conference on Multimedia, pp. 481–482 (2000) 2. Dunlop, M.D., van Rijsbergen, C.J.: Hypermedia and free text retrieval. Information Processing & Management 29(3), 287–298 (1993) 3. Harmandas, V., Sanderson, M., Dunlop, M.D.: Image retrieval by hypertext links. In: Proceedings of SIGIR-97, Philadelphia, US, pp. 296–303 (1997) 4. Fuhr, N., Lalmas, M., Malik, S., Kazai, G. (eds.): INEX 2005. LNCS, vol. 3977. Springer, Heidelberg (2006) 5. Iskandar, D.N.F.A., Pehcevski, J., Thom, J.A., Tahaghoghi, S.M.M.: Combining Image and Structured Text Retrieval. In: Fuhr, N., Lalmas, M., Malik, S., Kazai, G. (eds.) INEX 2005. LNCS, vol. 3977, pp. 525–539. Springer, Heidelberg (2006) 6. Jones, G., Groves, D., Khasin, A., Lam-Adesina, A., Mellebeek, W.A.: Dublin City University at CLEF 2004: Experimentswith the ImageCLEF St Andrew’s Collection. In: Peters, C., Clough, P.D., Gonzalo, J., Jones, G.J.F., Kluck, M., Magnini, B. (eds.) CLEF 2004. LNCS, vol. 3491, Springer, Heidelberg (2005) 7. Kong, Z., Lalmas, M.: Integrating XLink and XPath to Retrieve Structured Multimedia Documents in Digital Libraries. In: Proceedings of RIAO (2004) 8. Kong, Z., Lalmas, M.: XML Multimedia Retrieval. In: Consens, M.P., Navarro, G. (eds.) SPIRE 2005. LNCS, vol. 3772, pp. 218–223. Springer, Heidelberg (2005) 9. Ogilvie, P., Callan, J.: Hierarchical language models for XML component retrieval. In: Fuhr, N., Lalmas, M., Malik, S., Szlávik, Z. (eds.) INEX 2004. LNCS, vol. 3493, Springer, Heidelberg (2005) 10. Sclaroff, S., La Cascia, M., Sethi, S., Taycher, L.: Unifying Textual and Visual Cues for Content-based Image Retrieval on the World Wide Web. Computer Vision and Image Understanding 75(1-2), 86–98 (1999) 11. Sigurbjornsson, B., Kamps, J., de Rijke, M.: An Element-based Approach to XML Retrieval. In: Proceedings of INEX 2003 Workshop (2003) 12. Tjondronegoro, D., Zhang, J., Gu, J., Nguyen, A., Geva, S.: Integrating Text Retrieval and Image Retrieval in XML Document Searching. In: Fuhr, N., Lalmas, M., Malik, S., Kazai, G. (eds.) INEX 2005. LNCS, vol. 3977, pp. 511–524. Springer, Heidelberg (2006) 13. van Zwol, R.: Multimedia strategies for B -SDR, based on Prinicipal Component Analysis. In: Fuhr, N., Lalmas, M., Malik, S., Kazai, G. (eds.) INEX 2005. LNCS, vol. 3977, pp. 540–553. Springer, Heidelberg (2006) 14. van Zwol, R., Kazai, G., Lalmas, M.: INEX 2005 multimedia track. In: Fuhr, N., Lalmas, M., Malik, S., Kazai, G. (eds.) INEX 2005. LNCS, vol. 3977, Springer, Heidelberg (2006) 15. Voorhees, E.M., Buckley, C.: The effect of topic set size on retrieval experiment error. In: Proceedings of the 25th ACM SIGIR, pp. 316–323 (2002) 16. Westerveld, T., van Zwol, R.: Multimedia Retrieval at INEX 2006. 2007 SIGIR forum (2007), http://www.acm.org/sigs/sigir/forum/2007J-TOC.html
Lyrics-Based Audio Retrieval and Multimodal Navigation in Music Collections Meinard M¨ uller, Frank Kurth, David Damm, Christian Fremerey, and Michael Clausen Department of Computer Science III, University of Bonn, R¨ omerstraße 164, 53117 Bonn, Germany {meinard,frank,damm,fremerey,clausen}@iai.uni-bonn.de http://www-mmdb.iai.uni-bonn.de
Abstract. Modern digital music libraries contain textual, visual, and audio data describing music on various semantic levels. Exploiting the availability of different semantically interrelated representations for a piece of music, this paper presents a query-by-lyrics retrieval system that facilitates multimodal navigation in CD audio collections. In particular, we introduce an automated method to time align given lyrics to an audio recording of the underlying song using a combination of synchronization algorithms. Furthermore, we describe a lyrics search engine and show how the lyrics-audio alignments can be used to directly navigate from the list of query results to the corresponding matching positions within the audio recordings. Finally, we present a user interface for lyrics-based queries and playback of the query results that extends the functionality of our SyncPlayer framework for content-based music and audio navigation.
1
Introduction
Recent activities in integrating music and audio documents into the holdings of existing digital libraries have emphasized the importance of appropriate tools for automatically organizing and accessing large music collections. As opposed to existing collections of homogeneous document types like text databases, musical information is represented in various different data formats such as text, score, or audio, which fundamentally differ in their structure and content. Hence there is a particular challenge to develop suitable techniques for searching and navigating through existing heterogeneous collections of digital music document. As an example, consider a user who only recalls a few words of a song’s lyrics like, for example, parts of the hook line or of the chorus. Using these words as a query, a music search engine based on classical text-based retrieval may be used for searching a database of text documents containing the lyrics of a collection of songs. In this case, the retrieval results displayed to a user would consist of text passages corresponding to occurrences of the query terms within
This work was supported in part by Deutsche Forschungsgemeinschaft (DFG) under grant 554975 (1) Oldenburg BIB48 OLof 01-02.
L. Kov´ acs, N. Fuhr, and C. Meghini (Eds.): ECDL 2007, LNCS 4675, pp. 112–123, 2007. c Springer-Verlag Berlin Heidelberg 2007
Lyrics-Based Audio Retrieval and Multimodal Navigation aumte Ich tr¨
von bunten
uhen so wie sie wohl bl¨
Blumen,
im
113
Mai
0.1 0 −0.1 10
11
12
13
14
15
16
17
18
Fig. 1. Lyrics, MIDI version, and the waveform of an audio recording by Allen of measures 5 to 8 of Schubert’s piano song D 911, No. 11 from the Lied cycle “Winterreise”. The MIDI version is shown in piano-roll, where the black bars encode the vocal and the gray bars the piano track. The generated time alignments are indicated by the two-headed arrows.
the lyrics. However, in the music domain, the retrieval results are most naturally presented by acoustically playing back parts of an actual audio recording that contain the query terms, while a musical score may be the most appropriate form for visually displaying the query results. Such applications for multimodal music retrieval and navigation rely on the availability of suitable annotations and time alignments for connecting or linking the different types of available information related to a particular piece of music. In the latter example, an alignment of the lyrics to time positions in a corresponding audio recording would constitute such linking information. Making lyrics-based audio retrieval feasible for larger scale music collections, this paper presents techniques for automatic lyrics-audio synchronization, for text-based lyrics search, as well as for multimodal music access and data presentation. As our first contribution, in Sect. 2 we describe a method to automatically generate audio annotations by temporally aligning the lyrics of a piece of music to audio recordings of the same piece. To solve this task, we exploit the availability of music documents in different data formats that describe a given piece of music at various semantic levels. In particular, we assume the availability of a MIDI representation (a kind of mid-level representation in between audio and score as will be described in Sect. 2), which serves as a “connector” in the lyrics-audio synchronization process: first we align the lyrics to the MIDI representation and then align the MIDI to an actual audio recording. This idea is illustrated by Fig. 1, which shows the lyrics, a MIDI version, and the waveform of an audio recording for measures 5 to 8 of Schubert’s piano song D 911, No. 11 from the Lied cycle “Winterreise”. This piece, in the following simply
114
M. M¨ uller et al.
referred to as Schubert example, will serve as running example throughout this paper. Fig. 1 also shows two time alignments (a lyrics-MIDI and a MIDI-audio alignment), which are indicated by the bidirectional arrows. The availability of such alignments allows for accessing the audio recording exactly at the positions where a particular lyrics’ term is sung by the vocalist. In Sect. 3, we present effective as well as efficient methods for searching music collections based on textual queries by using a combination of indexing techniques from text retrieval and prior knowledge on the particularities of music lyrics. For evaluating this query-by-lyrics scenario, we integrated the proposed retrieval algorithms in the existing SyncPlayer framework, as will be discussed in Sect. 4. The SyncPlayer is basically an enhanced audio player providing a plug-in interface for multidmodal presentation, browsing, and retrieval of music data, see [1]. For presenting the query results to the user, we implemented a SyncPlayer plug-in for synchronously displaying the lyrics along with the audio playback. Based on the lyrics-audio alignments, the user may directly navigate from the list of lyrics-based query results to the corresponding matching positions within the audio recordings. Finally, in Sect. 5, we give an example to illustrate the interplay of various multimodal navigation and visualization tools and give prospects on future work. References to related work are given in the respective sections.
2
Alignment of Lyrics and Music Audio
In this section, we present a procedure for automatically annotating audio recordings of a given song by its corresponding lyrics. To this end, we will exploit the existence of various music representations in different data formats conveying different types of information on a piece of music. Before describing the actual lyrics-audio alignment procedure, we briefly discuss the involved data types and give references to related work on music alignment. We start with the symbolic score format, which contains explicit information on the notes such as musical onset time, pitch, duration, and further hints concerning dynamics and agogics. In contrast, the purely physical audio format encodes the waveform of an audio signal as used for CD recordings. In generally, it is very difficult or even infeasible to extract musical note parameters from a given waveform, in particular for complex polyphonic music. The MIDI format may be thought of as a hybrid of the last two data formats which explicitly represents content-based information such as note onsets and pitches but can also encode agogic and dynamic subtleties of some specific interpretation. Finally, the lyrics represent the textual information of a song or opera. For an example, we refer to our Schubert example shown in Fig. 1. A key idea for automatically organizing and annotating large music collections is to exploit the availability of different music representations at various semantic levels. To this end, one needs alignment or synchronization algorithms that automatically link and interrelate the differently formatted information sets related to a single piece of music [2]. Here, synchronization is taken to mean a
Lyrics-Based Audio Retrieval and Multimodal Navigation
115
Audio 1 Audio 2 Audio 3 Lyrics
MIDI
Fig. 2. Lyrics-audio alignment via MIDI-audio synchronization
procedure which, for a given position in one representation of a piece of music, determines the corresponding position within another representation, see Fig. 1. In the last few years, extensive research has been conducted on automatic music synchronization and great advances have been achieved in aligning score, MIDI, and audio representations of a given piece, see [2,3,4,5,6,7,8] and the references therein. In contrast, the automatic alignment of lyrics to a corresponding audio recording of the underlying song, also referred to as lyrics-audio synchronization, is a very hard problem. In particular, the automatic recognition of vocals within a song seems infeasible without any additional assumptions. To alleviate the problem, Wang et al. [9] present an approach to automatic lyrics-audio alignment, which strongly relies on musical a priori knowledge of the song’s and the lyrics’ structure. Furthermore, the authors aim at a relatively coarse per-line alignment roughly estimating the start and end times for each lyrics line within the audio. In the following, we describe a simple but effective procedure for automatic lyrics-audio synchronization, which works for large classes of music and generates precise alignments on the word or even syllable level. In our approach, we assume the existence of a MIDI file, which represents the symbolic score information and contains the lyrics along with MIDI time stamps. Then, the lyrics can be located within a given audio recording by aligning the MIDI note parameters to the audio data. In other words, we solve the original problem by computing a lyricsMIDI alignment and then by applying a MIDI-audio synchronization, which can be done very efficiently as described below. To legitimate this procedure, we note that attaching lyrics to MIDI data has to be done only once independent of a particular interpretation or instrumentation. At the end of this section, we describe how this can be done using a semi-automatic procedure. Such an enriched MIDI can then be used for lyrics-audio alignment for all available audio recordings of the respective piece, see Fig. 2. This situation applies to a wide range of pieces from Western classical music, where one often has a few dozens of different CD recordings of an opera or a song. In the first step of our algorithm for MIDI-audio synchronization, we transform the MIDI as well as the audio data into a common mid-level representation, which allows for comparing and relating music data in various realizations and formats. In particular, we use chroma-based features, where the chroma
116
M. M¨ uller et al.
B
B 0.9
A#
0.9
A#
A
0.8
A
0.8
G#
0.7
G#
0.7
G
0.6
G
0.6
F#
0.5
F
F#
0.5
F
E
0.4
E
0.4
D#
0.3
D#
0.3
D
0.2
D
0.2
C#
0.1
C
C#
0.1
C 10
12
14
16
10
12
14
16
18
Fig. 3. Normalized chroma representations for the Schubert example (Fig. 1) derived from a MIDI representation (left) and an audio recording by Allen (right)
correspond to the twelve traditional pitch classes of the equal-tempered scale. These features account for the well-known phenomenon that human perception of pitch is periodic in the sense that two pitches are perceived as similar in “color” if they differ by an octave [10]. Assuming the equal-tempered scale, the chroma correspond to the set {C, C , D, . . .,B} that consists of the twelve pitch spelling attributes as used in Western music notation. Note that in the equal-tempered scale, different pitch spellings such C and D refer to the same chroma. Now, using the explicit MIDI pitch and timing information, one can directly transform a MIDI data stream into a sequence of normalized 12-dimensional chroma vectors, where each vector covers a specific time interval. Such a chroma representation is also referred to as chromagram. To compute a MIDI chromagram, as suggested in [4], each pitch is associated to a corresponding chroma unit vector. Then, for a fixed time interval, one adds up the chroma unit vectors of all active MIDI pitches and normalizes the resulting sum vector. In our implementation, we work with a resolution of 10 features per second, where each feature vector corresponds to a 200 ms time interval. Similarly, the audio data stream is transformed into a chromagram representation. This can be done by suitably binning spectral coefficients [10] or by employing a suitable pitch filter bank [11]. Fig. 3 shows a MIDI chromagram as well as an audio chromagram for our Schubert example. Note that a normalized 12-dimensional chroma vector expresses the relative distribution of the signal’s local energy content within the 12 chroma bands. A chromagram shows a high degree of robustness to variations in dynamics, timbre, as well as articulation and strongly correlates to the harmonic progression of the underlying pieces. In the second step, the MIDI and audio data streams can be directly compared on the chroma representation level. Denoting the feature sequence of the MIDI file by V := (v1 , v2 , . . . , vN ) and of the audio file by W := (w1 , w2 , . . . , wM ), one builds an N × M cross-similarity matrix by calculating a similarity value for each pair of features (vn , wm ), 1 ≤ n ≤ N , 1 ≤ m ≤ M . An alignment path of maximum similarity is determined from this matrix via dynamic programming. Note that the time and memory complexity of this problem is proportional in
Lyrics-Based Audio Retrieval and Multimodal Navigation
117
the product N × M , which becomes problematic for long pieces. To overcome this issue, the calculation is iteratively performed on multiple scales of temporal resolution going from coarse to fine. The alignment results of the coarser scale are used to constrain the calculation on the finer scales. For details we refer to [6]. The resulting optimal path encodes the MIDI-audio alignment as indicated by the bidirectional arrows in Fig. 1. Extensive tests on a large corpus of Western music as described in [6] have shown that our synchronization algorithm yields accurate MIDI-audio alignments at a 100 ms resolution level (only in few cases there are some deviations of up to a second), which is sufficient for our lyrics-based audio retrieval and navigation application. As was mentioned above, we need enriched MIDI files that contain the lyrics along with MIDI time stamps. Since such MIDI files are rarely available, we semi-automatically annotated the lyrics for several popular songs as well as the 24 songs of Franz Schubert’s Lied cycle Winterreise (op. 89, D. 911). To this end, we collected freely available lyrics (often already containing suitable syllable divisions) as well as corresponding MIDI files from the WWW. We then manually processed the lyrics by attaching the number of musical notes corresponding to the respective word or syllable. As it turns out, this process is not too laborious since in most cases each given word or syllable corresponds to exactly one note. Actually, this information was sufficient to automatically derive the desired MIDI time stamps for the lyrics simply by sequentially reading off the MIDI note onsets from the vocal track. In Sect. 4, we describe how the synchronization results are integrated into our SyncPlayer system.
3
Lyrics-Based Music Retrieval
We now describe our index-based method for lyrics-based retrieval. In the following, we assume that the lyrics for our collection of N audio recordings are stored in N text files L := (L1 , . . . , LN ) where a file Li consists of a sequence (ti1 , . . . , tini ) of terms. Our indexing technique uses inverted files which are well known from classical text retrieval [12]. In lyrics-based music retrieval, users are likely to query catchy phrases as they frequently occur in the chorus or hook line of a song. Therefore, our basic indexing strategy presented next is designed to efficiently retrieve exact sequences of query terms. Later on, this basic strategy is extended to allow fault tolerant retrieval. In a preprocessing step, for each term t an inverted file HL (t) is constructed from our text files. HL (t) contains all pairs (i, p) such that t occurs as p-th lyrics term within text file Li , i.e., tip = t. Using inverted files, query processing may then be performed simply by using intersections of inverted files: assume a query is given as a sequence of words q := (t0 , . . . , tk ). Then, the set of matches HL (q) :=
k j=0
HL (tj ) − j
(1)
can be easily shown to contain all pairs (i, p) such that the exact sequence of terms q occurs at position p within the i-th document. To make this basic
118
M. M¨ uller et al.
matching procedure robust towards errors such as misspelled or wrong words, we introduce several methods for incorporating fault tolerance. To account for typing errors, we preprocess each query term tj and determine the set Tj of all terms in our dictionary of inverted files (i.e., the set of all terms with an existing inverted file) having a small edit distance to tj . Then, instead of only considering the exact spelling tj by using HL (tj ) in (1), we consider the union ∪t∈Tj HL (t) of occurrences of all terms which are close to tj with respect to their edit distance. To account for term-level errors such as inserted or omitted words, we first preprocess all word positions occurring in (1) by a suitable quantization. This amounts to replacing each of the inverted files HL (t) by a new set HL (t)/Q·Q, where each entry (i, p) of HL (t) is replaced by a quantized version (i, p/Q · Q) for a suitably chosen integer Q (Q = 5 was used in our tests). Furthermore, we replace HL (tj )−j of (1) by HL (tj )−j/Q·Q prior to calculating the intersection. The latter yields a list (m1 , . . . , m ) of matches which is subsequently ranked. For each match mi we obtain a ranking value ri by combining classical ranking criteria (ri1 , ri2 and ri3 in what follows) with criteria accounting for the peculiarities of the lyrics-based scenario (ri4 in what follows). As for the classical criteria, each match mi is assigned a ranking value ri1 that essentially measures the deviation of the query terms occurring in mi from their correct ordering as specified by q. To account for term-level mismatches, a ranking value ri2 counts the total number of query terms occurring in mi . Note that ri2 may be obtained efficiently by using a dynamic programming technique [13] while simultaneously calculating the set of matches (1). A further ranking value ri3 accounts for the total edit distance of the query terms to the terms matched in mi . Exploiting the lyrics-audio alignment corresponding to mi , we obtain a ranking value ri4 by suitably weighting the temporal distance (within the audio recording) of the first and the last query term occurring in mi . Finally, an overall ranking value for each match is obtained as ri := 4j=1 wj rij , where w1 , . . . , w4 denote some suitably chosen real-valued weighting factors. In future work, it will be interesting to include even more music-specific knowledge into the ranking procedure. As an example, one might exploit available information about the structure of the audio recording to give lyrics terms more weight if they occur in structurally salient passages such as in the chorus sections. The proposed methods for indexing and retrieval can be realized by properly adapting well-known text retrieval techniques. To verify the efficiency of the proposed methods, we created an index for a test corpus of approximately 110.000 lyrics documents of mainly popular music crawled from the web. As described in [13], retrieval using the proposed inverted-file based approach can be performed very efficiently in both of the cases of exact and fault tolerant retrieval including the proposed ranking. To conclude this section, we note that in the above we have tacitly assumed that the aligment information for linking the lyrics to the audio recordings is stored in some suitable secondary data structure that can be accessed efficiently. In our implementation, we use an additional file format to store this information which turns out to perform sufficiently well.
Lyrics-Based Audio Retrieval and Multimodal Navigation
Raw Data
SyncPlayer Framework
- Audio Data - MIDI Data - Lyrics - Metadata ···
Derived Data
Administration
Server
- Data Conversion - Annotation & Data Management - Search Indexes ···
- Audio Identification - Delivery of Metadata & Annotations - Search Engines (e. g. Lyrics, MIDI, Score, Metadata) ···
- Features - Annotations - Alignment Data ···
119
Offline (Preprocessing)
Client - Audio Playback - Visualization - Navigation - Search Interfaces ···
Online (Runtime)
Fig. 4. Overview of the SyncPlayer framework
4
A Prototypical System for Lyrics-Based Audio Retrieval
In this section, we present a prototypical implementation of a system for lyricsbased audio retrieval. Our system has been realized based on the existing SyncPlayer framework, which basically consists of an advanced audio player offering a plug-in interface for integrating content-based MIR applications. In Sect. 4.1, we first briefly summarize the SyncPlayer framework and its components. Subsequently, Sect. 4.2 demonstrates how the methods for annotation and retrieval presented in Sect. 2 and Sect. 3 are integrated into this framework. 4.1
The SyncPlayer Framework
The SyncPlayer is a client-server based software framework that integrates various MIR-techniques such as music synchronization, content-based retrieval, and multimodal presentation of content-based audiovisual data [1]. The framework basically consists of three software components as depicted in Fig. 4: a server component, a client component, and a toolset for data administration. The user operates the client component, which in its basic mode acts like a standard software audio player for *.mp3 and *.wav files. Additional interfaces, e.g., for performing content-based queries as well as various visualization tools, are provided through plug-ins (see Fig. 5). A remote computer system runs the server component, which supplies the client with annotation data such as synchronization information and controls several query engines for different types of content-based audio retrieval. Several server-side administration tools are used for maintaining the databases and indexes underlying the SyncPlayer system. The SyncPlayer framework offers two basic modes for accessing audio documents and corresponding content-based information. First, a user operating the
120
M. M¨ uller et al.
client system may choose locally available audio recordings for playback. The client then extracts features from the audio recordings which are sent to the remote SyncPlayer server. The server subsequently attempts to identify the audio recording based on the submitted features. Upon success, the server searches its database for available annotations (such as lyrics or notes) which are then sent back to the client. The client system offers the user several visualization types for the available annotations. Two examples are a karaoke-like display for lyrics information and a piano-roll style display for note (MIDI-) information. Fig. 5 shows the SyncPlayer client (top left) along with the MultiVis plug-in for displaying lyrics synchronously to audio playback (bottom left). The second method for accessing audio documents using the SyncPlayer is by means of appropriate query engines. In this scenario, the user operates a query plug-in offered by the client. Queries are submitted to the SyncPlayer server which, depending on the query type, schedules the queries to an appropriate query engine. A ranked list of retrieval results is returned to the client and displayed to the user. The user may then select particular query results for playback which are subsequently streamed from the server along with available annotation data. Note that the latter type of streaming is generally only allowed for authorized users. For more detailed information on the SyncPlayer framework, we refer to [1,14]. A demo version of the SyncPlayer is available for download at the SyncPlayer Homepage [15]. 4.2
The Lyrics Search Plug-In
The methods for aligning lyrics to audio recordings presented in Sect. 2 as well as the procedures for creating the lyrics-based search index (see Sect. 3) have been integrated into the SyncPlayer administration tools. A query engine for lyrics-based search according to Sect. 3 has been implemented and connected to the SyncPlayer server. On the client side, a query interface for textual queries has been developed. The interface is shown in the right part of Fig. 5. Query results returned by the server are displayed in the same window according to the formerly described ranking criterion. Fig. 5 shows a query and corresponding query results for a lyrics fragment taken from the song Yellow Submarine by the Beatles. The first two matches are displayed in the lower part of the interface. Note that due to our matching strategy, a match not only consists of a particular document ID but also of the precise position (in seconds) of the query terms within the corresponding audio recording. Upon selecting one of the matches in the result list, the audio recording is transfered to the SyncPlayer client (provided the audio recording is available for download) and playback starts directly at the matching position. At the moment, lyrics search in the online version of the SyncPlayer framework works on our test corpus of about 100 audio recordings including the 24 piano songs as discussed above. A larger scale evaluation of the Lyrics Seeker including relevance-based measures for retrieval performance will be conducted within the Probado library project which is summarized in the next section.
Lyrics-Based Audio Retrieval and Multimodal Navigation
121
Fig. 5. SyncPlayer client (top left), MultiVis plug-in for displaying lyrics synchronously to audio playback (bottom left) and Lyrics Search plug-in for textual queries (right)
5
Conclusions and Future Work
In this paper, we have introduced a combination of methods facilitating lyricsbased audio retrieval in digital music collections. Based on automatically generated lyrics-audio alignments, the user is enabled to directly access audio material from the result list obtained by our query engine for text-based lyrics retrieval. As illustrated by Fig. 6, these functionalities can be combined with further browsing and visualization tools to allow for multimodal inter- and intra-document navigation in inhomogeneous and complex music libraries. Here, the SyncPlayer plug-in concept allows any number of plug-ins to be opened at the same time. For example, the lyrics search plug-in affords lyrics-based audio retrieval, while the lyrics visualization plug-in displays the text as in typical karaoke applications. At the same time the audio structure plug-in facilitates intra-document browsing on the basis of the repetitive structure of the respective audio recording, where the audio structure has been extracted in a fully automated process, see, e. g., [11]. Similar to our lyrics-based audio retrieval scenario, the availability of MIDI-audio alignments can be used to facilitate score-based audio access as well as synchronous score visualization as indicated by the piano-roll representation in Fig. 6. Further plug-ins may be used for displaying the waveform, a spectogram, a chromagram, or other derived audio representations. There are many meaningful ways to add functionalities for content-based, multimodal music retrieval and navigation. For example, a functionality for synchronously displaying high quality scanned scores is currently being developed. This also requires an automated procedure to time align the pixels of scanned sheet music to corresponding time positions within an audio recording. In future work, we will investigate novel ways for automatic lyrics to audio alignment based on scanned score material. Furthermore, we plan to integrate several other query engines into the SyncPlayer framework facilitating,
122
M. M¨ uller et al.
Fig. 6. SyncPlayer client with several of the available plug-ins for browsing and visualization illustrated for the Schubert example from Fig. 1. The figure shows the main audio player (upper left) as well as plug-ins for visualizing lyrics (upper right), audio structure (middle left), piano-roll (middle right), and the waveform signal (bottom).
e.g., audio matching [16] and score-based retrieval [13]. The methods and software components presented in this paper will be used within the German digital library initiative Probado [17] that aims at integrating (non-textual) multimedia documents into the workflow of existing digital libraries. In the Probado project, we are currently setting up a repository of digitized music documents consisting of audio recordings and scanned sheet music. In this context, the proposed methods will be used for the tasks of automatic annotation of music documents (lyrics-audio alignment, Sect. 2), content-based audio retrieval (lyrics search, Sect. 3), and content-based navigation in audio recordings (SyncPlayer and plug-ins, Sect. 4). In conclusion, we hope that our advanced audio player opens new and unprecedented ways of music listening and experience, provides novel browsing and retrieval strategies, and constitutes a valuable tool for music education and music research. For the future, large-scale evaluations and systematic user studies have to be conducted to identify user needs and to convert the SyncPlayer into a system which is suitable for permanent application in existing digital libraries.
Lyrics-Based Audio Retrieval and Multimodal Navigation
123
References 1. Kurth, F., M¨ uller, M., Damm, D., Fremerey, C., Ribbrock, A., Clausen, M.: SyncPlayer — An Advanced System for Multimodal Music Access. In: ISMIR, London, GB (2005) 2. Arifi, V., Clausen, M., Kurth, F., M¨ uller, M.: Automatic Synchronization of Musical Data: A Mathematical Approach. Computing in Musicology 13 (2004) 3. Dannenberg, R., Raphael, C.: Music score alignment and computer accompaniment. Special Issue, Commun. ACM 49(8), 39–43 (2006) 4. Hu, N., Dannenberg, R., Tzanetakis, G.: Polyphonic audio matching and alignment for music retrieval. In: Proc. IEEE WASPAA, New Paltz, NY (October 2003) 5. M¨ uller, M., Kurth, F., R¨ oder, T.: Towards an efficient algorithm for automatic score-to-audio synchronization. In: Proc. ISMIR, Barcelona, Spain (2004) 6. M¨ uller, M., Mattes, H., Kurth, F.: An efficient multiscale approach to audio synchronization. In: Proc. ISMIR, Victoria, Canada, pp. 192–197 (2006) 7. Soulez, F., Rodet, X., Schwarz, D.: Improving polyphonic and poly-instrumental music to score alignment. In: Proc. ISMIR, Baltimore, USA (2003) 8. Turetsky, R.J., Ellis, D.P.: Force-Aligning MIDI Syntheses for Polyphonic Music Transcription Generation. In: Proc. ISMIR, Baltimore, USA (2003) 9. Wang, Y., Kan, M.Y., Nwe, T.L., Shenoy, A., Yin, J.: Lyrically: automatic synchronization of acoustic musical signals and textual lyrics. In: MULTIMEDIA ’04: Proceedings of the 12th annual ACM international conference on Multimedia, pp. 212–219. ACM Press, New York (2004) 10. Bartsch, M.A., Wakefield, G.H.: Audio thumbnailing of popular music using chroma-based representations. IEEE Trans. on Multimedia 7(1), 96–104 (2005) 11. M¨ uller, M., Kurth, F.: Towards structural analysis of audio recordings in the presence of musical variations. EURASIP Journal on Advances in Signal Processing, Article ID 89686 2007, 18 (2007) 12. Witten, I.H., Moffat, A., Bell, T.C.: Managing Gigabytes, 2nd edn. Van Nostrand Reinhold (1999) 13. Clausen, M., Kurth, F.: A Unified Approach to Content-Based and Fault Tolerant Music Recognition. IEEE Transactions on Multimedia 6(5) (2004) 14. Fremerey, C.: SyncPlayer – a Framework for Content-Based Music Navigation. Diploma Thesis, Dept. of Computer Science, University of Bonn (2006) 15. Multimedia Signal Processing Group Prof. Dr. Michael Clausen: SyncPlayer Homepage. Website (January 2007), http://www-mmdb.iai.uni-bonn.de/projects/syncplayer/index.php 16. M¨ uller, M., Kurth, F., Clausen, M.: Audio matching via chroma-based statistical features. In: Proc. ISMIR, London, GB (2005) 17. Steenweg, T., Steffens, U.: Probado – non-textual digital libraries put into practice. In: ERCIM News Special Theme: European Digital Library, pp. 47–48 (July 2006)
Automatic Identification of Music Works Through Audio Matching Riccardo Miotto and Nicola Orio Department of Information Engineering, University of Padua, Italy {miottori,orio}@dei.unipd.it
Abstract. The availability of large music repositories poses challenging research problems, which are also related to the identification of different performances of music scores. This paper presents a methodology for music identification based on hidden Markov models. In particular, a statistical model of the possible performances of a given score is built from the recording of a single performance. To this end, the audio recording undergoes a segmentation process, followed by the extraction of the most relevant features of each segment. The model is built associating a state for each segment and by modeling its emissions according to the computed features. The approach has been tested with a collection of orchestral music, showing good results in the identification and tagging of acoustic performances.
1
Introduction
Automatic identification of music works is gaining increasing interest because it can provide new tools for music accessing and distribution. Manual identification of music works is a difficult task that, ideally, should be carried out by trained users who remember by heart hundreds, or even thousands, of hours of music. Non expert users, instead, are usually able to recognize only well known works, and they may require the aid of an automatic tool for labeling the recordings of performances of unknown works. Automatic tools are particularly useful with instrumental music, when lyrics are not available for recognizing a particular work. Metadata about music works are needed also during the creation of a music digital library. For instance, theaters, concert halls, radio and television companies have usually hundreds of hours of almost unlabeled analog recordings, which witness the activities over the years of the institution and that need to be digitized and catalogued for preservation and dissemination. Moreover, music is extensively used as the background of commercials, television shows, and news stories. The automatic identification of music works employed as audio background may be useful for users, that can access for new interesting material. A common approach to music identification is to extract, directly from a recording in digital format, its audio fingerprint, which is a unique set of features that allows for the identification of digital copies even in presence of noise, distortion, and compression. It can be seen as a content-based signature that summarizes an audio recording. Applications of audio fingerprinting include L. Kov´ acs, N. Fuhr, and C. Meghini (Eds.): ECDL 2007, LNCS 4675, pp. 124–135, 2007. c Springer-Verlag Berlin Heidelberg 2007
Automatic Identification of Music Works Through Audio Matching
125
Web-based services that, given a sample of recording, provide the users with metadata about authors, performers, recording labels, of given unknown digital recordings. A comprehensive tutorial about audio fingerprinting techniques and applications can be found in [1]. Audio fingerprinting systems are designed to identify a particular performance of a given music work. This assumption is valid for many applications. For instance, users are interested to particular recordings of a given music work, e.g. the one of a renown group rather than of a garage band. Moreover, digital rights management systems have to deal also with the rights of the performers. For these reasons, the audio fingerprint is computed from recordings, and usually it is not able to generalize the features and to identify different performances of the same music work. On the other hand, the identification of a music work may be carried out also without linking the process to a particular performance. Music identification of broadcasted live performances may not benefit from the fingerprints of other performances, because most of the acoustic parameters may be different. In the case of classical music, the same works may have hundreds of different recordings, and it is not feasible to collect all of them in order to create a different fingerprint for each recording. To this end, a methodology that allows the user to recognize the different instances of a given music work, without requiring the prior acquisition of all the available recordings, could be a viable alternative to audio fingerprinting. An alternative approach to music identification is audio watermarking. In this case, research on psychoacoustics is exploited in order to embed in a digital recording an arbitrary message, the watermark, without altering the human perception of the sound [2]. The message can provide metadata about the recording (such as title, author, performers), the copyright owner, and the user that purchases the digital item. The latter information can be useful to track the responsible of an illegal distribution of digital material. Similarly to fingerprints, audio watermarks should be robust to distortions, additional noise, A/D and D/A conversions, and compressions. On the other hand, watermarking techniques require that the message is embedded in the recording before its distribution and it is almost impossible to watermark the millions of digital recordings already available on the Internet. Moreover, watermarks can be made unreadable using audio processing techniques. This paper reports a novel methodology for automatic identification of music works from the recording of a performance, yet independently from the particular performance. Unknown music works are identified through a collection of indexed audio recordings, ideally stored in a music digital library. The approach can be considered a generalization of audio fingerprinting, because the relevant features used for identification are not linked to a particular performance of a music work. Clearly the approach allows the user to identify the metadata related to a musical work and not to the particular performance used for the identification. The limitation of not identifying the performers can be balanced by the fact that only a single instance of a given work needs to be stored in the database. Moreover, as already mentioned, audio fingerprinting techniques are not able to identify live performances. The methodology reported in this paper extends
126
R. Miotto and N. Orio
previous work on music identification based on audio to score matching [3], where performances were modeled starting from the corresponding music scores. Also in this case, identification is based on hidden Markov models (HMMs). The application scenario is the automatic labeling of performances of tonal Western music through a match with pre-labeled recordings that are already part of an incremental music collection. Audio to audio matching has been proposed in [4,5] for classical music audio to audio matching and audio to audio alignment respectively, and in [6] for pop music.
2
Automatic Identification of Music Performances
The automatic identification of music performances is based on a audio to audio matching process, which goal is to retrieve all the audio recordings from a database or a digital library that, in some sense, represent the same musical content as the audio query. This is typically the case when the same piece of music is available in several interpretations and arrangements. The basic idea of the proposed approach is that, even if two different performances of the same music work may dramatically differ in terms of acoustic features, it is nevertheless possible to generalize the music content of a recording in order to model the acoustic features of other, alternative, performances of the same music work. A recording can thus be used to statistically model other recordings, providing that they are all performed from the same score. It has to be noted that the proposed methodology is particularly suitable for tonal Western music, and other music genres where performers strictly adhere to a give music score. This may not be the case of jazz music, where musicians may change the melodic and rhythmic structure of a given song. To cope with this genre, other dimensions may be more suitable, for instance the harmonic structure. Applications to rock and pop music are under current development, generalizing the concept of music score with a representation similar to the lead-sheet model proposed in [7]. With the aim of creating a statistical model of the score directly from the analysis of a performance, the proposed methodology is based on a number of different steps, as depicted in Figure 1. In a first step, segmentation extracts audio subsequences that have a coherent acoustic content. Audio segments are likely to be correlated to stable parts in a music score, where there is no change in the number of different voices in a polyphony. Coherent segments of audio are analyzed through a second step, called parameter extraction, which aims at computing a set of acoustic parameters that are general enough to match different performances of the same music work. In a final step, modeling, a HMM is automatically built from segmentation and parametrization to model music production as a stochastic process. At matching time, an unknown recording of a performance is preprocessed in order to extract the features modeled by the HMMs. All the models are ranked according to the probability of having generated the acoustic features of the unknown performance.
Automatic Identification of Music Works Through Audio Matching
127
Performance
D A T A B A S E
1
N
Performance Pre-Processing Segmentation
Parameter Extraction
Modeling
.
.
.
.
.
.
.
.
.
.
.
.
Segmentation
Parameter Extraction
Modeling
MATCHING
Ranking
Fig. 1. Audio to audio matching process
2.1
Segmentation
The audio recording of a performance is a continuous flow of acoustic features, which depends on the characteristics of the music notes – pitch, amplitude, and timbre – that vary with time according to the music score and to the choices of the musicians. In order to be structured, the audio information has to undergo a segmentation process. According to [8], the word segmentation in the musical world can have two different meanings: one is related to musicology and is normally used in symbolic music processing, whereas the other one follows the signal processing point of view and it is used when dealing with acoustic signals. In the latter case, the aim of segmentation is to divide a musical signal into subsequences that are bounded by the presence of music events. An event, in this context, occurs whenever the current pattern of a musical piece is modified. Such modifications can be due to one or more notes being played, possibly by different instruments, to active notes being stopped, or to a change in pitch of one or more active notes. This approach to segmentation is motivated by the central role that pitch plays in music language. In fact the segmentation of the acoustic flow can be considered the process of highlighting audio excerpts with a stable pitch. The representation of a complete performance can then be carried out through the concatenation of its segments. In the proposed approach, segmentation is carried out by computing the spectrogram of the signal, and then taking the correlation of different frames represented in the frequency domain. Frames were computed using windows of 2048 samples – approximately 46 msecs – with an hopsize of 1024 samples. High correlation is expected between frames where the same notes are playing, while a drop in correlation between two subsequent frames is related to a change in the active notes. Thus correlation has been used as a similarity measure between audio frames. Similarity between different parts of an audio recording can be represented as in the left part of Figure 2, that is with a symmetric matrix where high similarity values are represented by bright pixels, top-left and bottom-right pixel show the self-similarity for the first and last frame and bright square regions along the diagonal represent the potential similar regions.
128
R. Miotto and N. Orio
Ranking Matrix
8.4
8.4
7.2
7.2
6.0
6.0 Time (sec)
Time (sec)
Similarity correlation
4.8
4.8
3.6
3.6
2.4
2.4
1.2
1.2 1.2
2.4
3.6
4.8 Time (sec)
(a)
6.0
7.2
8.4
1.2
2.4
3.6
4.8 Time (sec)
6.0
7.2
8.4
(b)
Fig. 2. Similarity (a) and rank (b) matrices with highlighted segments
Segmentation has been carried out according to the methodology proposed in [9], which has been developed in the context of text segmentation. In particular, hierarchical clustering on the similarity matrix is exploited to segment a sequence of features – being either textual elements or acoustic parameters – in coherent passages. According to [9], segmentation effectiveness can be improved if clustering is performed on a ranking matrix, which is computed by replacing each value in the similarity matrix with its rank in a local region, where the local region size can vary according to the context. The rank parameter is defined as the number of neighbors with a lower similarity value and it is expressed as a ratio between the number of elements with a lower value and the number of elements examined to circumvent normalization problems along the matrix bounds. Figure 2 shows the two different matrixes depicting the segments along the main diagonal. The clustering step computes the location of boundaries using Reynar’s maximization algorithm [10], a method to find the segmentation that maximizes the inside density of the segments. A preliminary analysis of the segmentation step allowed us to set a threshold for the optimal termination of the hierarchical clustering. It is interesting to note that it is possible to tune the termination of hierarchical clustering, in order to obtain different levels of cluster granularity, for instance at note level or according to different sources or audio classes. In our experiments, audio samples have been normalized to obtain similar levels of segmentation granularity between the performances. Figure 3 depicts the segments computed with the proposed techniques, superimposed to the energy trend of an audio recording, the same that have been used to represent matrixes of Figure 2. It is important to note that these figures depicts the results of segmentation applied to a quite simple audio excerpt – monophonic plain audio – and they are shown in order to have a clearer visual representation than polyphonic audio segmentation, which is the scope of our approach. In this case, it can be seen that the spectral based segmentation is highly correlated with the energy envelope.
Automatic Identification of Music Works Through Audio Matching
129
Fig. 3. Example of segmentation of a recording represented by its energy envelope
2.2
Parameter Extraction
In order to obtain a general representation of an acoustic performance, each segment needs to be described by a compact set of features that are automatically extracted. In line with the approach to segmentation, also parameter extraction is based on the idea that pitch information is the most relevant for a music identification task. Because pitch is related to the presence of peaks in the frequency representation of an audio frame, the parameter extraction step is based on the computation of local maxima in the Fourier transform of each segment, averaged over all the frames in the segment. In general, the spectra of different real performances of the same music work may vary because of differences in performing styles, timbre, room acoustics, recording equipment, and audio post processing. Yet, for all the performances the positions of local maxima are likely to be related to the position along the frequency axis of fundamental frequency and the first harmonics of the notes that are played in each frame. Thus a reasonable assumption is that alternative performances will have at least similar local maxima in the frequency representations, that is the dominant pitches will be in close positions. When comparing the local maxima of the frequency representation, it has to be considered that Fourier analysis is biased by the windowing of a signal, which depends on the type and of the length of the window. These effects are expected both on the reference performances and on the performance to be recognized. Moreover, small variances on the peaks positions are likely to appear between different performances of the same music work, because of imprecise tuning and different reference frequency. For these reasons, instead of selecting only the peaks in the Fourier transform, each audio segment has been described by a set of bin intervals, centered around the local maxima and with the size of
130
R. Miotto and N. Orio
Segment FFT Filtering
Segment FFT Filtering 15000
15000
10000
FFT Values
FFT values
10000
5000
5000
0
50
100 FFT Bins
(a)
150
0
50
100
150
FFT Bins
(b)
Fig. 4. Parameters extraction considering 70% (a) and 95% (b) of the overall energy
a quarter tone. The number of intervals is computed automatically, by requiring that the sum of the energy components within the overall intervals is above a given threshold. Figure 4 depicts two possible sets of relevant intervals, depending on the percentage of the overall energy required: 70% for case (a) and 95% for case (b). It can be noted that a small threshold may exclude some of the peaks, which are thus not used as content descriptors. 2.3
Modeling
Each music work is modeled by a hidden Markov model, which parameters are computed from an indexed performance. HMMs are stochastic finite-state automata, where transitions between states are ruled by probability functions. At each transition, the new state emits a random vector with a given probability density function. A HMM λ is completely defined by: – a set of N states Q = {q1 , . . . , qN }, in which the initial and final states are identified; – a probability distribution for state transitions, that is the probability to go from state qi to state qj ; – a probability distribution for observations, that is the probability to observe the features r when in state qj . Music works can be modeled with a HMM providing that: states are labeled with events in the audio recording, transitions model the temporal evolution of the audio recording, and observations are related to the audio features previously extracted that help distinguishing different events. The model is hidden because only the audio features can be observed and it is Markovian because transitions and observations are assumed to depend only on the actual state. The number of states in the model is proportional to the number of segments in the performance. In particular, experiments have been carried out using n
Automatic Identification of Music Works Through Audio Matching
131
Fig. 5. Graphical representation of HMM corresponding to two general segments
states for each segment. Figure 5 shows the HMM topology corresponding to two segments of four states each. It is proposed that states can either perform a self-transition, which models segments duration, or forward-transitions, which model the change from a segment to the following one. All the states in a given segment have the same probability p of performing a self-transition. Given this limitation, the probability of having a given segment duration is a negative binomial: d − 1 d−n (1 − p)n P (d) = p n−1 The values n and p can be computed on the basis of the expected duration of the segments and transition probabilities, information that can be extracted from the actual duration of each segment. Durations need to be statistically modeled because different performances of the same music work may remarkably differ in timing. Each state in the HMM is labeled to a given segment and, accordingly with the parameter extraction step, emits the probability that a relevant fraction of the overall energy is carried by the frequency intervals computed at the previous step. The modeling approach is similar to the one presented in [3], and, in fact, one of the goals of this work was to create a common framework where an unknown performance could be recognized from either its score or an alternative performance. 2.4
Identification
Recognition, or identification, is probably the application of HMMs that is most often described in the literature. The identification problem may be stated as follows: – given an unknown audio recording, described by a sequence of audio features R = {r(1), · · · , r(T )}, – given a set of competing models λi , – find the model that more likely generates R. The definition does not impose a particular evolution of models λi , that is the path across the N states that corresponds to the generation of R. This allows us to define a number of criteria for solving the identification problem, depending on different constraints applied to the evolutions of the states of λi . Three different approaches are proposed, whose names are derived from the notation proposed in a classical tutorial on HMMs [11].
132
R. Miotto and N. Orio
Approach α. The most common approach to HMM-based identification, is to compute the probability that λi generates R regardless of the state sequence. This can be expressed by equation λα = argmaxi P (R|λi ) where the conditional probability is computed over all the possible state sequences of a model. The probability can be computed efficiently using the forward probabilities, also known as alpha probabilities. Even if approach α is the common practise for speech and gesture recognition, it may be argued that also paths that have no relationship with the actual performance give a positive contribution to the final probability. For instance, a possible path, which contributes to the overall computation of the forward probabilities, may consist in the first state of the HMM that continuously performs self-transitions. These considerations motivate the testing of two additional approaches. Approaches δ and γ. Apart from recognition, another typical HMM problem is finding the most probable path across the states, given a model and a sequence of observations. A widely used algorithm is Viterbi decoding, which computes a path that is globally optimal according to equation q δ = argmaxq P (q|R, λi ) Alternatively, a locally optimal path [12] can be computed, according to equation q(t) = argmaxq P (q(t)|R, λi ) q γ = {q(1), q(2), . . . , q(T )} Both global and local optimal paths can be used to carry out an identification task, for finding the model that more likely generates R while state evolution is constrained. This approach leads to equations λδ = argmaxi P (R|q δ , λi ) λγ = argmaxi P (R|q γ , λi ) that show how the probability of R is conditioned both by the model λi and by the state sequence of the global or optimal paths. 2.5
Computational Complexity
All the presented approaches allow the computation of the probabilities using a dynamic programming approach. In particular, it is known in the literature that each of the approaches requires O(DT N 2 ) time, where D is the number of competing models, T is the duration of the audio sequence in analysis frames, and N is the average number of states of the competing HMMs. Considering that, as described in Section 2.3, each state may perform a maximum of two transitions, it can be shown that complexity becomes O(DT N ). In order to
Automatic Identification of Music Works Through Audio Matching
133
increase efficiency, the length of the unknown sequence should be small, that is the method should give good results also with short audio excerpts. An important parameter for computational complexity is the number of states N . A first approach to reduce N is to compute a coarse segmentations, which corresponds to a smaller number of group of states. On the other hand, a coarse segmentation may give poor results in terms of emission probabilities, because a single segment could represent parts of the performance with a low internal coherence. Another approach to reduce the computational complexity is to use a small number of states n for each segment, and model the durations with higher values of the self-transition probabilities p. As previously mentioned, in our experiments we found that setting n = 4 for each segment gave a good compromise.
3
Experimental Evaluation
The methodology has been evaluated with real acoustic data from original recordings taken from the personal collection of the authors. Tonal Western music repertoire has been used as a test-bed because it is a common practice that musicians interpret a music work without altering pitch information, which is the main feature used for identification. The audio performances used to create the models were 100 incipits of orchestral works of well known composers of Baroque, Classical, and Romantic periods. All the incipits used for the modeling had a fixed length of 15 seconds. The audio files were all polyphonic recordings, with a sampling rate of 44.1 kHz, and they have been divided in frames of 2048 samples, applying a hamming window, with an overlap of 1024 samples. With these parameters, a new observation is computed every 23.2 milliseconds. The recordings to be recognized were 50 different performances of the same music works used to build the models. Also in this case they were an incipit of the music works, with a length of 10 seconds. The shorter lengths guaranteed that the performances to be recognized were shorter than the ones used to build the models, even in the case the two performances had a different tempo. The actual requirement is that the performance to be recognized is at least as long as the performance used for the recognition. The 50 audio excerpts have been considered as unknown sequences to be identified, using the alternative approaches presented in Section 2.4. Table 1 reports the identification rates for the three approaches in terms of mean Average Precision, which is a well known measure in information retrieval and, for an identification task, it is equal to the mean of the reciprocal of the rank of the musical work to be identified. With this experimental setup the average identification rate was quite different among the approaches, with α outperforming the two approaches that take into account also the global an local optimal paths. A more detailed analysis of the results highlighted that, in some cases, local differences between the reference and the unknown performances gave unreliable results in the alignment, affecting the overall identification rates.
134
R. Miotto and N. Orio
Table 1. Identification rates for the different approaches, in terms of Average Precision Approach
Mean Average Precision (%)
α
78.7
γ
39.3
δ
51.1
Fig. 6. Rank distributions of correct matches in the α identification test
For the particular case of α, more detailed results are reported in Figure 6 that shows the percentages at which the correct audio recording was ranked as the most similar one, and when it was ranked within the first two, three, five, ten and twenty positions. As it can be seen, 43 out of 50 queries (86%) returned correct match among top 3 models, and 36 among them (72%) were correctly identified. Moreover, only 4 queries (8%) returned the correct match after the first 10 positions. These encouraging results allow us to consider the methodology suitable for the development of a supervised system for music identification. A typical scenario could be the one of an user that, after running the identification routines, is provided with a list of potential matches, together with a link to the reference performances that he can listen to, in order to finally identify the unknown recording.
4
Conclusions
A methodology for automatic music identification based on HMMs has been proposed. Three approaches to compute the conditional probability of observing a performance given the model of an indexed audio recording have been tested on a collection of digital acoustic performances. Experimental results showed that, at least for tonal Western music, it is possible to achieve a good identification rate. In particular, the typical approach to recognition based on the used of forward probabilities, which has been defined as the α approach, achieved an identification rate of 72%. Alternative approaches, which take into account the alignment between the reference and the unknown performances, did not have comparable performances.
Automatic Identification of Music Works Through Audio Matching
135
These results suggest that the approach can be successfully exploited for a retrieval task, where the user queries the system through an acoustic recording of a music work. The automatic identification of unknown recordings can be exploited as a tool for supervised manual labeling: the user is presented with a ranked list of candidate music works, from which he can choose. In this way, the task can be carried out also by non expert users, because they will be able to directly compare the recordings of the unknown and of the reference performances. Once that the unknown recording has been correctly recognized, it can be indexed and joint to the musical digital library, allowing us to increment the information stored inside it. A prototype system has been developed, which allows a user, after recording or downloading an excerpt of a performance of classical music, to obtain after few seconds the relevant metadata of the music work.
References 1. Cano, P., Batlle, E., Kalker, T., Haitsma, J.: A review of audio fingerprinting. Journal of VLSI Signal Processing 41, 271–284 (2005) 2. Boney, L., Hamdy, A.T.K.: Digital watermarks for audio signals. IEEE Proceedings Multimedia, 473–480 (1996) 3. Orio, N.: Automatic recognition of audio recordings. In: Proceedings of the Italian Research Conference on Digital Library Management Systems, pp. 15–20 (2006) 4. M¨ uller, M., Kurth, F., Clausen, M.: Audio matching via chroma-based statistical features. In: Proceedings of the International Conference of Music Information Retrieval, pp. 288–295 (2005) 5. Dixon, S., Widmer, G.: MATCH: a music alignment tool chest. In: Proceedings of the International Conference of Music Information Retrieval, pp. 492–497 (2005) 6. Hu, N., Dannenberg, R., Tzanetakis, G.: Polyphonic audio matching and alignment for music retrieval. In: Proceedings of the IEEE Workshop on Applications of Signal Processing to Audio and Acoustics, pp. 185–188. IEEE Computer Society Press, Los Alamitos (2003) 7. Seifert, F.: Semantic music recognition – audio identification beyond fingerprinting. In: Proceedings of the International Conference of Web Delivering of Music, pp. 118–125 (2004) 8. Aucouturier, J.: Segmentation of Music Signals and Applications to the Analysis of Musical Structure. Master Thesis, King’s College, University of London, UK. (2001) 9. Choi, F.Y.: Advances in domain independent linear text segmentation. In: Proceedings of the Conference on North American chapter of the Association for Computational Linguistics, pp. 26–33 (2000) 10. Reynar, J.: Topic Segmentation: Algorithms and Applications. PhD Thesis, Computer and Information Science, University of Pennsylvania (1998) 11. Rabiner, L., Juang, B.: Fundamentals of Speech Recognition. Prentice-Hall, Englewood Cliffs, NJ (1993) 12. Raphael, C.: Automatic segmentation of acoustic musical signals using hidden markov models. IEEE Transactions on Pattern Analysis and Machine Intelligence 21(4), 360–370 (1999)
Roadmap for MultiLingual Information Access in the European Library Maristella Agosti1 , Martin Braschler2, Nicola Ferro1 , Carol Peters3 , and Sjoerd Siebinga4 University of Padua, Italy {maristella.agosti, nicola.ferro}@unipd.it Zurich University of Applied Sciences Winterthur, Switzerland [email protected] 3 ISTI-CNR, Area di Ricerca – 56124 Pisa, Italy [email protected] 4 The European Library, The Netherlands [email protected] 1
2
Abstract. The paper studies the problem of implementing MultiLingual Information Access (MLIA) functionality in The European Library (TEL). The issues that must be considered are described in detail and the results of a preliminary feasibility study are presented. The paper concludes by discussing the difficulties inherent in attempting to provide a realistic full-scale MLIA solution and proposes a roadmap aimed at determining whether this is in fact possible.
1
Introduction
This paper reports on a collaboration [1,4,5] conducted between DELOS1 , the European Network of Excellence on Digital Libraries funded by the EU Sixth Framework Programme, and The European Library (TEL)2 , a service fully funded by the participant national libraries members of the Conference of European National Librarians (CENL)3 , which aims at providing a co-operative framework for integrated access to the major collections of the European national libraries. The ultimate goal of MultiLingual Information Access (MLIA) in TEL is to enable users of TEL to access and search the library in their own (or preferred) language, retrieve documents in other languages and have the results presented in an interpretable fashion (e.g. possibly with a summary of the contents in their chosen language). The problem is complex and many factors are involved. These include: the number of languages involved, the current heterogeneous setup of TEL, the lexical tools and resources needed. 1 2 3
http://www.delos.info/ http://www.theeuropeanlibrary.org/ http://www.cenl.org/
L. Kov´ acs, N. Fuhr, and C. Meghini (Eds.): ECDL 2007, LNCS 4675, pp. 136–147, 2007. c Springer-Verlag Berlin Heidelberg 2007
Roadmap for MultiLingual Information Access in the European Library
137
– Number of Languages. The number of different languages represented in TEL constitutes a major hurdle for MLIA, as ideally it should be possible to launch a query in any one of the national languages of the TEL collections and retrieve relevant material in any one of the collections. Possible approaches to the problem might be the use of multilingual ontologies, metadata and subject authority data, statistical translation resources, or some kind of interlingua. – Heterogeneous set-up. A serious problem is represented by the heterogeneous set up of TEL, as there are severe limitations on how the existing infrastructure is able to process a cross-language query result. – Resources Needed. Any cross-language strategy implies the acquisition and development of appropriate lexical tools and linguistic resources such as stemmers, morphologies, bilingual dictionaries, etc. As more languages are involved, not only does the number of resources increase, but the type of resources needed becomes more complex and more difficult to acquire. The implementation of MLIA in TEL is thus an ambitious task and must be considered a medium/long-term goal, to be achieved through a series of intermediate steps. In this paper, we will try to determine the scope of implementation, attempt to identify the main obstacles, and devise a road-map which could help us to determine whether the full implementation of free-text MLIA in TEL is in fact practicable. This document is organised as follows: section 2 describes the current TEL architecture; in section 3 we discuss the underlying motivations for our study and the main goals; Section 4 presents solutions studied so far; finally Section 5 proposes further experimentation and outlines a Roadmap for future investigations.
2
TEL Architecture Overview
Figure 1 shows the architecture of the TEL system. The TEL project aims at providing a “low barrier of entry” for the national libraries that should be able to join TEL with only minimal changes to their systems [7]. This ease of integration is achieved by extensively using the Search/Retrieve via URL (SRU)4 protocol in order to search and retrieve documents from national libraries. In this way, the user client can be a simple browser, which exploits SRU as a means for uniformly accessing national libraries. With this objective in mind, TEL is constituted by three components: – a Web server: provides users with the TEL portal; – a central index: harvests catalogue records from national libraries which support the Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH)5 and provides integrated access to them via SRU; 4 5
http://www.loc.gov/standards/sru/ http://www.openarchives.org/OAI/openarchivesprotocol.html
138
M. Agosti et al.
Fig. 1. Architecture of the TEL system
– a gateway between SRU and Z39.50: allows national libraries which support only Z39.506 to be accessible via SRU. This light architecture allows TEL to support and integrate as follows: 1. a national library which natively uses SRU can be directly searched by the client; 2. a national library can have a local gateway between Z39.50 and SRU, so that the client can access it as if it were a native SRU library; 3. a national library which supports only Z39.50 can rely on the central SRU/Z39.50 gateway offered by the TEL system in order to be searched by clients; 4. a national library able to share metadata records by using OAI-PMH can be searched via the TEL central index, which harvests those records and makes them accessible to the client via SRU. Figure 2 illustrates an example of interaction with the TEL system using the sequence diagram notation of Unified Modeling Language (UML)7 . The example considers the case in which a user wants to query, simultaneously, a national library which exported its records to the TEL central index, a Z39.50 national library, and a native SRU national library. – the user asks the browser to connect to the Uniform Resource Locator (URL) of the TEL portal; – the browser connects to the TEL Web server, which downloads all the TEL portal on the client. From now on, there is no more interaction with the TEL Web server, but all the computation and interaction with the user is managed by the browser using Javascript. 6 7
http://www.loc.gov/z3950/agency/ http://www.omg.org/technology/documents/formal/uml.htm
Roadmap for MultiLingual Information Access in the European Library
User
Browser
(javascript)
ask TEL
TEL homepage
TEL Web Server
TEL Central Index
TEL Gateway
National Library Z39.50
139
National Library SRU
connect to TEL portal download TEL portal
select libraries and query route query to TEL central index route query to TEL gateway route query to SRU national library
query
query results
query results
show results query results show results query results show results
Fig. 2. Sequence diagram of the functioning TEL system
If the user decides to send a query to the national libraries mentioned above: – the browser, using SRU, routes the user’s query to, respectively: the TEL central index for the national library which exported its record via OAIPMH, the TEL gateway for the Z39.50 national library, and directly to the native SRU national library, and waits for the results to come back; – the browser receives the query results back from each system and displays them to the user.
3
Motivations and Goals
True multilingual access is more than just being able to search in more than one language. It means that the intended result is retrieved in each target collection regardless of language, character-encoding, metadata-schema, or normalisation rules. TEL is a heterogeneous federated search service for national libraries in Europe. This heterogeneous set-up poses a wide variety of problems for the implementation of MLIA functionality. MLIA in TEL can be roughly divided into three areas: 1. Multilingual user interface; 2. Multilingual mapping/linking of controlled vocabulary; 3. Multilingual search on free-text. 1. The TEL Portal interface and help texts are currently available in the 20 languages of the full partners.8 Localization is the responsibility of the individual libraries and translation files are updated with each new release. 8
Languages of full-partners (20): Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Serbian, Slovakian, Slovenian. Languages to be added in the near future (8): Bulgarian, Icelandic, Irish, Norwegian, Romanian, Russian (?), Spanish, Swedish.
140
M. Agosti et al.
2. Under the EDLProject9 a study is currently underway to determine how existing controlled vocabulary initiatives can be integrated into the TEL service. This study builds on previous work done under the TEL-ME-MOR project10 . The initiatives being examined include: – Subject Headings: Multilingual ACcess to Subjects (MACS), Multilingual Subject Access to Catalogues (MSAC), CRISSCROSS, etc. – Authority Files: Linking and Exploring Authority Files (LEAF), Virtual International Authority File (VIAF). – Classification Schemata: feasibility of linking various translations of classification schemata like Universal Decimal Classification (UDC), Dewey Decimal Classification (DDC), and so on. 3. Studies in the MLIA domain have mostly focused on the remaining area: multilingual search on free-text. The main reason is that it is very difficult to use controlled vocabularies for MLIA unless a multilingual version is available covering all the languages in the collection and all documents have been classified using this. We thus decided to make free-text MLIA the main focus of this paper. 3.1
Issues to Be Considered
The implementation of free-text MLIA in TEL is an ambitious aim and success is not guaranteed. Although great advances have been made in recent years in the field of multilingual information access11 , it remains difficult to implement this functionality outside a controlled setting with unified full-text data-resources. In TEL, MLIA must be applied to hybrid resources that contain only snippets of free-text (often only keywords or ungrammatical sentences) in rigidly structured bibliographic files. We list here the main questions that must be asked when considering free-text MLIA-implementation in TEL. 1. How can we implement MLIA with the TEL “low barrier of entry” approach. 2. How can we implement a multilingual component for multiple federated targets that is scalable both with respect to content and languages? 3. Is it actually possible to have a one to many and many to one cross-language access to 20-31 languages and still get good results? 4. Are the necessary language processing tools and resources available for all target languages? 5. Is it possible to use pivot-languages to reduce the amount of linguistic resources needed? 6. How should we deal with languages that have small collections and a relatively small number of native speakers? 9 10 11
http://www.edlproject.eu http://www.telmemor.net/ See, for example, the results published by the Cross Language Evaluation Forum: http://www.clef-campaign.org
Roadmap for MultiLingual Information Access in the European Library
141
7. Which metadata fields are relevant for free-text multilingual search: 1) title; 2) description; 3) keywords; 4) type; 5) abstract? 8. How do we solve the problem of limited context? The content of these fields is generally very short and often ungrammatical. 9. Can response times be sufficiently fast in an operational web environment? 3.2
TEL User and System Requirements
User interaction and empowerment have always been key principles of The European Library. The same should apply with respect to MLIA. MLIA functionality must be integrated in the portal in a non-obtrusive and intuitive manner. From a system design perspective the following key requirements for MLIA can be identified: 1. similar functionality on local and federated targets; 2. reduction of query complexity; 3. scalability; 4. speed and reliability; 5. full Unicode compliance; and finally 6. focus on open-source software and linguistic resources. These requirements are examined in more detail in the rest of this section. 1. TEL aims to provide a unified integrated access to the resources of European National Libraries. It is therefore important that any MLIA solutions proposed provide the user the same functionality regardless of the type of targets being queried, i.e. the local TEL central index or federated targets. Another important constraint is that due to the TEL ’low barrier of entry’ principle, the implementation of MLIA must be on the portal-side, i.e. no data manipulation on the partner side. 2. The question of how to query tens - sometimes hundreds - of collections/targets with a large number of translated query terms, has no easy answer. Bag-of-words or concatenated OR queries are often very complex and could lead to serious retrieval degradation. In order to reduce query complexity and improve response time, the option of creating target-specific queries could be explored. 3. Any MLIA solution should be flexible and scalable, in order to deal with the explosive growth of The European Library both in the number of targets and languages. Currently, TEL offers content from 23 National Libraries in 242 collections. In 2007, the numbers are expected to rise to 32 National Libraries and over 350 collections. Other relevant future expansions will be the addition of much more full-text in addition to the bibliographic records and integration with non-library Cultural Heritage institutions, like museums and archives. 4. An important aspect of scalability is reliable and consistent retrieval performance. During the prototyping phase, performance benchmarking should be done against very large amounts of data to ensure reliability. Because TEL is a fully operational service, response time is an important consideration. From an operational viewpoint, what would be an acceptable upper threshold for MLIA transactions in TEL (5-10 seconds)? This is not a easy question when search engines, like Google, give subsecond results. If multilingual retrieval is too slow, maybe returning a monolingual result first and presenting multilingual results later via pop-up or URL-link, would be a good intermediate solution.
142
M. Agosti et al.
5. All aspects of the MLIA implementation should be fully Unicode compliant, in order to properly handle the profusion of special diacritics and character encodings found in Europe12 . Even though most targets support Unicode, the problem of composed vs. decomposed Unicode characters still gives incomplete results. For example, ¨a and a" are usually displayed in the same way to the user but, when processed, give back different results. Special attention should also be paid, to how target-side normalisation affects retrieval. For example, some of the database search interfaces of our targets replace ˇ z with a * wildcard. This leads to large numbers of unwanted results. 6. It is necessary to focus on open-source software and linguistic resources to support the community and reduce cost of the working system. The European Library is funded by the national libraries themselves and therefore does not have the capital to buy expensive licensing for translation software and linguistic resources.
4
Implementing MLIA Functionality: A Feasibility Study
The architecture and functioning of the TEL system as described in the previous sections pose some problems when planning to introduce MLIA. TEL has no control on queries sent to the national libraries, since the client browser directly manages the interaction with national library systems via SRU. As a consequence, introducing MLIA functionality into the TEL system would have no effect on the national library systems. Thus, in order to achieve full MLIA functionality, not only the TEL system but also all the national library systems would have to be modified. This is an unviable option as it would require a very big effort and disregards the “low barrier of entry” guideline adopted when designing the TEL system. A two-step solution is suggested and two complementary approaches are proposed: isolated query translation and pseudo-translation [1,4,5]. The first provides a basic cross-language search functionality for the entire TEL system; the second operates on the TEL central index. Figure 3 shows the architecture of the TEL system with the two new components: the first performs the “isolated query translation”, while the second is responsible for the “pseudo-translation”. Note that the “isolated query translation” component can be directly accessed by the client browser by using the SRU protocol and thus the interaction with this new component is explicit. On the other hand, the “pseudo-translation” component is not directly accessed by the client browser but represents an extension of the TEL central index, which would be enhanced with MLIA functionalities. These two approaches are outlined below. They have both been well tested: the former via a set of mock-up implementations; the latter via a comparative evaluation setup. A full description of these studies is given in the literature cited above. 12
Under the TEL-ME-MOR project, an extensive survey was done on Unicode support and several recommendations were made to TEL partners.
Roadmap for MultiLingual Information Access in the European Library
143
Fig. 3. Architecture of the TEL system with new MLIA functionalities
4.1
Isolated Query Translation
“Isolated query translation” can be considered as a sort of pre-processing step where the translation problem is treated as completely separate from the retrieval. Before actually submitting the query, the user asks the browser to translate it. The browser sends the query via SRU to the “isolated query translation” component which translates it and can also apply query expansion techniques to reduce the problem of missing translations [3]. At this point, the user can interactively select the translation which best matches his needs or can change some query term to refine the translation. In this latter case, the translation process may be iterated. Once the desired translation of the query is obtained, the retrieval process is executed using both the translated query and the original one. “Isolated query translation” requires some user interaction, because the users may need to choose among multiple translations of the same term in order to disambiguate them or may need to modify the original query if the translated query does not match their needs. The main advantage of this solution is its ease of implementation and its compliance with the “low barrier of entry” approach of TEL. No changes to the national library systems are required and this new functionality can be transparently added to them, even if it is actually performed in the TEL system. The main drawback is that, as the translation is separated from the retrieval process, relevant documents may be missing in the result set and thus the performance may be low. Moreover, huge linguistic resources, such as dictionaries, are needed since the vocabulary used in queries is expected to be very large; translation components are needed for each pair of source/destination language the system is going to support.
144
4.2
M. Agosti et al.
Pseudo-translation
The aim of the “pseudo-translation” approach was to tackle two problems that can arise when applying MLIA strategies developed for information retrieval on collections of lengthy full-text documents to library records. In fact, a preliminary analysis of the records accessible in TEL originating from the Bibiloth`eque Nationale de France and the British Library confirmed that there is little full text in the TEL documents that can be used for retrieval. The characteristics of a sample of 10,000 random French and English records were studied. While all records contain a (short, basically one-sentence) title, only approximately 13% of all records in the French data sample contained additional data suited for retrieval. In the English sample, approximately 88% of records contain subject keywords that may prove to be suitable for retrieval. Other fields interesting for retrieval are only contained in a small number of records (11% contain an alternative title, 6% a listing of the table of contents, and 1% an abstract). Having only a small number of content-bearing words to work with means that translation failures (out-of-vocabulary words) can be expected to have serious consequences. If several key words go untranslated, a record can easily “disappear”, i.e. it becomes impossible to retrieve it. This problem was addressed by applying methods originally developed for query expansion to the records, adding additional terms that may be used for subsequent retrieval. Using this strategy, the key concepts expressed in the limited text fields of the record were strengthened, and the probability that these concepts “survive” translation was increased. The feasibility study simulated an environment in which as large a sample as possible of the bibliographic records - namely 151,700 - was enriched by expansion terms. Each record was run as a query against all other records of the sample, selecting those terms from expansion with highest weight that did not originally appear in the record. To simulate this process for analysis, any retrieval system that allows query expansion can potentially be used. The resulting additional terms formed no sentences. This was deemed to be unproblematic for the following translation stage, as the nature of the existing text in the records does not also lend itself specifically to machine translation (short, often ungrammatical text). For this reason, any translation resource that covers an extensive vocabulary should be suitable . The same expansion idea can be applied to the query in an analogous way. This second component of the feasibility study was evaluated carefully and the results were very encouraging. We tested the method by performing crosslanguage retrieval with German queries on the pseudo-translated English records. When applying overlap analysis, 55% of queries analyzed showed evidence of good retrieval results, and 83% of queries showed evidence that they did not suffer significantly from the cross-language setup when compared to the monolingual baseline (note that for some of these queries there simply will be no relevant records in the collection!). The latter number is encouraging, being in line with what has been reported as state-of-the-art for Cross Language
Roadmap for MultiLingual Information Access in the European Library
145
Information Retrieval (CLIR) in the Cross-Language Evaluation Forum (CLEF) campaign on lengthy documents. A full description of the evaluation is given in [4]. Please note, however, that the numbers have to be treated with care, owing to the limitations described above. This approach should actually benefit in terms of effectiveness when scaling up to larger collections, which would occur when implementing the approach in the actual TEL system. Combining Both Approaches. It is important to note that these two approaches can be implemented in conjunction in order to improve the MLIA functionality offered to TEL users. The implementation is facilitated as they share common components at the architectural level. For example, the translation engine or the translation resources, whether machine translation, machine readable dictionaries, or a combination of methods, can be shared by both approaches in order to reduce the development effort.
5
Towards Full MLIA
Although the results of the feasibility study were encouraging, they are a long way from solving the problem of implementing true MLIA functionality in TEL. Both solutions were proposed only in an language-to-language context (i.e. with queries in one language against target collections in a second language). This is very far from the one to many problem represented by TEL and mentioned in Section 3. To a large extent, the isolated query translation approach may be the only feasible solution for cross-language querying on all the TEL collections with the existing TEL architecture, and it has the advantage that it offers the possibility for user interaction, giving the user the chance to check and modify the translation proposals offered. However, this approach also has significant limitations. In particular, it is impossible to perform additional query or preliminary results refinement on the basis of the contents of the target collections as these are held by national libraries and are not available for further processing in the TEL system. Furthermore, once we begin to talk about one-to-many querying with both collections and queries in more than 20 languages, problems clearly arise. The number of translation resources needed to cover all the possible language pairs would be enormous and, for many pairs of languages, probably non-existent. It seems clear that this solution is not viable to meet TEL’s ambitious goal of enabling its users to search all target collections in their own language. The pseudo-translation method appears to have more potential than the isolated query strategy but can only be applied to collections present in the TEL central index and lacks any kind of user interaction. In this method, the key concepts expressed in the limited text field of the bibliographic records are strengthened via an expansion process; the expanded record is then translated into the language of the query (German in the example cited) and monolingual retrieval is performed. These procedures (both document expansion and pseudo-translation) can be performed off-line with regular refreshings as the collections in the central index expand. However, again, once we begin to talk about queries and collections in a large number of languages, the problems are all too evident. The need
146
M. Agosti et al.
to pseudo-translate each collection of expanded records into more than 20 languages would mean that the TEL archives and indexes would become enormous and, as already stated, the number of translation resources needed would be very large. In our opinion, the only possibility for true multilingual retrieval when we are faced with such a large number of languages is to use an interlingua or pivot language of some sort. The obvious candidates are English or French, as these are the languages for which bilingual dictionaries and machine translation resources are most easily available. Although the adoption of an interlingua involves multiple translation steps and thus considerably increases translation errors, it becomes a feasible option when faced with a potentially large number of query and target languages. A number of studies have attempted to evaluate the performance loss that can be expected with a pivot language and strategies to reduce this have been proposed [2,6]. Therefore, our proposal for a future feasibility study is to experiment again with both approaches in a truly multilingual context, introducing an interlingua and employing machine translation and/or bilingual dictionary sources which translate between English and the other languages involved in the experiments, ideally the same languages as those listed in point 5 of the roadmap below. With the pseudo-translation approach on the central index, the idea would be to pseudo-translate a large set of the expanded documents from their source language (whatever it is) to English. A set of queries in a number of languages will then also be translated into English. The results will be evaluated and compared with the results that would have been obtained from a monolingual search. In order to test the isolated translation approach using an interlingua, two alternatives can be explored. The first option would be to convince national libraries to also provide an English translation of their main metadata fields, e.g. title, keywords, and abstract. In this way, it would be possible to test this method, translating queries formulated in a number of languages into English and then sending them to the local collections selected. The second option, perhaps preferable as it does not require action from the national libraries, would be to perform multiple translations: instead of doing a language-to-language translation, we should perform a query language-to-interlingua and an interlingua-to-target language translation. Again, in both cases, evaluation would be done by comparing the results obtained against a monolingual search of the same collections. Roadmap. Here below we propose a Roadmap. The main purpose of the Roadmap is to investigate whether full-scale MLIA in TEL is actually possible. In order to determine this, we propose the following steps: 1. Set up a survey to determine the availability of linguistic resources for the 20 languages of TEL-full-partners, paying special attention to languages with relatively small number of native speakers (e.g. Estonian and Slovenian). 2. Simultaneously, identify an exhaustive list of TEL user requirements, with sets of sample queries and possible use-cases. The sample queries should also contain queries which should give problems with partner-side normalisation and Unicode character-encoding;
Roadmap for MultiLingual Information Access in the European Library
147
3. Perform a feasibility study on how the inter-lingua approach can be used to meet the TEL user requirements. 4. TEL must design a component-based prototype which allows for easy scalability with new language components and integrates well in a federated architecture. 5. Test and benchmark the prototype’s retrieval performance with a realistic number of representative languages from TEL-partners, e.g. Germanic (English, German), Romance (French, Portuguese), Slavic (Polish, Czech), Greek, Baltic (Latvian) and Finno-Ugric (Finnish). 6. Determine if retrieval performance (speed and accuracy) of the prototype is reliable and scalable enough to take into production.
Acknowledgements The work reported in this paper has been partially supported by the DELOS Network of Excellence on Digital Libraries, as part of the Information Society Technologies (IST) Program of the European Commission (Contract G038507618).
References 1. Agosti, M., Braschler, M., Ferro, N.: A Study on how to Enhance TEL with Multilingual Information Access. DELOS Research Activities 2006. ISTI-CNR at Gruppo ALI, Pisa, Italy, pp. 115–116 (August 2006) 2. Ballestreros, L.A.: Cross-Language Retrieval via Transitive Translation. In: Advances in Information Retrieval: Recent Research from the CIIR, pp. 203–234. Kluwer Academic Publishers, Dordrecht (2000) 3. Ballesteros, L., Croft, W.B.: Phrasal Translation and Query Expansion Techniques for Cross-language Information Retrieval. In: Proc. 20th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 1997), pp. 84–91. ACM Press, New York (1997) 4. Braschler, M., Ferro, N.: Adding MultiLingual Information Access to The European Library TEL. In: DELOS Conference 2007 Working Notes. ISTI-CNR, Gruppo ALI, Pisa, Italy, pp. 39–49 (February 2007) 5. Braschler, M., Ferro, N., Verleyen, J.: Implementing MLIA in an existing DL system. In: Proc. International Workshop on New Directions in Multilingual Information Access (MLIA 2006) [last visited 2006, October 2], pp. 73–76 (2006), http://ucdata.berkeley.edu/sigir2006-mlia.htm 6. Lehtokangas, R., Airio, E.: Translation via a Pivot Language Challenges Direct translation in CLIR. In: Proc. SIGIR 2002, pp. 73–76. ACM Press, New York (2002) 7. van Veen, T., Oldroyd, B.: Search and Retrieval in The European Library. A New Approach. D-Lib Magazine 10(2) (February 2004)
MinervaDL: An Architecture for Information Retrieval and Filtering in Distributed Digital Libraries Christian Zimmer, Christos Tryfonopoulos, and Gerhard Weikum Department for Databases and Information Systems Max-Planck-Institute for Informatics, 66123 Saarbr¨ucken, Germany {czimmer, trifon, weikum}@mpi-inf.mpg.de
Abstract. We present MinervaDL, a digital library architecture that supports approximate information retrieval and filtering functionality under a single unifying framework. The architecture of MinervaDL is based on the peer-to-peer search engine Minerva, and is able to handle huge amounts of data provided by digital libraries in a distributed and self-organizing way. The two-tier architecture and the use of the distributed hash table as the routing substrate provides an infrastructure for creating large networks of digital libraries with minimal administration costs. We discuss the main components of this architecture, present the protocols that regulate node interactions, and experimentally evaluate our approach.
1 Introduction In this paper we present MinervaDL, a digital library (DL) architecture that supports approximate information retrieval and filtering functionality in a single unifying framework. Our architecture is hierarchical like the ones in [24,12,21,26] and utilizes a Distributed Hash Table (DHT) to achieve scalability, fault-tolerance, and robustness in its routing layer. The MinervaDL architecture allows handling huge amounts of data provided by DLs in a distributed and self-organizing way, and provides an infrastructure for creating large networks of digital libraries with minimal administration costs. There are two kinds of basic functionality that we expect our architecture to offer: information retrieval (also known as one-time querying) and information filtering (also known as publish/subscribe or continuous querying or selective dissemination of information). In an information retrieval (IR) scenario a user poses an one-time query and the system returns all resources matching the query (e.g., all currently available documents relevant to the query). In an information filtering (IF) scenario, a user submits a continuous query (or subscription or profile) and will later be notified from the system about certain events of interest that take place (i.e., about newly published documents relevant to the continuous query). Our DL architecture is built upon the Minerva P2P search engine [3,2] and contains three main components: super-peers, providers and consumers. Providers are implemented by information sources (e.g., digital libraries) that want to expose their content to the rest of the MinervaDL network, while consumers are utilized by users to query for
This work has been partly supported by the DELOS Network of Excellence and the EU Integrated Project AEOLUS.
L. Kov´acs, N. Fuhr, and C. Meghini (Eds.): ECDL 2007, LNCS 4675, pp. 148–160, 2007. c Springer-Verlag Berlin Heidelberg 2007
MinervaDL: An Architecture for IR and Filtering
149
and subscribe to new content. Super-peers utilize the Chord DHT [19] to create a conceptually global, but physically distributed directory that manages aggregated statistical information about each provider’s local knowledge in compact form. This distributed directory allows information consumers to collect statistics about information sources and rank them according to the probability to answer a specific information need. This reduces network costs and enhances scalability since only the most relevant information sources are queried. In MinervaDL, both publications and (one-time and continuous) queries are interpreted using the vector space model (VSM), but other appropriate data models and languages could also be used (e.g., LSI or language models). As an example of an application scenario for MinervaDL let us consider John, a professor in computer science, that is interested in constraint programming and wants to follow the work of prominent researchers in the area. He regularly uses the digital library of his department and a handful of other digital libraries to search for new papers in the area. Even though searching for interesting papers this week turned up nothing, a search next week may turn up new information. Clearly, John would benefit from accessing a system that is able to not only provide a search functionality that integrates a big number of sources (e.g., organizational digital libraries or even libraries from big publishing houses), but also capture his long term information need (e.g., in the spirit of [24,16,28]). This system would be a valuable tool, beyond anything supported in current digital library systems, that would allow John to save time and effort. In our example scenario, the university John works in is comprised of three geographically distributed campuses (Literature, Sciences and Biology) and each campus has it own local digital library. In the context of MinervaDL, each campus would maintain its own super-peer, which provides an access point for the provider representing the campus’ digital library, and the clients deployed by users such as John. Other super-peers may also be deployed by larger institutions, like research centers or content providers (e.g., CiteSeer, ACM, Springer, Elsevier), to provide access points for their users (students, faculty or employees) and make the contents of their digital libraries available in a timely way. MinervaDL, proposed in this paper, offers an infrastructure, based on concepts of P2P systems, for organizing the super-peers in scalable, efficient and self-organizing architecture. This architecture allows seamless integration of information sources, enhances fault-tolerance, and requires minimum administration costs. Contrary to approaches like LibraRing [24] that focus on exact retrieval and filtering functionality (e.g., by disseminating documents or continuous queries in the network), in MinervaDL publications are processed locally and query or subscribe to only selected information sources that are most likely to satisfy the user’s information demand. In this way, efficiency and scalability are enhanced by trading faster response times for some loss in recall, achieving approximate retrieval and filtering functionality. MinervaDL is the first approach to provide a comprehensive architecture and the related protocols to support approximate retrieval and filtering functionality in a digital library context. In the following sections, we position our paper with respect to related work, and discuss the MinervaDL architecture and an related application scenario. Subsequently, we present the protocols that utilize node interactions and experimentally show the efficiency of our approach both in terms of retrieval effectiveness and message efficiency. Finally, in the last section we give directions for future work.
150
C. Zimmer, C. Tryfonopoulos, and G. Weikum
2 Related Work In this section, we survey related work in the context of information retrieval and filtering in P2P networks. Initially we focus on retrieval approaches in super-peer networks and structured overlay networks as these are the two areas conceptually closer to our approach. Subsequently we discuss work in the area of P2P IF and position our work with respect to the approaches presented here. IR in super-peer networks. In [12] the authors study the problem of content-based retrieval in distributed digital libraries focusing on resource selection and document retrieval. They propose to use a two-level hierarchical P2P network where digital libraries are clients that cluster around super-peers that form an unstructured P2P network in the second level of the hierarchy. In a more recent work, [13] uses also an unstructured P2P architecture to organize the super-peers and uses the concept of neighborhood to devise a method for super-peer selection and ranking. In a similar fashion, [11] proposes an architecture for IR-based clustering of peers in semi-collaborating overlay networks. ODISSEA [21] was one of the first attempts to utilize a DHT in a super-peer environment, by focusing on architectural issues of building a P2P search engine. There, a two-tier architecture is again adopted, and the lower tier nodes of the system are implemented on top of Pastry DHT. Later, OverCite [20] was proposed as a distributed alternative for the scientific literature digital library CiteSeer. This functionality was made possible by utilizing a DHT infrastructure to harness distributed resources (storage, computational power, etc.). IR in structured networks. With the advent of DHTs as a remedy for the node location problem that existed in unstructured networks, a significant number of approaches tried to support VSM on top of structured overlays. Meteorograph [9] was one of the early papers to deal with the problem of similarity search over structured P2P overlays. pSearch [23] was the first P2P system that used LSI to reduce the feature vectors of the documents. In pSearch the authors propose the usage of a multi-dimensional CAN to efficiently distribute document indices in the P2P network. In [18] a similar approach is proposed, and Chord DHT is used to index the documents and route the queries to appropriate peers. While most of related papers utilize a DHT to route the queries to appropriate peers, Minerva [3] follows a different approach. In Minerva the structured overlay offers a conceptually global, but physically distributed directory, that maintains IR-style statistics and quality of service information. This information is exploited by querying peers, and most relevant ones according to resource selection algorithms [2] are contacted. The research presented in this paper extends the Minerva approach with information filtering functionality and adapts the protocols to a DL environment. IF in P2P networks. New approaches that use a DHT as the routing infrastructure to build filtering functionality have lately been developed. Scribe [17] is a topic-based publish/subscribe system based on Pastry. Hermes [16] is similar to Scribe because it uses the same underlying DHT (Pastry) but it allows more expressive subscriptions by supporting the notion of an event type with attributes. pFilter [22] uses a hierarchical extension of CAN DHT to filter unstructured documents and relies on multi-cast trees to notify subscribers. VSM and LSI can be used to match documents to user queries. Finally, supporting prefix and suffix queries in string attributes is the focus of the
MinervaDL: An Architecture for IR and Filtering DL
P
SP super-peer
user
C
user
SP C
query / results
SP
SP C
subscription / notification
publish / notification
SP
SP
SP
P
provider node
C
consumer node
DL
P
SP
DHT-based directory
P post meta data
P
SP user
maintain meta-data
151
DL
DL
MinervaDL architecture
Fig. 1. A high level view of the MinervaDL architecture
DHT-Strings system [1], which utilizes a DHT-agnostic architecture to develop algorithms for efficient multi-dimensional event processing. None of the works discussed above provides a comprehensive architecture and the related protocols to support both IR and IF in DLs using DHTs. P2P-DIET [10] and LibraRing where the first approaches that tried to support both functionalities in a single unifying framework. P2P-DIET utilizes an expressive query language based on IR concepts and is implemented as an unstructured P2P network with routing techniques based on shortest paths and minimum weight spanning trees. An extension of P2PDIET [7] considers a similar problem for distributing RDF meta-data in an Edutella [15] fashion. LibraRing [24] was the first approach to provide protocols for the support of both IR and IF functionality in DLs using DHTs. In LibraRing, super-peers are organized in a Chord DHT and both (continuous) queries and documents are indexed by hashing words contained in them. This hashing scheme depends heavily on the data model and query language adopted, and the protocols have to be modified when the data model changes [24]. The DHT is used to make sure that queries meet the matching documents (in the IR scenario) or that published documents meet the indexed continuous queries (in the IF scenario). In this way the retrieval effectiveness of a centralized system is achieved, while a number of routing optimizations (such as value proxying, content based-multicasting, etc.) are used to enhance scalability. Contrary to the LibraRing approach, in MinervaDL the Chord DHT is used to disseminate and store statistics about the document providers rather than the documents themselves. Avoiding per-document indexing granularity allows us to improve scalability by trading recall for lower message traffic. This approximate retrieval and filtering approach relaxes the assumption of potentially delivering notifications from every producer that holds in all the works mentioned above and amplifies scalability. Additionally, it allows us to easily support different data models and query languages, without modifications to the protocols, since matching is performed locally in each node.
3 MinervaDL Architecture Figure 1 shows a high level view of the MinervaDL architecture, composed of three types of nodes: super-peers, consumer nodes, and provider nodes.
152
C. Zimmer, C. Tryfonopoulos, and G. Weikum
Super-peers run the DHT protocol and form a distributed directory that maintains statistics about providers’ local knowledge in compact form. The Chord DHT is used to partition the term space such that each directory node is responsible for the statistics of a randomized subset of terms. Directory nodes are super-peers, nodes with more capabilities than consumer or provider nodes (e.g., more cpu power and bandwidth) that are responsible for serving information consumers and providers and act as their access point to the MinervaDL network. When the number of super-peers is small, each node can easily locate others in a single hop by maintaining a full routing table. When the super-peer network grows in size, the DHT provides a scalable means of locating other nodes. Super-peers can be deployed by large institutions like universities, research centers or content providers (e.g., CiteSeer, ACM, Springer, Elsevier) to provide access points for their users (students, faculty or employees) or digital libraries. Consumer nodes are utilized by users to connect to the MinervaDL network, using a single super-peer as their access point. Utilizing a consumer node allows users to pose one-time queries, receive relevant resources, subscribe to resource publications with continuous queries and receive notifications about published resources (e.g., documents) that match their interests. Consumer nodes are responsible for selecting the best information sources to query (resp. monitor) with respect to a given one-time query (resp. continuous query). If consumer nodes are not online to receive notifications about documents matching their submitted continuous queries, these notifications are stored by their access point and are delivered upon reconnection. Provider nodes are implemented by information sources that want to expose their content to the MinervaDL network. Provider nodes use a directory node as their access point and utilize it to distribute statistics about their local resources to the network. Providers answer one-time queries and store continuous queries submitted by consumers to match them against new documents they publish. More than one provider nodes may be used to expose the contents of large digital libraries, and also an integration layer can be used to unify different types of DLs.
4 The MinervaDL Protocols In this section, we explain in detail the way consumers, providers and super-peers join and leave the network, publish new documents, submit one-time or continuous queries and receive answers and notifications for their submitted queries. We use functions key(), ip(n) and id(n) to denote the key, the IP address and the identifier of node n respectively. key(n) is created the first time a consumer or provider joins the MinervaDL network, and is used to support dynamic IP addressing and id(n) is produced by the Chord hash function and is used to identify a super-peer within the Chord ring. 4.1 Provider and Consumer Join The first time a provider P wants to connect to the MinervaDL network, it has to follow the join protocol. P hast to find the IP address of a super-peer S using out-of-band means (e.g., via a secure web site that contains IP addresses for the super-peers that are currently online). P sends to S a N EW P ROV(key(P ), ip(P )) message and S adds P in
MinervaDL: An Architecture for IR and Filtering
153
its provider table (P T ), which is a hash table used for identifying the providers that use S as their access point. Here, key(P ) is used to index providers in P T , while each P T slot stores contact information about the provider, its status (connected/disconnected) and its stored notifications (see Section 4.7). Subsequently, S sends to P an acknowledgement message ACK N EW P ROV(id(S), ip(S)). Once P has joined, it can use the connect/disconnect protocol described next to connect to and disconnect from the network. Consumers use a similar protocol to join the MinervaDL network. 4.2 Provider and Consumer Connect/Disconnect When a provider P wants to connect to the network, it sends to its access point S a C ONNECT P ROV(key(P ), ip(P ), id(S)) message. If key(P ) exists in P T of S, P is marked as connected. If key(P ) does not exist in P T , this means that S was not the access point of P the last time that P connected (Section 4.8 discusses this case). When a provider P wants to disconnect, it sends to its access point S a D ISCONNECTP ROV(key(P ), ip(P ), id(S)) message and S marks P as disconnected in its P T . Consumers connect/disconnect from the network in a similar way, but S has also to make sure that a disconnecting consumer C will not miss notifications about resources of interest while not online. Thus, notifications for C are stored in the consumer table CT of S and wait to be delivered upon reconnection of C (see Section 4.7). 4.3 Maintaining the Directory In MinervaDL, the super-peers utilize a Chord-like DHT [19] to build-up a distributed directory, while each provider P uses its access point to distribute per-term statistics about its local index to the directory using P OST messages. At certain intervals (e.g., every k publications or time units) the provider has to update its statistics in the directory. We now describe the updating process done by a provider. Let T = t1 , t2 , . . . , tn denote the set of all terms included in the documents a provider P has published after the last directory update. For each term t ∈ T , the provider computes statistics: (i) the maximum term frequency of occurrence within P ’s document collection (tftmax ); (ii) the number of documents in its document collection containing t (dft ); (iii) the size of P ’s document collection (cs). Using its IP address, P forwards the P OST(key(P ), ip(P ), tftmax , dft , cs, t) message to the super-peer S that is P ’s access point to the directory. Next, S uses the Chord lookup() function to forward a modified P OST message (including in addition S’s IP address ip(S) and identifier id(S)) to the super-peer node responsible for identifier H(t) (i.e., this node is responsible for maintaining statistics for term t). This node St stores the received P OST message in its local statistics table ST to be able to provide the term statistics to nodes requesting them. 4.4 Submitting an One-Time Query In this section we show how to answer one-time vector space queries. Let us assume that a consumer C wants to submit a query q containing terms t1 , t2 , . . . , tn . The following
154
C. Zimmer, C. Tryfonopoulos, and G. Weikum
steps take place. In step one, C sends to its access point S a S UBMIT Q(key(C), ip(C), q) message. In the second step, for each term t ∈ q, S computes H(t) to obtain the identifier of the super-peer responsible for storing statistics about term t. Then, it sends G ET S TATS(key(C), ip(C), t) message by using the Chord lookup() function. In step three each super-peer St that receives a G ET S TATS message, searches its local statistics table ST for term t to retrieve a list L of provider nodes storing documents containing the term t. Each element in list L is a tuple (key(P ), ip(P ), tftmax, dft , cs, t) containing contact information about providers and statistics about terms contained in documents that these providers publish. Subsequentlyt, St creates a R ET S TATS(id(St ), ip(St ), L) message and sends it to consumer C using ip(C) included in the G ET S TATS message. In this way, the consumer receives provider statistics for all query terms. In step four, C uses the scoring function sel(P, q) described in Section 5.1 to rank the providers with respect to q and identify the top − k providers that hold documents satisfying q. Subsequently, C creates a G ET R ESULTS(ip(C), key(C), q) message and forwards it, using the contact information associated with the statistics, to all provider nodes selected previously. Once a provider node P receives a G ET R ESULTS message containing a query q, it matches q against its local document collection to retrieve the documents matching q. The local results are ranked according to their relevance to the query to create a result list R. Subsequently, P creates a R ET R ESULTS(ip(P ), R, q) message and sends it to C. In this way, C collects the local result lists of all selected providers and uses them to compute a final result list that is then presented to the user. To merge the retrieved result lists, standard IR scoring functions (e.g., CORI [4] or GlOSS [8]) are used.
4.5 Subscribing with a Continuous Query This section describes how to extend the protocols of Section 4.4 to provide information filtering functionality. To submit a continuous query cq = {t1 , t2 , . . . , tn }, the one-time query submission protocol needs to be modified. The first three steps are identical while step four is modified as follows. C uses the scoring function pred(P, cq) described in Section 5.2 to rank the providers with respect to cq and identify the top−k providers that may publish documents matching cq in the future. These are the nodes that will store cq and C will receive notifications from these nodes only. This query indexing scheme makes provider selection a critical component of the filtering functionality. Notice that, in a filtering setting, resource selection techniques like sel(P, cq) described in Section 5.1 and used for one-time querying, are not appropriate since we are not interested in the current document collection of the providers but rather in their future publishing behavior. Once providers that will store cq have been determined, C creates an I NDEX Q UERY (key(C), ip(C), id(S), ip(S), cq) message and sends it to these providers using the IP addresses associated with the G ET S TATS messages C received in the previous step. When a provider P receives an I NDEX Q UERY message, it stores cq in its local continuous query data structures to match it against future publications. P utilizes these data structures at publication time to find quickly all continuous queries that match a publication. This can be done using e.g., algorithms BestFitTrie [25] or SQI [27].
MinervaDL: An Architecture for IR and Filtering
155
4.6 Publishing a New Document Contrary to approaches such as [24] that distribute the documents or the index lists among the nodes to achieve exact retrieval and filtering functionality, publications in MinervaDL are kept locally at each provider. This lack of publication forwarding mechanism is a design decision that offers increased scalability in MinervaDL by trading recall. Thus, only monitored provider nodes (i.e., indexing a continuous query cq) can notify a consumer C, although other providers may also publish relevant documents. As already stated, this makes the scoring function pred() a critical component. Thus, when a provider node P wants to publish a new document d to the MinervaDL network, the document is only matched against P ’s local continuous query database to determine which continuous queries match d, and thus which consumers should be notified. Additionally, at certain intervals P creates P OST messages with updated statistics and sends them to its access point S. 4.7 Notification Delivery Assume a provider P that has to deliver a notification for a continuous query cq to consumer C. It creates a N OTIFICATION(ip(P ), key(P ), d, cq) message, where d is the document matching cq, and sends it to C. If C is not online at that time, then P sends the message to S, where S is the access point of C, using ip(S) associated with cq. S then is responsible for storing the message and delivering it to C upon reconnection. If S is also off-line then the message is sent to S , which is the access point of P , and S utilizes the DHT to locate the successor(id(S)) (as defined in Chord [19]), by calling function lookup(). Answers to one-time queries are handled in a similar way. 4.8 Super-Peer Join/Leave To join MinervaDL network, a super-peer S must find the IP address of another superpeer S using out-of-band means. S creates a N EW SP EER(id(S), ip(S)) message and sends it to S which performs a lookup operation by calling lookup(id(S)) to find Ssucc = successor(id(S)), similarly to the Chord joining procedure. S sends a ACK N EW SP EER(id(Ssucc ), ip(Ssucc )) message to S and S updates its successor to Ssucc . S also contacts Ssucc asking its predecessor and the data that should now be stored at S. Ssucc updates its predecessor to S, and answers back with the contact information of its previous predecessor, Spred , and all continuous queries and publications that were indexed under key k, with id(S) ≤ k < id(Spred ). S makes Spred its predecessor and populates its index structures with the new data that arrived. After that S populates its finger table entries by repeatedly performing lookup operations on the desired keys. When a super-peer S wants to leave LibraRing network, it constructs a D ISCON NECT SP EER(id(S), ip(S), id(Spred ), ip(Spred ), data) message, where data are all the continuous queries, published resources and stored notifications of off-line nodes that S was responsible for. Subsequently, S sends the message to its successor Ssucc and notifies Spred that its successor is now Ssucc . Clients that used S as their access point connect to the network through another super-peer S . Stored notifications can be retrieved through successor(id(S)).
156
C. Zimmer, C. Tryfonopoulos, and G. Weikum
5 Scoring Functions Selecting the appropriate provider nodes to forward an one-time or a continuous query, requires a ranking function that will be used to determine the most appropriate sources for a given information demand. Although, both IR and IF protocols utilize the same meta-data stored in the distributed directory, the node ranking strategies differ significantly and have to consider varying objectives: in the case of IR, the scoring algorithm has to identify authorities with respect to a given query, i.e., nodes that have already made available a lot of relevant document in the past. These nodes should receive high scores, and thus be ranked high in the respective node ranking that will result. For this purpose, standard resource selection algorithms known from the IR literature can be utilized. Section 5.1 discusses our scoring function for one-time querying. In contrast, in the IF case the scoring function has to determine the most appropriate provider nodes that given a continuous query cq, will publish documents matching cq in the future. In this setting, relying on existing resource selection algorithms similar to the ones utilized for one-time querying leads to low recall, as these algorithms are able to capture past publishing behavior, and cannot adapt to the dynamics of the filtering case. To better illustrate this consider the following example. Assume two providers, where the first is specialized in soccer (i.e., in the past has published a lot of documents about soccer), although now it is rarely publishing new documents. The second provider is not specialized in soccer but currently it is publishing many documents about soccer. Now, a consumer subscribes for documents with the continuous query soccer Euro 2008. A ranking function based on resource selection algorithms would always choose the first provider. To get a higher ranking score, and thus get selected for indexing the query, the second provider has to specialize in soccer, a long procedure that is inapplicable in a filtering setting, which is by definition dynamic. The above example illustrates that our ranking formula should be able to predict the publishing behavior of providers by observing both their past and current behavior and projecting it to the future. To achieve this, we rely on statistical analysis tools to model a provider’s publishing behavior. In Section 5.2 we discuss a novel technique that is based on time-series analysis of IR statistics. 5.1 Resource Selection A number of resource selection methods (e.g., tf/idf based, CORI [5], GlOSS [8] and others) are available to identify authorities with respect to a query q. We use a tf/idf based approach to compute a score for provider P using the formula shown below: max β · log (dfP,t ) + (1 − β) · log tfP,t sel(P, q) = t∈q
The parameter β can be chosen between 0 and 1 and is used to stress the importance of df or tf max (experiments have shown that β = 0.5 is an appropriate value in most cases [2]). Using the scoring function presented above we can identify providers that store high-quality documents for query q and thus achieve high recall by querying only a few providers. To further improve recall we have developed overlap-aware node selection strategies [2] and techniques that exploit term correlations [14].
MinervaDL: An Architecture for IR and Filtering
157
5.2 Publishing Behavior Prediction Our prediction mechanism collects IR statistics from the distributed directory and treats them as time-series data to perform statistical analysis over them. Statistical analysis assumes that the data points taken over time have some sort of internal structure (e.g., trend etc.), and uses this observation to analyze older values and predict future ones [6]. There exist various approaches that differ in their assumptions about the internal structure of the time-series (e.g., whether it exhibits a trend or seasonality). Moving average techniques are a well-known group of time-series prediction techniques that assign equal weights to past observations (e.g., averaging is the simplest form of moving average techniques), and thus cannot cope with trends or seasonality. In our setting, it is reasonable to put more emphasis on a node’s recent behavior and thus assign higher weights to recent observations. Double exponential smoothing assigns exponentially decreasing weights to past observations and assumes that the time-series data present some trend to predict future values. Since many queries are expected to be short-lived so that no seasonality will be observed in the IR statistics time-series, we do not consider seasonality in our predictions (and thus we do not use triple exponential smoothing). The scoring function pred(P, cq) returns for a score representing the probability that provider P will publish in the future documents relevant to the continuous query cq. In MinervaDL, we use double exponential smoothing to predict the following two statistical values. Initially, for all terms t in cq, we predict the value for dfP,t (denoted as ∗ ∗ dfP,t ), and use the difference (denoted as δ(df ∗P,t )) between dfP,t and the last received ∗ value from the directory to calculate the score for P . δ(df P,t ) reflects the number of relevant documents concerning t that P will publish in the next period. Secondly, we predict δ(cs∗ ) as the difference in the collection size of P reflecting the provider node’s overall expected future publishing activity. In this way we model two aspects of the node’s behavior; its ability to publish relevant documents in the future and its overall expected publishing activity. The consumer node that submits cq obtains the IR statistics that are needed as an input to our prediction mechanism by utilizing the distributed directory. The following formula is used to compute the prediction score for a provider P with respect to a continuous query cq: log δ(df ∗P,t ) + log (δ(cs∗P ) + 1) + 1 pred(P, cq) = t∈cq
In the above formula, publication of relevant documents is accented compared to publishing rate. If a node publishes no documents at all, or, to be exact, the prediction of ˆ ∗ , is 0 then the pred(P, q) value is also 0. The addition cs ˆ ∗ , and thus the prediction of df of 1 in the log formulas is used to yield positive predictions and to avoid log(0).
6 Experiments In our experimental evaluation we assume a total number of 1000 providers and the same number of consumers, which are connected to a MinervaDL network using 400 super-peers as access points. At bootstrapping, each provider stores 300 documents and is mainly specialized in one out of ten categories (e.g., Music, Sports, Arts etc.) such
40% 20%
100% 80% 60%
resource selection behavior prediction
20 15
40%
0% 5
10
15
20
(a) IR scenario
25
25
MinervaDL
LibraRing
3.0 2.5 2.0 1.5
10
20%
5
0%
0 5
10
15
20
(b) IF scenario
25
search msgs directory msgs
3.5
1.0
# docs (x1K)
0.5
pub/sub msgs
# msgs (x1M)
60%
random selection resource selection
# msgs (x1M)
80%
average relative recall
100%
C. Zimmer, C. Tryfonopoulos, and G. Weikum
average recall
158
0.0 20
50
100
(c) approx. vs exact IF
5
15
25
(d) message costs
Fig. 2. Retrieval effectiveness and message costs for MinervaDL
that we have 100 specialized information sources per category. We construct 30 queries1 containing two, three or four terms that are strong representatives of a certain document category and are used both as one-time and continuous queries. Figure 2 shows the retrieval effectiveness of MinervaDL in terms of recall and its efficiency compared to exact matching approaches. IR scenario. In figure 2(a), the experimental results of the information retrieval functionality of MinervaDL are presented. We assume that a consumer requests the 30 onetime queries and we are interested in the relative recall to a centralized search engine hosting a joint collection: the ratio of top-25 documents included in the merged P2P result. Thus, we apply the selection strategy as described before and increase the percentage ρ of providers in the system that are requested to answer the query. Figure 2(a) shows that the retrieval performance of MinervaDL manages to retrieve more than 90% of the top rated documents by asking only a fraction of the providers, whereas the baseline approach of random node selection reaches a much lower recall (around 20%). IF scenario. To evaluate the IF functionality of MinervaDL, we assume that providers publish 30 documents within a specific time period (called publishing round) and we investigate the results after ten publishing rounds. We consider a scenario that models periods of inactivity in the publishing behavior and assume that consumers subscribe with 30 continuous queries and reposition them in each publishing round. In the experiments, we vary the percentage of monitored providers ρ and rank them using the two scoring functions approaches described in Section 5. As a retrieval measurement, we use recall as the ratio of total number of notifications received by the consumers to the total number of published documents matching a subscription. As illustrated in Figure 2(b), the use of behavior prediction improves recall over resource selection as it manages to model more accurately the publishing behavior of providers. In this way, our proposed scoring function manages to achieve a recall of around 80% by monitoring only 20% of the providers in the network. Notice that for resource selection, this number is only 35% which makes it an inapplicable solution to a filtering environment. Message Costs Analysis. Figures 2(c) and 2(d) show different aspects of our message costs analysis. Here, we assume that in each round, the subscriptions are repositioned and the one-time queries are requested again (e.g., by another consumer). In this setting, we have three types of messages: directory, retrieval, and filtering messages. Figure 2(c) 1
Example queries are museum modern art, or space model.
MinervaDL: An Architecture for IR and Filtering
159
compares MinervaDL with an implementation of the exact matching protocols of LibraRing [24]. We consider the overall message costs as a function of the total number of documents published in the system for both approaches. As shown, message costs of MinervaDL are independent of the number of publications, whereas LibraRing, and all exact matching approaches, is sensitive to this parameter since documents have to be disseminated to the network. This imposes a high network cost especially for high publication rates expected by nodes exposing the contents of DLs. Finally, in Figure 2(c) we can observe that directory messages dominate both retrieval and filtering messages. This is expected since matching and filtering mechanisms are by design local to accommodate high publication rates. This means that building both IR and IF functionality on top of the routing infrastructure imposes no extra cost on the architecture, compared to one that supports only one type of functionality. Since other types of information can also be stored in the directory in the same fashion (e.g., QoS statistics or load balancing information) building extra functionality will increase the added value of the directory maintenance, and come at almost no extra cost.
7 Outlook We are currently implementing MinervaDL and plan to deploy it over a wide-area testbed such as PlanetLab. We are also focusing on the IF case and investigate the automatic adaptation of prediction parameters and the usage of different prediction techniques.
References 1. Aekaterinidis, I., Triantafillou, P.: Internet Scale String Attribute Publish/Subscribe Data networks. In: CIKM (2005) 2. Bender, M., Michel, S., Triantafillou, P., Weikum, G., Zimmer, C.: Improving Collection Selection with Overlap-Awareness. In: SIGIR (2005) 3. Bender, M., Michel, S., Triantafillou, P., Weikum, G., Zimmer, C.: Minerva: Collaborative P2P Search (Demo). In: VLDB (2005) 4. Callan, J.: Distributed Information Retrieval. Kluwer Academic Publishers, Dordrecht (2000) 5. Callan, J.P., Lu, Z., Croft, W.B.: Searching Distributed Collections with Inference Networks. In: SIGIR (1995) 6. Chatfield, C.: The Analysis of Time Series - An Introduction. CRC Press, Boca Raton (2004) 7. Chirita, P.-A., Idreos, S., Koubarakis, M., Nejdl, W.: Publish/Subscribe for RDF-based P2P Networks. In: ESWC (2004) 8. Gravano, L., Garcia-Molina, H., Tomasic, A.: GlOSS: Text-Source Discovery over the Internet. In: ACM TODS (1999) 9. Hsiao, H.-C., King, C.-T.: Similarity Discovery in Structured P2P Overlays. In: ICPP (2003) 10. Idreos, S., Koubarakis, M., Tryfonopoulos, C.: P2P-Diet: An Extensible P2P Service that unifies ad-hoc and Continuous Querying in Super-Peer Networks. In: SIGMOD (2004) 11. Klampanos, I., Jose, J.: An Architecture for Peer-to-Peer Information Retrieval. In: SIGIR (2003) 12. Lu, J., Callan, J.: Content-based Retrieval in Hybrid Peer-to-Peer Networks. In: CIKM (2003) 13. Lu, J., Callan, J.: Federated Search of Text-based Digital Libraries in Hierarchical Peer-toPeer Networks. In: Losada, D.E., Fern´andez-Luna, J.M. (eds.) ECIR 2005. LNCS, vol. 3408, Springer, Heidelberg (2005)
160
C. Zimmer, C. Tryfonopoulos, and G. Weikum
14. Michel, S., Zimmer, C., et al.: Discovering and Exploiting Keyword and Attribute-value Cooccurrences to Improve P2P Routing Indices. In: CIKM (2006) 15. Nejdl, W., Wolf, B., Qu, C., Decker, S., Sintek, M., Naeve, A., Nilsson, M., Palm´er, M., Risch, T.: Edutella: A P2P Networking Infrastructure based on RDF. In: WWW (2002) 16. Pietzuch, P., Bacon, J.: Hermes: A Distributed event-based Middleware Architecture. In: DEBS (2002) 17. Rowstron, A., Kermarrec, A.-M., Castro, M., Druschel, P.: Scribe: The Design of a Largescale Event Notification Infrastructure. In: COST264 (2001) 18. Sahin, O., Emekci, F., Agrawal, D., Abbadi, A.: Content-based Similarity Search over Peerto-Peer Systems. In: Ng, W.S., Ooi, B.-C., Ouksel, A.M., Sartori, C. (eds.) DBISP2P 2004. LNCS, vol. 3367, Springer, Heidelberg (2005) 19. Stoica, I., et al.: Chord: a Scalable Peer-to-Peer Lookup Protocol for Internet Applications. In: ACM TON (2003) 20. Stribling, J., Councill, I., Li, J., Kaashoek, M., Karger, D., Morris, R., Shenker, S.: Overcite: A Cooperative Digital Research Library. In: Castro, M., van Renesse, R. (eds.) IPTPS 2005. LNCS, vol. 3640, Springer, Heidelberg (2005) 21. Suel, T., et al.: Odissea: A Peer-to-Peer Architecture for Scalable Web Search and Information Retrieval. In: WebDB (2003) 22. Tang, C., Xu, Z.: pfilter: Global Information Filtering and Dissemination Using Structured Overlays. In: FTDCS (2003) 23. Tang, C., Xu, Z., Dwarkadas, S.: Peer-to-Peer Information Retrieval Using self-organizing Semantic Overlay Networks. In: SIGCOMM (2003) 24. Tryfonopoulos, C., Idreos, S., Koubarakis, M.: Libraring: An Architecture for Distributed Digital Libraries based on DHTs. In: Rauber, A., Christodoulakis, S., Tjoa, A.M. (eds.) ECDL 2005. LNCS, vol. 3652, Springer, Heidelberg (2005) 25. Tryfonopoulos, C., Koubarakis, M., Drougas, Y.: Filtering Algorithms for Information Retrieval Models with Named Attributes and Proximity Operators. In: SIGIR (2004) 26. Tryfonopoulos, C., Zimmer, C., Koubarakis, M., Weikum, G.: Architectural Alternatives for Information Filtering in Structured Overlay Networks. IEEE Internet Computing (2007) 27. Yan, T.W., Garcia-Molina, H.: The SIFT Information Dissemination System. In: ACM TODS (1999) 28. Yang, B., Jeh, G.: Retroactive Answering of Search Queries. In: WWW (2006)
A Grid-Based Infrastructure for Distributed Retrieval Fabio Simeoni1 , Leonardo Candela2 , George Kakaletris3 , Mads Sibeko4 , Pasquale Pagano2, Giorgos Papanikos3, Paul Polydoras3, Yannis Ioannidis3, Dagfinn Aarvaag4, and Fabio Crestani1 1
Department of Computer and Information Sciences, University of Strathclyde, Glasgow, UK {fabio.simeoni, f.crestani}@cis.strath.ac.uk 2 Istituto di Scienza e Tecnologie dell’Informazione “Alessandro Faedo” – CNR, Pisa - Italy {candela, pagano}@isti.cnr.it 3 Department of Informatics and Telecommunications, University of Athens – Athens, Greece {g.kakaletris, g.papanikos, p.polydoras, yannis}@di.uoa.gr 4 Fast Search & Transfer ASA, Oslo, Norway {mads.sibeko, dagfinn.aarvaag}@fast.no
Abstract. In large-scale distributed retrieval, challenges of latency, heterogeneity, and dynamicity emphasise the importance of infrastructural support in reducing the development costs of state-of-the-art solutions. We present a service-based infrastructure for distributed retrieval which blends middleware facilities and a design framework to ‘lift’ the resource sharing approach and the computational services of a European Grid platform into the domain of e-Science applications. In this paper, we give an overview of the D ILIGENT Search Framework and illustrate its exploitation in the field of Earth Science.
1 Introduction The problem of retrieving information which is widely disseminated and autonomously managed has a wide range of possible solutions. Variability is in terms of: – models: from those in which queries and data are structured or semi-structured (data retrieval), to those in which they are mostly or entirely unstructured (document or content-based retrieval) [1]; – approaches: from those in which queries are distributed along with the data (distributed retrieval) [2,3], to those in which the data is centralised around the queries (content crawling and metadata harvesting) [4]; – architectures: from those in which queries emanate from clients and data is held at servers (client-server architectures), to those in which both may originate from any of a number of peers (peer-to-peer architectures) [5]. Across the spectrum, the core challenges remain those associated with the latencies of the underlying network and the heterogeneity of data, tools, means, and purposes which may be observed across communicating nodes. It is increasingly recognised that the scale of these challenges requires infrastructural support to reduce the development costs normally associated with state-of-the-art solutions [6]. It is equally recognised L. Kov´acs, N. Fuhr, and C. Meghini (Eds.): ECDL 2007, LNCS 4675, pp. 161–173, 2007. c Springer-Verlag Berlin Heidelberg 2007
162
F. Simeoni et al.
that, in most areas, infrastructural support remains piecemeal and revolves around opensource implementations of standard protocols and formats. Issues of large scale distribution and heterogeneity are particularly acute in e-Science communities, where infrastructures are called upon to enable secure, cost-effective, and on-demand resource sharing [7]. This is the Grid vision [8], and current-generation infrastructures increasingly realise it under a service-based paradigm and for low-level computational resources, such as networks, storage, and processing cycles [9,10]. Building on these platforms, next-generation infrastructures set out to extend the vision into application domains, where the scope for resource sharing broadens to include, among others, retrieval services [11]. The impact is potentially non-trivial, for co-ordinated sharing of application resources may invalidate cost analyses of retrieval solutions which assume more conventional deployment scenarios: solutions with high adoption costs may be outsourced to the Grid infrastructure. The D ILIGENT project1 is one of the first attempts to systematically lift into the Digital Library (DL) domain the facilities of a European Grid platform2 (see also [12,13]). The expected outcome is a rich infrastructure of internetworked machines, middleware services, domain services, and application services in which resource sharing is an implication of virtual digital libraries, i.e. DLs that are: (i) assembled declaratively from community-provided datasets and application services; and (ii) deployed and redeployed on-demand across machines by middleware services, according to availability, performance, and functional constraints. This is genuinely ambitious, for it reflects a model of application-level sharing which encompasses not only data resources but also domain and application services: like computing cycles, storage, and data before, application logic becomes a commodity within an infrastructure which abstracts over its physical location at any given time. The dynamic deployment of services is the key challenge of D ILIGENT and its primary contribution to the Grid vision for application domains. The D ILIGENT infrastructure retains the service-orientation of the underlying platform and organises its services across three layers: the Collective Layer (CL), where middleware services define, deploy, secure, and otherwise support the operation of DLs; the Digital Library Layer (DLL), where domain services manage the data and orchestrate processes against it; and the Application Specific Layer (ASL), where application services mediate between users and the services of the CL and DLL layers. Within the DLL layer, in particular, the infrastructure offers novel opportunities for supporting application development: not only may its domain services be invoked to offer sophisticated functionality, they may also be designed so as to be specialised and extended into application services which are tailored to the bespoke needs of adopting communities. In this case, a service-oriented infrastructure becomes a service-oriented framework. In this paper, we focus on a core part of the D ILIGENT DLL layer in which infrastructural support is largely in terms of a framework for application services. In particular, we abstract away from DLL services dedicated to content, metadata, annotation, and workflow management, and concentrate instead on the D ILIGENT Search Framework, i.e. the set of D ILIGENT services for the distributed retrieval of both data and 1 2
http://www.diligentproject.org/ Enabling Grids for E-sciencE, http://public.eu-egee.org/
A Grid-Based Infrastructure for Distributed Retrieval
163
documents. We discuss the framework in Section 2 and we report on its exploitation within the domain of Earth Science, a challenging e-Science, in Section 3. Finally, we conclude in Section 4, where we outline directions for further work.
2 The D ILIGENT Search Framework Within a service-oriented framework, the notion of ‘service’ acquires structure and granularity to accommodate functional composition and abstraction, respectively (cf. Figure 1). Precisely, our service model distinguishes between: (i) service classes, i.e. flat groupings of services within the same functional area (e.g. the Index class), (ii) services, i.e. abstract instances of service classes (e.g. the LookupService in the Index class), and (iii) web services, i.e. entry-points to concrete implementations of abstract services LookupFactoryService). (e.g. the Service implementations are dynamically deployable, and doing so on one or more Host Nodes of the D ILIGENT infrastructure (DHNs) yields running instances of the service (RIs). Against this model, the support offered by the framework is twofold. Firstly, it provides a set of core services which coordinate the functionality of apFig. 1. Service Model plication and domain services towards a wide range of distributed search processes; depending on the semantics of the orchestrated services, processes may fall at arbitrary points within the content-based vs. data-based spectrum and operate upon different forms of content and metadata (full-text or multimedia search, similarity search, structured and semi-structured search, etc.). Discussed in Section 2.1, the core services provide foundations to support the heterogeneity and dynamicity of data and processing requirements which can be observed within e-Science scenarios. Secondly, the Search framework offers design blueprints, partial implementations, and libraries for the development of application and domain services compliant with secondgeneration Web Service standards [14,15]. Two distinguished classes of such services, namely the index management services and the service for content description, selection and result fusion, are outlined in Sections 2.2 and 2.3, respectively. 2.1 The Core Services The D ILIGENT Search Service is a Service Class that groups all fundamental functional elements (i.e. Services) related to Information Retrieval (IR), but not directly bound to a more specific thematic area, such as Indexing, Distributed Information Retrieval (DIR), etc. The overall search management as well as several gluing elements fall within its scope. In contrast, we refer to the Search Engine as the full fledged set of elements that
164
F. Simeoni et al.
serve IR in D ILIGENT. Finally, we refer to Search Framework when implying not only software but also protocols, rules and even guidelines for implementing and extending D ILIGENT IR. Search Overview. D ILIGENT Search Engine, modular even in its internal structure, captures its requirements through a complex, yet straightforward, set of concepts and mechanisms, which are depicted in Figure 2. The main idea behind the presented architecture is that the actual work of retrieving and processing the information and data contained in D ILIGENT or other sources, is not an integral part of the Search Service, but can rather be off-loaded to entities that focus on different (D)IR and data processing aspects. Yet, the Search Service comes bundled with a set of such entities to enable the out-of-the-box use of the system. The search task is captured by a set of steps which manage: – Interaction with the ultimate consumer of the service (e.g. the User Interface) through a query language and various alternative interaction staging facilities; – Consolidation of information regarding the status and availability of resources in need / reach; – Preparation of the IR process through advanced facilities that potentially impose changes over the initial query; – Operation planning, producing a near-optimal workflow of low-level search operations, in terms of resource utilisation; – Execution of the workflow, i.e. invocation of the low-level search operations, (potentially off-loaded to external engines) and progress monitoring; In this operation, the Search Orchestrator, which falls is the class of Services in the service model, is th