<!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>Behavior analysis of executed and attacked players in Werewolf game by ILP</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Ema Nishizaki</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tomonobu Ozaki</string-name>
          <email>tozaki@chs.nihon-u.ac.jp</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Graduate School of Integrated Basic Sciences, Nihon University 3-25-40 Sakurajosui</institution>
          ,
          <addr-line>Setagaya-ku, Tokyo 156-8550</addr-line>
          ,
          <country country="JP">Japan</country>
        </aff>
      </contrib-group>
      <fpage>48</fpage>
      <lpage>53</lpage>
      <abstract>
        <p>Recently, the Werewolf game, one of multiplayer incomplete information games, is recognized as a promising research testbed for articial intelligence. In this work-in-progress paper, in order to obtain useful knowledge on the Werewolf games, log analyses of human players in the Werewolf BBS are conducted. By applying inductive logic programming to the log data of six games in the BBS, we attempt to extract classi cation rules on being attacked, executed and voted, whose bodies compose predicates representing players' past behaviors. In preliminary experiments, classi cation rules capturing characteristic behaviors among multiple agents were successfully obtained.</p>
      </abstract>
      <kwd-group>
        <kwd>Werewolf game</kwd>
        <kwd>behavior analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The Werewolf game is one of conversation-based role-playing party games. The
game consists of two teams, werewolf team and villager team. Only werewolves
can recognize their teammates, while villagers are given no information to which
team each player belongs. Some villagers have a special role and they can obtain
additional information by their own ability. Such information heterogeneity is
one of main characteristics of the game. In the game, villagers try to nd and
execute all werewolves, while werewolves try to deceive and eliminate villagers
by attacking them. The Werewolf game has two phases, day and night. These
two phases are iterated during the game. Players discuss to nd out werewolves
or to deceive villagers in day phase. At the end of day phase, an executed player
is decided by majority voting. In night phase, werewolves select a villager and
attack him/her. Executed or attacked players get kicked out of the game.</p>
      <p>
        The Werewolf game is recognized as a promising research testbed for arti
cial intelligence. Several research on the game have been reported recently. For
example, a method of game logs analysis based on attunements and rebuttals
is proposed to extract useful knowledge for the strategy construction[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ],
multimodal analysis was applied to the Werewolf games to detect deceptive roles.
A role estimation model is proposed based on the text analysis in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>In this work-in-progress paper, in order to obtain useful knowledge for
building intelligent software agents for the Werewolf game, log analyses of human
players are conducted by using inductive logic programming.</p>
    </sec>
    <sec id="sec-2">
      <title>Werewolf BBS</title>
      <p>The Werewolf BBS1 is an online community website for the Werewolf game where
a text-based chat system is provided for playing the games. The Werewolf BBS
is a real time communication system. One day in the Werewolf game corresponds
to one day in the real world. Players can communicate each other by text only.
No voice and video messages can be exchanged.</p>
      <p>All conversations by players are recorded during the game. There are four
types of log data in the Werewolf BBS. We focus on the \white logs" which all
players can browse as a target of our analysis.
3
3.1</p>
    </sec>
    <sec id="sec-3">
      <title>Analysis of Werewolf BBS using ILP</title>
      <sec id="sec-3-1">
        <title>Selection of Games</title>
        <p>We prepare six standard and average games for the analysis. Three of them
are the games werewolf teams won and the rests are the games villager teams
won. Fifteen players having enough experience participate in each game. While
werewolf teams consist of three werewolves and one lunatic, villagers teams have
eleven players including three villagers having special roles. Three games the
werewolf team won have eight days to the end. They contain 1234.0 records on
average. The rest three games the villager team won have seven days and contain
1166.6 records on average.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Background Knowledge</title>
        <p>
          We prepare twelve predicates to represent players' behaviors by considering the
Werewolf protocol[
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. The predicates are listed: `comingout' (a coming-out of
the role), `estimate' (an estimate of other player's role), `divined' (a report of
the divination), `inquested' (a report of the inquest), `guarded' (a report of the
guard), `question' (a player's question to other players), `answer' (an answer of
question by a player), `agree' (a player's agreement to other players), `disagree' (a
player's disagreement to other players), `line' (an estimation of that two players
belong to the same team), `unline' (an estimation of that two players belong to
different team), and `disrelation' (a backstabbing within werewolf teams). All
predicates have at least three arguments Game, Day, P layer for representing
that a player P layer takes the corresponding action on the Dayth day in a
game Game. The original log data which contains the contents of conversation
among players written in a natural language is converted into a set of facts
on the prepared predicates manually. Note that all players may tell a lie. For
example, a werewolf may behave like a seer to deceive players in the villager
team. The converted facts represent what each player says regardless of whether
the utterance is a lie or not.
1 http://www.wolfg.x0.com/
        </p>
        <p>In addition to the facts, we prepare twelve intensional rules for handling
