Abstract
Human-aware Artificial Intelligent systems are goal directed autonomous systems that are capable of interacting, collaborating, and teaming with humans. Activity reasoning is a formal reasoning approach that aims to provide common sense reasoning capabilities to these interactive and intelligent systems. This reasoning can be done by considering evidences –which may be conflicting–related to activities a human performs. In this context, it is important to consider the temporality of such evidence in order to distinguish activities and to analyse the relations between activities. Our approach is based on formal argumentation reasoning, specifically, Timed Argumentation Frameworks (TAF), which is an appropriate technique for dealing with inconsistencies in knowledge bases. Our approach involves two steps: local selection and global selection. In the local selection, a model of the world and of the human’s mind is constructed in form of hypothetical fragments of activities (pieces of evidences) by considering a set of observations. These hypothetical fragments have two kinds of relations: a conflict relation and a temporal relation. Based on these relations, the argumentation attack notion is defined. We define two forms of attacks namely the strong and the weak attack. The former has the same characteristics of attacks in TAF whereas for the latter the TAF approach has to be extended. For determining consistent sets of hypothetical fragments, that are part of an activity or are part of a set of non-conflicting activities, extension-based argumentation semantics are applied. In the global selection, the degrees of fulfillment of activities is determined. We study some properties of our approach and apply it to a scenario where a human performs activities with different temporal relations.
Keywords
Introduction
Human-aware Artificial Intelligent systems are goal directed autonomous systems that are capable of interacting, collaborating, and teaming with humans. The perceptions obtained by these systems can be useful for activity reasoning, intention recognition, activity verification, and activity support. This article tackles the problem of reasoning about activities a human is performing considering the temporality and durability of the activities and possible overlappings between them.
Nieves et al. [11] and Morveli-Espinoza et al. [10] used argumentation for determining inconsistent (and therefore different) activities from a set of hypothetical fragments of activities (henceforth, hypothetical fragments). In their approaches, all the perceived hypothetical fragments are analysed together as they happen at the same time and without considering their durability. However, the activities a human performs may happen at different times and have different duration, which should be reflected in the reasoning about human activity. In order to better understand the problem, let us present the following scenario. In this scenario, a man –let us call him

