SlideShare a Scribd company logo
1 of 25
Download to read offline
PhD Program in Electronic and Computer Engineering
               PhD School in Information Engineering




                  Neighborhood-Based Feature
                    Weighting for Relevance
                  Feedback in Content-Based
                           Retrieval
                                           Luca Piras
                                    luca.piras@diee.unica.it
                                          Giorgio Giacinto
                                        giacinto@diee.unica.it



    P      R       A
                               Pattern Recognition and Applications Group
                               Department of Electrical and Electronic Engineering
Pattern Recognition and
  Applications Group           University of Cagliari, Italy
          6-05-2009            Neighborhood-Based Feature Weighting - L. Piras   1
Outline

• Relevance Feedback

• Image representation

• Weighted similarity measures

• State of the art: Estimation of Feature Relevance

• Neighborhood-Based Feature Weighting




6-05-2009     Neighborhood-Based Feature Weighting - L. Piras   2
Aim of this work

• Exploiting neighborhood relations to weight
    feature sets

• Weight designed to improve Relevance
    Feedback based on Distance weighted kth-
    Nearest Neighbor

• Dw k-NN estimate the relevance of an image
    according to the (non-)relevant one in its
    nearest neighborhood

6-05-2009          Neighborhood-Based Feature Weighting - L. Piras   3
Distance weighted kth-Nearest
                Neighbor

                              pNN (I )
                               r
                                                                I ! NN nr (I )
relevanceNN (I ) =                               =
                     p   r
                         NN   (I ) + p (I )
                                      nr
                                      NN
                                                     I ! NN r (I ) + I ! NN nr (I )

                                1
where pNN (I ) =
       r                 N
                     (
                   V I ! NN r (I )           )

         (                )
and V I ! NN (I ) " I ! NN (I )




 6-05-2009               Neighborhood-Based Feature Weighting - L. Piras              4
Relevance Feedback

• Query by examples




            User


                                       System
                                       Image
                                      Retrieval


                                      Images
                                     database



6-05-2009            Neighborhood-Based Feature Weighting - L. Piras   5
Relevance Feedback


                                                             k best ranked images




            User


                                       System
                                       Image
                                      Retrieval


                                      Images
                                     database



6-05-2009            Neighborhood-Based Feature Weighting - L. Piras         6
Relevance Feedback


                                                             image labelling




            User


                                       System
                                       Image
                                      Retrieval


                                      Images
                                     database



6-05-2009            Neighborhood-Based Feature Weighting - L. Piras           7
Image representation
                                               I(F)                                           level


                                                                                             image



F=[               f1         …                  fi        …                     fF     ]     feature
              color                          shape                           texture
     f1,1         …           f1,i           fi,1… fi,j               fFi …      representation
col. hist. layout       color moments                       co-occurrence texture
    f1,1,1                  f1,i,1                                           fF,i,1
     .                       .                                                .
     .                       .                                                .
     .                       .                                                .            components
    f1,1,j                  f1,i,j                                           fF,i,j
     .                       .                                                .
     .                       .                                                .
     .                       .                                                .
    f1,1,32                 f1,i,9                                           fF,i,16


      6-05-2009            Neighborhood-Based Feature Weighting - L. Piras                      8
Image representation




color histogram layout

  f1,1 = [g1,1,1, g1,1,2, g1,1,3, g1,1,4 ]
 g1,1,1 = [f1,1,1, …, f1,1,8]
 g1,1,2 = [f1,1,9, …, f1,1,16]
 g1,1,3 = [f1,1,17, …, f1,1,24]
 g1,1,4 = [f1,1,25, …, f1,1,32]
       6-05-2009                  Neighborhood-Based Feature Weighting - L. Piras   9
Image similarity

                                                          1
            #                                         &
  ( )                  (     )      (         )
                 N                                            p
          = % " I A fi, j, k ! I B fi, j, k
                                                  p