behaviors in previous days as background knowledge in ILP. All rules have the
form of</p>
        <p>Pred( Game:Day, N, Player, Args )
:prev days( N ), PDay is Day - N,</p>
        <p>Pred( Game:PDay, Player, Args ).</p>
        <p>and represent that a player Player took an action Pred N days ago from
Dayth day in a game Game. The predicate prev days/1 is an auxiliary predicate
de ned as prev days(N):- member(N, [0,1, ,X]) where X is a parameter to
control the maximum time difference. We set X to 3 in the experiments. The
predicate P red is instantiated by twelve predicates for the facts. For example,
by using `comingout', we obtain a rule for the past (and current) behavior on
comingout as
comingout( Game:Day, N, Player, Role)
:prev days( N ), PDay is Day - N,
comingout( Game:PDay, Player, Role ).
where an argument Role shows the role a player Player claims. The rule which
captures past behaviors on `line' is shown below.</p>
        <p>line( Game:Day, N, Player, A, B )
:prev days( N ), PDay is Day - N,
line( Game:PDay, Player, A, B ).</p>
        <p>This rule states that a player Player estimated that two players A and B
belong to the same team N days ago from Dayth day in a game Game.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Positive and Negative Examples</title>
        <p>In this work-in-progress paper, three classi cation tasks are treated.</p>
        <p>The rst task is to derive classi cation rules which characterize the behaviors
of executed players. A predicate executed( Game:Day, Player ) is used for
this task, which represents a player Player was executed on the Dayth day in a
game Game. From the log data, 39 positive examples and 528 negative ones are
extracted.</p>
        <p>As a second task, we try to obtain classi cation rules for the behaviors of
attacked players. We prepare a predicate attacked( Game:Day, Player ) which
indicates that the werewolf team succeeded in attacking a player Player on the
Dayth day in a game Game. Note that, while executed players are selected from
all participants by voting, attacked players must be members of villager team or
a lunatic. In addition, hunters sometimes guard the villagers from the attack by
werewolves. Thus, positive examples for this task are less than those in the rst
task. Only 27 positive examples and 505 negative ones are used.</p>
        <p>The third task is to obtain rules on a voting behavior. A predicate voted(
Game:Day, Player ) states that a player Player got a vote on the Dayth day
in a game Game. In total, the log data contains 89 positive and 478 negative
examples, respectively.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Results</title>
      <p>An inductive logic programming engine Aleph2 is employed to solve the
classication problems shown in the previous section. We used three commands for
theory construction (induce/0, induce cover/0 and induce max/0) in order to
extract classi cation rules as many as possible. In the following subsections, the
results of each classi cation task are described.
4.1</p>
      <sec id="sec-4-1">
        <title>Execution</title>
        <p>The Aleph system extracts 28 classi cation rules on the execution. An example
of derived rule is shown below. The corresponding graphical representations is
shown in Fig.1(a). In the gure, each node corresponds to a player. Directed
edges represent predicates in the rule body and they show relationships among
agents. A number n in the parenthesis means that the corresponding behavior
to the edge is observed n days before from when the action in the rule head
occurred.</p>
        <p>executed( Game:Day, X )
:estimate( Game:Day, 0, Y, X, wolf ),
estimate( Game:Day, 1, X, Y, not(wolf) ),
agree( Game:Day, 2, X, Z ).</p>
        <p>This rule says that: (1)a player Y believes that a player X is a werewolf on
the execution day, and (2)the executed player X estimated that a player Y is not
a werewolf one day ago, and (3)he/she agreed with a player Z two days ago. We
believe that this rule captures an appropriate situation in selecting players to
be executed because the executed player X is suspected as a werewolf by other
player Y.</p>
        <p>This rule can be instantiated by substituting two villagers for X and Z and a
lunatic or a werewolf for Y in plural games irrespective of the winning team. In
addition, X is never instantiated by a player in the werewolf team. We can infer
from the above situation that this rule shows the behavior of a villager targeted
by the werewolf team.
4.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Attack</title>
        <p>We obtain 23 classi cation rules on \being attacked" by the werewolf team.
Within the 23 rules, 15 rules have predicates question, answer, agree or disagree,
which show communications with other players. An example of obtained rules,
depicted in Fig.1(b), is explained below.</p>
        <p>attacked( Game:Day, X )
:estimate( Game:Day, 3, Z, X, not(wolf) ),
estimate( Game:Day, 0, Y, X, not(wolf) ),
agree( Game:Day, 0, Y, Z ).
2 http://www.cs.ox.ac.uk/activities/machinelearning/Aleph/aleph
(a) Execution
(b) Attack
(c) Vote</p>
        <p>This rule shows the following situation : (1)a player Z estimated that an
