<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Case-based explanations and goal specific resource estimations</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2020 May</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10352627</idno>
					<idno type="doi"></idno>
					<title level='j'>Proceedings of the 33rd International Conference of the Florida Artificial Intelligence Research Society</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Venkatsampath R. Gogineni</author><author>Sravya Kondrakunta</author><author>Matthew Molineaux</author><author>Michael T. Cox</author><author>Roman Barták</author><author>Eric Bell</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Autonomous agents often have sufficient resources to achieve the goals that are provided to them. However, in dynamic worlds where unexpected problems are bound to occur, an agent may formulate new goals with further resource requirements. Thus, agents should be smart enough to man-age their goals and the limited resources they possess in an effective and flexible manner. We present an approach to the selection and monitoring of goals using resource estimation and goal priorities. To evaluate our approach, we designed an experiment on top of our previous work in a complex mine-clearance domain. The agent in this domain formulates its own goals by retrieving a case to explain uncovered discrepancies and generating goals from the explanation. Finally, we compare the performance of our approach to two alternatives.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Introduction</head><p>Autonomous agents that operate in a dynamic world often encounter unexpected events or discrepancies that signal the existence of novel problems. These agents will perform better when they can reason about and change their existing goals or formulate new ones in response to such discrepancies. The goal reasoning <ref type="bibr">(Aha 2018;</ref><ref type="bibr">Cox 2007;</ref><ref type="bibr">Munoz-Avila et al. 2010;</ref><ref type="bibr">Molineaux, Klenk and Aha 2010;</ref><ref type="bibr">Dannenhauer and Munoz-Avila 2015)</ref> approach we use for goal formulation is to explain the cause behind a discrepancy and to specify a goal to eliminate the cause. In doing so, the agent aims to prevent a reoccurrence. However, goal formulation often creates multiple goals, and each goal requires an independent amount of resources to achieve it. Since agents often have limited resources, they must be careful in their goal selection and management. Our approach to these problems is to provide each goal with corresponding resource and priority estimates to help goal management. The contribution of this paper is the strategy that uses these estimates to manage the formulation, selection and pursuit of goals in an effective manner given the potential for future changes.</p><p>In our system, case-based explanations are retrieved by the event understanding system Meta-AQUA <ref type="bibr">(Cox and Ram 1999</ref>) and applied to discrepancies in an event sequence. We have also integrated this sub-system within the MIDCA cognitive architecture <ref type="bibr">(Cox et. al. 2016</ref>) that perceives and acts directly on the world to examine the interaction between explanation generation (by Meta-AQUA), goal formulation and management (provided by MIDCA). We refer to the combined system as the Goal-driven Autonomy for Trusted Autonomous Reasoning (GATAR) agent.</p><p>The paper continues as follows. Firstly, we introduce the technical approach which include a casebase of explanations, the agent's algorithm to manage goals, case retrieval, and goal formulation. Later we introduce a mine clearance domain, examples that might happen in the domain along with explanations and formulated goals. The section following it discusses the experimental setup for evaluating the performance of the GATAR agent, a random goal selection agent and a standard agent which does not formulate new goals followed by the results. Related research is discussed in the next section. The conclusion and future scope complete the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Technical Approach</head><p>In our work, we use case-based explanations <ref type="bibr">(Ram 1994;</ref><ref type="bibr">Cox and Burstein 2008;</ref><ref type="bibr">Schank et al. 2014)</ref>. Each explanation in our case-base is an abstract explanation pattern (XP) <ref type="bibr">(Schank 1986</ref>) as shown in Figure <ref type="figure">1</ref>. An XP is a data structure that represents a causal relationship between multiple states and/or actions; variables adapted during or after case retrieval abstractly define each action/state. An action or state is referred to as a node, and different types of nodes are described based on their role in an XP as follows.</p><p>&#8226; Explains node: An unexpected observed action or state (i.e., the target of the XP).</p><p>&#8226; Pre-XP node: An observed action/state along with the Explains node.</p><p>&#8226; XP-asserted node: An action, state, or XP that contributes to the cause of the Explains node.</p><p>An explanation pattern represents a causal structure in which XP-asserted nodes form an antecedent and Pre-XP nodes form the consequent. The Pre-XP nodes represent those states that must hold for the XP to be a candidate, including the Explains node itself.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Discrepancy Response and Goal Management</head><p>Algorithm 1 represents GATAR's approach towards executing in its environment <ref type="bibr">(Gogineni et al. 2019)</ref>. Following the notation of <ref type="bibr">Ghallab, Nau, and Traverso (2004)</ref>, this algorithm takes the following inputs: the environment model (&#931;), the current observations of the world (&#119904; &#119888; ), expected observations of the world (&#119904; &#119890; ), case library (&#119871;), current goal (&#119892; &#119888; ) and a goal agenda (&#119866; &#770;= {&#119892; 1 &#8230; &#119892; &#119888; &#8230; &#119892; &#119898; }). GATAR creates a plan (&#120587; = &lt; &#119886; 1 &#8230; &#119886; &#119899; &gt;) of n actions to achieve the initial goal and starts executing the initial plan by modifying its goal agenda when there is a discrepancy (i.e., a condition such that the observed state significantly differs from an expected state; see <ref type="bibr">Dannenhauer, Munoz-Avila and Cox 2016)</ref>. Algorithm 1 extends our previous work in lines 10 to 17 (and line 2). ManageGoals monitors the goals and selects the goal that takes minimum resources with maximum priority (line 10). If the current goal (&#119892; &#119888; ) is switched with a selected goal (&#119892; &#119904; ) (line 11 and 12), GATAR plans to achieve the selected goal (&#119892; &#119904; ) (line 13). Similarly, when the plan for the current goal is completed (line 14) then GATAR removes the current goal from the goal agenda (&#119866; &#770;= {&#119892; 1 &#8230; &#119892; &#119898; }) (line 15), selects the goal (line 16) and plans to achieve the selected goal. This continues while GATAR has resources available, as determined by function (&#119877;: &#119878; &#8594; &#8477; + ) characterizing the resources remaining in a current state using a positive real number.</p><p>Algorithm 2 presents GATAR's approach towards goal management. The function ManageGoals is called with a current state and existing goal agenda of the most recent discrepancy. It first adds to the goal agenda all goals proposed by the current explanation (Line 1), then calculates the set &#119862; of candidate goals whose resource requirements can be satisfied (Line 2). To determine which goals can be satisfied, it uses a hand-coded domain specific resource estimation function (&#119877; &#770;: &#119866; &#215; &#119878; &#8594; &#8477; + ) that estimates the amount of resources required to achieve a goal (&#119892;) from a state (s). GA-TAR then filters the set &#119862; down to the highest priority goals (line 3) with minimum resource utilization (line 4). The priority function (&#119875; &#770;: &#119866; &#215; &#119878; &#8594; &#8477; + ) is a hand-coded domainspecific function that assigns a real-valued priority to a goal (&#119892;) in a state (s). Finally, GATAR returns an arbitrary member of candidate goals &#119862; (which will usually be unique), along with an updated agenda (line 5).</p><p>Algorithm 1. Execute and Monitor &#119916;&#119961;&#119942;&#119940;&#119958;&#119957;&#119942;&#119912;&#119951;&#119941;&#119924;&#119952;&#119951;&#119946;&#119957;&#119952;&#119955; (&#120622;, &#119956; &#119940; , &#119956; &#119942; , &#119923;, &#119944; &#119940; , &#119918; &#770;)</p><p>&#119894;&#119891; &#119904; &#119888; &#8877; &#119904; &#119890; // discrepancy exists 7.</p><p>&#120594; &#119888; &#8592; &#119878;&#119890;&#119897;&#119890;&#119888;&#119905;(&#119877;&#119890;&#119905;&#119903;&#119894;&#119890;&#119907;&#119890; (&#119871;, &#119904; &#119888; )) 8.</p><p>&#119904; &#119890; &#8592; &#119904; &#119890; &#8746; &#119904; &#119888; &#8746; XP-asserted (&#120594; &#119888; ) 9.</p><p>&#119866; &#770;&#8592; &#119866; &#770;&#8746; &#119865;&#119900;&#119903;&#119898;&#119906;&#119897;&#119886;&#119905;&#119890;&#119866;&#119900;&#119886;&#119897;&#119904;(&#120594; &#119888; ) 10. &#119892; &#119904; , &#119866; &#770;&#8592; &#119872;&#119886;&#119899;&#119886;&#119892;&#119890;&#119866;&#119900;&#119886;&#119897;&#119904;(&#119904; &#119888; , &#119866; &#770;) 11. &#119894;&#119891; &#119892; &#119888; &#8800; &#119892; &#119904; 12.</p><p>&#119892; &#119888; &#8592; &#119892; &#119904; 13.</p><p>&#120587; &#8592; &#119875;&#119897;&#119886;&#119899;(&#61523;, &#119904; &#119888; , &#119892; &#119888; ) 14. &#119894;&#119891; &#120587; = &#8709; 15.</p><p>&#119866; &#770; &#8592; &#119866; &#770;-&#119892; &#119888; 16.</p><p>&#119892; &#119888; , &#119866; &#770;&#8592; &#119872;&#119886;&#119899;&#119886;&#119892;&#119890;&#119866;&#119900;&#119886;&#119897;&#119904;(&#119904; &#119888; , &#119866; &#770;) 17.</p><p>&#120587; = &#119875;&#119897;&#119886;&#119899;(&#61523;, &#119904; &#119888; , &#119892; &#119888; )</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">return &#119862;, &#119866; &#770;</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Retrieving an Explanation Pattern</head><p>To retrieve an XP, GATAR tries to unify a discrepant state or an action with the Explains node of the XP's in the case base. When such a unification is successful, then the Pre-XP nodes of the corresponding case are unified with the observations of corresponding states or actions. Also, if this unification is successful then an XP is retrieved. From the retrieved sets of explanations, an explanation is selected based on a Bayesian inference technique to select and monitor explanatory cases <ref type="bibr">(Gogineni et al. 2019)</ref>. Finally, Goals are formulated using the selected explanation. The following section describes the goal formulation process given an XP.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Goal Formulation</head><p>Goal formulation is essential for an intelligent agent to respond to unpredictable events. In our previous work <ref type="bibr">(Gogineni et al. 2018)</ref>, we have formulated goals from the antecedent of the selected explanation pattern. There can be a maximum of three possible types of goals from an explanation pattern: goal to eliminate the actor, goal to eliminate the results of the action by the actor and goal to avoid the discrepancy. Often an actor is responsible for the cause of a discrepancy, so a potential goal to eliminate the actor will hinder the occurrence of discrepancy in future. A potential goal to eliminate the results of the action of the actor is helpful in responding to the current discrepancy that hinders agents' mission. Finally, a potential goal to avoid a discrepancy is to look at the alternate opportunities in which the agent can avoid discrepancies both in present and in future.</p><p>For example, from an explanation pattern with a causal relation, an enemy ship laid the mines in a gaussian pattern to hinder the traversal of the freight ships. A potential goal to eliminate the actor is to apprehend the enemy ship. Similarly, a potential goal to eliminate the results of the action is to survey and clear mines in the gaussian pattern. Finally, a potential goal to avoid the discrepancy is to survey and change the route of the freight ships to an alternate route.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Goal Management</head><p>Often in real world the agent has very limited resources to achieve its goals. In these situations, the agent must be smart about selecting the goals it can achieve. GATAR uses both priority and resource estimation functions to select and monitor goals. In the underwater mine clearance domain priorities are assigned to goals pertaining to the traversal route of freight ships. For example, if the agent has goal to survey regions where the freight ships traverse and a goal to survey other regions, priority is given to the former.</p><p>Each goal type has a resource estimation function to calculate the resources it takes to achieve the goals. To select a goal, GATAR sorts its goals based on the priority. Later, from the sorted list it chooses a goal that takes minimum resources to achieve and monitors the remaining goals. Whenever a monitored goal with the same or higher priority takes less resources to achieve then the selected goal is switched with the monitored goal. Furthermore, if the selected goal cannot be achieved with the current resources the agent has, then it switches the goal with the next possible priority goal that takes minimum resources to achieve and monitors other goals.</p><p>Table <ref type="table">1</ref> shows the type of goals and the resource estimation functions used for the Underwater Mine Clearance Domain. Mine Clearance Goals correspond to the agent surveying and clearing mines at specific region. To estimate the time it takes to achieve these types of goals, we have estimated the number of mines the agent can encounter based on Poisson distribution and time taken to clear mines based on an encounter with mines. The Poisson distribution takes the average number of mines encountered in a certain time period as an input and results in the probability of number of mines we might encounter in future time period. We have chosen the probability threshold as 70%.</p><p>Apprehension goals correspond to the agent apprehending the enemy. These goals use Distance-based function to estimate the time taken to reach the enemy and return to the current position. A Distance-based function uses speed and distance to calculate the time it takes to apprehend plus the apprehension time which can be learned from the previous encounters.</p><p>Equipment goals include rectifying or repairing the agent's failed sensor and use a Distance-based function to estimate the time it takes to reach the repair point plus the repair time, which it learns from previous encounters.</p><p>Switching Location goals correspond to the goals of the agent in switching the surveying regions. To estimate the time to reach the new destination, we use the previous Distance-based function estimates and the Poisson distribution estimates to survey and clear mines at the switched location. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>The Mine Clearance Domain</head><p>Our approach is implemented in a mine clearance domain <ref type="bibr">(Kondrakunta et al. 2018)</ref>, which is simulated using MOOS-IVP <ref type="bibr">(Benjamin et al. 2010)</ref>, software that provides complete autonomy for marine vehicles. triangles are the mines that hinder the ability of freight ships. Area between the two parallel lines is the Q-route. A Q-route is an area where the freight ships use to transport their shipments. There are two Q-routes in this domain Q-route1 and Q-route2. The two octagons are green areas namely GA1 and GA2, where the mines are expected to be present. Clearing mines in these areas are the explicit goals of GATAR.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Discrepancies that occur in the domain</head><p>There are several discrepant events that might occur simultaneously in this domain. These events often affect the agent or its mission. GATAR uses its smart goal reasoning strategy to respond to these events. These discrepant events include minelaying, sensor failure, misclassification, reconnaissance failure and environmental effects. Minelaying events occur when an aerial vehicle, enemy ship or a fishing vessel lays a pattern of mines to trap freight ships. Removing such mines within areas GA1 and GA2 is an explicit goal for GATAR. Alternatively, a sensor failure indicates a fault in the agent's sensor to detect and classify mines. Misclassification event indicates that the agent's action of misclassifying a benign to be a mine. A benign is an object that resembles a mine but not a mine. Similarly, environmental effects include tides that displace mines.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Possible Explanations and Goals for the Domain</head><p>Whenever GATAR detects a discrepancy, it retrieves and selects an explanation from the case-base to formulate new goals. These goals are down selected based on the availability of resources. Table <ref type="table">2</ref> shows seven different explanations explaining the discrepant events that might happen in the domain. Each explanation has a minimum of one and a maximum of three different goals. In the table, clear-area describes the area where no mines are expected.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Experimental Design</head><p>To evaluate the contribution of this paper represented by the GATAR strategy, we have introduced two other strategies, namely the Random Goal Selection strategy and the No Goal Formulation strategy. Each of the agents is assumed to perform the same task of detection and clearing all the mines in GA1 and GA2 and that they will also detect the same set of discrepant mines at different regions in the domain. However, they all respond differently to the discrepant mines. An agent with the Random Goal Selection strategy like the GA-TAR agent will detect the discrepant mines, retrieves and selects an explanation to explain the discrepancy and formulates goals. However, they differ in their goal selection strategies. The GATAR agent uses a smart selection strategy to select and monitor goals, while the Random Goal Selection agent selects a goal at random and tries to achieve it. Alternatively, No Goal Formulation strategy will only achieve the given set of goals and ignores the discrepancies it comes across. Each of these agents with the above-mentioned strategies are run across ten different scenarios. Each scenario contains: ten freight ships that transport their shipments using the Q-route, fishing vessels, possible chance of enemy disguised as a ship or a fishing vessel. Furthermore, there are different patterns of mines that can occur simultaneously across different regions. Possible mine patterns are: Gaussian distribution of mines, linear distribution of mines, and a single mine. Table <ref type="table">3</ref> shows different distributions of mine patterns at different areas along with their corresponding probabilities to be chosen randomly across ten scenarios.</p><p>Performance of the three agents are measured by percentage of freight ships that safely traverse from one end of the Q-route to the other.  Time delay 0: Ships start traversing when Remus starts its mission. Remus does not have time to clear any mines. Hence all three agents perform similarly. In scenarios where mines are sparsely placed, very few ships pass through the Q-route. Hence, there is an initial percentage of 17.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Empirical Results</head><p>Time delay 50: When following The GATAR strategy, Remus enters the Q-route and clears GA1 and a few mines in transit between GA1 and GA2 before the ships starts. Therefore, there is an increase in the performance. No Goal Formulation agent clears mines in GA1 and will be traversing towards GA2 ignoring all the mines it encounters while travelling. Random Goal Selection agent in some scenarios acts on the goals to apprehend the enemy even before it clears GA1, therefore there is a slight decrease in performance of the Random Goal Selection agent.</p><p>Time delay 100: The GATAR agent clears all the mines in GA1, Transit and might apprehend the enemy if it is near Remus. Remus also clears some mines in GA2 if mine density is estimated to be sparse. This agent might also generate a goal to change the Q-route if the estimated density of mines in Q-route is dense, hence the sharp increase in the performance of the agent. Random Goal Selection agent generates goals at random and pursues them without reasoning about the outcome, even then those goals are formulated to eliminate the discrepancy. So, there is an increase in performance of the agent, but the increase is not as significant as the smart agent. No Goal Formulation agent just clears all mines in GA1 and GA2 and returns home.</p><p>Time delay 150: The GATAR agent now has more time than earlier to either clear all mines in Q-route including all in GA2, if the density is sparse to medium. If the density is too high, then Remus might change the Q-route and clear the mines in the new Q-route. Therefore, there is an increase in the performance when compared to the previous value. Random agent might choose better goals in some scenarios, but it also has more time to clear additional mines. So, there is an increase in the performance for this agent as well. No Goal Formulation agent remains constant as it did not clear any extra mines when compared to the previous scenario.</p><p>Time delay 200: Performance of Smart agent remains constant, as it did the best it can with the previous deadline. The performance of the Random agent dropped because it pursued the goals that are of lesser value. For example, it spent resources to apprehend the enemy rather than clearing mines. Once again there is no change in the No Goal Formulation agent.</p><p>Performance of the smart agent clearly depicted significant improvement when compared to other traditional and a slightly smarter agent. This clearly shows the use case of having a resource and priority estimation functions to select and manage goals.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Related Research</head><p>Goal management has been a key focus of the goal reasoning research. Goal selection and monitoring plays a vital role in managing goals. <ref type="bibr">(Kondrakunta and Cox 2017)</ref> presents a goal selection strategy to look at the ratio of cost to benefit in selecting goals. This work closely aligns with our proposed selection strategy, it uses domain specific estimations to determine the cost and the benefit for a set of goals. However, this paper did not pursue the interactions with selection and monitoring goals which is one of the key focus to better performance of GATAR.</p><p>Similarly <ref type="bibr">(Dannenhauer and Cox 2018)</ref> introduced the idea of goal monitors. An agent creates rules as preconditions to monitor goals. If the preconditions are satisfied then the agent switches its goal, else drops the goal. This paper did not look at the problem of selecting goals when there are multiple of them to achieve. Moreover, the preconditions are mostly rule based rather than any kind of estimation function, which is often a problem when the agent has very limited resources at hand.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusion and Future Scope</head><p>In this paper, we discussed an approach to select and monitor goals when the agent has very limited resources to achieve its goals. Our approach uses goal specific resource and priority estimation function to select and monitor goals. Finally, the results show that the performance of GATAR is better than the two other agents presented.</p><p>We acknowledge that our current experimentation process uses estimations manually designed to fit the domain, however in future, we would like to use an automated learning process to relax this assumption. In addition to the above-mentioned experimentation, we would like to explore more with resource and priorities as vectors instead of a positive real number. Moreover, we also want to implement this across different domains and test the generalizability of this approach.</p><p>Finally, we also want GATAR to learn these estimation functions from the knowledge obtained from the retrieved explanations.</p></div></body>
		</text>
</TEI>
