<!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>An Ensemble Based Method for the Classification of Flooding Event Using Social Media Data</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Muhammad Hanif</string-name>
          <email>hanif.soomro@nu.edu.pk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Huzaifa Joozer</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Muhammad Atif Tahir</string-name>
          <email>atif.tahir@nu.edu.pk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Muhammad Rafi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National University of Computer and Emerging Sciences, Karachi Campus</institution>
          ,
          <country country="PK">Pakistan</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <fpage>14</fpage>
      <lpage>15</lpage>
      <abstract>
        <p>This paper presents the method proposed and implemented by team FAST-NU-DS, in "The Flood-related Multimedia Task at MediaEval 2020". The task includes data of tweets in Italian language, extracted during floods between 2017 and 2019. The proposed method has utilized text of the tweet and its relevant image for the purpose of binary classification, which identifies whether or not the particular tweet is about flood incident. The proposed method has designed an ensemble based method for the classification of tweets, on the basis of textual data, visual data and combination of both. For visual data, the proposed method has utilized the technique of data augmentation for oversampling of the minority class and applied stratified random sampling for the selection of input. Moreover, Visual Geometry Group (VGG16) convolutional neural network, pretrained on ImageNet and Places365 is utilized by the proposed method. For classification of textual data, the technique of Term Frequency Inverse Document Frequency (TF-IDF) is utilized for feature representation and Multinomial Naive-Bayes classifier is used for the prediction of class. The prediction of image and text are combined for the prediction of each instance. The evaluation of method revealed 36.31%, 20.76% and 27.86% F1-score for text, image and combination of both, respectively.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>In the last years, usage of social media is increased by many folds
and social media data is emerged as a valuable resource of
information. Data retrieved from social media is faster than other mass
communication mediums, as its subscribers are available
everywhere. Hence, it provides frequent and abundant data, which could
be useful in solving various challenging problems, including
flooding incidents.</p>
      <p>
        The "Flood-related multimedia task at MediaEval 2020" has
