<!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 Approach for Explaining Reasoning on the Diet Domain</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Luca Anselma</string-name>
          <email>anselma@di.unito.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alessandro Mazzei</string-name>
          <email>mazzei@di.unito.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dipartimento di Informatica, Universita di Torino</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <fpage>4</fpage>
      <lpage>17</lpage>
      <abstract>
        <p>We are conducting a project involving automatic reasoning and natural language generation in the domain of diet management. In this paper we describe the main issues related to the automatic reasoning mechanisms for diet management purposes and we present the message generation techniques designed to support the users in managing their dietary choices. In particular, this paper has two main goals. First, with respect to the automatic reasoning module, we brie y describe the main features of the Simple Temporal Problem formalization of the diet domain. Second, with respect to the natural language generation module, we describe the actual implementation of the tasks of data interpretation and content selection, and the design of the message templates; moreover, we give a novel formalization of the sentence aggregation algorithm.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>People might fail to follow a healthy diet for a number of reasons. Sometimes
they do not know that a dish is in contrast to their diet or, in other cases, they
are not motivated enough since they do not have the right stimulus at the right
time. So, a diet management system needs to reason in order to enhance the
users' computational abilities to recognize healthy dishes and needs to generate
a persuasive stimulus when it is really necessary, i.e., when the users have to
decide what to eat.</p>
      <p>
        Similarly to [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] and [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] we want to investigate the possibility to apply
automatic reasoning and persuasive NLG on mobile devices for helping people in
reaching a virtuous behaviour. In this paper we address some issues related to
numerical reasoning and persuasive natural language generation in the diet
domain. We describe the actual implementation of the reasoning and generation
modules of the diet management system called MADiMan (Multimedia
Application for Diet Management) [
        <xref ref-type="bibr" rid="ref25 ref5">5, 25</xref>
        ]. In particular, after a brief description of the
numerical reasoner, which has been extensively described in [
        <xref ref-type="bibr" rid="ref3 ref6">3, 6</xref>
        ], we provide a
detailed description of the generation module.
      </p>
      <p>The MADiMan system is a virtual dietitian (Fig. 1) designed: (1) to recover
the nutritional information directly from a speci c recipe, (2) to reason over
recipes and diets by allowing some forms of diet disobedience, and (3) to
persuade the user to minimize these acts of disobedience. MADiMan o ers facilities
Recipe
1. APP
2. DietManager</p>
      <p>Service
DB users</p>
      <p>DB recipes
3. NLU/IE
Service
4. Reasoner</p>
      <p>
        Service
