<!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>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Knowledge-Based Event Prediction</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sola S. Shirai</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Debarun Bhattacharjya</string-name>
          <email>debarunb@us.ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oktie Hassanzadeh</string-name>
          <email>hassanzadeh@us.ibm.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Event Prediction, Case-Based Reasoning, Knowledge Graphs</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IBM Research</institution>
          ,
          <addr-line>Yorktown Heights, NY</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>ISWC'23: International Semantic Web Conference</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Rensselaer Polytechnic Institute</institution>
          ,
          <addr-line>Troy, NY</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Forecasting the potential efects of significant events is an important task that can help inform proactive decision making. Using interpretable and explainable models for this challenging task could be greatly beneficial for developing trust in the predictions made by the system. In this demo, we present a prototype event prediction system using the EvCBR model, which uses a case-based reasoning approach to make predictions about cause-efect event pairs in a Knowledge Graph (KG). By performing reasoning over past cases of causal event relations present in the KG, EvCBR naturally provides explainability to its prediction results while also enabling easy integration of existing open-source KGs. Importantly, EvCBR is designed to perform inductive link prediction on unseen events and requires no training, allowing it to overcome the common limitations of other KG completion models. We demonstrate how EvCBR can be used together with a portion of the Wikidata KG to query for relevant entities, make predictions about ongoing events, and visualize past event cases and reasoning paths through the KG that were used to make predictions for the ongoing events. Our code is available at https://doi.org/10.5281/zenodo.8341874.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>Being able to predict the efects of ongoing events is an important endeavor, enabling key
decision-makers to gain greater insights about potential future outcomes and thereby proactively
take measures to avail of opportunities or mitigate damage. As a simple example, one may
predict that an earthquake event may cause a tsunami event, which subsequently may be used to
issue evacuation warnings to local residents. As more variables become involved with the events,
it could also become more dificult to produce efective predictions – for example, whether an
earthquake leads to a tsunami will depend on the location where the event actually took place.
Making such predictions about the consequences of events is of interest to various domains and
use cases, such as disaster relief planning and financial analysis.</p>
      <p>
        While making predictions about events with less straightforward causes and consequences, it
is important for a model to be able to explain why it made certain predictions. This is valuable
nEvelop-O
(O. Hassanzadeh)
∗Part of this work was done while working at IBM Research.
CEUR
Workshop
Proceedings
to convince users why a prediction may be reasonable, as well as to understand situations under
which the predictions made by the model should not be taken at face value. A knowledge-driven
approach to event prediction could therefore be beneficial, since methods leveraging background
knowledge often tend to be more accurate but also more interpretable than many black-box
models. While the task of event prediction has a rich history across many domains [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], work
exploring the use of Knowledge Graphs (KGs) has been limited.
      </p>
      <p>
        To tackle this challenge, we utilize a case-based reasoning model, EvCBR [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], to frame
