Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR...

18
10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives Main objective of IR Different tasks in IR Printed documents search Patent search Social search Possible ideas for group project

Transcript of Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR...

Page 1: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

1

Search is not only the Web

IR Applications

Walid Magdy

School of Informatics

University o Edinburgh

24 Oct 2018

2

Objectives

• Main objective of IR

• Different tasks in IR

• Printed documents search

• Patent search

• Social search

• Possible ideas for group project

Page 2: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

2

3

Information Retrieval Objective

● IR is finding material of an unstructured nature that satisfies

an information need from within large collections.

- Information need

- Expected search scenario?

- Modeling the task?

- Data nature

- Approach?

- Scalable? Fast?

- User Satisfaction

- More relevant documents?

- Effective evaluation?

Information need

Satisfaction

Query

Relevantdocuments

4

Printed Documents Retrieval

Page 3: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

3

5

Printed Documents Retrieval

● Documents:text on printed papers (books)

● Information need:Information within these books

● Challenge:It is an image of text

● Common Approach:OCR Recognized text Search

● Challenges in Common Approach:OCR Text with mistakes (WERAr ≈ 40%)

OCR Not available for all languages

6

Problem

● Text with errors (sometime many errors)

0

0.0 5

0.1

0.1 5

0.2

0.2 5

0.3

0.3 5

0.4

0.4 5

0.5

Cle an Text Good OCR Moderate OCR Poor OCR

MA

P

IR effectiveness with different qualities of OCR

Page 4: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

4

7

n-gram Char Representation of OCR

● Original:example sentence

● OCR output:exarnple senlcnce

● 3-gram char representation:$ex exa xar arn rnp npl ple le$ $se sen enl nlc lcn cnc nce ce$

● Query:example sentence

$ex exa xam amp mpl ple le$ $se sen ent nte ten enc nce ce$

● Matching:$ex exa xar arn rnp npl ple le$ $se sen enl nlc lcn cnc nce ce$

$ex exa xam amp mpl ple le$ $se sen ent nte ten enc nce ce$

8

OCR Correction using Error Model

OCR

textGenerate

CandidatesBest Fitting

Word Selection

Language ModelSelect part and correct

Manually corrected

version

Corrected

text

Train Error Model

Character Error Model

Use for search

Page 5: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

5

9

Query Garbling using Error Model

Generate possible errors

Character Error Model

Use for search

Query Query, Ouery,

Qucry, ….

10

OCR Correction using Edit Distance

OCR

textGenerate

CandidatesBest Fitting

Word Selection

Language Model

Dictionary

Edit Distance

Corrected

text

Use for search

Page 6: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

6

11

Multi-OCR Text Fusion

Word Alignment

Best Fitting Word Selection

Language Model

OCR

text 1

OCR

text 2

Fused

text

Use for search

12

OCR Search

● Recognition errors in OCR text degrades retrieval

● Different methods of text processing can overcome the

negative effect on retrieval and improves search

● n-gram character representation improves retrieval, but not

that much

● Some training and resources are needed which can be

manual correction, trained language model, or both

● Previous methods fail when errors are large (WER>50%)

Page 7: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

7

13

Solution – back to Information Need

● Information need:the printed papers

● Question:Why convert image to text?

● Related work:Word Spotting

14

OCRless Search

213 31 89 32 2 213 31 3341

1190 23 802 …

Index of IDs

126 61

42

831

301

Cluster ID

Cluster

Segment to

elements

Clustering

Create IDs

document

Indexing

Page 8: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

8

15

اإليمان

syn(1284, 21, 673, 1208)syn(430, 4, 6412, 3094)syn(231, 9011, 32, 721)syn(40, 110, 2213, 2214)

List of ranked

documents

Draw query

Replace with candidate IDs and

formulate query

Search Index of IDs

Solution – OCRless Search

16

Solution – OCRless Search

● Effective and fast

● Robust to OCR errors (v1de0)

● No training resources required

● Language independent

● Microsoft TechFest Demo

The same engine for searching printed documents in:

Arabic, English, Chinese, Hebrew, and Hieroglyphic

English

Page 9: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

9

17

Printed Documents Retrieval

● Text-based solutions: correction

● Image-based: clustering

● Current State-of-the-art:

CAPTCHA

● Information need Approach

18

Patent Search

Page 10: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

10

19

Patent Search

● Given a patent application, check if the invention

described is novel

Patent

Collection

Query Results list

Patent

applicationSeveral

languages

Many results to check

100-600 docs/search

A System and Method for …………………………………………………………………………………………………………………………………..

20

Patent Search – User Satisfaction

● NTCIR, CLEF, TREC

● Recall-oriented Try not to miss a relevant document

● Recall is the objective

● Precision is also important

● Huge # documents checked (100-600 documents)

● Evaluation: average precision (AP)!!● Focuses on finding relevant docs early in ranked list

● Less focus on recall

Page 11: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

11

21

Example