5. NLG
Service
to check the compatibility and to foresee the impact that a speci c meal has on
a speci c diet. In a diet it is necessary to consider parameters such as energy
requirements and the amount of macronutrients such as carbohydrates, lipids
and proteins. The medical literature (e.g., [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ]) provides Dietary Reference
Values (DRVs) that can be computed from user information such as weight, gender,
age, lifestyle. In MADiMan the reasoning module is a numerical reasoner based
on Simple Temporal Problems (STPs) where we represent the DRVs as STP
constraints [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] by substituting the temporal distance with the DRVs and the
caloric values of a dish distributed on the three macronutrients [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. By using the
ideal value for calories, MADiMan evaluates the compatibility of the speci c dish
with the actual status of the diet. Moreover, in order to provide a user-friendly
information not limited to \consistent/inconsistent" answer and to make it also
useful for the sake of user persuasion, MADiMan converts the numerical
reasoning into a symbolic form that is suitable for the generation of NL messages
[
        <xref ref-type="bibr" rid="ref31">31</xref>
        ].
      </p>
      <p>In the applicative scenario, the interaction between the man and the food is
mediated by an arti cial intelligent system that encourages or discourages the
user to eat a meal that s/he intends to eat. The main factors that the system
needs to manage are: (1) the diet that the user intends to follow, (2) the food that
has been eaten in the last days, and (3) the speci c recipes of the dishes and
the nutritional values of their ingredients. The complete MADiMan system is
composed of ve modules (see Fig. 1): a smartphone application (app), a central
module that manages the information ow (DietManager), a Natural Language
Understanding / Information Extraction (NLU/IE) module, a reasoning module
(Reasoner), a natural language generator module (NLGenerator). Upon a
registration where the user provides her anthropometric data, the information ow
follows this pattern:
1. The user, by using the app, recovers the QR-code of a speci c recipe, or
nds the recipe using full-text search.
2. The app, using the DietManager service, retrieves the user diet together with
the list of the food that the user has eaten in the last days. Moreover, the
DietManager retrieves the speci c recipe of the speci c dish.
3. The NLU/IE module computes the salient nutrition information about the
speci c dish.
4. The Reasoner, using the user diet and the list of the food that has been
eaten in the last days, produces a judgment about the dish for the user.
5. The NLGenerator uses the result given by the Reasoner, produces an
explanation for the user in plain natural language and/or in a multimedial format
(e.g. by using icons).
6. The DietManager sends the result produced by the NLGenerator to the app:
the user will see this nal result on her smartphone. If the user decides to
eat the dish, the app will send this information to the DietManager that will
update the list of food eaten. So, the DietManager plays the role of a hub.</p>
      <p>
        We think that this system could be commercially attractive at least in two
contexts. The rst context is the medical one, where users (e.g. patients a ected
by essential obesity) are strongly motivated to strictly follow a diet and need tools
that help them. The second context is the one involving, e.g., healthy fast food
or restaurant chains, where the e ort of deploying the system can be rewarded
by an increase in customer retention. However, for a complete implementation,
in the diet management architecture depicted in Figure 1 there are a number of
choices which need to be experimentally evaluated. For instance, there are many
technologies available on smartphones, such as the GPS localization or speech
recognition, that could be used for the insertion of the data. All these choices
are important to create a highly usable system supporting and motivating users
in their daily life [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ].
      </p>
      <p>In this paper1, we rst brie y describe the STP reasoner in Section 2, and
second we give some details concerning the NLG module in Section 3. In particular
we describe current implementation of three speci c modules of the generator:
in Section 3.1, we describe the data interpretation and content selection process
for converting the numerical output of the STP reasoner into a symbolic form.
In Section 3.2, we describe the design of ve templates for the realization of the
persuasive messages for the three macronutrients, and in Section 3.3 we provide
a novel formalization of the algorithm used to aggregate the messages. Finally,
Section 4 closes the paper with some conclusions and pointers to future work.
1 Some details on the app, the DietManager service, the NLU/IE service can be found
on the webpage of the project MADiMan: http://di.unito.it/madiman.</p>
    </sec>
    <sec id="sec-2">
      <title>Automatically reasoning on diets</title>
      <p>
        In this section rst we introduce \Simple Temporal Problem" (STP), and then we
describe how we exploit STP for representing reasoning over dietary information.
In contrast to other approaches to diet formalization, for example [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]2 which is
based on ontologies, we approach the diet management problem from a numerical
perspective since STP is a numerical constraint satisfaction formalism.
2.1
      </p>
      <sec id="sec-2-1">
        <title>Simple Temporal Problems</title>
        <p>
          An STP constraint [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] is a bound on di erences of the form c x y d, where
x and y are temporal points and c and d are numbers whose domain can be either
discrete or real. An STP constraint can be interpreted in the following way: the
temporal distance between the temporal points x and y must be between c {
the lower bound of the distance { and d { the upper bound. It is also possible
to impose strict inequalities (i.e., &lt;) and to use 1 and +1 to denote the fact
that there is no lower or upper bound, respectively. An STP is a conjunction of
STP constraints.
        </p>
        <p>STP can be represented as a graph whose nodes are the temporal points and
the arcs are labeled with the temporal distance between the points.</p>
        <p>
          A prominent feature of STP is that the problem of determining the
consistency of an STP is tractable and the algorithm employed, i.e., an all-pairs
shortest paths algorithm such as Floyd-Warshall's one, also obtains the
minimal network. A minimal network is equivalent to the original STP and it makes
explicit all the implied STP constraints by representing the strictest constraint
between each pair of point, which corresponds to the minimum and maximum
distance between each pair of points. Floyd-Warshall's algorithm is correct and
complete on STP, i.e. it performs all and only the correct inferences while
propagating the STP constraints [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. Its temporal computational cost is cubic in the
number of the temporal points.
2.2
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Reasoning on the energy requirements and energy intake</title>
        <p>
          It has been proven that excessive calorie intake { and subsequent obesity {
increases the risk of developing chronic disease and decreases life expectancy [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
In order to restrict calorie intake, one of the most important feature to be taken
into account in a diet is the total energy requirement. In particular, from a user's
weight, gender and age, using Scho eld equation [
          <xref ref-type="bibr" rid="ref34">34</xref>
          ], it is possible to estimate
her basal metabolic rate as reported in Table 1. For example a 40-year-old male
who weighs 71:3 kg has an estimated basal metabolic rate of 1690 kcal/day.
Such value is then adjusted by multiplying the basal metabolic rate by a factor
related with the physical activity of the individual; for example, if the person
has a sedentary lifestyle, a factor of 1:45 is employed so that he has a total
energy requirement of 1690 1:45 = 2450 kcal/day. It is worth noting that our
2 We thank an anonymous reviewer for pointing us to this work.
system does not depend on the particular formula used to compute the total
energy requirement, and it is possible to employ other formulas or the dietitian
can even empirically estimate the value for speci c patients.
        </p>
        <p>Using STP constraints it is possible to represent the total energy
requirement and also the dietary prescription regarding the meals' calorie amounts. For
instance, the daily energy requirement of 2450 kcal/day is represented by the
STP constraint dayE dayS = 2450 and the recommendation to eat a lunch of
minimum 500 kcal and maximum 600 kcal is represented by the STP constraint
500 lunchE lunchS 600, where dayE , dayS , lunchE and lunchS represent
the end and the start of the day and of the lunch, respectively.
2.3</p>
      </sec>
      <sec id="sec-2-3">
        <title>Supporting dietary transgressions</title>
        <p>We exploit the STP framework to allow users to make small deviations from the
ideal goal of sticking to their energy requirements and to know in advance what
are the consequences of such deviations on the rest of the diet.</p>
        <p>Thus, we admit a tolerance in adhering to the diet constraints. Such a
tolerance generates loose constraints over the shortest periods (i.e., days and
meals) and strict constraints over the longest periods (i.e., weeks), thus
allowing episodes of transgression in the short term that however do not
prevent a user from reaching the diet goal. Let w, d and m be the
tolerances for the week, the days and the meals respectively, w d m.
For example the recommended energy requirement of 2450 kcal/day,
considered over a week and considering a tolerance w, results in a constraint such
as 2450 7 (1 w) weekE weekS 2450 7 (1 + w) and for the
single days we allow the user to have a tolerance d, thus resulting in the
constraints 2450 (1 d) SundayE SundayS 2450 (1 + d), . . . ,
2450 (1 d) SaturdayE SaturdayS 2450 (1 + d) (see Fig. 2a).</p>
        <p>For single meals we consider that the energy assumption for the day is split
among the meals; for example, assigning 20% for breakfast, 40% for lunch and
40% for dinner, and that we allow a tolerance of m, we obtain constraints
such as 2450 20% (1 m) Sunday breakf astE Sunday breakf astS
2450 20% (1+ m) and 2450 20% (1 m) Sunday lunchE Sunday lunchS
2450 20% (1 + m).</p>
        <p>Age (years) Basal metabolic rate (kcal/day)</p>
        <p>Men
18 29 ((0:063 weight) + 2:896) 238:8459
30 59 ((0:048 weight) + 3:653) 238:8459
&gt; 60 ((0:049 weight) + 2:459) 238:8459</p>
        <p>Women
18 29 ((0:062 weight) + 2:036) 238:8459
30 59 ((0:034 weight) + 3:538) 238:8459
&gt; 60 ((0:038 weight) + 2:755) 238:8459
Sun
Sun
2270∙4</p>
        <p>Fri
Fri</p>
        <p>Sat</p>
        <p>Sat
2450∙7
[2205,2695] [2205,2695] [2205,2695] [2205,2695] [2205,2695] [2205,2695] [2205,2695]
0 0 0 0 0 0</p>
        <p>Mon</p>
        <p>Tues</p>
        <p>Weds</p>
        <p>Thurs
0
2690
Mon
0
2690
Tues
0
[2205,2465] [2205,2465] [2205,2465] [2205,2465]</p>
        <p>0 0 0
Weds</p>
        <p>Thurs</p>
        <p>In order to build a sound STP, it is also necessary to add STP constraints
such the ones that impose that a day ends when the subsequent day starts (see,
for example, the constraints 0 in Fig. 2a), that a week starts when the rst day
of the week starts, that a week ends when the last day of the week ends and the
analogous constraints for the meals.</p>
        <p>A compatible meal is a meal that satis es all the STP constraints that involve
such a meal.
2.4</p>
      </sec>
      <sec id="sec-2-4">
        <title>Representing and reasoning on the diet and the food</title>
        <p>We wish to support users into taking advantage of the information regarding
the actual meals they consume. In this way, such users can apprehend what
are the consequences on their diet of eating a speci c meal and they could
use such information to make informed decisions about their current or future
meals. Therefore it is necessary to \integrate" the information about the eaten
meals with the dietary recommendations. Thus, as the users eat their meals, we
substitute in the STP the original STP constraint related with the diet with the
information regarding the actual energetic supply of such meals.</p>
        <p>For example, let us suppose that a user on Sunday, Monday and Tuesday had
an actual intake of 2690 kcal for each day. This corresponds to adding to the STP
the new constraints SundayE SundayS = 2690, . . . , T uesdayE T uesdayS =
2690. Then, propagating the constraints of the new STP, we discover (see Fig. 2b)
that (i) the STP is consistent and thus the intake is compatible with the diet
and (ii) on each remaining day of the week the user has to assume a minimum
of 2205 kcal and a maximum of 2465 kcal.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Persuasive NLG for diet</title>
      <p>
        A widespread architecture for NL generation, especially in applicative contexts,
is a pipeline composed by three distinct modules: the document planning, the
sentence planning and the surface realization [
        <xref ref-type="bibr" rid="ref32">32</xref>
        ]. Each one of these modules
addresses distinct issues, in particular: (1) in the document planning one decides
what to say, i.e., which information contents will be communicated; (2) in the
sentence planning, the focus is on the design of a number of features that are
related to the information contents as well as to the speci c language, as the
choice of the words; (3) in the surface realization, sentences are nally generated
on the base of the decision taken by the previous modules and by considering
the constraints related to the language-speci c word order and in ections.
      </p>
      <p>
        For our system, the contents of information that have to be communicated,
i.e. the document planning, are produced by the STP reasoner, and we need
to convert such contents into a human-readable form: we address this issue in
the Section 3.1. Moreover, with the aim to easily implement in the messages the
prescriptions of the persuasion theories, we adopted the simplest architecture for
NLG. Similar to other works, e.g. [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], we treat sentence planning and surface
realization in one single module by adopting a template-based approach. We
describe the templates in the Section 3.2. Finally, in Section 3.3 we formalize
the sentence aggregation algorithm used to merge messages concerning distinct
macronutrients.
3.1
      </p>
      <sec id="sec-3-1">
        <title>Data interpretation and content selection</title>
        <p>In order to show to the user a meaningful feedback, it is necessary to interpret
the data resulting from the STP. Here we consider the case where the user
proposes to the system a dish, the system obtains its caloric value, translates
it along with the user's diet and past meals into an STP and, by propagating
the constraints, obtains the minimal network. For sake of clarity, we present the
content selection algorithm by considering one single generic macronutrient, but
the real suitability of a dish depends on the results of the three macronutrients
(see Section 3.3).</p>
        <p>Using the resulting STP it is possible to classify the proposed dish in one of
the following ve cases: permanently inconsistent (I1), occasionally inconsistent
(I2), consistent and not balanced (C1), consistent and well-balanced (C1) and
consistent and perfectly balanced (C3). In the cases I1 and I2 the energy supply of
the dish is inconsistent. In case I1 the energy supply is inconsistent with regard
to the user's diet as represented in the STP considering the tolerance values.
The dish cannot be accepted even independently of the other food the user may
possibly eat. This case is detected by considering whether the nutritional value
of the dish violates a constraint in the STP. In case I2 the dish per se does not
violate the diet constraints, but { considering the past meals the user has eaten
{ it would preclude to be consistent with the diet. Thus, it is inconsistent now,
but in the future, e.g., next week, it could become possible to choose it. This
case is detected by determining whether the energy supply, despite it satis es
max
t2
t1
t1
t2
min
hyper</p>
        <p>Ideal value
hypo
Calories
inconsistent
not balanced C1hyper</p>
        <sec id="sec-3-1-1">
          <title>I1hyper</title>
        </sec>
        <sec id="sec-3-1-2">
          <title>I2hyper</title>
        </sec>
        <sec id="sec-3-1-3">
          <title>C2hyper</title>
          <p>C3
C3</p>
          <p>C2hypo
well
balanced
perfectly
balanced
perfectly
balanced
well
balanced
not balanced C1hypo
inconsistent I2hypo</p>
          <p>I1hypo
???
the constraints in the initial STP, is inconsistent with the STP that contains
also the constraints related to the food that the user has actually eaten so far.</p>
          <p>In the cases C1, C2 and C3 the value of the energy supply is consistent with
the diet, also taking into account the other meals that the user has already
eaten. It is possible to detect that a meal is consistent by exploiting the minimal
network of the STP: if the value of the energy supply is included between the
lower and upper bounds of the relative STP constraint, then the STP is certainly
consistent and the meal is consistent with the diet. A consistent but not balanced
choice of a meal will have consequences on the rest of the user's diet because the
user will have to \compensate" it. Thus we distinguish three cases depending
on the level of the adequacy to the diet of the meal's energy supply. In order
to discriminate between the cases C1, C2 and C3, we consider how the value of
the energy supply stacks upon the allowed range represented in the related STP
constraint. We assume that the mean value is the \ideal" value according to the
diet's goals and we consider two parametric user-adjustable thresholds relative
to the mean: we classify the meal according to the distance from the ideal value
as not balanced (C1), well balanced (C2) or perfectly balanced (C2) (see Fig. 3).
In particular, we distinguish between excess or lack of energy supply for a meal:
if a meal is in excess (lacking) with regard to the ideal value, we tag the meal
with the keyword hyper (hypo). This information is exploited in the generation
of the messages.
3.2</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>Designing ve templates for realizing persuasive messages</title>
        <p>In order to convert in sentences the ve possible kinds of output of the STP
reasoner, at this stage of the project we adopted a simple template-based
realizer that produces ve kinds of messages designed for persuasion. We use ve
templates to communicate the ve cases of output of the reasoner, that are I1,
I2, C1, C2 and C3. For sake of clarity, we describe the templates by assuming
one single macronutrient. In the Section 3.3 we discuss how to aggregate the
three messages generated for the three distinct macronutrients.</p>
        <p>
          In the NLG community there are a few works treating the generation of
persuasive messages the diet domain, e.g. [
          <xref ref-type="bibr" rid="ref15 ref27">27, 15</xref>
          ]. Moreover, a larger number
of works considering the application of NLG for presenting the results of
automated reasoning to the user, especially in the case of expert systems, e.g. [
          <xref ref-type="bibr" rid="ref22 ref36 ref7">36, 7,
22</xref>
          ]. Moreover, a number of theories on the design of persuasive textual and
multimedial messages have been proposed in the last years. Most of these theories
can be split in two narrow categories. The rst category includes the theories
that approach the persuasion from a practical and empirical point of view, by
using strategies and methods typical of the psychology and of the interaction
design [
          <xref ref-type="bibr" rid="ref16 ref21 ref30 ref9">16, 30, 9, 21</xref>
          ]. The second category includes the theories that approach
the persuasion from a theoretical point of view, by using strategies and methods
typical of strong arti cial intelligence and cognitive science [
          <xref ref-type="bibr" rid="ref19 ref20 ref33">20, 33, 19</xref>
          ].
        </p>
        <p>As a working hypothesis, the actual implementation of the generator
produces messages following a xed rhetorical schema. So, the nal message will be
composed by three parts: a global evaluation of the dish, three evaluations for
the macronutrients (i.e. carbohydrates, lipids, proteins), and a suggestion on the
future dishes to eat.</p>
        <p>In Table 2, we report the ve cases obtained by the interpretation of the
output of the reasoner and the direction of the deviation (column O), and the
template3 (column Message Template). Indeed, the nal message is obtained
by modifying the templates on the basis of the speci c values for the motivation
of inconsistency that can be extracted by interpreting the output of the reasoner
(cf. Section 3.1) and some possible suggestions that can guide the choices of the
user in the next days. The suggestions can be obtained by querying a database
in order to couple the excess (de ciency) of a macronutrient with a dish that can
compensate this excess (de ciency). In particular, for the reasoner's outputs I1,
I2, C1 and C2, we need to distinguish the case of a dish low in a macronutrient
(hypo in Table 2) with respect to the case of a dish high in a macronutrient
(hyper ). If the dish is classi ed as hypo (hyper ), we insert into the message
a suggestion to consume in the next days a dish with an increased (reduced)
amount of that macronutrient.</p>
      </sec>
      <sec id="sec-3-3">
        <title>Adopting persuasion theories in the templates</title>
        <p>3 For space reasons, we report here the English version of the message and we omit
the original Italian version.
Ihypo This dish is not good at all, it's too poor in proteins!
1</p>
        <p>You cannot have this dish now because it doesn't provide enough proteins,
Ihypo but if you eat a nice dish of beans Sunday, you can have it on
2</p>
        <p>Monday.</p>
        <p>Chypo This dish is good, but it's poor in proteins. In the next days</p>
        <p>1 you'll have to eat really more proteins.</p>
        <p>Chypo This dish is OK, but it's a bit poor in proteins. In the next days you'll
2 need more proteins! :)</p>
        <p>C3 Great choice! This dish is perfect for the proteins in your diet :)</p>
        <p>
          Similar to [
          <xref ref-type="bibr" rid="ref21">21</xref>
          ], the Cialdini's general theory of persuasion has inspired our
design of the messages [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. Cialdini states that there are six patterns which are
characteristic of human nature: (1) Reciprocity: people feel obligated to return a
favor, (2) Scarcity: people will value scarce products, (3) Authority: people value
the opinion of experts, (4) Consistency: people do as they said they would, (5)
Consensus: people do as other people do, (6) Liking: we say yes to people we like.
Note that compared to the six Cialdini's persuasion patterns, all the messages
in Table 2 belong to the patterns of authority and consistency.
        </p>
        <p>
          With respect to the low-level linguistic strategies, by following [
          <xref ref-type="bibr" rid="ref33">33</xref>
          ], we used
a number of adverbs (little bit, very, really ) in order to enhance or mitigate a
message for the cases I1, I2, C1 and C2. Furthermore, compared to Guerini et
al. persuasive strategies taxonomy [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ], we can see that all the messages
belong to one single category, called action-inducement &amp; goal-balance &amp;
positiveconsequence. This strategy induces an action (i.e. to choose a dish), by using the
user's goal (i.e. a healthy diet ) and by using the bene ts deriving from this goal.
Finally, note that in the messages C2 and C3 we used emoticons. Indeed, some
studies have showed that the use of emoticons in written texts can increase the
communicative strength of a speci c class of messages. In particular, Dirke has
showed that the use of emoticons sets a tone of friendship to the communication
and can increase the positive value of the message [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ].
        </p>
      </sec>
      <sec id="sec-3-4">
        <title>Modelling aggregation for messages on macronutrients</title>
        <p>
          The aggregation plays an important role to generate uent and e cient texts
[
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. In the previous section we presented a template-based approach for the
generation of a message concerning one single macronutrient. In this section we
introduce an algorithm for aggregating the three messages for the three
macronutrients. We write (OC ; OL; OP ) to indicate the symbolic output for
carbohydrates, lipids and proteins respectively, where
        </p>
        <p>
          OX 2 fI1hypo; I1hyper; I2hypo; I2hyper Chypo; C1hyper; C2hyper; C2hypo; C3g
1
Indeed, a trivial aggregation strategy could merge only messages that belong to
the same category, i.e. Ox=Oy: this simple strategy corresponds to the
syntactic aggregation in the classi cation of [
          <xref ref-type="bibr" rid="ref29">29</xref>
          ]. However, we design an aggregation
strategy that accounts for a more sophisticated form of conceptual aggregation.
The general idea of the aggregation algorithm is to merge messages that are in
same category giving more emphasis to the incompatibility messages. So, there
are three alternative cases:
A. 9X 2 fC; L; P g : OX=I1hypo _ OX=I1hyper
B. 8X 2 fC; L; P g : (OX 6= I1hypo ^ OX 6= I1hyper) ^ 9Y 2 fC; L; P g : (OY =
        </p>
        <p>I2hypo _ OY =I2hyper)
C. otherwise, i.e. 8X 2 fC; L; P g 9i 2 f1; 2; 3g : (OX=Cihypo _ OX=Cihyper)</p>
        <p>In the case A. there is at least a permanent inconsistency for a macronutrient,
in the case B. there is no permanent inconsistencies but at least an occasional
inconsistency, and in the case C. all the macronutrients are consistent.</p>
        <p>In the cases A. and B., we aggregate the messages by exploiting the
information about incompatibility, that is (i) by merging the messages about
incompatible macronutrients, (ii) by removing the messages concerning the compatible
macronutrients; moreover, for the case B., (iii) we give a suggestion for the
future meals. For instance, suppose that the symbolic interpretation of the STP
gives (OC=I1hypo; OL=I1hypo; OP =C1hyper), the nal message will be:</p>
        <p>You cannot eat this dish because it's too poor in carbohydrates and lipids!
while in the case of (OC =I2hypo; OL=C2hypo; OP =I2hypo), the nal message will
be:</p>
        <p>You cannot have this dish now because it doesn't provide enough
carbohydrates and proteins, but if you eat a nice dish of pasta and beans on Sunday,
you can have it on Monday.</p>
        <p>
          In the case C., that is when the macronutrients are all compatible, we de ne
10 distinct aggregation patterns (cf. [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]) by considering the possible occurrences
of the values C1, C2 and C3 in (OC ; OL; OP ) disregarding the order (i.e. the
speci c macronutrient).
        </p>
        <p>
          In this case the algorithm rst aggregates messages belonging to categories C1
and C2, and second orders the aggregated messages. The order of the aggregated
messages follows their compatibility value: the idea is to start with the most
positive feedback, as suggested by some theories of persuasion [
          <xref ref-type="bibr" rid="ref14 ref35">35, 14</xref>
          ]. Formally,
the patterns aggregate two messages Ox=Ci and Oy=Cj if i; j2f1; 2g, and the
message Ox=Ci will be communicated earlier of Oy=Cj if i&gt;j. For instance, in
the case of (OC=C1hypo; OL=C2hypo; OP =C3), the aggregated message will be:
This dish is good. It is perfect for the proteins, but it is a bit poor in lipids
and really poor in carbohydrates,
while in the case of (OC=C3; OL=C2hyper; OP =C3), the aggregated message will
be:
        </p>
        <p>This dish is good. It is perfect for the proteins and the carbohydrates, but
it is a bit too rich in lipids.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusions and future work</title>
      <p>In this paper we have described an approach for diet management based on
automatic numerical reasoning and natural language generation. We have introduced
the main features of an STP-based reasoning for the diet domain. Moreover, we
have illustrated the design of the NL generation of persuasive messages in the
diet domain, i.e. content selection, linguistic design of templates and aggregation
algorithm.</p>
      <p>
        As a future work, in order to augment the variety of the messages, we intend
to replace the template-based realizer with a realization engine [
        <xref ref-type="bibr" rid="ref18 ref26">18, 26</xref>
        ].
      </p>
      <p>
        We have some experience on working on patient data and collaborating with
hospitals [
        <xref ref-type="bibr" rid="ref1 ref2 ref28 ref4">28, 2, 1, 4</xref>
        ] and we envision a collaboration with hospital dietitians to
evaluate the system by comparing the persuasive NLG output with graphical
output representing the numerical values of the macronutrients. We are currently
working on the implementation of a mobile app and on its exploitation in a
human evaluation of MADiMan, performed by nutrition and dietistics students
which will be supervised by some professional dietitians.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bottrighi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montani</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Terenziani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Extending bcdm to cope with proposals and evaluations of updates</article-title>
          .
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>25</volume>
          (
          <issue>3</issue>
          ),
          <volume>556</volume>
          {
          <fpage>570</fpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bottrighi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montani</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Terenziani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Managing proposals and evaluations of updates to medical knowledge: Theory and applications</article-title>
          .
          <source>Journal of Biomedical Informatics</source>
          <volume>46</volume>
          (
          <issue>2</issue>
          ),
          <volume>363</volume>
          {
          <fpage>376</fpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mazzei</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Piovesan</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Michieli</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Adopting stp for diet management</article-title>
          .
          <source>In: Proceedings of 2014 IEEE International Conference on Healthcare Informatics</source>
          ,
          <string-name>
            <surname>ICHI</surname>
          </string-name>
          <year>2014</year>
          . p.
          <volume>371</volume>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Montani</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Planning: Supporting and optimizing clinical guidelines execution</article-title>
          . vol.
          <volume>139</volume>
          , pp.
          <volume>101</volume>
          {
          <issue>120</issue>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mazzei</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Towards Diet Management with Automatic Reasoning and Persuasive Natural Language Generation</article-title>
          .
          <source>In: Progress in Arti cial Intelligence - 17th Portuguese Conference on Arti cial Intelligence</source>
          ,
          <source>EPIA</source>
          <year>2015</year>
          , Coimbra, Portugal, September 8-
          <issue>11</issue>
          ,
          <year>2015</year>
          . Proceedings. pp.
          <volume>79</volume>
          {
          <issue>90</issue>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mazzei</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Michieli</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>An arti cial intelligence framework for compensating transgressions and its application to diet management</article-title>
          .
          <source>Journal of Biomedical Informatics</source>
          <volume>68</volume>
          ,
          <issue>58</issue>
          {70 (April
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Barzilay</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mccullough</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rambow</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Decristofaro</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Korelsky</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lavoie</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Inc</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>A new approach to expert system explanations</article-title>
          .
          <source>In: 9th International Workshop on Natural Language Generation</source>
          . pp.
          <volume>78</volume>
          {
          <issue>87</issue>
          (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Braun</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reiter</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Siddharthan</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Creating textual driver feedback from telemetric data</article-title>
          .
          <source>In: ENLG 2015 - Proceedings of the 15th European Workshop on Natural Language Generation</source>
          ,
          <fpage>10</fpage>
          -
          <lpage>11</lpage>
          September 2015, University of Brighton, Brighton, UK. pp.
          <volume>156</volume>
          {
          <issue>165</issue>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Cialdini</surname>
          </string-name>
          , R.B.:
          <article-title>In uence: science and practice</article-title>
          .
          <source>Pearson Education</source>
          , Boston (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Dalianis</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hovy</surname>
          </string-name>
          , E.:
          <article-title>Aggregation in natural language generation</article-title>
          , pp.
          <volume>88</volume>
          {
          <fpage>105</fpage>
          . Springer Berlin Heidelberg, Berlin, Heidelberg (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Dechter</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Meiri</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pearl</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Temporal constraint networks</article-title>
          .
          <source>Artif. Intell</source>
          .
          <volume>49</volume>
          (
          <issue>1-3</issue>
          ),
          <volume>61</volume>
          {95 (May
          <year>1991</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Derks</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bos</surname>
            ,
            <given-names>A.E.R.</given-names>
          </string-name>
          , von Grumbkow, J.:
          <article-title>Emoticons in computer-mediated communication: Social motives and social context</article-title>
          .
          <source>Cyberpsy., Behavior, and Soc. Networking</source>
          <volume>11</volume>
          (
          <issue>1</issue>
          ),
          <volume>99</volume>
          {
          <fpage>101</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>DiEugenio</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fossati</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Haller</surname>
            ,
            <given-names>S.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Glass</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Aggregation Improves Learning: Experiments in Natural Language Generation for Intelligent Tutoring Systems</article-title>
          .
          <source>In: ACL</source>
          <year>2005</year>
          ,
          <article-title>43rd Annual Meeting of the Association for Computational Linguistics</article-title>
          ,
          <source>Proceedings of the Conference</source>
          ,
          <volume>25</volume>
          -
          <fpage>30</fpage>
          June 2005, University of Michigan, USA. pp.
          <volume>50</volume>
          {
          <issue>57</issue>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Dohrenwend</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Serving up the feedback sandwich</article-title>
          .
          <source>Family practice management</source>
          <volume>9</volume>
          (
          <issue>10</issue>
          ),
          <volume>43</volume>
          {
          <fpage>50</fpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Dragoni</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bailoni</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Eccher</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maimone</surname>
            ,
            <given-names>R.:</given-names>
          </string-name>
          <article-title>A semantic-enabled platform for supporting healthy lifestyles</article-title>
          .
          <source>In: Proceedings of the Symposium on Applied Computing</source>
          . pp.
          <volume>315</volume>
          {
          <fpage>322</fpage>
          . SAC '17,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          , New York, NY, USA (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Fogg</surname>
            ,
            <given-names>B.: Persuasive</given-names>
          </string-name>
          <string-name>
            <surname>Technology</surname>
          </string-name>
          .
          <article-title>Using computers to change what we think and do</article-title>
          . Morgan Kaufmann Publishers, Elsevier (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Fontana</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Klein</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          : Aging, adiposity, and
          <article-title>calorie restriction</article-title>
          .
          <source>JAMA</source>
          <volume>297</volume>
          (
          <issue>9</issue>
          ),
          <volume>986</volume>
          {
          <fpage>994</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Gatt</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reiter</surname>
          </string-name>
          , E.:
          <article-title>SimpleNLG: A Realisation Engine for Practical Applications</article-title>
          .
          <source>In: Proceedings of the 12th European Workshop on Natural Language Generation</source>
          . pp.
          <volume>90</volume>
          {
          <fpage>93</fpage>
          . ENLG '
          <volume>09</volume>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computational Linguistics, Stroudsburg, PA, USA (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Guerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stock</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zancanaro</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>A taxonomy of strategies for multimodal persuasive message generation</article-title>
          .
          <source>Applied Arti cial Intelligence</source>
          <volume>21</volume>
          (
          <issue>2</issue>
          ),
          <volume>99</volume>
          {
          <fpage>136</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Hovy</surname>
            ,
            <given-names>E.H.</given-names>
          </string-name>
          :
          <article-title>Generating Natural Language Under Pragmatic Constraints</article-title>
          . Lawrence Erlbaum, Hillsdale, NJ (
          <year>1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Kaptein</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>de Ruyter</surname>
            ,
            <given-names>B.E.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Markopoulos</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aarts</surname>
            ,
            <given-names>E.H.L.</given-names>
          </string-name>
          :
          <article-title>Adaptive persuasive systems: A study of tailored persuasive text messages to reduce snacking</article-title>
          .
          <source>TiiS</source>
          <volume>2</volume>
          (
          <issue>2</issue>
          ),
          <volume>10</volume>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Lacave</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Diez</surname>
            ,
            <given-names>F.J.:</given-names>
          </string-name>
          <article-title>A review of explanation methods for heuristic expert systems</article-title>
          .
          <source>Knowl. Eng. Rev</source>
          .
          <volume>19</volume>
          (
          <issue>2</issue>
          ),
          <volume>133</volume>
          {146 (Jun
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23. LARN:
          <article-title>LARN - Livelli di Assunzione di Riferimento di Nutrienti ed energia per la popolazione italiana - IV Revisione</article-title>
          . SICS Editore,
          <string-name>
            <surname>Italy</surname>
          </string-name>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Marcus</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Mobile Persuasion Design - Changing Behaviour by Combining Persuasion Design with Information Design</article-title>
          . Human-Computer Interaction Series, Springer (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25.
          <string-name>
            <surname>Mazzei</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Michieli</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bolioli</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Casu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gerbrandy</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lunardi</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Mobile computing and arti cial intelligence for diet management</article-title>
          .
          <source>Lecture Notes in Computer Science (including subseries Lecture Notes in Arti cial Intelligence and Lecture Notes in Bioinformatics)</source>
          <volume>9281</volume>
          ,
          <fpage>342</fpage>
          {
          <fpage>349</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          26.
          <string-name>
            <surname>Mazzei</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Battaglino</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bosco</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>SimpleNLG-IT: adapting SimpleNLG to Italian</article-title>
          .
          <source>In: Proceedings of the 9th International Natural Language Generation conference</source>
          . pp.
          <volume>184</volume>
          {
          <fpage>192</fpage>
          .
          <article-title>Association for Computational Linguistics, Edinburgh, UK (September 5-8</article-title>
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          27.
          <string-name>
            <surname>Mazzotta</surname>
          </string-name>
          , I.,
          <string-name>
            <surname>de Rosis</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Caro glio</surname>
          </string-name>
          , V.:
          <article-title>Portia: A user-adapted persuasion system in the healthy-eating domain</article-title>
          .
          <source>IEEE Intelligent Systems</source>
          <volume>22</volume>
          (
          <issue>6</issue>
          ),
          <volume>42</volume>
          {
          <fpage>51</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          28.
          <string-name>
            <surname>Piovesan</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Anselma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Terenziani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Temporal detection of guideline interactions</article-title>
          . pp.
          <volume>40</volume>
          {
          <issue>50</issue>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          29.
          <string-name>
            <surname>Reape</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mellish</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Just what is aggregation anyway?</article-title>
          <source>In: ENLG 1998 - Proceedings of the European Workshop on Natural Language Generation</source>
          (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          30.
          <string-name>
            <surname>Reiter</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Robertson</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Osman</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Lessons from a Failure: Generating Tailored Smoking Cessation Letters</article-title>
          .
          <source>Arti cial Intelligence</source>
          <volume>144</volume>
          ,
          <fpage>41</fpage>
          {
          <fpage>58</fpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          31.
          <string-name>
            <surname>Reiter</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          :
          <article-title>An architecture for data-to-text systems</article-title>
          .
          <source>In: Proc. of the 11th European Workshop on Natural Language Generation</source>
          . pp.
          <volume>97</volume>
          {
          <fpage>104</fpage>
          . ENLG '
          <volume>07</volume>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computational Linguistics, Stroudsburg, PA, USA (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref32">
        <mixed-citation>
          32.
          <string-name>
            <surname>Reiter</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dale</surname>
          </string-name>
          , R.:
          <source>Building Natural Language Generation Systems</source>
          . Cambridge University Press, New York, NY, USA (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref33">
        <mixed-citation>
          33.
          <string-name>
            <surname>de Rosis</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grasso</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>A ective interactions</article-title>
          .
          <source>chap. A ective Natural Language Generation</source>
          , pp.
          <volume>204</volume>
          {
          <fpage>218</fpage>
          . Springer-Verlag, New York, NY, USA (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref34">
        <mixed-citation>
          34. Scho eld, W.N.:
          <article-title>Predicting basal metabolic rate, new standards and review of previous work</article-title>
          .
          <source>Human Nutrition: Clinical Nutrition</source>
          <year>39C</year>
          ,
          <volume>5</volume>
          {
          <fpage>41</fpage>
          (
          <year>1985</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref35">
        <mixed-citation>
          35.
          <string-name>
            <surname>Steelman</surname>
            ,
            <given-names>L.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rutkowski</surname>
            ,
            <given-names>K.A.</given-names>
          </string-name>
          :
          <article-title>Moderators of employee reactions to negative feedback</article-title>
          .
          <source>Journal of Managerial Psychology</source>
          <volume>19</volume>
          (
          <issue>1</issue>
          ),
          <volume>6</volume>
          {
          <fpage>18</fpage>
          (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref36">
        <mixed-citation>
          36.
          <string-name>
            <surname>Weiner</surname>
            ,
            <given-names>J.L.</given-names>
          </string-name>
          :
          <article-title>Blah, A system which explains its reasoning</article-title>
          .
          <source>Artif. Intell</source>
          .
          <volume>15</volume>
          (
          <issue>1-2</issue>
          ),
          <volume>19</volume>
          {
          <fpage>48</fpage>
          (
          <year>1980</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>