+ All Categories
Home > Documents > PostgreSQL-IE: An Image-handling Extension for PostgreSQL

PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Date post: 05-Jan-2016
Category:
Upload: jude
View: 67 times
Download: 3 times
Share this document with a friend
Description:
PostgreSQL-IE: An Image-handling Extension for PostgreSQL. Denise Guliato, Ernani V. de Melo, Robson C. Soares Universidade Federal de Uberlândia Uberlândia, Minas Gerais, BRASIL Rangaraj M. Rangayyan University of Calgary Calgary, Alberta, CANADA. Universidade Federal de Uberlândia - PowerPoint PPT Presentation
43
Denise Guliato, Ernani V. de Melo, Robson C. Soares Universidade Federal de Uberlândia Uberlândia, Minas Gerais, BRASIL Rangaraj M. Rangayyan University of Calgary Calgary, Alberta, CANADA PostgreSQL-IE: An Image-handling Extension for PostgreSQL Universidade Federal de Uberlândia Faculdade de Computação
Transcript
Page 1: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Denise Guliato, Ernani V. de Melo, Robson C. SoaresUniversidade Federal de Uberlândia Uberlândia, Minas Gerais, BRASIL

Rangaraj M. Rangayyan University of Calgary

Calgary, Alberta, CANADA

PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Universidade Federal de UberlândiaFaculdade de Computação

Page 2: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Outline

• Content-based Image Retrieval (CBIR)

• PostgreSQL with Image-handling Extension (PostgreSQL-IE)

• SISPRIM – A Research System that Supports CBIR Applied to the Analysis of Mammograms

• Remarks

Page 3: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Content-based Image Retrieval

Retrieving semantically relevant images from a large database or repository.

Challenges for a Database System:– Storage and management of images in a

proper manner for easy accessibility.

– Flexibility to include and use new feature descriptors, new feature vectors, or new access methods.

Page 4: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Content-based Image RetrievalCommercial Database Management Systems:• Private architecture• High cost• Cannot be updated by the user.

Examples:• DB2 with Image Extender (IBM):

– four feature descriptors (3 color, 1 texture).• Oracle with interMedia:

– four feature descriptors (2 color, 1 texture, 1 shape).• Informix with Excalibur:

– five feature descriptors (2 color, 1 texture, 1 shape, 1 brightness)

Page 5: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Content-based Image RetrievalIn all the cases:

• only one image can be stored with a given image attribute;

• only one feature vector can be associated with a given image attribute;

• The systems do not allow the inclusion of new functionalities, new feature extractors, or new access methods.

Page 6: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Outline

• Content-based Image Retrieval (CBIR)

• PostgreSQL with Image-handling Extension (PostgreSQL-IE)

• SISPRIM – A System Design for CBIR Applied to the Analysis of Mammograms

• Remarks

Page 7: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

PostgreSQL with Image-handling ExtensionPostgreSQL-IE

• Characteristics:– Able to handle images, independent of the application;

– Makes use of the power available with PostgreSQL;

– Open source;

• Makes available a new image data type

• Extends the Database Catalog of PostgreSQL

• Extends the SQL to support similarity queries

• Easy to install and use.

Page 8: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

New Image Data Type: PGImage

• Makes it possible to store more than one image in the same attribute;

• Makes it possible to combine feature descriptors of different images (stored in the same attribute) in the same feature vector;

• Is useful for the development of medical applications involving CT, MR, or mammographic images.

Page 9: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

New Image Data Type: PGImage An example

Consider an application that involves:

1. a short clinical history of a patient

2. a set of exams obtained at different instants of time

3. each exam is composed of CT and MRI images (the number of slices in CT and MRI may vary between patients)

Page 10: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

New Image Data Type: PGImage Two possible database schemes

PostgreSQL-IE DB2

c_image:PGImage

Page 11: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

New Image Data Type: PGImage

PGImage data type is an UDT that encapsulates:

• An identifier of the a given image set (imgid)

• Classes associated with each image of this image set (imgclass)

Page 12: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

New Image Data Type: PGImage A simple example

• CREATE TABLE patient(• p_id INTEGER NOT NULL,• p_bday DATE,• p_first_pregnancy INTEGER,• PRIMARY KEY (p_id)• );

• CREATE TABLE patient_case(• c_id INTEGER NOT NULL,• c_patient INTEGER NOT NULL,• c_examdate DATE NOT NULL,• c_tumor CHAR NOT NULL,• c_mammo PGImage,• PRIMARY KEY (c_id),• FOREIGN KEY (c_patient) • REFERENCES patient (p_id),• CHECK ((c_mammo).classes in • ('mammography', 'lesion_contour'))• );

f

Page 13: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extended Database Catalog of PostgreSQL

1

1

1

2

3

0

Page 14: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extended Database Catalog of PostgreSQL

The pge_regimage maintains information about all the images stored in the database

back

Page 15: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extended Database Catalog of PostgreSQL

The tables pge_extractor, pge_vector and pge_accessmethod keep track of all feature descriptors, feature vectors and access methods added to the system by an authorized user.

back

pge_extractor

pge_vector

pge_accessmethod

Page 16: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extended Database Catalog of PostgreSQL

The table pge_vector_extractor relates each feature vector to a respective set of feature descriptors that compose the vector;

Because of this, PostgreSQL-IE make it possible to combine one or more feature descriptors in the same feature vector

back

pge_extractor

pge_vector pge_vector_extractor

