<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>AMRITA-CEN@FIRE2015: Automated Story Illustration using Word Embedding</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sanjay S.P</string-name>
          <email>sanjay.poongs@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nivedhitha Ezhilarasan</string-name>
          <email>e.nivedhitha@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anand Kumar M and Soman K P</string-name>
          <email>m_anandkumar@cb.amrita.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Centre for Excellence in, Computational Engineering and</institution>
          ,
          <addr-line>Networking, Amrita Vishwa Vidyapeetham, Ettimadai, Coimbatore.</addr-line>
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2008</year>
      </pub-date>
      <fpage>67</fpage>
      <lpage>70</lpage>
      <abstract>
        <p>Story books are copiously filled with image illustration in which the illustrations are essential to the enjoyment and understanding of the story. Often the photos themselves turn out to be more important than content. In such cases, our principle job is to locate the best pictures to show. Stories composed for kids must be improved with pictures to manage the enthusiasm of a tyke, for words usually can't do a picture justice. This system is built as a part of shared task of Forum of Information Retrieval and Evaluation (FIRE) 2015 workshop. In this system we provide a methodology for automatically illustrating a given Children's story using the Wikipedia ImageCLEF 2010 dataset, with appropriate images for better learning and understanding.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. INTRODUCTION</title>
      <p>A kid is touchy to pictures even before he/she can talk. This is not
shocking in the event that we think about that as an infant effectively
recognizes its mom's face and outsiders. The kid's mom, sister,
sibling and the outsider can all be viewed as living and moving
pictures. In the same way, a kid will perceive a most loved toy or
pet.Stories are always preferred when they tag along with beautiful
images depicting the content. This clearly gives us the importance of
giving image Illustration in Children’s short stories. But we don’t
have many systems that can automatically convert any general
textual information into pictorial representation. This paper
describes our system for FIRE 2015 Automated story Illustration
using the Wikipedia ImageCLEF 2010 dataset. This task focuses on
automatically illustrating the story with corresponding images
thereby making reading and understanding better. One can
understand the core content of the story, just by looking at the
images.
A sample output (Figure 1) for the story “THE FOX AND THE
CROW” is shown. An image corresponding to each entity is
produced. Our novel story Illustration system automatically
generates a picture that aims to convey the gist of the content of
general natural language text.</p>
    </sec>
    <sec id="sec-2">
      <title>2. RELATED WORK</title>
      <p>
        Our present work is inspired and triggered by a rich resource work
