AKTors.org
AKTors.org AKTTechnologiesPublicationsRelated ProjectsPeople
AKTors.org AcquisitionModellingRetrievalReusePublishingMaintenance
COCKATOO from University of Aberdeen


COCKATOO fact-file

Owner  :  University of Aberdeen
Screencam  :  http://www.aktors.org/technologies/cockatoo/cck6a.avi
Addresses challenges  :  Knowledge Acquisition, Knowledge Modelling

What's the Problem?

One School of thought in Knowledge Acquisition says that you should not ask domain experts to provide rules/knowledge but simply tasks which they have worked. In a recent project, we carried out many task-orientated interviews with experts from the Oil industry and had them describe the rock structures which they had investigated. (Rock structures are composed of layers of rocks; layers of rocks are specified by the rock type, hardness and rock thickness.) It soon become clear, that there was a definite structure to the information they were providing, and hence it should be possible to develop a KA tool to capture this information from the domain expert directly. This regularity seems to be a characteristic of a whole range of domains - particularly if one focuses on collecting task-worked information from the domain experts.

Towards a Solution

COCKATOO captures the entities to be described in the data-set as elements of an extended BNF grammar; where the terminals can be expressed as a set of optional literals.

Additionally, constraints are used to ensure that variables fall within a pre-defined range; additionally, relationships between variables can be expressed as constraints. For example constraints can be used to ensure that adjacent rock strata have different names.

The COCKATOO approach makes a clear separation between the inference engine which acquires the data-sets and the KB which describes the knowledge to be acquired.

The technology

Grammar-driven Knowledge Elicitation

When eliciting knowledge, it is desirable to have a structured, declarative specification of the body of knowledge that needs to be acquired. This can be used as both the target of the knowledge acquisition process and the criterion by which the acquired knowledge is assessed. Formal grammars provide a means for specifying knowledge to be acquired, are structured and declarative, and are also widely understood by knowledge engineers and computer scientists. However, there is an important difference in the way that formal grammars are "traditionally" used, and the way that they have been applied here. Traditionally, grammars are used to solve the parsing problem; that is, to determine whether some given text conforms to some given formal grammar. For example, a C compiler must determine whether a given program consists entirely of legal C syntax. In grammar-driven knowledge elicitation, however, one attempts to acquire structured text such that it conforms to the given grammar.

We chose to represent EBNF grammars using a "LISPified" equivalent to the meta-notation of EBNF. This meta-language needs to:

  • provide for the definition of grammar clauses of the target language;
  • differentiate between a grammar's terminal and non-terminal symbols;
  • provide the standard operators of an EBNF grammar, namely, sequential composition, the expression of alternatives, repetition, and optionality.

 

formation -> <lithology>+

lithology -> (<rock> <lithology-depth> [<lithology-length>])

rock -> (<rock-type> <rock-hardness>)

rock-type -> (shale | clay | chalk | granite | other)

rock-hardness -> (very-soft | soft | medium | hard | very-hard)

 

Figure 1: EBNF Grammar for acquiring knowledge of rock formations

 

(defclause formation ::= (repeat+ <lithology>))

(defclause lithology ::= (seq <rock> <lithology-depth> (optional <lithology-length>)))