attacked player X is not a werewolf three days before, (2)a player Y also believes
that X is not a werewolf and agree with Z on the attacked day. We can easily
imagine a basic strategy of the werewolf team from the rule. The team selects a
player X to be attacked, who is less likely to be executed by villagers because X
is not suspected by other two players Y and Z.</p>
        <p>This rule says that : (1)a player Z, who claimed that he/she is a hunter one
day ago, asks a player Y some questions, and (2)a player X, who disagreed with
the player Y one day ago, got a vote. By applying this rule to the log data, we
con rm that this rule ts well into the players getting a few votes.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusion and Future Direction</title>
      <p>In this work-in-progress paper, by applying inductive logic programming to three
classi cation problems, we succeeded in obtaining rules which capture
characteristic behaviors among multiple players in the Werewolf BBS.</p>
      <p>
        As one of future works, we plan to incorporate certain predicates representing
each player's view and intention. In the Werewolf game, players having different
roles have different information. For example, wolves can recognize teammates,
but others cannot. Seer players can perceive spurious seers easily because other
player must not be a seer. By utilizing these heterogeneities effectively and by
preparing certain mechanisms to estimate other players intention, we can expect
to develop sophisticated and accurate classi cation rules for each role. For this
purpose, we plan to employ the framework of answer set programming and its
induction algorithm[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] as well as meta-interpretive learning[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] in higher order
logic. Since players behaviors are not deterministic, another promising research
direction is uncertainty handling. We also investigate to utilize probabilistic logic
programs such as PRISM[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] to build probabilistic models for players behaviors.
Acknowledgements We heartily thank Mr. Ninjin for allowing us to use the
log data in the Werewolf BBS. We have deep regards to Professor Fujio Toriumi
at the University of Tokyo for providing us the Werewolf databases. A part of
this work was supported by JSPS KAKENHI Grant Number JP26330262.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Michimasa</given-names>
            <surname>Inaba</surname>
          </string-name>
          , Fujio Toriumi, Hirotaka Osawa, Daisuke Katagami,
          <source>Kosuke Shinoda and junji Nishino: Werewolf Game Analysis based on Attunements and Rebuttals, The 28th Annual Conference of the Japanese Society for Arti cial Intelligence</source>
          ,
          <year>2014</year>
          (in Japanese)
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Gokul</given-names>
            <surname>Chittaranjan</surname>
          </string-name>
          and
          <article-title>Hayley Hung: Are You A Werewolf? Detecting Deceptive Roles and Outcomes in a Conversational Role-Playing Game</article-title>
          ,
          <source>Proc. of the 2010 IEEE Internation Conference on Acoustics Speech and Signal Processing</source>
          , pp.
          <fpage>53345337</fpage>
          ,
          <year>2010</year>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Masaki</given-names>
            <surname>Sakamoto</surname>
          </string-name>
          ,
          <article-title>Atsushi Ueno and Tomohito Takubo: A Method for Estimating Roles in the Werewolf Game Based on Dialogue Data from a Game BBS</article-title>
          ,
          <source>IPSJ SIG Technical Report</source>
          , Vol.2016-GI-35, No.
          <volume>12</volume>
          ,
          <year>2016</year>
          (in Japanese)
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Hirotaka</given-names>
            <surname>Osawa</surname>
          </string-name>
          :
          <article-title>Communication Protocol for the "Werewolf" game</article-title>
          ,
          <source>Human-Agent Interaction Symposium</source>
          ,
          <year>2013</year>
          (in Japanese)
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Mark</given-names>
            <surname>Law</surname>
          </string-name>
          ,
          <article-title>Alessandra Russo and Krysia Broda: Inductive Learning of Answer Set Programs</article-title>
          ,
          <source>Proc. of the 14th European Conference on Logics in Arti cial Intelligence</source>
          , pp.
          <fpage>311</fpage>
          -
          <lpage>325</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Stephen</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Muggleton</surname>
            ,
            <given-names>Dianhuan</given-names>
          </string-name>
          <string-name>
            <surname>Lin</surname>
          </string-name>
          and
          <article-title>Alireza Tamaddoni-Nezhad: Metainterpretive Learning of Higher-order Dyadic Datalog: Predicate Invention Revisited</article-title>
          ,
          <source>Journal of Machine Learning</source>
          ,Volume
          <volume>100</volume>
          , Issue 1, pp.
          <fpage>49</fpage>
          -
          <lpage>73</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Taisuke</given-names>
            <surname>Sato</surname>
          </string-name>
          and Yoshitaka Kameya:
          <article-title>New advances in logic-based probabilistic modeling by PRISM, In Probabilistic Inductive Logic Programming</article-title>
          ,
          <source>LNCS 4911</source>
          , Springer, pp.
          <fpage>118155</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>