done prior to us. A similar system called story picturing engine, is
built using the techniques designed for content-based image retrieval
and textual information retrieval [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. In recent years, learned
statistical models have been widely used in linguistic indexing of
pictures [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Also image annotations can be modeled using latent
Dirichlet allocation (LDA) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>
        Here we try to analyze the research issues related to Image
illustration mentioned in this section. The task of automatically
generating the words that describe the picture is called Image
annotation. Image annotation is used for image search and retrieval
applications [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Story Illustration, on the contrary, aims in
substituting the set of images that best describes the given text. In
the proposed work it is the story. So we can call these two problems
the inverse of each other. To rank pictures in for a given story, in
this system, we have used an unsupervised algorithm. Our system is
entirely based on the concept of Word Embedding. Word embedding
is a mapping of a word to an n-dimensional vector space. This real
valued vector representation captures semantic and syntactic
features. Gensim is an open source tool for python which is used for
implementing the concept of word embedding. Our ranking scheme
based on TFIDF using gensim. We have represented one ranked set
of images for one entity. So when the entire story is queried, the list
of images that are produced can effectively produce the story line.
Other variations and implementation are explained in detail in
section 3.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. SYSTEM ARCHITECHTURE</title>
      <sec id="sec-3-1">
        <title>The task and working methodology is as follows:</title>
        <p>In the development phase initially a set of five children’s short
stories with important entities and events, that needs illustration
were already provided. Our system provides one ranked list of
images corresponding to each important entity and event in a story.
At a later stage a set of 22 children’s short stories were given for
illustration. We have provided a unique image ranking methodology
that effectively computes the importance of each picture and outputs
a ranked list of images which aptly describes the story.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3.1 Dataset analysis</title>
      <p>In development data set input Query is constructed and annotated
with their label by using Python. It contains a set of five short
stories. The most important entities and events that effectively
summarize the story were already provided which reduced the
overhead of finding them. This information serves as the input to
query the image database to retrieve the pertinent image. In this task
we use the ImageCLEF Wikipedia Image Retrieval 2010 dataset.
This dataset consists of 237,434 images along with their captions.
Captions are available in English, French and/or German. Complete
language statistics, image files and their captions are found in
the ImageCLEF website. Metadata are provided as a single
metadata.zip archive which is split into 26 directories (from 1 to 26).
“metadata/1” contains XML files from 0.xml to 9999.xml,
“metadata/2” contains images from10000.xml to 19999.xml etc.
We have used only English dataset for developing our system. We
extracted important information such as caption, description
comments etc., from the database and created a file, which is then
queried to obtain the ranked list of images corresponding to each
story. The extracted information is stored in a model file. Figure.2
depicts the procedure of how the information from ImageCLEF
2010 is extracted.</p>
      <p>The main components in the .xml files are:
&lt;Image&gt;
&lt; name &gt;
&lt;description&gt;
&lt;comment&gt;
&lt;caption&gt;
&lt;comment&gt;
&lt;license&gt;
Given a query, the search methodology retrieves relevant pictures by
analyzing the image caption textual descriptions found adjacent to
the image, and other text-related factors such as the file name of the
image which are already extracted and stored in model file. This
extraction process involves converting all the xml files that contains
information about the images into a text file named as “Text model
of image database”. Only necessary information about the image,
from the XML file is filtered out.</p>
    </sec>
    <sec id="sec-5">
      <title>3.2 Model Description</title>
      <p>The input data, story was in XML format and is pre-processed and
converted into a simple “.TXT” named STORY.TXT file for fast
searching of the data . This contains information about entity, event
and the entire story. This is called story entity event block in the
figure 3.1 .The whole set of information is passed to a extraction unit
where the important key words such as entity and events are
extracted .The Image extraction unit will search through the
MODEL.TXT files which is also called ‘Text model of image data
base block’. The extracted information is then stored for processing
in the local variable which is referred as Local Data Base. The
extracted text in the local data base is then given to the training
model of TFIDF from GENSIM. It will create a word2vec features
form the documents. These model files are created for each Entity in
the story which is called the model Block in the figure 3.1
The text extraction block will join the story, entity and events .The
expanded text is now passed to extract the hypernyms which will get
the example sentences of the hypernyms while the expanded text is
also passed to WSD block which will extract the sense of the entity
used in the story and related example text is extracted from WORD
NET. The extracted hypernyms and WSD text are added to the
extracted text this is called Text Expansion block. The expanded text
is now passed as a query to the model file created by the GENSIM
which will map the query and then rank all Images according to the
TFIDF weights. The weight of the Images will be in 0-1 scale then
it is mapped to 0-100 scale. The mapped images are ranked and then
extracted images with the rank are converted to “.TREC” file which
is then evaluated by the FIRE 2015. The output is also generated in
the form of HTML page with the best mapped images illustrating the
story with pictures.</p>
    </sec>
    <sec id="sec-6">
      <title>4. RANKING ALGORITHM</title>
      <p>The result from TFIDF is in a scale of 0-1. Images have to be ranked
based on the results obtained. We have divided the values into a 5
sub category form 0-4 based on below mentioned method. To
compute this, we first compute a value called Range. Once when the
range is computed, we assign the rank based on it. If the value is
below the range, we assign “0”. If the value is below twice the
range, then we assign rank to be “1”, for the range below thrice the
rank, we assign “2” and so on. This computation goes on till we
assign the rank “4”, which is the maximum possible rank. The
pseudocode is as follows:</p>
    </sec>
    <sec id="sec-7">
      <title>5. TOOLS AND METHODS</title>
      <p>
        Word embedding is a mapping of a word to a d-dimensional vector
space. This real valued vector representation captures semantic and
syntactic features. We have used gensim to implement this. For
Vector Space modeling we have used Gensim toolkit. It is
implemented in python and one can improve the performance using
NumPy, SciPy etc. Efficient online algorithms are used in dealing
with huge text data with the help of Gensim. Gensim has packages
included for TF-IDF, latent semantic evaluation (LSA) and latent
Dirichlet allocation (LDA), along with allotted parallel variations
random projections, Google's word2vec and document2vec
algorithms, etc. It finds its application in commercial as well as
academic areas [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. We have imported gensim from NLTK. NLTK
is a major platform for building Python applications related to text
analytics. Libraries for tokenization, stemming, tagging, parsing,
and much more are included in here [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>We have filtered out important information from the story using the
concept of hypernym and hyponym. Hypernyms and hyponyms are
semantic classes of words. Hypernyms are more broad in
significance (hyper = “over”) and hyponyms are more particular
(hypo = “under”). Let us try to understand the concepts by some
examples.</p>
      <p>Example: color is a generalized term for all the colors. We call it the
hypernym. Purple, green, red, blue etc. are hyponyms of color.</p>
      <p>Figure 3</p>
    </sec>
    <sec id="sec-8">
      <title>6. EVALUATION AND RESULT</title>
      <p>Evaluation is conducted by means of precision-at-K (P@K) and
mean average precision (MAP) in relation to manual relevance
assessments. Each important entity or event in a story will have a
relevance list associated with it. P@K and MAP for each annotation
are computed against these relevance scores. There were two teams
that participated, including us. Our run is based on TFIDF. Our
methodology has given better results when evaluated using MAP
and B-pref.</p>
      <sec id="sec-8-1">
        <title>B-pref</title>
        <p>In the proposed work we have used TFIDF to generate a sequence of
images for the corresponding story. We have successfully
implemented a text-to- picture engine that can effectively understand
the core content of the story, and produce a set of images that best
represents the story. The results are displayed in a web page and for
evaluation purpose we have also generated a “.TREC” file. The
results were evaluated by FIRE team and it has given considerably
good accuracy. In future this can be extended to create gaming units,
generate animation based on the story, to educate mentally retarded
children an in the rehabilitation of brain-injured patients</p>
      </sec>
    </sec>
    <sec id="sec-9">
      <title>AKNOWLEDGEMENT</title>
      <p>We would like to thank Dr.Debasis Gangly and to Mr.Iacer Calixto,
ADAPT Centre, Dublin City University (DCU), and for FIRE2015
team for organizing such a great event and guiding us through the
entire journey.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Tomlinson</surname>
          </string-name>
          ,
          <string-name>
            <surname>Carl</surname>
            <given-names>M.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Carol</surname>
          </string-name>
          Lynch-Brown.
          <article-title>Essentials of children's literature</article-title>
          .
          <source>Allyn &amp; Bacon</source>
          , 1996
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <article-title>[2] “The Importance of Illustrations in Children's Books” in Illustrating for Children edited by Mabel Segun</article-title>
          .
          <source>Ibadan: CLAN</source>
          ,
          <year>1988</year>
          . pp
          <fpage>25</fpage>
          -
          <lpage>27</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Goldberg</surname>
            ,
            <given-names>Andrew B.</given-names>
          </string-name>
          , et al. “
          <article-title>Easy as ABC: facilitating pictorial communication via semantically enhanced layout</article-title>
          .
          <source>” Proceedings</source>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <surname>Xiaojin</surname>
          </string-name>
          , et al.
          <article-title>"A text-to-picture synthesis system for augmenting communication</article-title>
          .
          <source>" AAAI</source>
          . Vol.
          <volume>7</volume>
          .
          <year>2007</year>
          ..
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Joshi</surname>
            , Dhiraj, James
            <given-names>Z.</given-names>
          </string-name>
          <string-name>
            <surname>Wang</surname>
            , and
            <given-names>Jia</given-names>
          </string-name>
          <string-name>
            <surname>Li</surname>
          </string-name>
          .
          <article-title>"The Story Picturing Engine---a system for automatic text illustration." ACM Transactions on Multimedia Computing, Communications, and Applications (TOMM) 2</article-title>
          .1 (
          <year>2006</year>
          ):
          <fpage>68</fpage>
          -
          <lpage>89</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Feng</surname>
            , Yansong, and
            <given-names>Mirella</given-names>
          </string-name>
          <string-name>
            <surname>Lapata</surname>
          </string-name>
          .
          <article-title>"Topic models for image annotation and text illustration." Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics</article-title>
          .
          <source>Association for Computational Linguistics</source>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <surname>Jia</surname>
            , and
            <given-names>James Z.</given-names>
          </string-name>
          <string-name>
            <surname>Wang</surname>
          </string-name>
          .
          <article-title>"Automatic linguistic indexing of pictures by a statistical modeling approach." Pattern Analysis and Machine Intelligence</article-title>
          ,
          <source>IEEE Transactions on 25.9</source>
          (
          <year>2003</year>
          ):
          <fpage>1075</fpage>
          -
          <lpage>1088</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Řehůřek</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Sojka</surname>
          </string-name>
          .
          <article-title>"Gensim-Python Framework for Vector Space Mo delling</article-title>
          .
          <source>" NLP Centre</source>
          , Faculty of Informatics, Masaryk University, Brno, Czech
          <string-name>
            <surname>Republic</surname>
          </string-name>
          (
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Bird</surname>
            ,
            <given-names>Steven.</given-names>
          </string-name>
          <article-title>"NLTK: the natural language toolkit." Proceedings of the COLING/ACL on Interactive presentation sessions</article-title>
          .
          <source>Association for Computational Linguistics</source>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Blei</surname>
            ,
            <given-names>David M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Andrew</surname>
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Ng</surname>
            , and
            <given-names>Michael I.</given-names>
          </string-name>
          <string-name>
            <surname>Jordan</surname>
          </string-name>
          .
          <article-title>"Latent dirichlet allocation."</article-title>
          <source>the Journal of machine Learning research 3</source>
          (
          <year>2003</year>
          ):
          <fpage>993</fpage>
          -
          <lpage>1022</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>