(defclause rock ::= (seq <rock-type> <rock-hardness>)

(defclause rock-type ::= (one-of 'shale 'clay 'chalk 'granite 'other))

(defclause rock-hardness ::= (one-of 'very-soft 'soft 'medium 'hard 'very-hard))

 

Figure 2: COCKATOO Grammar for acquiring knowledge of rock formations

We illustrate our ideas with a simplified example from the domain of petroleum geology, and, in particular, the acquisition of a case base of oil well drilling experiences. The knowledge captured in this way is used to support subsequent drill bit run modelling and optimisation; for example, to help choose the right drill bit for a given formation sequence, (A. Preece, et al, 2001). The EBNF grammar in figure 1 both describes and specifies a rock formation and its constituent lithologies (basic rock-types). The same grammar can be expressed in COCKATOO's syntax as shown in figure 2. (The correctness of the domain knowledge in our example has not been verified by a domain expert.)

Note that the non-terminal symbols lithology-depth and lithology-length have numeric values, and are more difficult to specify concisely with a grammar. We return to this issue in the following section. Note also that although our simple example illustrates only repetitions of 'one or more' (in this case, lithologies), COCKATOO also provides for repetitions of 'zero or more' with the keyword 'repeat*'.

COCKATOO grammars are interpreted top-down, left to right. Usually, a special parameter to the defgrammar macro (not described here for lack of space) informs COCKATOO which is the ‘top-most’ grammar clause. So, for example, in the grammar of figure 2, we would tell COCKATOO to start with the formation clause. The interpretation of this clause leads to the acquisition of a repetition of lithologies, each in turn consisting of a sequence of a rock, a lithology-depth, and an optional lithology-length. A rock, in turn, consists of a sequence of a rock-type and a rock-hardness. The acquisition of either of these two non-terminal symbols involves the capture of a decision from the user among a number of distinct options (e.g., shale, clay, chalk, granite or other). These options are presented on-screen to the user by COCKATOO, so that a choice can be made and recorded. COCKATOO is sensitive to the number of possible values available. If there are too many values to be listed (i.e., more than a configurable upper limit), then the upper and lower bounds of the symbol (internally, a constraint variable) are provided to the user as additional support. If these values are not available at acquisition time, then the user is dependent upon the guidance provided by the knowledge engineer in the form of comments and questions (White & Sleeman, 2001).

It is unrealistic to expect users to base their interaction with a knowledge acquisition tool on their understanding of an EBNF grammar. To help the user understand what information is required, and how it can be supplied, each clause of a grammar can be "decorated" with a question and/or a comment. A question should be a request for feedback which is directed at the user, such as "What is the rock-type?". A comment provides additional information, such as the meaning of particular terms, the exact format of the input, or other explanatory or "small-print" material. An example comment for the lithology clause might be "A lithology consists of a rock-type, a depth, an optional length, and a hardness".

Methodology for Developing KBs with COCKATOO

COCKATOO already provides mechanisms for specifying the required knowledge at a "high level". That is, during (grammar) development, the knowledge engineer can concentrate on the nature of the knowledge to be acquired, rather than the program that acquires it. Grammar development using COCKATOO is a (cyclic) refinement process, which includes the following chronological stages.

Knowledge Analysis
The aim of this stage is to capture the most important concepts of the domain and the relationships between their instances. In effect, we aim to derive a basic domain ontology.
Grammar Construction
In this stage, we decide which of the ontological elements from the previous stage will be included in the knowledge capture. A further analysis of these elements (for example, a structural decomposition) leads to a grammar that captures the basic knowledge requirements in terms of those elements and their multiplicities (e.g., one-one, one-many, many-many).
Adding Constraints
An optional stage to enhance the grammar with constraints. When used, the aim of the stage is twofold: firstly, to remove unwanted or nonsensical input combinations from the specification; and secondly, to eliminate redundant questions.
Embellishment
Embellishing the grammar with questions and comments.

Try a Demonstration

A video which demonstrates COCKATOO acquiring a data-set for the Drilling domain is available by clicking here. VIDEO (TSCC codec required)

Further Reading

  • A Preece, A Flett, D Sleeman, D Curry, N Meany & P Perry (2001). Better Knowledge Management through Knowledge Engineering, IEEE Intelligent Systems, p36-43.
  • Simon White & Derek Sleeman (2001). A Grammar-Driven Knowledge Acquisition Tool that incorporates Constraint Propagation. KCAP-01 Conference, Victoria, Canada (October 2001), ACM Press, pp187 – 193.

Semantic representation

View in the AKT Triplestore Browser or as RDF.

Also available in DOAP RDF (Description Of A Project)