Page 17: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extended Database Catalog of PostgreSQL

The table pge_tabvector associates each feature vector with an access method, in order to speed up the answer to a query.

pge_vector

pge_access_method

pge_tabvectorpge_tabvector

Page 18: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

pge_tabvector

pge_extractor

pge_patient_case_c_mamo

Page 19: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extending the SQL to support similarity queries: SQL-IE

• Includes flexibility to create, and facilities to use:– new feature descriptors:

• At present, 11 shape descriptors and 1 histogram-based descriptor available.

– new feature vectors– new access methods:

• At present, a scan access method is available with the similarity operators

– KNN (K Nearest Neighbor)– RANGE.

Page 20: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extending the SQL to support similarity queries: SQL-IE

• Composed of a set of 16 new functions, written in plpgsql, to extend SQL and a set of 12 internal functions written in C

• The main functions available in SQL-IE are:– Insert_Image.– Create_Extractor– Define_Feature_Vector– Create_AccessMethod– Set_Feature_Vector

Page 21: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Extending the SQL to support similarity queries: SQL-IE

• Delete_Extractor• Delete_Feature_Vector• Delete_Access_Methods• UnSet_Feature_Vector• Update_Image_Attr• Replace_Image_Attr• Show_Extractor• Value_Extractor• Show_Image• Width_IE• Height_IE

Page 22: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SQL-IE: An Example

Page 23: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

patient_case

Page 24: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SQL-IE: An Example

Page 25: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SQL-IE: An Query Example

SQL-IE makes it possible to pose complex queries combining conventional and visual data:

Return all the information of the patients associated with the 6 images most similar to the image given as reference (related to the patient id = 1) and age > 62, according to Index_SI ( ‘Shape_SI’, ‘ c_mammo, patient_case’, ‘scan’).

Page 26: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SQL-IE: The Query Answer

Page 27: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SQL-IE: Another Query Example

Page 28: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Easy to Install and Use

To install PostgreSQL-IE is necessary:

1. Download the script;

2. Download the libraries (feature extractors);

3. Copy the libraries to the lib folder of PostgreSQL;

4. Create a database called template_extended1;

5. Create a new database application using template_extended1 as the template.

Page 29: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Outline

• Content-based Image Retrieval (CBIR)

• PostgreSQL with Image-handling Extension (PostgreSQL-IE)

• SISPRIM – A Research System that Supports CBIR Applied to the Analysis of Mammograms

• Remarks

Page 30: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIM – A Research System that Supports CBIR Applied to Mammograms

The system is composed of:– A Mammographic Database.– A Research Engine.– A Web Graphical Interface (GUI).

• Available via the Web.

• Part of AMDI – Indexed Atlas of Digital Mammograms.

Page 31: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIM

Page 32: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIM Mammographic Database

• Modeled using PostgreSQL-IE Database Management System.

• Includes:– All available mammographic views

(CC and MLO views).– Contours of the breast, pectoral muscle,

lesions, and clusters of calcifications.– Radiological findings (local and global).– Diagnosis proven by biopsy.– Clinical history of the patient.– Lifestyle of the patient.

Page 33: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIM Research Engine

• Manages the actions of the user;• Manages the Web GUI which incorporates

facilities to pose complex queries as: return the age of the first pregnancy

and the patient_id associated with the 5 images most similar to the image given as reference, and with the first pregnancy is after 40;

• Accesses the mammographic database, as required, to answer queries.

Page 34: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIMA Web Graphical User Interface

• Supports two kinds of users:

– Administrator interface: guides the user in the creation of new feature descriptors, new feature vectors, or new access methods.

– Researcher interface: guides the user to the resources previously configured.

Page 35: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIMAdministrator Interface

Page 36: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIMA Web Graphical Interface

• Supports two kinds of users:

– Administrator interface: guides the user in the creation of new feature descriptors, new feature vectors, or new access methods.

– Researcher interface: guides the user to the resources previously configured.

Page 37: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

SISPRIMA Web Graphical Interface

return the age of the first pregnancy and the patient_id associated with the 5 images most similar to the image given as reference, and with the first pregnancy is after 40;

Page 38: PostgreSQL-IE: An Image-handling Extension for PostgreSQL
Page 39: PostgreSQL-IE: An Image-handling Extension for PostgreSQL
Page 40: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Remarks• PostgreSQL-IE is open source,

extendable, and easy to install;

• At present, PostgreSQL-IE possesses 12 feature descriptors organized in four libraries: – further developments are in progress;

• The available libraries are developed for Windows and Linux operating systems;

Page 41: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Remarks

• To date, PostgreSQL-IE makes available two similarity operators (KNN, range): – new studies are being conducted to extend

PostgreSQL-IE with two new similarity operators based on fuzzy sets

• New access methods have to be developed;

Page 42: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Remarks• In order to validate PostgreSQL-IE we

developed SISPRIM, a research system that supports CBIR applied to the analysis of mammograms;

• The time spent on SISPRIM implementation was reduced by using PostgreSQL-IE

• The script to install PostgreSQL-IE is available at www.lcc.ufu.br/pdi/downloads

Page 43: PostgreSQL-IE: An Image-handling Extension for PostgreSQL

Thank you!

Acknowledgment

• CNPq – Conselho Nacional de Desenvolvimento Científico e Tecnológico do Brasil.

• Catalyst Program of Research Services, University of Calgary, Canada.

[email protected] www.lcc.ufu.br/pdi


Recommended