matching - icfhr 2018icfhr2018.org/slidesposters/poster-119.pdf · the 16th international...

1
The 16 th International Conference on Frontiers in Handwriting Recognition (ICFHR-2018), Niagara Falls, USA C ONSTRAINED AND P ARAMETRIC D YNAMIC P ROGRAMMING FOR W ORD I MAGE R ETRIEVAL T ANMOY M ONDAL ,M ICKAËL C OUSTATY L3 I ,U NIVERSITÉ DE L A -R OCHELLE ,F RANCE . I NTRODUCTION Dynamic Time Warping (DTW) based similarity matching has been highly used for word image matching Constrained DTW performs better than classical DTW, hence can avoid pathological matching Several variants of DTW can perform better compared to classical DTW C ONTRIBUTION Demonstrated the combination of these variants of DTW improves results Propose to combine Pseudo local DTW (LDTW) with Itakura Parallelogram Several other sequence matching techniques are combined to study their potential advantages Propose technique to compute weighting parameter to combine two matching techniques D YNAMIC T IME W ARPING (DTW) Measures similarity between two time series Two time series X = x 1 ,x 2 ,x 3 , ..., x p and Y = y 1 ,y 2 ,y 3 , ....,y q Best warping path is computed by dynamic programming from (P) Elements in P is l k L; l k =(i, j ) represents best alignment between x i and y j ;1 i p;1 j q DTW (X, Y )= min L X L D(l k ); P (i,j ) = D (i,j ) +min P (i,j -1) P (i-1,j -1) P (i-1,j ) i=1,2,....,p;j =1,2,...,q Distance between x i and y j is given by D l k = D (i,j ) = (x i - y j ) 2 . P (i,0) = P (0,j ) = Optimal distance (V) is stored in the cell P (p,q ) L : represents all possible warping paths in P P SEUDO L OCAL DTW (LDTW) DTW is modified to perform pseudo-local alignment using spe- cific DP-path Applies different DP paths at different location of path cost ma- trix Helps to handle stretching and compression C ONSTRAINTED LDTW Applied Pseudo Local DTW, constrained by Itakura parallelogram Reduces time and space complexity of LDTW and avoid patho- logical matching It improves the result to a good extend (3 to 4%) P ARAMETRIC C OMBINATION Parametrically combine different dynamic programming based sequence matching techniques Introduced for time series matching but adapted here for word image matching Parametric Distance Measure Weighting based distance measure (D ab ) can be calculated By linear combination of D 1 and D 2 , based on real parameters a, b [0, 1] D ab (X, Y )= a × D 1 (X, Y )+ b × D 2 (X, Y ) Parameters (a, b) can be chosen between points (0, 1) and (1, 0) a = (1 - α); b = α; α [0, 1] α-optimization Technique α-value is tuned during the traing phase Select query image Q 1 from training dataset and compute all distances between target set (T s 1 ) For all α({α [0, 1]}), compute d 1 {T 1...s 1 },{1...p} = D ab (Q 1 ,T 1...s 1 ) for α 1,...,p and put in 2D matrix D (s 1 rows and p columns) we sort (descending order) each column of D, as each column represents the matches for different α values As we have already the ground truth for this query image Q 1 , we calculate the precision and recall (PR) values at each rank for every columns. Repeat the procedure for other query images in training set Same process of PR values calculation is followed for each col- umn of d 2 {T 1...s 2 },{1...p} matrix The best α is computed by mean average precision for each col- umn (each α 1,...,p ) for all the query images P RUNNING T ECHNIQUES The target images satisfies Criterion-1 and Criterion-2 or Criterion-3 are considered as relevant 1 2 query aspect ratio target aspect ratio 2 1 2 query area target area 2 1 2 K of query K of target 2 E XPERIMENTAL R ESULTS Word Spotting Framework 8 column based features are cho- sen and saved offline Saved features are matched by ac- cessing it from memory All document images Each image Text line segmentation based on projection profile Segmentation of word based on RLSA (optional) Offline Feature Extraction Query image FSM Matching Feature extraction Lines/words ranked according to score Connected Components labeling Feature extraction and offline feature storage into data file (.dat) Binarization and De-noising Noisy border removal RLSA threshold estimation Matching Technique Fig : The block diagram of word image retrieval system DTW = Itakura Par- alleogram LDTW = LDTW + Itakura Paralleogram Learning and testing steps repeated 10 times 2 queries are randomy sele- tected as queries Optimized α value is ob- tained Testing is performed on re- maining queries Acknowledgement This work is supported by the Region Nouvelle Aquitaine and European Union under the project ”Sécurisation et Authentification des Diplômes” in the ”programme opérationnel FEDER/FSE 2014-2020” (grant number P2017- BAFE-46). R EFERENCES 1. T. Mondal, N. Ragot, J.-Y. Ramel, and U. Pal, “Performance Evaluation of DTW and its Variants for Word Spotting in Degraded Documents,” in ICDAR, Aug. 2015. 2. P. Wang, E. Veronique, L. Christine, L. Josep, and F. Alicia, “A Novel Learning-free Word Spotting Approach Based On Graph Representa- tion,” in DAS, 2014, pp. 207–211. 3. T. Gorecki and M. Luczak, “Multivariate time series classification with parametric derivative dynamic time warping,” Expert Systems with Applications, vol. 42, no. 5, pp. 2305–2312, 2015.

Upload: others

Post on 12-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Matching - ICFHR 2018icfhr2018.org/SlidesPosters/Poster-119.pdf · The 16th International Conference on Frontiers in Handwriting Recognition (ICFHR-2018), Niagara Falls, USA CONSTRAINED

The 16th International Conference on Frontiers in Handwriting Recognition (ICFHR-2018), Niagara Falls, USA

