Top Banner
EVA An Expert System for Vases of the Antiquity Martina Trognitz Deutsches Arch¨ aologisches Institut, Berlin 22 October 2013 M. Trognitz (DAI) EVA 1 / 31
39

[DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Jan 15, 2015

Download

Education

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

EVAAn Expert System for Vases of the Antiquity

Martina TrognitzDeutsches Archaologisches Institut, Berlin

22 October 2013

M. Trognitz (DAI) EVA 1 / 31

Page 2: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is EVA?

EVA is an expert system for computer aided classification and dating ofceramics. It represents the application of natural language processingmethods for an archaeological problem.

It was the subject of my master thesis at the University of Heidelberg, inthe department of Computational Linguistics.

M. Trognitz (DAI) EVA 2 / 31

Page 3: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Outline

1 Motivation

2 The problem

3 What is an expert system?

How it worksProperties

4 Implementation

Before implementationSystem architectureThe knowledge baseDescription texts

5 Discussion

M. Trognitz (DAI) EVA 3 / 31

Page 4: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Motivation

Motivation

Combination of computational linguistics and archaeology

Fill the gap between the number of human experts and amount ofunclassified ceramic

EVA could provide a second opinion and be used as a learning tool

M. Trognitz (DAI) EVA 4 / 31

Page 5: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

The problem

Outline

1 Motivation

2 The problem

3 What is an expert system?

How it worksProperties

4 Implementation

Before implementationSystem architectureThe knowledge baseDescription texts

5 Discussion

M. Trognitz (DAI) EVA 5 / 31

Page 6: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

The problem

The problem

Ceramic is a common find at excavations.

Form and decoration depend on various factors and change in thecourse of time:

cultural environmentsourcetaste and fashiontechnical achievements

Hence ceramic is used to date archeological find deposits. It serves asa type fossil.

M. Trognitz (DAI) EVA 6 / 31

Page 7: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

The problem

Problem

An ancient Greek vase is a difficult object for the non-expert to come to

terms with. Faced with rows of apparently undifferentiated black, red and

buff pots, he or she is at a loss as to where to begin.

Tom Rasmussen & Nigel Spivey

M. Trognitz (DAI) EVA 7 / 31

Page 8: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

The problem

Problem

An ancient Greek vase is a difficult object for the non-expert to come to

terms with. Faced with rows of apparently undifferentiated black, red and

buff pots, he or she is at a loss as to where to begin.

Tom Rasmussen & Nigel Spivey

Solution

Store the knowledge of an expert into an expert system to classify anddate ceramic.

M. Trognitz (DAI) EVA 7 / 31

Page 9: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system?

Outline

1 Motivation

2 The problem

3 What is an expert system?

How it worksProperties

4 Implementation

Before implementationSystem architectureThe knowledge baseDescription texts

5 Discussion

M. Trognitz (DAI) EVA 8 / 31

Page 10: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system?

What is an expert system?

It is a program capable of solvingproblems similarly as human expertswould do.

It uses knowledge and inferencemethods to solve problems.

It can solve complex problemsnormally requiring enourmous humanexpertise.

Edward Feigenbaum“Father of expert systems”

M. Trognitz (DAI) EVA 9 / 31

Page 11: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system?

Special subject of artificial intelligence

Early systems were developed in the sixties (DENDRAL)

They are used comercially since the eighties

Can be used in a wide range of subjects (MYCIN, PROSPECTOR,XCON/R1)

M. Trognitz (DAI) EVA 10 / 31

Page 12: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system?

Special subject of artificial intelligence

Early systems were developed in the sixties (DENDRAL)

They are used comercially since the eighties

Can be used in a wide range of subjects (MYCIN, PROSPECTOR,XCON/R1)

Remark

An expert system only works well in a well-defined special field, theknowledge domain.

M. Trognitz (DAI) EVA 10 / 31

Page 13: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system? How it works

How it works

user

expert system

knowledge base

inference engine

facts & informations

expertise

user interface

M. Trognitz (DAI) EVA 11 / 31

Page 14: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system? How it works

Functionality of the inference engine

inference engine

deductions

facts

working memory

knowledge base

agenda

M. Trognitz (DAI) EVA 12 / 31

Page 15: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system? Properties

Properties of expert systems

high perfomance, results compete with those of human experts

proper response time

robust

understandable

flexible

M. Trognitz (DAI) EVA 13 / 31

Page 16: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

What is an expert system? Properties

Properties of expert systems

high perfomance, results compete with those of human experts

proper response time

robust

understandable

flexible

Remark

The knowledge is explicitly disconnected from the processig part of theprogram.

M. Trognitz (DAI) EVA 13 / 31

Page 17: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation

Outline

1 Motivation

2 The problem

3 What is an expert system?

How it worksProperties

4 Implementation

Before implementationSystem architectureThe knowledge baseDescription texts

5 Discussion

M. Trognitz (DAI) EVA 14 / 31

Page 18: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Before implementation

Before implementation

Size of knowledge domain?

“Ancient vases” is reduced to:attic protogeometric and geometric

Knowledge base?

sort of a rule-based systembased on a decision tree

Inference engine and knowledge base depend on each other

The system is implemented with Python

M. Trognitz (DAI) EVA 15 / 31

Page 19: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation System architecture

System architecture

user

expert system

knowledge base

inference engine

questions

desriptions

processing

results

classification

& dating

AB

M. Trognitz (DAI) EVA 16 / 31

Page 20: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation The knowledge base

The knowledge base

The knowledge base is the heart of the system

A restricted, well-defined knowledge domain is mapped to aknowledge base

The knowledge representation depends on:

area of applicationscopesource of knowledgefunctionality of the inference engine

A knowledge engineer transfers the knowledge from an expert to theknowledge base of the expert system.

M. Trognitz (DAI) EVA 17 / 31

Page 21: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation The knowledge base

Why a decision tree?

A specific vase can be described with a specific set of characteristics.

EG I:

figured:no; shape:amphora; handlePosition:neck; handleForm:band;body:ovoid; motifs:band of slanting lines

MG II:

figured:no; shape:amphora; handlePosition:neck; handleForm:band;body:ovoid; motifs:hatched meander, zigzag, dogtooth

IF a specific set of characteristics is given THEN you get a specificvase.

M. Trognitz (DAI) EVA 18 / 31

Page 22: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation The knowledge base

Decision tree in EVA

start

figured?

no

shape?

yes

LG!

amphora

handlePostion?

oinochoe

...

...

...

neck

...

shoulder

...

belly

...

M. Trognitz (DAI) EVA 19 / 31

Page 23: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation The knowledge base

tree.py

The decision tree is built in the module tree.py

Each node in the tree consists of a value, a question related to thevalue, a link to the parent node and a list of child nodes.

no

shape?

yes

LG!

amphora

handlePostion?

oinochoe

...

...

...

M. Trognitz (DAI) EVA 20 / 31

Page 24: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation The knowledge base

Knowledge base details

The knowledge base is stored in a separate text file

root - figured? : yes - LG!

root - figured? : no - shape? : amphora - handlePosition? : neck - ...

root - figured? : no - shape? : amphora - handlePosition? : shoulder -

The full question that is displayed to the user is stored indictionaries.py

M. Trognitz (DAI) EVA 21 / 31

Page 25: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Description texts

user

expert system

knowledge base

inference engine

questions

descriptions

processing

result

classification

& dating

AB

M. Trognitz (DAI) EVA 22 / 31

Page 26: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Description texts

user

expert system

knowledge base

inference engine

questions

descriptions

processing

result

classification

& dating

AB

M. Trognitz (DAI) EVA 22 / 31

Page 27: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

This is a small oinochoe. The handle isoutlined and has a wavy line. The rim isdecorated with three horizontal lines. Onthe neck a horizontal row of dots, ahorizontal panel with a lozenge chain andanother row of dots can be seen. Theshoulder is decorated with a dotted snakeand some sparse dots. On the belly arelinked dots. All ornaments are interspersedby encircling bands. The lower part of thevase is covered by a thin layer of clay.

CVA Oxford 4 (GB, 24) p.12, plate 30 1-3

M. Trognitz (DAI) EVA 23 / 31

Page 28: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

This is a small oinochoe. The handle isoutlined and has a wavy line. The rim isdecorated with three horizontal lines. Onthe neck a horizontal row of dots, ahorizontal panel with a lozenge chain andanother row of dots can be seen. Theshoulder is decorated with a dotted snakeand some sparse dots. On the belly arelinked dots. All ornaments are interspersedby encircling bands. The lower part of thevase is covered by a thin layer of clay.

CVA Oxford 4 (GB, 24) p.12, plate 30 1-3

M. Trognitz (DAI) EVA 23 / 31

Page 29: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Some aspects of natural language texts

The form and structure of the texts depend on:

personal stylelanguage skillsknowledge of the subject

Some informations may be missing

M. Trognitz (DAI) EVA 24 / 31

Page 30: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Information extraction

Question

At which part of the body are the handles attached?

M. Trognitz (DAI) EVA 25 / 31

Page 31: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Information extraction

Question

At which part of the body are the handles attached?

Possible answers

This neck-handled amphora has a thick barred rim.The handles of this amphora are attached to the neck.This is a neck-handled amphora with a thick barred rim.This amphora has a thick barred rim. The handles are on the neck.

M. Trognitz (DAI) EVA 25 / 31

Page 32: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Information extraction

Question

At which part of the body are the handles attached?

Possible answers

This neck-handled amphora has a thick barred rim.The handles of this amphora are attached to the neck.This is a neck-handled amphora with a thick barred rim.This amphora has a thick barred rim. The handles are on the neck.

Possible patterns to look for

... 〈string〉-handled ...

... handles 〈verbal phrase with on/to〉 ... 〈string〉

M. Trognitz (DAI) EVA 25 / 31

Page 33: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Processing of texts

1: Parsing

Stanford Parser (Klein – Manning 2003)

2: Go through decision tree

Questions are answered automatically with the given text (information

extraction)It is done by searching for specific patterns

M. Trognitz (DAI) EVA 26 / 31

Page 34: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Demonstration of EVA

The main module ist called core.py

core.py builds the decision tree with tree.py and a knowledge basestored in a text file

In dictionaries.py the user friendly questions and answers are stored.

The patterns for information extraction are also stored indictionaries.py

M. Trognitz (DAI) EVA 27 / 31

Page 35: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Implementation Description texts

Demonstration of EVA

The main module ist called core.py

core.py builds the decision tree with tree.py and a knowledge basestored in a text file

In dictionaries.py the user friendly questions and answers are stored.

The patterns for information extraction are also stored indictionaries.py

EVA is in an experimental status.

M. Trognitz (DAI) EVA 27 / 31

Page 36: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Discussion

Outline

1 Motivation

2 The problem

3 What is an expert system?

How it worksProperties

4 Implementation

Before implementationSystem architectureThe knowledge baseDescription texts

5 Discussion

M. Trognitz (DAI) EVA 28 / 31

Page 37: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Discussion

Drawbacks

time-consuming

Knowledge base and patterns are handcraftet.

abstract

The program does not consider the actual vase (e.g. looks at images). Itonly relies on textual descriptions.

M. Trognitz (DAI) EVA 29 / 31

Page 38: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Discussion

Future work

GUI (with example images)

Use a certainty factor to weigh outcome

Expansion of knowledge base

more regions; earlier and later styles

Additional languages

Build knowledge base by means of machine learning

Include image recognition

M. Trognitz (DAI) EVA 30 / 31

Page 39: [DCSB] Martina Trognitz (DAI, Berlin) "EVA: An Expert System for Vases of the Antiquity"

Discussion

Discussion

Computer aided classification and dating of ceramics is possible.

What do you think?

[email protected]

M. Trognitz (DAI) EVA 31 / 31