Assume that there is a set of hypothetical fragments for the activity
We can also notice that some activities partially (or completely) overlap, this means that there are hypothetical fragments that belong to the same time interval like the hypothetical fragments of
Against this background, the research questions that are addressed in this work are: How to model the temporality constraints between human activities in the settings of activity reasoning? and How to perform human activity reasoning considering conflicts (between actions, observations, or goals) and temporal constraints?
In addressing the first question, we will use Allen’s interval algebra [1] in order to represent the durability of the activities and the temporal relation between them. Regarding the second question, we will use hypothetical fragments for representing both an action and its context in terms of related observations (about both the human and the environment) and the goal that can be achieved by performing such action. Based on the elements of its context, emerging conflicts can be identified. We can consider hypothetical fragments as arguments. Hence, we can apply formal argumentation techniques for determining consistent sets of hypothetical fragments, which in turn will determine different activities or sets of non-conflicting activities (this is called local selection). Since temporality is taken into account we will base on Timed Abstract Framework (TAF) [4], which considers that arguments are valid during specific time intervals. Given that we also consider that attacks occur in some time intervals, we will extend TAF to support it. Besides, we propose a global selection, which aims to determine the degree of fulfillment or non-fulfillment of a given activity. Both types of selections aim to recognize the activities a human is performing.
The rest of the paper is organized as follows. Section 3 presents a short introduction about Allen’s algebra and TAF. Section 4 presents basic concepts on argumentation-based activity reasoning. Section 4 extends TAF for supporting activity reasoning and presents local selection. Section 5 presents global selection. The main properties of the proposed approach are studied in Section 6. In Section 7, we show the application of our proposal to the previously described scenario. Section 8 presents a discussion about the limitations, characteristics of the proposed approach, and compares it with some related work. Finally, Section 9 summarizes this article and outlines future research.
In this section, we present the main concepts about the interval algebra of Allen and about the Timed Abstract Framework.
Allen’s interval algebra
Allen’s interval algebra is a calculus for temporal reasoning that was introduced by Allen [1]. It is considered a description-based approach because it associates a time interval with an occurring sub-event (part of an activity) and specifies temporal relationships among sub-events. Seven basic temporal relationships were defined: before, meets, overlaps, starts, during, finishes, and parallel. Note that before and meets describe sequential relationships while the other predicates are used to specify concurrent relationships. Table 1 shows these 13 temporal relationships (where
Allen’s temporal relationships
Allen’s temporal relationships
In this article, we consider hypothetical fragments (see Definition 3) as sub-events of an activity. In this sense, we will use temporal relationships to determine attacks between hypothetical fragments and to distinguish different activities.
The Abstract Argumentation Framework (AAF) that was introduced in the seminal paper of Dung [5] is one of the most significant developments in the computational modelling of argumentation in recent years. The AAF is composed of a set of abstract arguments and a binary relation encoding attacks between arguments. Abstract arguments may represent data, reasons, or propositions. TAF is an extension of AAFs where arguments are valid only during specific intervals of time (called availability intervals). This impacts on the attack relation, which is considered only when both the attacker and the attacked arguments are available. Thus, when identifying the set of acceptable arguments the outcome associated with a TAF may vary in time. Definitions presented in this section were extracted from [4].
A time interval is a real interval [
The next definition extends the AAF of Dung [5] by incorporating an availability function that captures the time intervals where arguments are available.
The following definitions are related to argument acceptability in TAF. Since the availability of arguments varies in time, the acceptability of a given argument
Defense is an important definition in argumentation. An argument
The following definition is about the defense profile of an argument
Finally, the notion of acceptability is presented.
A set A t-conflict-free set of t-profiles is a A t-admissible set A set
Let
Building blocks
In this section, we present the building blocks definitions. These are the human activity framework and the hypothetical fragment of activity. These definitions were extracted from [11].
We start by presenting the logical language that will be used throughout the article. Let
Next definition models the human mind. We will follow the structure of the beliefs-desires-intentions (BDI) model [2].
Besides, it holds that
Given a human activity framework, one can build small pieces of knowledge which give hypothetical evidence of the achievement of a given goal by considering a set of beliefs (i.e., a set of formulas), a
Let us denote by
Local selection
In this section, we introduce a framework to reasoning about human activity with respect to time. To this end, we study how to extend the TAF approach in order to support activity reasoning.
Conflict between hypothetical fragments
Let us recall that a TAF is composed of a set an arguments and of an attack binary relation defined over them. So far, we have defined hypothetical fragments, which can be seen as arguments. Hence, a definition of attack or disagreement between hypothetical fragments is still lacking. In order to define the nature of the attack, we first need to present the notion of conflict, for which, observations, actions, and goals are taken into account. Thus, a hypothetical fragment
Let
□
TAF for activity reasoning
Observe that a hypothetical fragment is basically
As we mentioned above, we will use TAF approach for dealing with defeasible information and temporality. However there is a difference in the treatment of the intervals for activity reasoning. In order to better understand, assume there are two arguments
In the activity reasoning context, the attack relation should reflect the emerging conflicts between hypothetical fragments and also consider the temporal relationship that exists between them when they belong to the same activity interval. In Section 3, we presented the seven basic temporal relationships and their corresponding converse relations. Let
The fact that two hypothetical fragments are conflicting is not determinant for considering that there is an attack between them. This is determined by the temporal relationship that exists between them when both of them belong to the same activity interval. Thus, when two conflicting hypothetical fragments occur in the same time interval and they have a sequential relationship (either before or meet), there is no attack between them because they can be performed in different times. On the other hand, if there is a concurrent relationship, the attack relation exists.
Let (
As
Like hypothetical fragments, attacks also have a t-profile. In this case, it binds a pair of hypothetical fragments to a set of activity intervals where the pair of hypothetical fragments have an attack relation. Thus, a
Let
We can now define the TAF for activity reasoning.
In TAF approach, it is assumed that when there is an attack relation between two arguments, this holds for all the intervals where both of them belong. This is the same idea of a strong attack in A-TAF approach. However, the weak attack relation is not considered in TAF. Therefore, we need to extend the notion of defense for weak attack relation. Thus, besides considering those intervals where the attacker is not present and those intervals where there is an attacker for the attacker, we have to consider those intervals where two conflicting hypothetical fragments do not attack each other because their temporal relation is sequential. This means that when an argument and its attacker are part of the same interval but the relation is sequential there is not need of having a defending argument.
When (
When (
A t-profile of a hypothetical fragment
Based on the definition of acceptable t-profile, the notion of acceptability and semantics is constructed. In this case, we need to redefine conflict-freeness because conflict-freeness in TAF considers that when there is an attack relation between two arguments it occurs in all the intervals both of them belong. However, as in the defense case, in A-TAF two conflicting arguments can have an attacks relation in some activity intervals and not necessarily in all the activity interval they belong (weak attack).
( (
where
Let
We can now adapt the semantics definition to the A-TAF approach. We also consider preferred semantics. This definition is adapted from [3].
A t-admissible set A set A set
An argumentation semantics
Global selection
Selecting hypothetical fragments by considering argumentation semantics is only one of the steps of activity recognition. An argumentation semantics can only suggest degrees of both fulfillment and non-fulfillment of activities, and evidence for believing about the fulfillment of activities.
Since activities are constituted by goals, we need to know what goals are associated to each extension. Let us recall that in an A-TAF, extensions are sets of hypothetical fragments t-profiles, so we use
Considering that a set of hypothetical fragments can be regarded as a set of goals, the status of an activity is defined as follows:
It is important to observe that an extension
Properties of the approach
This section studies some properties of our approach. These properties aim to describe how the behavior of the attack relation impacts on the semantics and how, in turn, it impacts on the results of the activity reasoning.
Proposition 2 states that the resultant conflict-free sets are the same in both approaches if there are not weak attacks. This means that all the pair of attacking hypothetical fragments have a strong attack relation in A-TAF, which is equivalent to the attack between arguments in a TAF. Let us recall that the attack relation
Proposition 3 states that when there is a weak attack relation between at least one pair of hypothetical fragments in a A-TAF, then the set of conflict-free sets in TAF is a subset of the set of conflict-free sets in A-TAF. This means that when the temporal attack relation is weak, there are more amount of consistent hypothetical fragments, that is, the person has done more activities, including those that may be conflicting. Since the attack is weak, such activities were done sequentially.
Finally, Proposition 4 states that when there is a weak attack relation between two hypothetical fragments, then the t-profiles of both hypothetical fragments can belong to a conflict-free set considering those activity intervals where they do not attack, that is, where they are consistent. As in Proposition 3, this means that the performed activities were sequential. On the other hand, it may happen that two conflicting hypothetical fragments are not sequential, in such case, their t-profiles cannot make part of any conflict-free set.
Application to the scenario
In this section, we apply our proposal to the scenario presented in the introduction section. Indeed, this is a large scenario and we only take into account the necessary elements for illustrating the conflicts and attacks.
In this scenario, we focused on the temporal reasoning. For this reason we assumed that all the hypothetical fragments of each activity are known; however, it is not a rule. Indeed, formal argumentation is an appropriate technique for dealing with incomplete knowledge.
Let
The intended meaning of the grounded atoms and is presented below:
The rules we are considering are:
From
Hypothetical fragments constructed from ActF
bob
Hypothetical fragments constructed from

Recognized hypothetical fragments.
Now, let us present the emerging conflicts between the hypothetical fragments:
Let us denote with A-TAF
In A-TAF
The second step of our approach considers de global selection. The set of goals associated to each extension is the following:
Let us now present the status of the activities:
Finally, let us determine the degrees of fulfillment of the activities:
In this section, we will discuss some aspects and limitations of our proposal. Besides, we compare it with some related work.
In this work, we have assumed that we can group hypothetical fragments in activity intervals such that these activity intervals do not overlap. This can be clearly seen in the example because a set of hypothetical fragments occur between 17 and 18 hours, the other set between 18 and 22 hours, an the last set between 22 and 6 hours. However, it may occur that there is always an overlapping between all the perceived hypothetical fragments. This is a limitation of our approach, and we plan to deal with it in future research.
The attack that emerged in the application scenario was between hypothetical fragments
Although the main contribution of our proposal is focused on activity reasoning, the fact of distinguishing conflicts from attacks can also be important for formal argumentation. In TAF or AAF approaches, the nature of attacks is not discussed and in structured argumentation (e.g., ASPIC+ [9], ABA [6], Delp [7]) an attack is generally related to the logical inconsistency. However, as we could analyse, in temporal activity reasoning conflicts are indeed related to logical inconsistency whereas attacks are determined using the conflicts and also the temporal relation between two hypothetical fragments. Thus, these works suggest that the nature of the attacks may depend on the contexts of the argumentation reasoning is carried out.
According to Ryoo and Aggarwal [12], statistical approaches that make use of models such as Bayesian Networks, Hidden Markov Models, and Conditional Random Fields, achieve good results with sequential activities; however, they require large learning datasets and fail to deal with temporal constraint management. Other approaches use reasoning in order to deal with temporal constraints. McKeever et al. [8] base on evidence theory to incorporate time related domain knowledge into the reasoning process. Stevenson and Dobson [13] tackle the problem of reasoning about concurrent activities. They make use of the Pyramid Match Kernel algorithm to support reasoning on recognising activities of varying grained temporal constraints. The difference with these approaches is that they do not deal with defeasible knowledge and in the former work, they do not tackle the problem of concurrent activities.
Conclusions and future work
This article presented an approach for activity reasoning, which uses Allen’s algebra to model the temporal constraints between hypothetical fragments of activities and extends TAF approach to support defeasible activity reasoning. The temporal and the conflict relation between hypothetical fragments determine the attack relation between them and the kind of attack relation. We demonstrated that our approach allows to distinguish between different activities by considering the activity intervals their hypothetical fragments belong.
Some future research directions were presented in previous section. Some other future research are: (i) we have used the Allen’s algebra for representing the temporal relation between hypothetical fragments. However, there are more elements of this algebra that can be used like the composition operation. It will be interesting to further study in order to determine how to apply them to activity reasoning,(ii) we plan to include uncertainty in the elements of the hypothetical fragments, and (iii) we also plan to use machine learning techniques for obtaining the necessary data for generating the hypothetical fragments; in this sense, we can complement both techniques for a better performance of the approach.
Footnotes
Acknowledgments
The first author is supported by CAPES.