S fi, j                                               (           components (lower)
            $ k =1                                    '


S ( fi ) = ! S fi, j
             j
                     ( )                                            representation



S = ! S ( fi )                                                     feature (higher)
      i




 6-05-2009                    Neighborhood-Based Feature Weighting - L. Piras          10
Weighted similarity measures

In order to have good performance into images
retrieval systems
• Relevant images should be considered as
  neighbors each others.
• Non-relevant images should not be in the
  neighborhood of relevant ones.
• Weighted similarity measures.
• Weights related to the capability of feature
  spaces of representing relevant images as
  nearest-neighbors

6-05-2009     Neighborhood-Based Feature Weighting - L. Piras   11
Weighted similarity measures

                                                                   1
            #                                                  &
  ( )                          (        )      (       )
                     N                                                 p
          = % " wi, j, k I A fi, j, k ! I B fi, j, k
                                                           p
S fi, j                                                        (           components (lower)
            $ k =1                                             '


  ( )
                 G
S fi, j = ! wg i d p ( I A , I B )
                   g
                                                                           component subset
             g =1




             j
                         ( )
S ( fi ) = ! wi, j i S fi, j                                                 representation



S = ! wi i S ( fi )
      i
                                                                            feature (higher)




 6-05-2009                         Neighborhood-Based Feature Weighting - L. Piras              12
State of the art

• Inverse of standard deviation
Rui, Huang, Mehrotra. Int. Conf. on Image Processing , 1997


               1
      w fj =                           fj is the j-th feature, !j is its standard deviation
               !j



• Probabilistic learning (PFRL)
Peng, Bhanu, Qing. Computer Vision and Image Understanding, 1999



                e
                 (T ir ( z))
                       fj

      w fj =    F
                                        rfj(z) is the measure of relevance of the j-th
               ! e(   T irl ( z ))
                                             feature for the query z
               l =1




6-05-2009                            Neighborhood-Based Feature Weighting - L. Piras   13
Neighborhood-Based
             Feature Weighting
• “Relevance” of different feature space is
    estimated in terms of their capability of
    representing relevant images as Nearest
    Neighbors

• Relevance of an image is estimated according
    to the relevant and non-relevant images in its
    nearest nieghborhood



6-05-2009       Neighborhood-Based Feature Weighting - L. Piras   14
Neighborhood-Based
                  Feature Weighting

                                                                          " d (I ,N )
                                                                                fx


       wf =
                             p   r
                                 NN   (f )
                                       x
                                                        =                i !R
                                                                                min    i

            x
                p   r
                    NN   (f ) + p (f ) "d
                             x
                                           nr
                                           NN       x
                                                                   fx
                                                                   min   (I ,R) + " d (I ,N )
                                                                          i
                                                                                             fx
                                                                                             min   i
                                                            i !R                      i !R


                                           1
    where p     r
                     (f ) = V
                NN       x             r
                                       NN    (f )
                                                x




                                    1
    and VNN ( fx ) !                     #    d min (I i ,R )
         r                                      fx

                                 card(R) i "R



6-05-2009                        Neighborhood-Based Feature Weighting - L. Piras                       15
Neighborhood-Based
             Feature Weighting
• Evaluation of capability to exploit neighborhood
    relations in terms of weighted similarity measures
    and in terms of weighted relevance score :
     – Components level

     – Component subset level



                  ( )
                S fi, j                      relevanceNN fi, j    ( )


6-05-2009       Neighborhood-Based Feature Weighting - L. Piras         16
Why better?


• Inverse of standard deviation
     – Doesn’t use information about neighborhood of
            relevant images

• Probabilistic learning (PFRL)
     – It considers only relevant images




6-05-2009            Neighborhood-Based Feature Weighting - L. Piras   17
Dataset

• Corel 19511 images
• 43 classes            (min: 96 - max: 1544 images)




6-05-2009      Neighborhood-Based Feature Weighting - L. Piras   18
Feature sets

• 4 feature sets
     – Co-Occurrence Texture                           (4x4 subsets)
            • 4 directions x 4 values

     – Color Moments                                   (3x3 subsets)
            • first 3 moments x (H, S, V)

     – Color Histogram                                 (4x8 subsets)
            • 8 ranges of H x 4 ranges of S

     – Color Histogram Layout                          (4x8 subsets)
            • 4 sub-images x 8 color




6-05-2009              Neighborhood-Based Feature Weighting - L. Piras   19
Experiment setup


• 500 queries
• 9 iterations
• 20 images retrieved each iteration




6-05-2009        Neighborhood-Based Feature Weighting - L. Piras   20
Legend

                Dw 2-NN no weight



        *       SVM no weight

                Dw 2-NN Probabilistic learning

                Dw 2-NN Inverse of standard deviation

                Dw 2-NN Neighborhood-Based

                Dw 2-NN N-Based component subset

                Dw 2-NN N-Based Score component subset

6-05-2009   Neighborhood-Based Feature Weighting - L. Piras   21
Experimental Results
                        Color Histogram




6-05-2009     Neighborhood-Based Feature Weighting - L. Piras   22
Experimental Results
                                  Color Histogram




                    1
   F=
                1         1
                    +
            2 ! prec 2 ! recall




6-05-2009               Neighborhood-Based Feature Weighting - L. Piras   23
Experimental Results
                  Color Histogram (PFRL)




6-05-2009     Neighborhood-Based Feature Weighting - L. Piras   24
Conclusions

• Reported results show that a weighted measure
    improve the performance of the NN technique

• Weighted distance metric based on feature
    subset provided the best results

• Neighborhood-Based weights provide similar or
    better results with respect to PFRL but without
    annoying tuning operations



6-05-2009       Neighborhood-Based Feature Weighting - L. Piras   25

More Related Content

More from Pluribus One

Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...
Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...
Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...
Pluribus One
 
Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...
Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...
Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...
Pluribus One
 
Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...
Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...
Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...
Pluribus One
 
Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"
Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"
Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"
Pluribus One
 
Zahid Akhtar - Ph.D. Defense Slides
Zahid Akhtar - Ph.D. Defense SlidesZahid Akhtar - Ph.D. Defense Slides
Zahid Akhtar - Ph.D. Defense Slides
Pluribus One
 
Design of robust classifiers for adversarial environments - Systems, Man, and...
Design of robust classifiers for adversarial environments - Systems, Man, and...Design of robust classifiers for adversarial environments - Systems, Man, and...
Design of robust classifiers for adversarial environments - Systems, Man, and...
Pluribus One
 

More from Pluribus One (20)

Smart Textiles - Prospettive di mercato - Davide Ariu
Smart Textiles - Prospettive di mercato - Davide Ariu Smart Textiles - Prospettive di mercato - Davide Ariu
Smart Textiles - Prospettive di mercato - Davide Ariu
 
Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning - 2019 Int...
Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning - 2019 Int...Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning - 2019 Int...
Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning - 2019 Int...
 
Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning. ICMLC 201...
Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning. ICMLC 201...Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning. ICMLC 201...
Wild Patterns: A Half-day Tutorial on Adversarial Machine Learning. ICMLC 201...
 
Wild patterns - Ten years after the rise of Adversarial Machine Learning - Ne...
Wild patterns - Ten years after the rise of Adversarial Machine Learning - Ne...Wild patterns - Ten years after the rise of Adversarial Machine Learning - Ne...
Wild patterns - Ten years after the rise of Adversarial Machine Learning - Ne...
 
WILD PATTERNS - Introduction to Adversarial Machine Learning - ITASEC 2019
WILD PATTERNS - Introduction to Adversarial Machine Learning - ITASEC 2019WILD PATTERNS - Introduction to Adversarial Machine Learning - ITASEC 2019
WILD PATTERNS - Introduction to Adversarial Machine Learning - ITASEC 2019
 
Is Deep Learning Safe for Robot Vision? Adversarial Examples against the iCub...
Is Deep Learning Safe for Robot Vision? Adversarial Examples against the iCub...Is Deep Learning Safe for Robot Vision? Adversarial Examples against the iCub...
Is Deep Learning Safe for Robot Vision? Adversarial Examples against the iCub...
 
On Security and Sparsity of Linear Classifiers for Adversarial Settings
On Security and Sparsity of Linear Classifiers for Adversarial SettingsOn Security and Sparsity of Linear Classifiers for Adversarial Settings
On Security and Sparsity of Linear Classifiers for Adversarial Settings
 
Secure Kernel Machines against Evasion Attacks
Secure Kernel Machines against Evasion AttacksSecure Kernel Machines against Evasion Attacks
Secure Kernel Machines against Evasion Attacks
 
Machine Learning under Attack: Vulnerability Exploitation and Security Measures
Machine Learning under Attack: Vulnerability Exploitation and Security MeasuresMachine Learning under Attack: Vulnerability Exploitation and Security Measures
Machine Learning under Attack: Vulnerability Exploitation and Security Measures
 
Battista Biggio @ ICML 2015 - "Is Feature Selection Secure against Training D...
Battista Biggio @ ICML 2015 - "Is Feature Selection Secure against Training D...Battista Biggio @ ICML 2015 - "Is Feature Selection Secure against Training D...
Battista Biggio @ ICML 2015 - "Is Feature Selection Secure against Training D...
 
Battista Biggio @ MCS 2015, June 29 - July 1, Guenzburg, Germany: "1.5-class ...
Battista Biggio @ MCS 2015, June 29 - July 1, Guenzburg, Germany: "1.5-class ...Battista Biggio @ MCS 2015, June 29 - July 1, Guenzburg, Germany: "1.5-class ...
Battista Biggio @ MCS 2015, June 29 - July 1, Guenzburg, Germany: "1.5-class ...
 
Sparse Support Faces - Battista Biggio - Int'l Conf. Biometrics, ICB 2015, Ph...
Sparse Support Faces - Battista Biggio - Int'l Conf. Biometrics, ICB 2015, Ph...Sparse Support Faces - Battista Biggio - Int'l Conf. Biometrics, ICB 2015, Ph...
Sparse Support Faces - Battista Biggio - Int'l Conf. Biometrics, ICB 2015, Ph...
 
Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...
Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...
Battista Biggio, Invited Keynote @ AISec 2014 - On Learning and Recognition o...
 
Battista Biggio @ AISec 2014 - Poisoning Behavioral Malware Clustering
Battista Biggio @ AISec 2014 - Poisoning Behavioral Malware ClusteringBattista Biggio @ AISec 2014 - Poisoning Behavioral Malware Clustering
Battista Biggio @ AISec 2014 - Poisoning Behavioral Malware Clustering
 
Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...
Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...
Battista Biggio @ S+SSPR2014, Joensuu, Finland -- Poisoning Complete-Linkage ...
 
Battista Biggio @ AISec 2013 - Is Data Clustering in Adversarial Settings Sec...
Battista Biggio @ AISec 2013 - Is Data Clustering in Adversarial Settings Sec...Battista Biggio @ AISec 2013 - Is Data Clustering in Adversarial Settings Sec...
Battista Biggio @ AISec 2013 - Is Data Clustering in Adversarial Settings Sec...
 
Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...
Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...
Battista Biggio @ ECML PKDD 2013 - Evasion attacks against machine learning a...
 
Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"
Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"
Battista Biggio @ ICML2012: "Poisoning attacks against support vector machines"
 
Zahid Akhtar - Ph.D. Defense Slides
Zahid Akhtar - Ph.D. Defense SlidesZahid Akhtar - Ph.D. Defense Slides
Zahid Akhtar - Ph.D. Defense Slides
 
Design of robust classifiers for adversarial environments - Systems, Man, and...
Design of robust classifiers for adversarial environments - Systems, Man, and...Design of robust classifiers for adversarial environments - Systems, Man, and...
Design of robust classifiers for adversarial environments - Systems, Man, and...
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

Wiamis2009 Pres

  • 1. PhD Program in Electronic and Computer Engineering PhD School in Information Engineering Neighborhood-Based Feature Weighting for Relevance Feedback in Content-Based Retrieval Luca Piras luca.piras@diee.unica.it Giorgio Giacinto giacinto@diee.unica.it P R A Pattern Recognition and Applications Group Department of Electrical and Electronic Engineering Pattern Recognition and Applications Group University of Cagliari, Italy 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 1
  • 2. Outline • Relevance Feedback • Image representation • Weighted similarity measures • State of the art: Estimation of Feature Relevance • Neighborhood-Based Feature Weighting 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 2
  • 3. Aim of this work • Exploiting neighborhood relations to weight feature sets • Weight designed to improve Relevance Feedback based on Distance weighted kth- Nearest Neighbor • Dw k-NN estimate the relevance of an image according to the (non-)relevant one in its nearest neighborhood 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 3
  • 4. Distance weighted kth-Nearest Neighbor pNN (I ) r I ! NN nr (I ) relevanceNN (I ) = = p r NN (I ) + p (I ) nr NN I ! NN r (I ) + I ! NN nr (I ) 1 where pNN (I ) = r N ( V I ! NN r (I ) ) ( ) and V I ! NN (I ) " I ! NN (I ) 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 4
  • 5. Relevance Feedback • Query by examples User System Image Retrieval Images database 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 5
  • 6. Relevance Feedback k best ranked images User System Image Retrieval Images database 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 6
  • 7. Relevance Feedback image labelling User System Image Retrieval Images database 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 7
  • 8. Image representation I(F) level image F=[ f1 … fi … fF ] feature color shape texture f1,1 … f1,i fi,1… fi,j fFi … representation col. hist. layout color moments co-occurrence texture f1,1,1 f1,i,1 fF,i,1 . . . . . . . . . components f1,1,j f1,i,j fF,i,j . . . . . . . . . f1,1,32 f1,i,9 fF,i,16 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 8
  • 9. Image representation color histogram layout f1,1 = [g1,1,1, g1,1,2, g1,1,3, g1,1,4 ] g1,1,1 = [f1,1,1, …, f1,1,8] g1,1,2 = [f1,1,9, …, f1,1,16] g1,1,3 = [f1,1,17, …, f1,1,24] g1,1,4 = [f1,1,25, …, f1,1,32] 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 9
  • 10. Image similarity 1 # & ( ) ( ) ( ) N p = % " I A fi, j, k ! I B fi, j, k p S fi, j ( components (lower) $ k =1 ' S ( fi ) = ! S fi, j j ( ) representation S = ! S ( fi ) feature (higher) i 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 10
  • 11. Weighted similarity measures In order to have good performance into images retrieval systems • Relevant images should be considered as neighbors each others. • Non-relevant images should not be in the neighborhood of relevant ones. • Weighted similarity measures. • Weights related to the capability of feature spaces of representing relevant images as nearest-neighbors 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 11
  • 12. Weighted similarity measures 1 # & ( ) ( ) ( ) N p = % " wi, j, k I A fi, j, k ! I B fi, j, k p S fi, j ( components (lower) $ k =1 ' ( ) G S fi, j = ! wg i d p ( I A , I B ) g component subset g =1 j ( ) S ( fi ) = ! wi, j i S fi, j representation S = ! wi i S ( fi ) i feature (higher) 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 12
  • 13. State of the art • Inverse of standard deviation Rui, Huang, Mehrotra. Int. Conf. on Image Processing , 1997 1 w fj = fj is the j-th feature, !j is its standard deviation !j • Probabilistic learning (PFRL) Peng, Bhanu, Qing. Computer Vision and Image Understanding, 1999 e (T ir ( z)) fj w fj = F rfj(z) is the measure of relevance of the j-th ! e( T irl ( z )) feature for the query z l =1 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 13
  • 14. Neighborhood-Based Feature Weighting • “Relevance” of different feature space is estimated in terms of their capability of representing relevant images as Nearest Neighbors • Relevance of an image is estimated according to the relevant and non-relevant images in its nearest nieghborhood 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 14
  • 15. Neighborhood-Based Feature Weighting " d (I ,N ) fx wf = p r NN (f ) x = i !R min i x p r NN (f ) + p (f ) "d x nr NN x fx min (I ,R) + " d (I ,N ) i fx min i i !R i !R 1 where p r (f ) = V NN x r NN (f ) x 1 and VNN ( fx ) ! # d min (I i ,R ) r fx card(R) i "R 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 15
  • 16. Neighborhood-Based Feature Weighting • Evaluation of capability to exploit neighborhood relations in terms of weighted similarity measures and in terms of weighted relevance score : – Components level – Component subset level ( ) S fi, j relevanceNN fi, j ( ) 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 16
  • 17. Why better? • Inverse of standard deviation – Doesn’t use information about neighborhood of relevant images • Probabilistic learning (PFRL) – It considers only relevant images 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 17
  • 18. Dataset • Corel 19511 images • 43 classes (min: 96 - max: 1544 images) 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 18
  • 19. Feature sets • 4 feature sets – Co-Occurrence Texture (4x4 subsets) • 4 directions x 4 values – Color Moments (3x3 subsets) • first 3 moments x (H, S, V) – Color Histogram (4x8 subsets) • 8 ranges of H x 4 ranges of S – Color Histogram Layout (4x8 subsets) • 4 sub-images x 8 color 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 19
  • 20. Experiment setup • 500 queries • 9 iterations • 20 images retrieved each iteration 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 20
  • 21. Legend Dw 2-NN no weight * SVM no weight Dw 2-NN Probabilistic learning Dw 2-NN Inverse of standard deviation Dw 2-NN Neighborhood-Based Dw 2-NN N-Based component subset Dw 2-NN N-Based Score component subset 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 21
  • 22. Experimental Results Color Histogram 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 22
  • 23. Experimental Results Color Histogram 1 F= 1 1 + 2 ! prec 2 ! recall 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 23
  • 24. Experimental Results Color Histogram (PFRL) 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 24
  • 25. Conclusions • Reported results show that a weighted measure improve the performance of the NN technique • Weighted distance metric based on feature subset provided the best results • Neighborhood-Based weights provide similar or better results with respect to PFRL but without annoying tuning operations 6-05-2009 Neighborhood-Based Feature Weighting - L. Piras 25