focused on usage of social media visual and textual contents for
the classification of flooding incidents [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. In visual data, it has
been observed that the dataset related to flood requires
appropriate method to deal with class imbalance problem [
        <xref ref-type="bibr" rid="ref3 ref4 ref5">3–5</xref>
        ]. Hence the
proposed method has utilized stratified random samples from each
class, which are equal in size. Moreover, it is also observed that the
ImageNet weights used for pre-trained models may not produce
efective results, as ImageNet classification focuses on object level
information. In this regard, scene level information along with
object level information may produce more accurate results. In textual
data, the problem of class-imbalance remains a challenge in
prediction of flooding incidents, along with feature representation and
classifier selection challenges [
        <xref ref-type="bibr" rid="ref1 ref11 ref9">1, 9, 11</xref>
        ]. Therefore, the proposed
method has utilized combination of weights from Places365 [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]
and ImageNet [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] for the binary classification of "Flood related
multimedia task" [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>APPROACH</title>
      <p>The method has been implemented in three phases, initially separate
classification is performed by using visual data and text for this
binary classification and finally results obtained from text and visual
data are combined to generate final outcome. All three phases are
discussed below:
2.1</p>
    </sec>
    <sec id="sec-3">
      <title>Visual Data</title>
      <p>
        The method of processing visual data for the task of "Flood related
multimedia task" [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is shown in Figure 1.
      </p>
      <p>
        The dataset of the "Flood related multimedia task" [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is higly
imbalanced as it includes a quantity of 5,419 instances for
developmentset, out of which only 1126 are related to minority class, which
shows indication of flood. Initially, proposed method has utilized
technique of data augmentation to oversample the minority class.
For that purpose, python based library "Augmentor" [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] has been
used to create multiple copies of each image, by varying the
parameters of rotate, flip and zoom. Three diferent copies of each image
in minority class are created.
      </p>
      <p>After oversampling of minority class, stratified random sampling
is applied for the selection of input samples for training of model.
From each of the class, equal quantity of samples (i.e. 3000) are
randomly selected. There are (N=15) number of input samples are
created.</p>
      <p>
        For the training, Visual Geometry Group (VGG16) [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]
Convolutional Neural Network (CNN) is selected. It is launched during
ImageNet Large Scale Visual Recognition Challenge (ILSVRC), 2014
and produced efective results in image classification and image
localization. The proposed method has utilized hybrid weights of
Places365 [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] and ImageNet [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The dataset of ImageNet focuses
on object based information and it is comprised of 1000 classes.
While, images in dataset of Places365 are distributed into 365 classes
and its focus is on scene level information. These weights from
both ImageNet and Places365 are combined to form hybrid weights,
having 1365 classes. The VGG16 pre-trained on Hybrid weights is
retrained on the dataset for the task of "Flood related multimedia
task". During training, diferent experiments are performed to find
out the best combination of hyper-parameters for the retraining of
VGG16 (Hybrid), including dropout and learning rate. The dropout
value and learning rate are set as 0.3 and 10−6, respectively. The
activation function of last layer has been changed from softmax to
sigmoid, which is more suitable for binary classification. The last
four layers of the model have been retrained, however rest of the
layers are freezed so that they could keep their original learning of
hybrid dataset. For each of the N input samples, 70% of images are
used for training and remaining 30% are used for validation of the
model. For each of the training sample, separate model is trained.
Later on, each model is utilized for separate prediction.
      </p>
      <p>Each of the trained model is tested by providing unseen images.
For each of the image in test-set, N number of predictions are
generated from each of the model. Finally, majority voting is applied
to find out the class prediction.
2.2</p>
    </sec>
    <sec id="sec-4">
      <title>Text</title>
      <p>
        For the processing of textual data, description of the tweets is
considered for the classification of each tweet, as shown in Figure 2.
The dataset for "Flood related multimedia task" [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] contains tweets
in Italian language. So, googletrans [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] library has been used to
translate each tweet from Italian language to English language. For
that, all the symbols and punctuations are removed from the tweets.
Then tweets were translate one by one into English language. Stop
words have very little significance in classification of the tweets, so
after translation, stop words are removed from each of the tweet.
The problem of class imbalance is solved by oversampling the tweets
of minority class and make them equal to the quantity of majority
class. Subsequently, Term Frequency Inverse Document Frequency
(TF-IDF) [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] is calculated for the tweets, and vocabulary of top 5000
is selected for the training. Later on, diferent classifiers are applied
by distributing training set into 80% and 20% each for training
and validation, including Support Vector Machine (SVM), Random
Forest (RF) and Multinomial Naive Bayes. However, Multinomial
Naive Bayes has produced the best results. The prediction of test
data is performed through Multinomial Nave Bayes. The prediction
result for each of the tweets is extracted as discrete 1 or 0 as well
as in the form of probability. The discrete prediction is used for
the submission of Run 2 (Textual) data. However, the probabilistic
results are used during the average calculation of text and visual
data, as shown in Figure 3.
2.3
      </p>
    </sec>
    <sec id="sec-5">
      <title>An ensemble of Text and Visual Data</title>
      <p>The probabilistic outcome is extracted from both image and text of
each tweet in test-set and averaged to produce final prediction, as
shown in Figure 3. For visual information, an ensemble of
prediction by fifteen diferent models is extracted in form of probability
and averaged to produce probabilistic outcome. Similarly, the
outcome received from Multinomial Naive-Bayes classifier is extracted
in probabilistic form. Finally, outcomes from text and images are
averaged for prediction of each tweet in test-set.
3</p>
    </sec>
    <sec id="sec-6">
      <title>RESULTS AND ANALYSIS</title>
      <p>An ensemble based method has achieved 20.76% F1-score for images,
which is best in all submitted results for MediaEval, 2020 for visual
data. It has been observed that in both classes of train set, very
similar images are available which contains almost identical maps.
This might confuse deep learning model to diferentiate between
lfood and no-flood. Moreover, quantity of images in train-set could
be increased by using more versatile techniques of data
augmentation. For the text, proposed method has revealed 36.31% F1-score.
Results may be improved using an ensemble of multiple classifiers.
Moreover, diferent deep learning based techniques and pre-trained
models of the text could be utilized to improve the feature
representation and classification. The fusion of text and visual data
has produced 27.86% F1-score, which is also best in all submitted
results for the fusion of text and visual data. The results for visual,
textual and combination of both visual and textual are summarized
in table 1.
4</p>
    </sec>
    <sec id="sec-7">
      <title>CONCLUSION</title>
      <p>The research has proposed an ensemble based approach which
has combined deep learning and shallow learning based methods,
for the classification of flooding incident by using text and visual
data extracted from social media data. The proposed approach has
utilized data augmentation for the oversampling of images in
minority class. Also, stratified random sample selection is performed,
along with transfer learning for the classification of visual data. For
textual data, Multinomial Naive-Bayes algorithm is utilized along
with the technique of TF-IDF. Both textual and visual results are
averaged to produce the combined outcome. In future, method could
be improved by using better techniques for increasing the quantity
of images and textual data in the minority class of training-set.</p>
    </sec>
    <sec id="sec-8">
      <title>ACKNOWLEDGMENTS</title>
      <p>This research work was funded by Higher Education Commission
(HEC) Pakistan and Ministry of Planning Development and Reforms
under the National Center in Big Data and Cloud Computing.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Sheharyar</given-names>
            <surname>Ahmad</surname>
          </string-name>
          , Kashif Ahmad, Nasir Ahmad, and
          <string-name>
            <given-names>Nicola</given-names>
            <surname>Conci</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Convolutional Neural Networks for Disaster Images Retrieval.</article-title>
          .
          <source>In Proc. of the MediaEval 2017 Workshop.</source>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Stelios</given-names>
            <surname>Andreadis</surname>
          </string-name>
          , Ilias Gialampoukidis, Anastasios Karakostas, Stefanos Vrochidis, Ioannis Kompatsiaris, Roberto Fiorin, Daniele Norbiato, and
          <string-name>
            <given-names>Michele</given-names>
            <surname>Ferri</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>The Flood-related Multimedia Task at MediaEval</article-title>
          <year>2020</year>
          . (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Bischke</given-names>
            <surname>Benjamin</surname>
          </string-name>
          ,
          <string-name>
            <surname>Helber</surname>
            <given-names>Patrick</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhao</surname>
            <given-names>Zhengyu</given-names>
          </string-name>
          , Bruijn Jens de, and Borth Damian.
          <year>2018</year>
          .
          <article-title>The multimedia satellite task at mediaeval 2018: Emergency response for flooding events</article-title>
          .
          <source>(October</source>
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Benjamin</given-names>
            <surname>Bischke</surname>
          </string-name>
          , Patrick Helber, Erkan Basar, Simon Brugman,
          <string-name>
            <given-names>Zhengyu</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and Konstantin</given-names>
            <surname>Pogorelov</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>The multimedia satellite task at mediaeval 2019: Flood severity estimation</article-title>
          .
          <source>In Proc. of the MediaEval 2019 Workshop.</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Benjamin</given-names>
            <surname>Bischke</surname>
          </string-name>
          , Patrick Helber, Christian Schulze, Srinivasan Venkat, Andreas Dengel, and
          <string-name>
            <given-names>Damian</given-names>
            <surname>Borth</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>The multimedia satellite task at mediaeval 2017: Emergence response for flooding events</article-title>
          . (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Marcus</surname>
            <given-names>D</given-names>
          </string-name>
          <string-name>
            <surname>Bloice</surname>
            ,
            <given-names>Christof</given-names>
          </string-name>
          <string-name>
            <surname>Stocker</surname>
            , and
            <given-names>Andreas</given-names>
          </string-name>
          <string-name>
            <surname>Holzinger</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Augmentor: an image augmentation library for machine learning</article-title>
          .
          <source>arXiv preprint arXiv:1708.04680</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Jia</given-names>
            <surname>Deng</surname>
          </string-name>
          , Wei Dong, Richard Socher,
          <string-name>
            <surname>Li-Jia</surname>
            <given-names>Li</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Kai</given-names>
            <surname>Li</surname>
          </string-name>
          , and
          <string-name>
            <surname>Li</surname>
          </string-name>
          Fei-Fei.
          <year>2009</year>
          .
          <article-title>Imagenet: A large-scale hierarchical image database</article-title>
          . In 2009 IEEE conference
          <article-title>on computer vision and pattern recognition</article-title>
          .
          <source>IEEE</source>
          ,
          <fpage>248</fpage>
          -
          <lpage>255</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Suhun</given-names>
            <surname>Han</surname>
          </string-name>
          .
          <year>2020</year>
          .
          <article-title>googletrans 3.0.0</article-title>
          . https://pypi.org/project/ googletrans/. (
          <year>2020</year>
          ).
          <source>Accessed: 2020-11-1.</source>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Muhammad</given-names>
            <surname>Hanif</surname>
          </string-name>
          , Muhammad Atif Tahir, Mahrukh Khan, and
          <string-name>
            <given-names>Muhammad</given-names>
            <surname>Rafi</surname>
          </string-name>
          .
          <year>2017</year>
          .
          <article-title>Flood detection using Social Media Data and Spectral Regression based Kernel Discriminant Analysis</article-title>
          .
          <source>In Proc. of the MediaEval 2017 Workshop</source>
          , Dublin, Ireland.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Ryan</surname>
            <given-names>Lagerstrom</given-names>
          </string-name>
          , Yulia Arzhaeva, Piotr Szul, Oliver Obst, Robert Power, Bella Robinson, and
          <string-name>
            <given-names>Tomasz</given-names>
            <surname>Bednarz</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Image classification to support emergency situation awareness</article-title>
          .
          <source>Frontiers in Robotics and AI</source>
          <volume>3</volume>
          (
          <year>2016</year>
          ),
          <fpage>54</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Keiller</surname>
            <given-names>Nogueira</given-names>
          </string-name>
          , Samuel G Fadel, Ícaro C Dourado,
          <string-name>
            <surname>Rafael de Oliveira Werneck</surname>
          </string-name>
          , Javier AV Muñoz, Otávio AB Penatti, Rodrigo Tripodi Calumby,
          <string-name>
            <surname>Lin</surname>
            <given-names>Li</given-names>
          </string-name>
          ,
          <source>Jefersson Alex dos Santos, and Ricardo da Silva Torres</source>
          .
          <year>2017</year>
          .
          <article-title>Data-Driven Flood Detection using Neural Networks</article-title>
          .
          <source>In Proc. of the MediaEval 2017 Workshop.</source>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Gerard</given-names>
            <surname>Salton</surname>
          </string-name>
          and
          <string-name>
            <given-names>Christopher</given-names>
            <surname>Buckley</surname>
          </string-name>
          .
          <year>1988</year>
          .
          <article-title>Term-weighting approaches in automatic text retrieval</article-title>
          .
          <source>Information processing &amp; management 24</source>
          ,
          <issue>5</issue>
          (
          <year>1988</year>
          ),
          <fpage>513</fpage>
          -
          <lpage>523</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Karen</given-names>
            <surname>Simonyan</surname>
          </string-name>
          and
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Zisserman</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Very deep convolutional networks for large-scale image recognition</article-title>
          .
          <source>arXiv preprint arXiv:1409.1556</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>