For a topic with 4 relevant docs and 1st 100 docs to be examined:

System1: relevant ranks = {1}

System2: relevant ranks = {50, 51, 53, 54}

System3: relevant ranks = {1, 2, 3, 4}

APsystem1 = 0.25

APsystem2 = 0.0481

APsystem3 = 1

Rsystem1 = 0.25

Rsystem2 = 1

Rsystem3 = 1

We need a metric that reflects recall and ranking quality

in one measure

22

PRES: Patent Retrieval Evaluation Score

n: number of relevant docs

ri: rank of the ith relevant document

Nmax: max number of checked

docsmax

2

1

1N

n

n

r

PRES

i

● Derived from Rnorm (Rocchio, 1964)

● Gives higher score for systems achieving higher recall

and better average relative ranking

● Dependent on user’s potential/effort (Nmax)

● Robust to incomplete relevance judgements

Page 12: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

12

23

● Official score in CLEF-IP since 2010

● Adapted in many Recall-oriented IR tasks

● User Satisfaction

Objective function

PRES: as a cumulative gain

24

Patent Search – CLIR

● Query: Full patent application

● Common approach: MT (the best)

● Challenge: training recourses + speed!

● Ideal: Query + Document translation

Page 13: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

13

25

Patent Search – CLIR – Objective?

● Manual translation

● MT output

● MT evaluation: MT sucks

● IR evaluation: MT rocks

● MT4IR: An efficient MT that neglects morphological and

syntactic features of output

he are an great ideas to applied stem by information retrieving

It is a great idea to apply stemming in information retrieval great idea apply stem information retriev

great idea appli stem information retriev

26

Ordinary MT vs. MT4IR

Search

Process

TranslateTrain MT

Query(lang x)

Index(lang y)

MT Model(lang xy)

Parallel

CorpusResults(lang y)

Query(lang y)

Query (lang x, no stop words, and stemmed)

Page 14: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

14

27

Patent Search – MT4IR

0.00

0.05

0.10

0.15

0.20

0.25

0.30

0.35

0.40

0.45

2k 8K 80K 800K 8M

Training size

PR

ES

Processed MT

Ordinary MT

Google

Translate

Retrieval effectiveness for a Patent CLIR En-Fr task

MT4IR

28

Patent Search – MT4IR

0%

5%

10%

15%

20%

25%

30%

2k 8K 80K 800K 8M

Traiing size

OO

V

Processed

MTOrdinary MT

E.g. play, plays, played, playing

MT4IR

Page 15: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

15

29

Patent Search – MT4IR

Translation speed for a Patent CLIR En-Fr task

00 mins

04 mins

08 mins

12 mins

16 mins

20 mins

24 mins

28 mins

32 mins

2k 8K 80K 800K 8M

Training size

Deco

din

g t

ime

Processed MT

Ordinary MT

5 times faster

9 times faster

20 times faster

MT4IR

30

Social Search

Microblog (Twitter) Search

Page 16: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

16

31

Social Search

● TREC Microblog track Ad-hoc, filtering

● User’s information need?

● Search scenario? Task?

● Boolean? News updates?

65%

32

Social Media & News

● News websites are biased

● People use social media to● Report news

● Comment on news

● Discuss different views on events

● Discussions on social media, reflects public interest

● Can social media answer the question:

“What is happening in <region>?”

vs. vs.

Page 17: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

17

33

Adaptive Information Filtering

Boolean Filter

Train Classifier

Training

Tweets

Filtered

Tweets

(positive)(negative)

Classifier

On

line S

trea

m

Term Selection

Predefined

Queries

Random

Sampling

Fil

tere

d

Str

eam

• Information need

Retrieval task

34

● The objective is IR is “User Satisfaction”

● Understand the user needs well

● Design the IR task carefully

● You do not have to stick to the path in the literature

● Are you sure performance is measured correctly?

● Beating the baseline is always desirable, just be sure you are

moving in the right direction

Summary

Page 18: Search is not only the Web IR Applications · 10/24/2018 1 Search is not only the Web IR Applications Walid Magdy School of Informatics University o Edinburgh 24 Oct 2018 2 Objectives

10/24/2018

18

35

● Magdy W. and T. Elsayed. Unsupervised Adaptive Microblog Filtering for Broad

Dynamic Topics. IP&M 2016

● Magdy W. and G. J. F. Jones. Studying Machine Translation Technologies for Large-

Data CLIR Tasks: A Patent Prior-Art Search Case Study. Springer, Information Retrieval,

2013

● Magdy W. and G. J. F. Jones. PRES: A Score Metric for Evaluating Recall-Oriented

Information Retrieval Applications. SIGIR 2010

● Magdy W. , K. Darwish, and M. El-Saban. Efficient Language-Independent Retrieval of

Printed Documents without OCR. SPIRE 2009

● Magdy W. and K. Darwish. Effect of OCR Error Correction on Arabic Retrieval. Springer,

Information Retrieval, 2008

Readings