CONSTRAINED AND PARAMETRIC DYNAMIC PROGRAMMING FOR WORD IMAGE RETRIEVAL

TANMOY MONDAL, MICKAËL COUSTATYL3I, UNIVERSITÉ DE LA-ROCHELLE, FRANCE.

INTRODUCTION

⇒ Dynamic Time Warping (DTW) based similarity matching has been highly used for word image matching⇒ Constrained DTW performs better than classical DTW, hence can avoid pathological matching⇒ Several variants of DTW can perform better compared to classical DTW

CONTRIBUTION

⇒ Demonstrated the combination of these variants of DTW improves results⇒ Propose to combine Pseudo local DTW (LDTW) with Itakura Parallelogram⇒ Several other sequence matching techniques are combined to study their potential advantages⇒ Propose technique to compute weighting parameter to combine two matching techniques

DYNAMIC TIME WARPING (DTW)⇒ Measures similarity between two time series

⇒ Two time series X = x1, x2, x3, ..., xp andY = y1, y2, y3, ...., yq

⇒ Best warping path is computed by dynamic programming from (P)

⇒ Elements in P is lk ∈ L; lk = (i, j) represents best alignment betweenxi and yj ; 1 ≤ i ≤ p; 1 ≤ j ≤ q

DTW (X,Y ) = minL

∑L

D(lk);

P(i,j) = D(i,j)+min

P(i,j−1)

P(i−1,j−1)

P(i−1,j)

∣∣∣∣i=1,2,....,p;j=1,2,...,q

⇒ Distance between xi and yj is given by Dlk = D(i,j) =

(xi − yj)2.

⇒ P(i,0) = P(0,j) =∞

⇒ Optimal distance (V) is stored in the cell P(p,q)

⇒ L : represents all possible warping paths in P

PSEUDO LOCAL DTW (LDTW)⇒ DTW is modified to perform pseudo-local alignment using spe-

cific DP-path⇒ Applies different DP paths at different location of path cost ma-

trix⇒ Helps to handle stretching and compression

CONSTRAINTED LDTW⇒ Applied Pseudo Local DTW, constrained by Itakura parallelogram⇒ Reduces time and space complexity of LDTW and avoid patho-

logical matching⇒ It improves the result to a good extend (3 to 4%)

PARAMETRIC COMBINATION

⇒ Parametrically combine different dynamic programming basedsequence matching techniques

⇒ Introduced for time series matching but adapted here for wordimage matching

Parametric Distance Measure

⇒ Weighting based distance measure (Dab) can be calculated⇒ By linear combination of D1 and D2, based on real parameters

a, b ∈ [0, 1]

Dab(X,Y ) = a×D1(X,Y ) + b×D2(X,Y )

Parameters (a, b) can be chosen between points (0, 1) and (1, 0)

a = (1− α); b = α;α ∈ [0, 1]

α-optimization Technique

⇒ α-value is tuned during the traing phase⇒ Select query image Q1 from training dataset and compute all

distances between target set (T s1 )⇒ For all α({α ∈ [0, 1]}), compute d1{T 1...s1},{1...p} =

Dab(Q1, T1...s1) for α1,...,p and put in 2D matrix D (s1 rows and

p columns)⇒ we sort (descending order) each column of D, as each column

represents the matches for different α values⇒ As we have already the ground truth for this query image Q1,

we calculate the precision and recall (PR) values at each rank forevery columns.

⇒ Repeat the procedure for other query images in training set⇒ Same process of PR values calculation is followed for each col-

umn of d2{T 1...s2},{1...p} matrix

⇒ The best α is computed by mean average precision for each col-umn (each α1,...,p) for all the query images

PRUNNING TECHNIQUES

⇒ The target images satisfies Criterion-1 and Criterion-2 orCriterion-3 are considered as relevant

1

2≥ query aspect ratio

target aspect ratio≥ 2

1

2≥ query area

target area≥ 2

1

2≥ K of query

K of target≥ 2

EXPERIMENTAL RESULTS

Word Spotting Framework

⇒ 8 column based features are cho-sen and saved offline

⇒ Saved features are matched by ac-cessing it from memory

All document

images

Each image

Text line segmentation

based on projection

profile

Segmentation of word based on RLSA

(optional)

Offline Feature Extraction

Query image

FSM Matching

Feature extraction

Lines/words ranked according to score

Connected Components

labeling

Feature extraction and offline feature storage

into data file (.dat)

Binarization and De-noising

Noisy border

removal

RLSA threshold estimation

Matching Technique

Fig : The block diagram of word imageretrieval system

⇒ DTW = Itakura Par-alleogram

⇒ LDTW = LDTW + ItakuraParalleogram

⇒ Learning and testing stepsrepeated 10 times

⇒ 2 queries are randomy sele-tected as queries

⇒ Optimized α value is ob-tained

⇒ Testing is performed on re-maining queries

AcknowledgementThis work is supported by the Region Nouvelle Aquitaine and European Union under the project ”Sécurisation et Authentification des

Diplômes” in the ”programme opérationnel FEDER/FSE 2014-2020” (grant number P2017- BAFE-46).

REFERENCES1. T. Mondal, N. Ragot, J.-Y. Ramel, and U. Pal, “Performance Evaluation of DTW and its Variants for Word Spotting in Degraded

Documents,” in ICDAR, Aug. 2015.2. P. Wang, E. Veronique, L. Christine, L. Josep, and F. Alicia, “A Novel Learning-free Word Spotting Approach Based On Graph

Representa- tion,” in DAS, 2014, pp. 207–211.3. T. Gorecki and M. Luczak, “Multivariate time series classification with parametric derivative dynamic time warping,” Expert

Systems with Applications, vol. 42, no. 5, pp. 2305–2312, 2015.