Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Fep bne demoday


Published on

Presentation introducing IMPACT project presented by Isabel Bordes Cabrera during demo session held at the BNE 5th of October 2011.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Fep bne demoday

  1. 1. Structural analysis of documents Functional Extension Parser (FEP) Günter Mühlberger University Innsbruck Library (UIBK)
  2. 2. Agenda <ul><li>Introduction </li></ul><ul><li>Features </li></ul><ul><ul><li>What do we recognise with the structural analysis? </li></ul></ul><ul><li>Benefits </li></ul><ul><ul><li>Why is structural analysis useful? </li></ul></ul><ul><li>Architecture </li></ul><ul><ul><li>How does it work? </li></ul></ul><ul><li>Results </li></ul><ul><ul><li>How good are we? </li></ul></ul><ul><li>Roadmap </li></ul><ul><ul><li>When will it come into being? </li></ul></ul><ul><li>Business </li></ul><ul><ul><li>Which offers will be available? </li></ul></ul>
  3. 3. Introduction <ul><li>Document understanding platform </li></ul><ul><li>Try to enhance and exploit the logical structure of documents for </li></ul><ul><ul><li>Display </li></ul></ul><ul><ul><li>Navigation </li></ul></ul><ul><ul><li>Retrieval </li></ul></ul><ul><li>Enhance OCR output with structural metadata </li></ul><ul><ul><li>Fully automated processing </li></ul></ul><ul><ul><li>Interactive correction </li></ul></ul>IMPACT EVA/MINERVA 12 th Nov. 2008
  4. 4. Features <ul><li>General </li></ul><ul><ul><li>We are able to recognise all structural elements which have some layout representation: e.g. region, size, typeface, distance to other elements, etc. </li></ul></ul><ul><ul><li>Focus in IMPACT: Basic features which are typical for all documents </li></ul></ul><ul><ul><li>Rules set can be extended or specified according to other datasets </li></ul></ul><ul><ul><ul><li>E.g. journals, dissertations, index cards, yearbooks, newspapers, etc. </li></ul></ul></ul><ul><ul><li>The better the OCR, the better our structural analysis </li></ul></ul><ul><li>Basic features for books </li></ul><ul><ul><li>Page numbers </li></ul></ul><ul><ul><li>Running titles (headers) </li></ul></ul><ul><ul><li>Print space </li></ul></ul><ul><ul><li>Footnotes </li></ul></ul><ul><ul><li>Signature marks </li></ul></ul><ul><ul><li>Headings (within the running text) </li></ul></ul><ul><ul><li>Table of contents entries (additional to headings) </li></ul></ul><ul><ul><li>Front/Body/Back </li></ul></ul><ul><ul><li>Paragraphs </li></ul></ul>
  5. 5. <ul><li>Print space </li></ul><ul><li>Headings </li></ul><ul><li>Footnotes </li></ul>
  6. 6. <ul><li>Running title (header) </li></ul><ul><li>Page number </li></ul><ul><li>Signature mark </li></ul>
  7. 7. <ul><li>Table of contents </li></ul><ul><ul><li>(linked with headings in the running text, respectively page numbers) </li></ul></ul>
  8. 8. Benefits (1) <ul><li>Display </li></ul><ul><ul><li>Correct print space allows to display images centred (no flipping between pages) </li></ul></ul><ul><li>Search & retrieval </li></ul><ul><ul><li>Scoring of results </li></ul></ul><ul><ul><ul><li>Could take into account structural data (headings, footnotes) </li></ul></ul></ul><ul><ul><li>Noise reduction </li></ul></ul><ul><ul><ul><li>Front, body, back are separated, text from the front is often misleading </li></ul></ul></ul><ul><ul><ul><li>Running titles repeat the same words </li></ul></ul></ul><ul><ul><ul><li>Footnotes can be included or excluded </li></ul></ul></ul><ul><ul><li>Facetted search </li></ul></ul><ul><ul><ul><li>Results can be displayed for running text, footnotes, headings </li></ul></ul></ul>
  9. 9. Benefits (2) <ul><li>Navigation </li></ul><ul><ul><li>Page numbers allow usage of original table of contents </li></ul></ul><ul><ul><li>Original table of contents can be linked with headings/page numbers in the book </li></ul></ul><ul><li>Document editing </li></ul><ul><ul><li>Further mark up (e.g. TEI) is supported </li></ul></ul><ul><ul><li>Manual preparation for Print-on-Demand is eased (print space) </li></ul></ul><ul><ul><li>Selective OCR correction can be applied: </li></ul></ul><ul><ul><li>E.g. only headings, running text, footnotes could be fed to CONCERT </li></ul></ul><ul><li>Document matching </li></ul><ul><ul><li>Contributions or footnotes can be matched with existing bibliographical databases </li></ul></ul>
  10. 10. <ul><li>Improved display in the Internet and PDF </li></ul>
  11. 11. <ul><li>Refinement of full-text search </li></ul><ul><li>Facets for e.g. </li></ul><ul><ul><li>Running text </li></ul></ul><ul><ul><li>Footnotes </li></ul></ul><ul><ul><li>Headings </li></ul></ul><ul><li>Less noise </li></ul><ul><ul><li>Running titles, signature marks excluded from search </li></ul></ul>
  12. 12. <ul><li>Clickable table of contents entries </li></ul><ul><ul><li>Google style </li></ul></ul><ul><li>Selective OCR correction </li></ul><ul><ul><li>Correct only ToC, headings, footnotes, etc. </li></ul></ul>
  13. 13. <ul><li>Matching of documents with external sources </li></ul><ul><ul><li>Match footnotes with library catalogues (bibliographies)Clickable table of content </li></ul></ul><ul><ul><li>Match table of contents entries and headings with bibliographies </li></ul></ul>
  14. 14. <ul><li>Improved editing </li></ul><ul><ul><li>Alternating print spaces for Print on Demand </li></ul></ul><ul><ul><li>Further processing for TEI editions etc. </li></ul></ul>
  15. 15. Architecture <ul><li>Input </li></ul><ul><ul><li>Results from OCR processing on word level (coordinates) </li></ul></ul><ul><ul><li>E.g. ALTO file, ABBYY XML file or Google HTML </li></ul></ul><ul><li>Output </li></ul><ul><ul><li>Structural annotations for recognized text features, e.g. page numbers, running titles, headings, etc. </li></ul></ul><ul><ul><li>E.g. XML, ALTO, METS, TEI, etc. </li></ul></ul><ul><li>General workflow </li></ul><ul><ul><li>OCR result files are parsed (FEP general XML format) </li></ul></ul><ul><ul><li>Rules set is applied to the dataset (rules are managed by rules engine) </li></ul></ul><ul><ul><li>Results are stored in a database </li></ul></ul><ul><ul><li>Export on various levels is provided </li></ul></ul><ul><li>Optional </li></ul><ul><ul><li>Online or offline correction (GUI) </li></ul></ul><ul><ul><li>Adaptation of rules set </li></ul></ul><ul><ul><li>Quality assurance on basis of ground truth </li></ul></ul>
  16. 16.
  17. 17. The FEP Core <ul><li>Based on expert-system like rule engine for java (Jess) </li></ul><ul><li>Both manually crafted rules and rules obtained by machine learning </li></ul><ul><li>Uses fuzzy logic to deal with uncertainty </li></ul><ul><li>Typical rules: </li></ul><ul><li>IF there is a numeral in the first line of the page AND this numeral is centred THEN this numeral may be the page number </li></ul><ul><li>IF there is a numeral in the first line of the page AND this numeral is at the right hand side of the page AND this numeral is an odd number THEN this numeral may be the page number </li></ul><ul><li>IF there is a numeral in the first line of the page AND this numeral is at the left hand side of the page AND this numeral is an even number THEN this numeral may be the page number. </li></ul>IMPACT EVA/MINERVA 12 th Nov. 2008
  18. 18. Results <ul><li>Basic rules set </li></ul><ul><ul><li>General features for books from 1700 to 2000 </li></ul></ul><ul><ul><li>Dataset of 155 books, 30.673 pages (141 training set, 41 evaluation set) </li></ul></ul><ul><ul><li>All books were manually annotated (ground truth) </li></ul></ul><ul><li>Recall, Precision, F-Measure </li></ul><ul><ul><li>E.g. 10 lines with headings in a book. We find 12 lines, 8 of them are correct, 4 are false. </li></ul></ul><ul><ul><li>Recall = 8 of 10 = 0,8 </li></ul></ul><ul><ul><li>Precision = 8 of 12 = 0,66 </li></ul></ul><ul><ul><li>F-Measure = 2*0.8*0.66/(0.8+0.66) = 0,72 </li></ul></ul><ul><li>More explanations </li></ul><ul><ul><li>Important: We are counting lines, not structural items! </li></ul></ul><ul><ul><ul><li>E.g. a heading consists of two lines (often with different size of typeface we have to find both to succeed) </li></ul></ul></ul><ul><ul><li>Difference between training and evaluation sets are marginal </li></ul></ul>
  19. 19. Results on Evaluation Set Recall Precision F-measure Running text 0,99 0,98 0,98 Footnotes 0,83 0,89 0,86 Page numbers 0,97 1 0,98 Running titles 0,97 1 0,98 Heading 0,85 0,80 0,82 Signature marks 0,68 0,89 0,77
  20. 20. Roadmap <ul><li>Summer 2011: Beta version </li></ul><ul><ul><li>Integration into IMPACT Interoperability Platform </li></ul></ul><ul><ul><li>Basic rules set: books from 1700 to 1900 </li></ul></ul><ul><li>End of the year: Version 1.0 </li></ul><ul><ul><li>Full featured version </li></ul></ul><ul><ul><li>Enhanced online correction interface </li></ul></ul><ul><ul><li>FEP as a service, not as a product for local installation </li></ul></ul>
  21. 21. Business offers <ul><li>Web-service for processing single volumes and correction </li></ul><ul><ul><li>Will be integrated into eBooks-on-Demand EOD Network </li></ul></ul><ul><ul><li>Already now 30 libraries are uploading their images to OCR server in Innsbruck </li></ul></ul><ul><ul><li>FEP will be an additional service for general material </li></ul></ul><ul><ul><li>Similar offers can be made to other libraries or networks as well </li></ul></ul><ul><li>Adaptation of rules set </li></ul><ul><ul><li>For specific datasets much more can be detected than just the basic features </li></ul></ul><ul><ul><li>E.g. journals with a fixed structure over many years or parliamentary papers, dissertations, research papers, etc. </li></ul></ul><ul><li>Onsite installations </li></ul><ul><ul><li>Not our focus, but could be done for very large datasets or due to legal requirements (e.g. Google images) </li></ul></ul>
  22. 22.
  23. 23.
  24. 24. IMPACT EVA/MINERVA 12 th Nov. 2008
  25. 25.
  26. 26. Results: TOC <ul><li>25 TOC entries in total </li></ul><ul><li>22 TOC entries are completely correct </li></ul><ul><li>1 TOC entry was missed </li></ul><ul><li>2 TOC entries are grouped incorrectly </li></ul><ul><li>1 TOC entry has no link </li></ul><ul><li>1 TOC entry has a wrong link </li></ul>IMPACT EVA/MINERVA 12 th Nov. 2008
  27. 27. Thank you for your attention!