event prediction as a link-prediction task in a KG. EvCBR uses a KG containing examples of
past cause-efect event pairs to make predictions about the efect of a new event. The rich
semantic information captured within KGs allows us to leverage unambiguous and interoperable
representations of events, rather than relying solely on textual sources or time-series data. By
drawing upon cases of past events to make predictions, EvCBR also supports producing more
interpretable results with interesting connections to the past. Furthermore, EvCBR requires no
training, making it well suited to KGs which are constantly undergoing changes and additions
such as Wikidata [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        Compared to past work, EvCBR is not limited to only making predictions about entities seen
during training, as is the case for many embedding-based prediction methods over KGs [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ].
Compared to similar case-based reasoning methods introduced recently [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ], EvCBR introduces
improved methods to retrieve relevant cases as well as a novel framing of the link-prediction
problem to make our methods more suitable for the specific task of event prediction.
      </p>
    </sec>
    <sec id="sec-3">
      <title>2. 2-Hop Link Prediction for Event Prediction</title>
      <p>The core idea in our work is to frame event prediction using a KG as a 2-hop link prediction
task, where we aim to predict properties about some unseen efect event that is caused by a
cause event. To provide greater explainability and to support predictions for new cause events,
we develop a case-based reasoning approach to find similar past events and retrieve relevant
patterns to make predictions.</p>
      <p>
        Intuitively, case-based reasoning techniques aim to solve new problems using past cases of
similar problems and their solutions. Extending this idea to event prediction and data present in
KGs, we treat events in the KG connected by causal relations [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] as cases, and their “solutions”
consist of paths through the KG that can be used to connect the cause event to its efect’s
properties. EvCBR follows a similar set of steps, first retrieving cases of cause-efect event pairs
in the KG that are similar to a new prediction query, identifying reasoning paths that are present
in those cases, then applying them to make predictions about the efects of the query event.
      </p>
      <p>
        A high-level overview of EvCBR’s methodology is shown in Figure 1. Starting from a new
event, such as a Protest in Iran, we proceed with making predictions about a new efect event
that may be caused by it. This example is an illustration of our attempt to predict consequences
of the protests in Iran [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] on a KG curated before the protests started, therefore the KG does not
contain this cause event. We will use similar examples in our demonstration.
      </p>
      <p>Retrieving Cause-Efect Event Cases: For a given input event for which we wish to make
predictions, we first identify cases of cause-efect event pairs in the KG that are similar to our
new input event. We select cases based on the similarity of the case’s cause to our new query
event as well as the similarity of the case’s efect’s properties to the properties about our new,
unseen efect event for which we wish to make predictions.</p>
      <p>The similarity of individual entities in the KG are computed based on outgoing edges as
well as the similarity of their subclass hierarchy. For case similarity, we compute a measure of
importance for each relation based on how common the relation is, allowing us to weight rarer
relations or entities as being more important when selecting which cases to retrieve.</p>
      <p>Identifying and Applying Prediction Paths: After retrieving cases of past events in the
KG, EvCBR next begins to identify paths through the KG which can be used to make predictions.
Given that the retrieved cases have cause and efect event pairs, we aim to discover prediction
paths of relations in the KG that can be followed from the cause event entity to the efect’s
properties for each case. The confidence of each of these prediction paths is then scored, with
higher confidence being assigned to paths that lead to the correct entity more often across all
the retrieved cases.</p>
      <p>We next apply these learned prediction paths to make predictions about our new query event.
From the new input event, we follow paths to make predictions about the unseen efect event’s
properties. The confidence of each path, calculated based on the precision of following the
paths in past cause-efect event pairs, is used to compute an aggregated score of predictions for
each property of the efect event.</p>
      <p>Using this path-based prediction method allows EvCBR to inherently provide more
explainability than many embedding-based models. Additionally, our method of identifying and scoring
prediction paths is performed on-the-fly rather than requiring any pretraining process.</p>
      <p>Refining Predictions: Lastly, we introduce an additional step to refine our prediction results.
The intuition of our refinement method is that if EvCBR’s predictions about the efect event
are correct, we should be able to follow the procedure in the reverse direction to accurately
“predict” the input cause event’s properties starting from the efect event. Performing this
process in reverse gives us a way to ground the confidence of our predictions in terms of the
“ground-truth” properties of the input cause event.</p>
      <p>Evaluation: We evaluated the performance of EvCBR against baseline KG completion
methods, encompassing a number of notable models using methods such as distance based
embeddings, graph neural networks, rule-learning, and case-based reasoning. We find EvCBR
to have superior performance for event prediction as well as competitive performance for more
general 2-hop link prediction. In addition to showing strong performance in our evaluations,
the fact that EvCBR requires no training makes it well suited to our event prediction use case,
and more generally when applied to a KG like Wikidata which is frequently updated.</p>
    </sec>
    <sec id="sec-4">
      <title>3. Demonstration Plan</title>
      <p>
        We plan to demonstrate our event prediction system using a Jupyter Notebook environment
along with visualizations of the graph and predictions. Our target audiences for this
demonstration are researchers and developers of decision support solutions, e.g., in finance [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] or
enterprise risk management [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. The functions in our approach could be used in such solutions
through API calls and shown to end users on custom interfaces designed for analysts and
nonexpert users. During the demonstration, we first discuss the details of each of the steps in EvCBR
using a fictional Megathrust Earthquake event in Japan. We then showcase the impressive
predictions around the recent protests in Iran. We highlight the diferences in our predictions
with those returned by the highly-popular ChatGPT. In our examples, ChatGPT returns either
very accurate but not very interesting results, or results that are partially incorrect as a result of
the so-called “hallucination” of such large language models. This further supports the benefit
of an explainable knowledge-based solution for the challenging task of event forecasting.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <article-title>Event prediction in the big data era: A systematic survey</article-title>
          ,
          <source>ACM Computing Surveys</source>
          <volume>54</volume>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Shirai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bhattacharjya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Hassanzadeh</surname>
          </string-name>
          ,
          <article-title>Event prediction using case-based reasoning over knowledge graphs</article-title>
          ,
          <source>in: WWW</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>D.</given-names>
            <surname>Vrandečić</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Krötzsch</surname>
          </string-name>
          ,
          <article-title>Wikidata: A free collaborative knowledgebase</article-title>
          ,
          <source>Communications of the ACM</source>
          <volume>57</volume>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Mao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Guo</surname>
          </string-name>
          ,
          <article-title>Knowledge graph embedding: A survey of approaches and applications</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>29</volume>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Qiu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>A survey on knowledge graph embeddings for link prediction</article-title>
          ,
          <source>Symmetry</source>
          <volume>13</volume>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>R. Das</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Godbole</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Monath</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Zaheer</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>McCallum</surname>
          </string-name>
          ,
          <article-title>Probabilistic case-based reasoning for open-world knowledge graph completion</article-title>
          ,
          <source>in: Findings of ACL: EMNLP</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>R. Das</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Godbole</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Dhuliawala</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Zaheer</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>McCallum</surname>
          </string-name>
          ,
          <article-title>A simple approach to case-based reasoning in knowledge bases</article-title>
          ,
          <source>in: AKBC</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S. S.</given-names>
            <surname>Shirai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Khatiwada</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Hassanzadeh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bhattacharjya</surname>
          </string-name>
          ,
          <article-title>Rule-based link prediction over event-related causal knowledge in wikidata</article-title>
          , in: Wikidata@ISWC'
          <fpage>22</fpage>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Wikipedia</surname>
            <given-names>contributors</given-names>
          </string-name>
          , Mahsa Amini protests,
          <year>2023</year>
          . URL: https://en.wikipedia.org/wiki/ Mahsa_Amini_protests, [Online; accessed 8-September-2023].
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>P.</given-names>
            <surname>Yoo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Jan</surname>
          </string-name>
          ,
          <article-title>Machine learning techniques and use of event information for stock market prediction: A survey and evaluation</article-title>
          , in: CIMCA-IAWTIC'
          <fpage>06</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Sohrabi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Riabov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Katz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Udrea</surname>
          </string-name>
          ,
          <article-title>An AI planning solution to scenario generation for enterprise risk management</article-title>
          ,
          <source>in: AAAI</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>