similarity search for adaptive ellipsoid queries using
play

Similarity Search for Adaptive Ellipsoid Queries Using Spatial - PowerPoint PPT Presentation

Similarity Search for Adaptive Ellipsoid Queries Using Spatial Transformation Yasushi Sakurai (NTT Cyber Space Laboratories) Masatoshi Yoshikawa (Nara Institute of Science and Technology) Ryoji Kataoka (NTT Cyber Space Laboratories) Shunsuke


  1. Similarity Search for Adaptive Ellipsoid Queries Using Spatial Transformation Yasushi Sakurai (NTT Cyber Space Laboratories) Masatoshi Yoshikawa (Nara Institute of Science and Technology) Ryoji Kataoka (NTT Cyber Space Laboratories) Shunsuke Uemura (Nara Institute of Science and Technology)

  2. Outline ■ Introduction ■ STT (spatial transformation technique) – Definition of spatial transformation – Spatial transformation of rectangles – Search algorithm ■ MSTT (multiple STT) – Index structure construction – Query processing – Dissimilarity of matrices ■ Performance test ■ Conclusion

  3. Introduction ■ Ellipsoid query – Search processing is performed by using quadratic form distance functions – Distance of p and q for a query matrix M : = - × × - 2 t d ( p , q ) ( p q ) M ( p q ) M – represents correlations between dimensions quadratic form Euclidean weighted Euclidean Ellipsoids circles for isosurfaces iso-oriented ellipsoids (Not necessarily aligned to the coordinate axis)

  4. Introduction ■ An application of a quadratic form distance function – represent the similarity between colors i and j Dim. 1 2 3 d p Euclidean distance q p color histograms Quadratic form distance q color histograms

  5. Introduction ■ Spatial indices – e.g. R-tree family (R*-tree, X-tree, SR-tree, A-tree) – Based on the Euclidean distance function Cannot be applied to ellipsoid queries ■ Efficient search methods for user-adaptive ellipsoid queries – Query matrix M is variable

  6. Related Work : Seidl and Kriegel, VLDB97 ■ Search method based on the steepest descent method – Works on spatial indices of R-tree family – Calculates the exact distance of a query point and an MBR in an index structure – …but requires high CPU cost which exceeds disk access cost p Moves p’ toward p R1 iteratively M p’ q CPU time O( w d 2 ) w …number of iterations d… dimensionality

  7. Related Work : Ankerst et al., VLDB98 ■ Technique that uses the MBB and MBS distance functions to reduce CPU time – MBB and MBS distance functions ( ) - = - 2 d 2 1 d ( p , q ) max ( p q ) ( M ) = MBB ( M ) i 1 i i ii = l × - 2 2 2 d ( p , q ) ( p q ) MBS ( M ) M min M M MBB(M) MBS(M) q q

  8. Related Work : Ankerst et al., VLDB98 ■ Approximation technique by using the MBB and MBS distance functions – approximation distance : uses either MBB or MBS distance for better approximation quality – Calculates the exact distances only if data objects or MBRs cannot be filtered by their approximation distances – Saves CPU time by reducing the number of exact distance calculations – …but cannot reduce the number of exact distance calculations if its approximation quality is low

  9. Our Contributions ■ STT (Spatial Transformation Technique) – Ellipsoid queries incur a high CPU cost – The efficiency depends on approximation quality – STT efficiently processes ellipsoid queries because of high approximation quality ■ MSTT (Multiple Spatial Transformation Technique) – Does not use only the Euclidean distance function to make index structures – Ellipsoid queries give various distance functions – In MSTT, various index structures are created; the search algorithm utilizes a structure well suited to a query matrix

  10. Outline ■ Introduction ■ STT (spatial transformation technique) – Definition of spatial transformation – Spatial transformation of rectangles – Search algorithm ■ MSTT (multiple STT) – Index structure construction – Query processing – Dissimilarity of matrices ■ Performance test ■ Conclusion

  11. Spatial Transformation Technique (STT) ■ High approximation quality – STT consumes less CPU time ■ Spatial transformation – MBRs in a quadratic form distance space are transformed into rectangles in the Euclidean distance space S S ’ R P P’ q (2, 2) O

  12. Spatial Transformation ■ Definition of spatial transformation – p : a point in the quadratic form distance space S – p’ : a point in the Euclidean distance space S ’ – The distance between q and p in S is equal to the distance between p’ and O in S ’ – Spatial transformation of p into p’ S S ’ - æ ö 1 . 25 0 . 75 ç ÷ = M ç ÷ - 0 . 75 1 . 25 è ø p (4, 2) q (2, 2) p’ (-2, 1) O

  13. Spatial Transformation ■ Definition of spatial transformation – d M 2 (p, q) : the distance of p and q in S = - × × - 2 t d ( p , q ) ( p q ) M ( p q ) M – E M : the eigenvector of M, L M : the eigenvalues of M = × L × t M E E M M M = - × × L × × - 2 t t d ( p , q ) ( p q ) E E ( p q ) M M M M – Spatial transformation of p into p’ ¢ ¢ ¢ = × = 2 t 2 d ( p , q ) p p d ( p , O ) M ¢ = - × p ( p q ) A M = × L 1 / 2 A E M M M

  14. Approximation Rectangles 1. P in S is transformed into P’ in S ’ The calculation of distance between the origin and polygons in high-dimensional spaces incurs a high CPU cost 2. P’ is approximated by R low CPU cost 3. d 2 (R, O) is used instead of d 2 M (P, q) S S ’ p d p b R p b ’ r b p c ’ P P’ q (2, 2) p d ’ p a p c r a p a ’ O

  15. Approximation Rectangles ¢ = - × p ( p q ) A 1. Calculates a a M p a : lower endpoint of the major diagonal of P 2. Creates the two matrices from the components a ij of A M < > ì ì a ( a 0 ) a ( a 0 ) f = ij ij y = ij ij í í ij ij 0 ( otherwise ), 0 ( otherwise ) î î 3. Calculates the approximation rectangle R of P’ R = ( r a r , ), b å å d d ¢ ¢ = + × f = + × y r p l , r p l a a i ij b a i ij = = i 1 i 1 j j j j l i : the edge length of P for the i -th dimension 4. R can be used for search since R totally £ 2 2 d ( R , O ) d ( P , q ) contains P’ , that is M

  16. Search Algorithm 1. Calculates the transformation matrix of M 2. Searches for similarity objects by using an index [ Data nodes ] – Calculates d MBB-MBS(M) (p, q) S q p

  17. Search Algorithm 1. Calculates the transformation matrix of M 2. Searches for similarity objects by using an index [ Data nodes ] – Calculates d MBB-MBS(M) (p, q) S q p

  18. Search Algorithm 1. Calculates the transformation matrix of M 2. Searches for similarity objects by using an index [ Data nodes ] – Calculates d MBB-MBS(M) (p, q) £ – Calculates d M (P, q) if d MBB-MBS(M) (p, q) d (M) (k-NN, q) S q p

  19. Search Algorithm 1. Calculates the transformation matrix of M 2. Searches for similarity objects by using an index [ Directory nodes ] – Calculates d MBB-MBS(M) (P, q) S q P

  20. Search Algorithm 1. Calculates the transformation matrix of M 2. Searches for similarity objects by using an index [ Directory nodes ] – Calculates d MBB-MBS(M) (P, q) S q P

  21. Search Algorithm 1. Calculates the transformation matrix of M 2. Searches for similarity objects by using an index [ Directory nodes ] – Calculates d MBB-MBS(M) (P, q) £ – Calculates d(R, O) if d MBB-MBS(M) (P, q) d (M) (k-NN, q) S ’ R P’ O

  22. Search Algorithm 1. Calculates the transformation matrix of M 2. Searches for similarity objects by using an index [ Directory nodes ] – Calculates d MBB-MBS(M) (P, q) £ – Calculates d(R, O) if d MBB-MBS(M) (P, q) d (M) (k-NN, £ q) – Calculates d M (P, q) if d(R, O) d (M) (k-NN, q) S q P

  23. Outline ■ Introduction ■ STT (spatial transformation technique) – Definition of spatial transformation – Spatial transformation of rectangles – Search algorithm ■ MSTT (multiple STT) – Index structure construction – Query processing – Dissimilarity of matrices ■ Performance test ■ Conclusion

  24. Multiple Spatial Transformation Technique (MSTT) ■ Node access problem – If a query matrix is NOT similar to the unit matrix, it causes a large number of node accesses – Index structures are constructed by the Euclidean distance function ■ Constructs various index structures by using quadratic form distance functions – Chooses a structure that gives sufficient search performance in query processing – Reduces both CPU time and number of page accesses for ellipsoid queries

  25. Basic Idea ■ Similarity of matrices – High search performance can be expected when the query matrix and the matrix of selected index are similar. Indices based on X i X j X e Matrices X i X 1

  26. Basic Idea ■ Similarity of matrices – High search performance can be expected when the query matrix and the matrix of selected index are similar. query (q, M) M Indices based on X i X similar X e Matrices X i X 1

  27. Basic Idea ■ Similarity of matrices – High search performance can be expected when the query matrix and the matrix of selected index are similar. query (q, M) M M’ X similar

  28. Indexing and Retrieval Mechanism ■ Index structure construction – C : the matrix for constructing the index I C = × L 1 / 2 A E – Transformation matrix C C C – All data points in a data set are transformed ¢ = × p p A C – I C is constructed using transformed data points

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend