Designing and testing the messages produced by a virtual dietitian
Paper · 2018 · Luca Anselma and Alessandro Mazzei
Summary
A diner deciding what to order may want to know whether a meal fits the diet they are following and which part of the meal accounts for the advice. The answer can depend on meals they have already eaten. Luca Anselma and Alessandro Mazzei describe how their virtual dietitian, MADiMan, turns that calculation into a brief explanation. They then test whether the way the explanation combines information about carbohydrates, lipids and proteins affects how people receive it. This is a study of what happens after a numerical recommendation is available, at the point where the system has to put it into words. It is an application of text generation.
MADiMan checks a proposed meal against dietary constraints and interprets the result separately for each macronutrient. A value may conflict with the diet itself, conflict only in light of earlier meals, or fit the diet to varying degrees. The generator uses those judgments to write an overall verdict and a sentence about the nutrients that explain it. If any nutrient is incompatible, the explanation focuses on the incompatible ones. When several nutrients merit the same description, the system can name them together under a shared predicate. The alternative repeats a predicate for each nutrient, even when the wording is identical.
The authors compared those alternatives in CheckYourMeal!, an Italian-language app that asked participants to simulate choosing meals from restaurant menus. The main study involved 20 native Italian speakers. Participants were asked to try each version for a simulated week and then rate the messages. On all four properties studied, their responses favored the version that grouped nutrients whenever possible. They perceived its messages as easier to understand, more useful for making a choice, more persuasive and less boring. A separate questionnaire item suggested some interest in an option that varied the wording at random, a result the authors treated as exploratory.
The evidence concerns how participants perceived the messages during a simulation. It comes from a small, fairly homogeneous group and from ratings collected after using the app. The study establishes a preference within that setting. Whether the same wording helps people follow a diet in everyday life remains open.
Deep dive: Designing and testing the messages produced by a virtual dietitian
A virtual dietitian turns nutritional calculations into meal advice, and a user study tests whether shorter explanations make that advice more appealing. · about 37 minutes to read
The problem and its context
Advice at the moment of choice
The paper begins with a practical difficulty. The time when information about a meal matters is often the time when the meal has to be chosen. A person looking at a restaurant menu may know their dietary goals yet have little basis for judging how a particular dish fits them. Even with nutritional information available, there is still a calculation to make. The relevant question is about the relationship between the dish, the person's dietary requirements and the food they have eaten recently.
The authors connect this opportunity to the idea of kairos in persuasive technology, which concerns the timing of an intervention. In the restaurant example, the opportunity to intervene comes while the diner can still select a different meal. A virtual assistant can be available then and can use information that would be difficult for the diner to assemble and interpret at the table. The intended intervention is a short piece of advice attached to a concrete decision.
The authors give the assistant several responsibilities. It should help the user work out whether a meal is suitable. It should present that information in a form that might influence the decision. It should also help the user understand the consequences of departing from the diet. These responsibilities belong to different parts of the problem. Calculating the implications of a choice requires the diet and a record of earlier meals. Making those implications clear requires deciding what information deserves the reader's attention and how to express it.
The diet in this project permits some departures that can be accommodated later. That matters to the meaning of a recommendation. Consider a meal with an amount of some nutrient that the diet could accommodate under favorable circumstances. The same meal can become incompatible after previous choices have used up the flexibility available to the diner. Another meal may still be feasible, although choosing it would require adjustments later. A message that reports the kind of judgment being made can help the reader understand how much room they have to maneuver.
From automated reasoning to an explanation
The authors situate this project among earlier systems that explain the results of automated reasoning. That line of work gives the virtual dietitian a familiar architectural problem. The representation that serves a reasoner well often needs interpretation before it serves someone making a decision. In MADiMan, bounds and caloric values are useful to the calculation. The user sees an assessment of the meal and a description of the nutrients responsible for it.
The paper also draws on an earlier architecture for turning data into text. In that approach, a generator interprets its input, selects the information to pass on, plans the message and produces its wording. These distinguishable operations matter for the diet example. Deciding that a dish is high in a particular nutrient is an interpretation of a numerical value. Deciding that the user should hear about that nutrient is a choice about content. Deciding whether to mention another nutrient in the same phrase is a choice about sentence structure.
Those choices are especially visible when the data cover several related quantities. A dish can have a favorable result for one macronutrient and an unfavorable result for another. The generator must decide whether to give both results space in a brief explanation. After that, it can decide whether to repeat the sentence structure for each retained result, or share parts of the structure among them. A short message can therefore come from selecting fewer facts, expressing several facts more compactly, or doing both. The paper implements both operations and compares alternatives for the latter.
The overall judgment and the nutrient explanation also answer different questions. The judgment tells the diner how the dish fares under the diet constraints. The explanation identifies where that judgment comes from. A strongly unfavorable verdict can focus attention on the problem, but the user still needs to know whether it concerns carbohydrates, lipids or proteins. An acceptable verdict can likewise leave room for an explanation of how closely the dish fits each target. The generator is designed to supply both levels of information in a fixed order.
Persuasion in the design of a sentence
The paper describes earlier work on persuasion from empirical and theoretical directions. The empirical work it cites draws on psychology and interaction design, including studies of tailored messages and the conditions under which an intervention reaches someone. The theoretical work includes accounts of how language can be generated to serve a communicative goal, with choices about affect, phrasing and the action the message is intended to encourage. The authors use these traditions to motivate particular decisions about the virtual dietitian's voice.
They associate their messages with authority and consistency in Cialdini's account of persuasion. Authority is relevant to the role the assistant takes when offering an assessment. Consistency concerns the user's existing commitment to a dietary goal. In the taxonomy of persuasive strategies the authors also discuss, the messages form a single kind of appeal. The assistant encourages a choice by relating it to an established goal and to the benefits of pursuing that goal. The design holds that broad appeal fixed while experimenting with aspects of expression.
The paper also takes up the use of adverbs to increase or decrease the force of an assessment. A description of a small excess can sound distinct from a more emphatic warning even if both use a predicate indicating abundance. In this system, the degree expressed by an adverb is part of how a numerical classification becomes legible. It is also part of the tone. Repeating an emphatic description across several nutrients may produce a different impression from stating that description once and applying it to the whole group.
Earlier work on aggregation supplies another motivation. The term refers to combining material that could have been expressed in separate sentences or clauses. The authors cite work in healthcare briefings and tutoring as grounds for taking aggregation seriously. In their setting, the technique can reduce repetition when several pieces of nutritional information have the same structure. The question is whether a more compact expression reads better when the content is personalized advice that sometimes carries criticism.
Word choice raises a related issue. The paper points to earlier research emphasizing that choosing words involves context and style, because expressions with similar meanings can fit differently alongside the rest of a sentence. The authors consider a narrower intervention. They ask whether some variation in the terms used by the assistant might make repeated interactions feel more natural. That interest informs an optional feature of the generator. The comparison of aggregation strategies remains the central experiment.
Why compare complete versions of the message?
Both proposed aggregation strategies have a plausible rationale within the paper's account. Repeating a predicate gives every nutrient an explicit assessment. A reader can hear each judgment in full even when nearby judgments have identical wording. Grouping nutrients under a shared predicate produces a more economical sentence when the evaluations match. A reader who understands the group can recover all its members' assessments from the single expression.
The authors regard the relative appeal of those approaches as a question for users. A grammatical sentence can still feel repetitive, and a shorter sentence can ask the reader to resolve the scope of a shared description. The contrast matters because the proposed assistant would present this kind of feedback repeatedly. Its judgments can also be favorable or unfavorable, making the effect of repetition a question about tone as well as ease of reading. The study uses the same decision task to put the two approaches in front of readers.
The method, step by step
What goes into the recommendation
The process starts with a proposed dish and a particular user's diet. In the full MADiMan architecture, the user obtains the dish's recipe through an app. A service called DietManager supplies the dietary requirements and the list of recently eaten food. A component for language understanding and information extraction obtains relevant nutritional details from the recipe. The numerical reasoner then brings the dish, the diet and the meal record together. Natural language understanding · Information extraction
The recommendation moves from the reasoner to the generator, and the service returns the generated explanation to the app. If the user chooses the dish, the app can report that choice so it becomes part of the record used for later recommendations. That update gives the interaction continuity. The consequences of earlier choices can appear in the assessment of a new meal even when the two recipes have nothing in common.
From a proposed meal to diet feedback
The steps in order.
The system uses dietary reference values to capture energy requirements and the balance of macronutrients. The authors explain that these values depend on personal information such as age, weight and lifestyle. Their example is a sedentary 40-year-old man who is 1.80 m tall and weighs 71.3 kg. His example energy requirement is 2450 kcal/day. The corresponding example recommendations are 260 kcal/day from proteins, 735 kcal/day from lipids and 1455 kcal/day from carbohydrates. These figures illustrate inputs for a particular person in the paper's account of the reasoning architecture. The experiment later uses participants' own personal measurements.
The nutritional calculations lead to bounds on what can be accommodated. For an explanation, the system needs more than the overall relationship between a meal and a diet. It needs an assessment for each of the macronutrients. When those outputs reach the generator, they are already expressed as categories that distinguish feasibility, closeness to a target and, where appropriate, direction of departure. The generator can therefore select and combine descriptions by reading the categories.
Representing the diet as constraints
MADiMan uses the formalism of Simple Temporal Problems, or STPs. Its usual form describes allowable separations between points. An STP combines a set of bounded differences, with every constraint required to hold together. In MADiMan, the quantities placed in this structure represent energy rather than elapsed time. The formalism gives the reasoner a way to combine the allowable contributions of different meals with the quantities already fixed by the user's choices.
c ≤ x − y ≤ d
Here x and y are the points whose difference is limited. The expression x − y is the separation from y to x. The lower bound is c, and the upper bound is d. Each ≤ includes equality, so an allowed difference may be at either bound or between them. In the dietary application the difference is interpreted in units of energy.
The authors illustrate the adaptation with a constraint on the energy supplied by lunch.
500 kcal ≤ lunchE − lunchS ≤ 600 kcal
Here lunchE and lunchS are the points associated with the end and the start of lunch in the constraint representation. Their difference is the energy contribution assigned to lunch. The two inequalities bound that contribution, with 500 kcal as the lower limit and 600 kcal as the upper limit. The unit kcal is kilocalories. The point names carry over the temporal terminology of the formalism, and the difference in this application expresses an amount of energy.
The reasoner encodes the user's dietary requirements and incorporates caloric values associated with meals. It propagates the constraints, which means taking the restrictions implied by their combination into account. The result used for classification is the minimal network. The useful property here is that the bounds for the relevant difference reflect the restrictions imposed by the network as a whole. A value within those bounds is feasible in the network. This lets the interpretation stage ask a local question about a proposed contribution while using the consequences of the diet and prior choices.
There are two contexts for a compatibility judgment. The initial dietary constraints express what the diet can accommodate, including its tolerances. The network with earlier meals included expresses what is still possible given the user's record. A value's relationship to these contexts identifies a distinction that the authors want to carry through to the advice. Some values fail the original diet constraints. Other values satisfy those constraints and become infeasible when the person's previous choices are taken into account.
Turning feasible ranges into evaluations
The paper explains the classification for a generic macronutrient, with the same procedure used for carbohydrates, lipids and proteins. First comes the question of whether its contribution is feasible. A value that violates the underlying dietary constraints is permanently inconsistent, written I₁. In the terms of the system, the dish fails on that nutrient independently of the user's other food choices. The judgment is relative to the diet and its specified tolerances.
A value that could fit the original constraints but fails once the earlier meals are included is occasionally inconsistent, written I₂. The name refers to incompatibility arising from the circumstances of the choice. The same nutrient contribution could be feasible on another occasion with a different meal record. This distinction gives the generator a basis for producing different overall warnings for a conflict with the diet and a conflict with the current state of the diet.
When the contribution is feasible, its assessment can still be more or less favorable. The method uses the midpoint of the allowed range as the ideal for that contribution. The authors divide the feasible range by distance from that midpoint, using two adjustable thresholds. A feasible value far enough from the midpoint is classified as consistent and not balanced, or C₁. The closer classifications are consistent and well-balanced, or C₂, and consistent and perfectly balanced, or C₃. The latter describes the category closest to the ideal under the threshold scheme.
The distinction within the feasible range gives the generator a way to tell the user that a choice can fit while still leaving some dietary adjustment to make. The difference between a less balanced value and a well-balanced value can then be expressed as a difference in degree. The paper's classification illustration maps these judgments onto the interval for a contribution, with the ideal in the middle and feasible departures on either side. The user's thresholds determine how the levels of adequacy are assigned within that range.
Direction supplies another part of the description. A plus sign indicates excess relative to the ideal, and a minus sign indicates a shortfall. Those signs allow the same level of balance or incompatibility to yield different descriptions depending on which side of the ideal the value falls. The perfectly balanced category is represented without a sign. The categories capture information the generator needs both to choose a description and to decide whether assessments for different nutrients are eligible to share it.
The notation for the three outputs brings the categories together.
(O꜀, Oₗ, Oₚ)
The parentheses and commas make an ordered group. Each O is one symbolic output of the reasoner. The subscripts ꜀, ₗ and ₚ stand for carbohydrates, lipids and proteins, respectively. The distinction between a macronutrient identifier and a category name matters in the rules below, where upper-case C can denote carbohydrates and the category symbols C₁, C₂ and C₃ denote levels of feasible balance.
Oₓ ∈ {I₁−, I₁+, I₂−, I₂+, C₁−, C₁+, C₂−, C₂+, C₃}
Here X is a placeholder for one of the macronutrients, shown as the subscript ₓ in Oₓ. The sign ∈ means that the output is a member of the set enclosed in braces. The I categories represent incompatibility, with ₁ indicating the permanent case and ₂ the occasional case. The C categories represent compatibility, with ₁, ₂ and ₃ enumerating the levels of balance described above. The signs − and + distinguish shortfall from excess. The commas separate possible outputs.
Planning the verdict and the explanation
The document plan gives every message the same basic shape. An opening sentence expresses an overall judgment about the dish. A second sentence explains the relevant macronutrient evaluations. The recipe and numerical reasoning can vary with the user, but the rhetorical sequence stays fixed. The reader first receives the result of the assessment and then learns which nutritional features account for it.
The severity of the nutrient categories governs the verdict. A permanent inconsistency gets the strongest unfavorable assessment. An occasional inconsistency gets a distinct negative assessment. When the nutrients are all compatible, the least favorable category among them determines the degree of approval. A compatible meal with a less balanced component receives a favorable but qualified judgment. A meal whose overall classification is well-balanced receives stronger approval. The highest category yields the strongest endorsement.
The authors use several sentence forms in these verdicts, including constructions with a form of be linking the subject to an assessment. Such a construction is a copula. They vary the form of the verdict across the categories, giving the two kinds of incompatibility distinct expressions and using forms of positive evaluation for the compatible cases. This variation is built into the sentence plan. It is separate from the optional choice among words for a concept.
The nutrient sentences follow a recurring pattern. Each associates the dish with a predicate roughly expressing excess, shortage or ideal balance. A prepositional phrase names the nutrient to which the description applies. The difference between a milder and a stronger assessment can be reflected in the adverb attached to the predicate. That small set of structural options has a practical consequence for aggregation. Assessments with the same category and direction can call for the same construction apart from the nutrient name.
The system uses explicit mentions of the dish or menu. The authors leave the generation of referring expressions for a later stage of the project. In the implemented plan, the linguistic choices under investigation concern which nutrient judgments are included, how those judgments are combined and how their words are selected. The document structure and the treatment of references remain fixed throughout the comparison.
Selecting which nutrient judgments to keep
Before combining sentences, the generator selects what the nutrient explanation will contain. This is a decision about focus. When the overall result is unfavorable, the user sees the details that explain the incompatibility. Favorable assessments of other nutrients are dropped from the explanation. When the dish is compatible throughout, all nutrient assessments are retained, so the user can see how closely the different contributions fit.
The selection rules divide the outputs into cases. In the conditions below, equality with I₁, I₂ or a compatible category refers to the broad classification, with the direction bearing on the subsequent wording. The first condition identifies a dish with a permanent inconsistency.
∃X ∈ {C, L, P} : Oₓ = I₁
The symbol ∃ means that at least one X exists for which the condition holds. The set contains C for carbohydrates, L for lipids and P for proteins, and ∈ restricts X to that set. The colon introduces the condition on Oₓ, the output for X. The equality sign assigns the test to category I₁, permanent inconsistency.
The second condition identifies a dish whose strongest incompatibility is occasional.
∀X ∈ {C, L, P} : Oₓ ≠ I₁ ∧ ∃Y ∈ {C, L, P} : Oᵧ = I₂
Here ∀ means that the first test applies to every X in the macronutrient set. The sign ≠ says that its output is unequal to I₁. The conjunction sign ∧ requires the second test as well. The symbol ∃ introduces some nutrient Y in the same set, and Oᵧ is the output for that nutrient. The equality sign in the second test checks for I₂, occasional inconsistency. The two clauses together specify the absence of permanent inconsistency and the presence of occasional inconsistency.
The last condition identifies a dish with an exclusively compatible set of outputs.
∀X ∈ {C, L, P} ∃i ∈ {1, 2, 3} : Oₓ = Cᵢ
The universal quantifier ∀ again applies to all macronutrients X. The existential quantifier ∃ requires an index i in the displayed set for each X. The subscript ᵢ selects one of the compatible categories, and the equality test checks that Oₓ belongs to it. Different nutrients can satisfy this condition with different indices. The formula therefore tests feasibility across the dish while allowing the degree of balance to vary.
The first two cases both retain the incompatible assessments. The severity distinction determines the overall verdict, and the detail sentence can then state the specific problems that survive selection. This is important for a dish with several incompatible contributions. The overall sentence can convey the most severe kind of conflict while the second sentence still identifies the affected nutrients and the nature of their departures. In the fully compatible case, the overall sentence reflects the least favorable balance category and the explanation keeps the full set of assessments.
Selection can produce a short message even before the system shares any grammatical structure. If only one nutrient is incompatible, the detail sentence has one assessment to express. Where several assessments survive, the generator faces a further decision about how to merge them. The reasons for omitting an assessment are thus governed by the feedback policy. The reasons for sharing words among the retained assessments are governed by their sentence plans.
Merging the assessments
The paper distinguishes several ways to combine clauses. A conjunction can connect complete sentences. It can also exploit a shared participant, such as the same menu being described in multiple clauses, or exploit another common part of their structure. The implementation can use these forms of conjunction. The experimental contrast concerns two particular ways of sharing structure, at the level of the verb phrase and inside the noun phrase of a prepositional expression.
A verb phrase, or VP, includes the verb and the description associated with it. In the paper's all-VP strategy, the dish can be named once, with coordinated verb phrases stating its assessment for each nutrient. An assessment that applies to lipids can use a whole verb phrase, followed by another whole verb phrase concerning proteins. The repeated portions can be identical, yet each nutrient still has its own explicit predication. This strategy can combine evaluations with different degrees or directions because it keeps each predicate intact.
The set-aggregation operation shares more of the structure. If the evaluations of lipids and proteins have the same form, for example, the generator can place the two nutrient names in a single coordinated phrase under one assessment. Both nutrients then fall within the scope of the same predicate and preposition. This operation is available when the sentence shapes coincide, which in this design requires the same compatibility classification and the same direction of departure. A qualifying description and a stronger description need separate predicates.
The simplest same-category comparison mentioned in the paper can be written as follows.
Oₓ = Oᵧ
The symbols Oₓ and Oᵧ are the symbolic results for nutrients X and Y. The sign = tests equality of the outputs. As a test on the complete outputs here, it includes the directional sign where there is one. Grouping uses the fact that matching outputs lead to matching sentence shapes for the nutrient assessments.
The set+VP strategy first groups every set of assessments that have the same shape. It then joins those results and any remaining assessments at the verb-phrase level. This fallback gives it something to do when the meal has mixed evaluations. It also means that set+VP and all-VP can produce the same structure in a case where the set operation has nothing to group. The difference between the versions is the use of more compact coordination when matching descriptions occur.
One of the paper's examples has carbohydrates and proteins assessed as slightly above the desired level, with lipids given a stronger excess assessment. In all-VP, the mild assessment is stated separately for carbohydrates and proteins, alongside the distinct statement about lipids. In set+VP, the two mildly excessive contributions are named together. The stronger assessment remains in a separate verb phrase. The resulting sentence retains the same individual evaluations and conveys the matching ones through a shared description.
The authors also give an example where the values for lipids and proteins are slightly high and the value for carbohydrates is low. The favorable side of the feedback comes first where the order can be chosen. The former assessments can share a phrase and the carbohydrate assessment can follow with its own predicate. This illustrates why matching the direction of departure matters. A sentence can group nutrients that share a mild excess and still have to express a shortage in a different part of the same sentence.
The generator operates on structured representations of the sentences before producing the final words. The authors describe these structures as quasi-trees. An assessment can therefore be joined at a particular constituent, such as the noun phrase identifying the nutrient, rather than being treated simply as finished text. This makes the distinction between grouping the nutrient names and coordinating larger phrases part of the generation procedure.
Choosing words and producing the sentence
The optional wording variation operates on open-class words, meaning nouns, verbs, adjectives and adverbs. In the fixed version, a concept is consistently expressed with the same word. In the variable version, the system randomly selects a word from a set of three candidates. For Italian, the authors chose these sets by consulting the realizer's default lexicon, which was designed to contain words broadly understandable to Italian speakers. The lexical choices come from these authored sets.
The lexical option changes how frequently a reader encounters the same expression across messages. Aggregation changes how much of the sentence structure is repeated inside a particular message. The two can therefore bear on different kinds of repetition. Even the fixed lexicon can yield a compact explanation if the set-based grouping is available. A variable lexicon can still accompany the repeated verb-phrase structure of all-VP. This separation allows the app to offer the lexical feature independently of the main comparison.
The authors point out the difficulty of choosing words that work consistently in context. Their random-selection procedure is a simple way to introduce variety, and they recognize that an unexpected synonym could create a mismatch for the reader. Its inclusion gives participants something concrete to try. The experiment's main protocol compares the aggregation strategies and gathers exploratory feedback about the effect of lexical variation.
SimpleNLG-IT realizes the structured sentences after aggregation and lexicalization. Realization is the step that turns the planned structure and chosen words into the sentence the user reads. The Italian engine is a port of SimpleNLG. The authors chose this approach because it supports both Italian and English lexicons, simplifies the implementation of aggregation and uses Java, which permits integration with a larger platform built in that language. The study itself uses Italian messages. SimpleNLG
The procedures in the message generator are specified as rules, sentence plans and lexical choices. The authors describe a simulation resource separately from these procedures. In CheckYourMeal!, the menus come from the Gedeone collection of 500 Mediterranean recipes with caloric annotations. Those recipes supply meals for the participants' decisions. The runtime inputs for a particular recommendation are the proposed meal, the applicable dietary constraints and the record of what has already been eaten.
Experiments and results
A simulated restaurant diet
The authors built CheckYourMeal! to give participants a setting in which they would encounter several pieces of advice while making choices. The participant was asked to imagine eating at a restaurant and to choose from the menus made available in the app. The menus were generated at random from recipes in Gedeone. Each choice occupied a meal slot, and the diet constraints covered the simulated week. The weekly schedule contained 21 slots for breakfast, lunch and supper from Monday through Sunday.
Using a sequence of meal slots gives previous choices a role in the experience. The participant is managing a diet for the simulated period. A proposed menu can be assessed against requirements for its place in that period, and earlier choices can affect the judgment. This creates a reason to consult the feedback as decisions accumulate. The activity is still a game, and the task's aim is to give the messages a plausible decision context for the pilot.
The app accepts personal and anthropometric information, such as age, weight and physical activity. Participants provided their real anthropometric data while making simulated meal choices. The feedback combined pictures and text. A pie chart showed the caloric content by macronutrient, and the histograms showed the ideal values for the slot. The text conveyed the overall verdict and the explanation concerning the nutrients. The study consequently took place in an interface where the same decision had both a visual and a verbal aid.
The app was a research implementation under development. The authors initially tested the game with three people, whose input led them to add detail to the instructions. This step checked whether the experimental setup was practicable. The main comparison then involved 20 people, all native speakers of Italian. Most were students or faculty in computer science. The authors report that participants read the instructions and completed the activity in a quiet setting, using a smartphone supplied for the study.
What each participant was asked to compare
The experiment described the two versions by color. Blue was the all-VP version, which coordinated full verb phrases for the selected nutrient assessments. Violet was the set+VP version, which grouped matching nutrient descriptions where possible and used verb-phrase coordination for the rest. Blue serves as the simpler aggregation baseline. It already combines the assessments into a single detail sentence. The contrast therefore concerns the extent of sharing inside that sentence.
The instructions told testers that they would compare different versions of the message generator and gave them the color names to use during the activity. The authors kept the specific linguistic features under investigation out of that briefing. They expected awareness of the comparison to encourage readers to notice details of the feedback. Participants were asked to simulate two weeks, one with each color, and to spend at least 15 minutes on the activity. The simulated schedule describes the sequence of decisions in the app, while the time instruction describes the requested commitment from the participant.
The researchers also asked participants to try the variable-lexicon feature and identified it as secondary to the main comparison. This gave them some experience of the lexical choice option before answering the questionnaire. The paper analyzes the responses about that feature separately from the main questions about blue and violet.
The feedback form contained 24 questions. There were 8 multiple-choice questions about personal information, 4 Likert items about the app and the lexicon, 9 Likert items dealing with the versions of the generator and 3 open questions. The open responses covered suggestions, impressions and lexical choice. The main comparison centers on four items, each concerning one perceived quality of the messages. The free responses later give the authors a way to interpret aspects of tone that the ratings alone cannot describe.
How to read the ratings
A Likert item asks the participant to express a degree of agreement with a statement. The study used a scale from 1 to 5. The endpoint 1 represented total disagreement, and 5 total agreement. The authors treated the points as equally spaced for their statistical analysis. They report means and standard deviations for the items at the center of the experiment. The mean gives a numerical description of the center of the responses under that treatment of the scale. The standard deviation describes how dispersed the responses were.
The comparative questions were phrased about the blue version. For ease of understanding, usefulness in choosing, and persuasiveness, the statements assigned a favorable property to blue relative to violet. A mean below 3 on those items therefore favors violet. The boringness item assigned an unfavorable property to blue relative to violet. On that item, a mean above 3 favors violet. The results concern a direct comparison expressed through one rating for each property. Each reported mean belongs to the comparative statement, and the scale midpoint supplies the neutral reference for interpreting it.
This orientation matters for reading the numbers together. The mean for boringness is above the midpoint while the means for the favorably worded items are below it. They point in the same direction once the wording is taken into account. Reporting the standard deviations alongside the means also keeps the response spread visible. The tendency in the group is an average of judgments made by individual readers after using both colors.
The comparison of aggregation strategies
For perceived ease of understanding, the comparison item had a mean of 2.55 and a standard deviation of 1.00 in the main study. For perceived usefulness in making a choice, the mean was 2.55 and the standard deviation was 1.00. The comparative persuasiveness item had a mean of 2.50 and a standard deviation of 0.89. Each item asked about a favorable quality attributed to blue relative to violet, so the lower means favor the set+VP version on those properties.
Blue versus violet on perceived persuasiveness in the CheckYourMeal! pilot
Participants tended to disagree that the all-VP messages were more persuasive.
The numbers
| System or setting | Mean agreement on the comparative Likert item |
|---|---|
| Neutral comparison | 3 |
| Observed comparison favoring set+VP (this paper) | 2.50 |
On the item about boringness, the mean was 3.60 and the standard deviation was 1.10. The item asked whether the blue messages were more boring. The direction of the response again favors the violet version. Taken together, the ratings make it possible to say which way the group leaned across the measured qualities. They also show that the preference appeared on items about the perceived practical value of the advice as well as on the item about how tedious the messages seemed.
Blue versus violet on perceived boringness in the CheckYourMeal! pilot
Participants tended to agree that the all-VP messages were more boring.
The numbers
| System or setting | Mean agreement on the comparative Likert item |
|---|---|
| Neutral comparison | 3 |
| Observed comparison favoring set+VP (this paper) | 3.60 |
The paper also reports two-tailed p-values for the comparisons with the midpoint. The value was 0.03 for ease of understanding and 0.03 for usefulness. It was 0.01 for persuasiveness and 0.01 for boringness. In describing the expected direction, the authors identify ratings below 3 as favoring violet for ease, usefulness and persuasiveness, and ratings above 3 as favoring violet for boringness. These p-values are statistical results for the questionnaire responses. The quantities being assessed are agreement judgments about the messages.
The main finding is that the version using set aggregation where possible was preferred within the simulated task. Its extra grouping step reduces repeated words when assessments match, and the authors describe the resulting messages as shorter. The numerical results quantify perceived qualities. For instance, the ease item addresses whether participants felt one version was easier to understand. It is a different measurement from scoring their answers to questions about the nutrient content or observing how accurately they interpreted a shared predicate.
Lexical variation and the rest of the app
The authors examined a separate item that asked whether the variable lexicon made the app more enjoyable. Participants rated agreement with that proposition, so a response above 3 favors the feature. The mean was 3.40 and the standard deviation was 1.0. For the analysis of ratings above 3, the reported p-value was 0.04. The authors describe this analysis as post hoc and call for a dedicated experiment to confirm the apparent preference.
That item has a different form from the four comparisons about aggregation. The respondent judges whether random wording variation contributed to enjoyment. The wording does not tie the answer to a comparison of blue and violet, or to ease of understanding, usefulness or persuasiveness. The result gives an indication that readers may welcome some lexical variety. The evidence remains specific to an optional feature as experienced during this pilot.
The questionnaire also gave the authors an exploratory sense of how the app as a whole was received. They interpreted the answers as indicating that participants found the interface clear and saw both the graphics and the text as helpful when choosing among menus. The free comments supplied a more particular observation about the aggregation strategies. Some participants attributed a blaming or judgmental tone to messages that repeated their predicates. This feedback led the authors to consider whether the effect of aggregation might depend on the favorable or unfavorable character of the advice.
What the ablations show
The effect of an extra kind of grouping
The paper reports a comparison of aggregation strategies in place of a component-by-component ablation, alongside exploratory analyses of lexical variation and participants' comments. The strongest comparison is between always coordinating the assessments at the verb-phrase level and grouping them more closely when they share the same sentence shape. The second strategy can still use verb-phrase coordination, so the comparison tests the option of sharing an assessment across nutrient names where possible.
That design gives the contrast a clear place in the architecture. The recipe, the diet and the meal history go through the same reasoning procedure. The same classes are available to describe the outcomes, and the rules for keeping or omitting an assessment are shared. The difference comes after the generator has selected what to say. In a case where carbohydrates and proteins have the same assessment, set+VP is allowed to express that assessment once for both. The shorter sentence still communicates the chosen content.
The all-VP baseline is consequently informative in a narrower way than a baseline consisting of independent, fully repeated sentences. It already shares the subject and presents the nutrient information together. The improvement in perceived qualities is associated with extra sharing inside this existing structure. A claim about how readers respond to completely unaggregated feedback would require another comparison.
Opportunity for this additional sharing depends on the input. When retained nutrient descriptions differ in shape, set+VP uses separate verb phrases just as all-VP does. When selection retains a single assessment, there is no other assessment with which it can form a group. Matching descriptions create the relevant contrast. The ratings summarize how users responded to the generator versions across the activity, and the paper does not break down those ratings according to how frequently or in what combinations such opportunities arose.
The shared predicate can account for more than one visible property of the final sentence. Grouping shortens the message, reduces immediately repeated words and places matching nutrients next to one another. The measured preference applies to the resulting strategy with those properties together. The experiment gives no independent estimate for the effect of message length, the effect of the coordinated noun phrase or the effect of repeating the same evaluative language.
What the comments suggest about repetition
The authors initially saw a possible advantage for repeating a predicate. Stating the assessment for every nutrient could make clear which judgment goes with which nutrient. Grouping the names also had a plausible advantage because a shorter sentence might sound more natural. The ratings favor the version that uses grouping when available, including on perceived ease. This supports the strategy's appeal for the participants even though its sentences sometimes ask readers to apply a shared description to several items.
Some of the free comments suggest a further mechanism. A negative assessment repeated across a coordinated sentence can sound like several criticisms in succession. Participants who described the all-VP feedback as judgmental or blaming were reacting to the manner of expression. The formal dietary conclusion could be the same with a single shared predicate, but the tone reported by those readers depended on how frequently the proposition was expressed.
The authors present the connection with message polarity as a speculation. The comments identify an aspect of the experience that might differ between praise and criticism. The questionnaire results do not give separate estimates for favorable and unfavorable messages. It is therefore possible to describe the comment-based explanation and to identify why it fits the design, while leaving the magnitude and consistency of any polarity effect unsettled.
The distinction also helps interpret perceived persuasiveness. A reader can regard a less repetitive judgment as a better form of advice, and can express that preference after the activity. That judgment gives the authors useful feedback about wording and tone. The evaluation did not record a corresponding change in what the user was willing to order when the same dish was presented with different wording.
What the word-choice item adds
The lexical item evaluates a different kind of variation. A respondent can experience different words for the same concept over repeated interactions, even when the contents and structure of the message remain similar. The response above the midpoint on average gives the authors some reason to pursue this feature. The item is especially limited as a comparison because it asks directly whether the option adds enjoyment, without estimating the effect of specific word substitutions.
The paper offers no separate evaluation of the quality of the synonym sets or of how particular lexical choices interact with particular assessments. A favorable answer may reflect appreciation of variety in general. The authors themselves acknowledge that random selection can sometimes produce a wording mismatch. The questionnaire item leaves open how frequently readers encountered that problem, and whether any benefit from variety holds in strongly favorable and strongly unfavorable contexts.
Neither the lexical item nor the interface questions separates the influence of the graphical feedback from the influence of the text. The main comparison still targets message formulation because the versions are defined by the aggregation rule. The exploratory responses about the text and graphics indicate that the participants valued both kinds of feedback in the combined interface. They do not measure how either kind performs when presented alone.
Limitations
Limits the authors state
The authors describe the study as a pilot. They distinguish early feedback on a novel application from the evidence needed to evaluate the efficacy of a persuasive health intervention. Medical research standards would be appropriate for the latter question, in their account. The simulated restaurant task was chosen to obtain a first realistic impression of the wording and an indication of its perceived persuasive force.
The sample is small and homogeneous. All participants in the main study were native Italian speakers, and most came from computer science. The authors explicitly say that this combination prevents them from discovering possible relationships between subgroup attributes and the results. The finding is a pattern of responses within this pilot group. The study leaves open how the preference might change with a reader's background, including the kind of nutritional expertise the authors hoped to bring into future evaluation.
Language is another boundary of the evaluation. The authors describe a realizer with support for Italian and English lexicons, and identify that support as a practical advantage of the implementation. The experimental messages and questionnaire were used in an Italian-language study. Other realizations of the same plan could differ in phrasing and tone. The numerical results come from the Italian implementation and its readers.
The authors reserve particular caution for the lexical finding. The choice to analyze that question was post hoc, and they say that confirmation requires a specific experiment. Their implementation also uses a simple random choice among candidate words. They recognize that lexical variety can lead to an expression that feels out of place. Participants' responses to the enjoyment item are a first impression of the feature as a whole.
The fixed design of the messages limits what the assistant can explain. The numeric reasoner consults earlier meals, and that information can change the category assigned to a new dish. The current message states the verdict and names the relevant nutrients. The authors identify explanation using information about past meals as a future direction. They also plan to add suggestions for dishes to eat later. The implemented feedback is an assessment of the current proposal, with the future consequences represented mainly through the category assigned by the reasoner.
Limits of the evidence in this setup
The main outcomes are reported perceptions. Participants say how useful, persuasive, easy or boring they found the messages. The paper provides no comparison of actual dietary adherence attributable to the wording. It also supplies no objective comprehension score, such as whether a reader correctly identifies every nutrient covered by an assessment. A participant's impression of ease is evidence about the reading experience, which leaves actual interpretation accuracy a separate question.
The task lends the messages a decision context while keeping the consequences hypothetical. The testers supplied real personal data, so the feedback could relate to individual requirements. They were still imagining a period of restaurant meals and choosing from a menu assigned by the app. Ratings made in that setting provide a direct response to the task the authors designed. How people respond amid the circumstances of their own meals, over repeated use, remains unmeasured.
The use of graphics alongside the text is also pertinent to the scope of the results. A participant could consult a visual display of nutrient content and the target values while reading the advice. It is possible to find a sentence easier in that setting in part because the underlying information is already visible. As the paper gives no comparison with text-only or graphics-only feedback, the outcomes apply to the versions experienced in the combined interface.
The paper does not detail how the order of the color versions was assigned or how exposure to particular menus was balanced across versions. Those details would help to evaluate what a tester had already learned about the interface by the time they reached a given version, and what kinds of recommendations they saw. They matter for an aggregation rule whose effects vary by meal. Menus with matching nutrient assessments create opportunities for the versions to differ, while other menus may make the versions read alike.
Moreover, the items place agreement with blue's superiority in the same direction for the favorable properties, with the boringness item reversing what that agreement implies about preference. The analysis treats positions on the scale as equally spaced and compares the responses with the midpoint. The reported means and p-values are interpretable within those choices. The paper gives the test results without details about any adjustment across the several outcomes, so the results are best understood in the context of the exploratory study as a whole.
The comparison leaves open how widely its design preference applies across different messages. It is possible for a reader to favor grouped assessments in routine cases and prefer a separate, emphatic assessment in a critical case. The results average over an activity in which participants see a succession of menus. Since the reported analysis lacks a breakdown by severity, category combination or message polarity, it cannot identify which cases contributed most strongly to the overall ratings.
There is also a distinction between deriving a classification and explaining the classification. The system may detect that an otherwise feasible value is incompatible after earlier meals are included. A verdict and a nutrient label tell the user about the current meal's appropriateness. They can leave the cause of the lost flexibility implicit. The study consequently rates messages with a particular level of explanation. It does not establish how those messages would fare against ones that explicitly connect a prior choice with the present constraint.
Finally, the study holds several important design elements fixed. It uses an overall verdict followed by detail, prioritizes incompatible nutrients and orders grouped assessments with a preference for starting with the more favorable feedback. The outcomes describe the two aggregation strategies inside that design. Each of those surrounding choices can affect what a reader pays attention to and how much information appears in the sentence. Their individual contributions remain outside the tested comparison.
What came after
No later study is documented as building on these findings. The paper itself closes with plans for extending the evaluation and for making the explanation more informative. Those plans identify which questions the authors considered open after the pilot.
The first direction was to recruit a larger group of testers and to seek feedback from undergraduates in dietetics. A participant with training relevant to the subject could examine the advice in a different way from the group that took part in the first experiment. The authors wanted more qualified feedback, and saw a larger study as an opportunity to compare additional versions of the generator. That would make it possible to examine lexical variation as a planned part of the experiment, with more attention to how it interacts with the rest of the message.
The second direction concerns the reason a dish receives its verdict. The meal record already helps determine which contributions are feasible. The authors propose using that information in the explanation itself. For an occasional inconsistency, the current explanation can state the problem for the nutrient. An explanation informed by earlier meals could also account for how the user's available choices came to be restricted. This would extend the explanation from a description of the proposed dish to an account of its place in the week's diet.
The authors also mention a future addition to the message plan in the form of suggestions about subsequent dishes. The system's notion of balance makes the distinction between these proposals important. A fuller explanation would clarify what made a current choice possible or difficult. A later-meal suggestion would use the constraints to help the user decide what to do after that choice. Each would add content beyond the verdict and selected nutrient assessments evaluated in the pilot.
The reported experiment ends with readers' responses to the wording of those assessments. The proposed extensions would ask readers to judge advice with more information about their earlier choices, or with guidance about what they might eat next. The paper leaves their effects on comprehension, perceived persuasiveness and dietary behavior open.
Cite
Cite as Luca Anselma and Alessandro Mazzei. 2018. Designing and testing the messages produced by a virtual dietitian. Proceedings of the 11th International Conference on Natural Language Generation.
@inproceedings{anselma2018designing,
title = {{Designing and testing the messages produced by a virtual dietitian}},
author = {Luca Anselma and Alessandro Mazzei},
booktitle = {Proceedings of the 11th International Conference on Natural Language Generation},
year = {2018},
doi = {10.18653/v1/w18-6531},
url = {https://doi.org/10.18653/v1/w18-6531}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/anselma-2018-designing-testing-messages-produced-virtual/