3 THE INFERENCE IN CADIAG2
In this section we describe very briefly a generaliza-
tion of the inference mechanism in Cadiag2. A more
detailed description and analysis of it can be found in
(Ciabattoni and Vetterlein, 2009).
Cadiag2 formally distinguishes between three dif-
ferent types of rules: type confirming to the degree d
(for d ∈ [0, 1]), type mutually exclusive and type al-
ways occurring – see (Adlassnig et al., 1986), (Ad-
lassnig et al., 1985), (Adlassnig, 1986) or (Daniel
et al., 1997) for more on Cadiag2’s rules. The last
two types mentioned are classical in the sense that
the degree of confirmation for the rules of these types
is 1 and that the antecedent of such rules (or evidence
in our settings) needs to be fully true (degree of pres-
ence or of truth 1, see below) in order for these rules
to be triggered by the system. Such a distinction is not
taken into consideration in this paper and it is in this
sense that we say that our description of the inference
mechanism of Cadiag2 is actually a generalisation of
the real inference process. The inference engine in
Cadiag2 gets started with a set of symptoms, findings,
signs and diseases occurring in Φ
CadBin
present in the
patient. Let Γ be the set of such medical entities.
Cadiag2 starts with an assignment w
0
on Γ that
gives a value in the interval [0, 1] to each entity in
Γ. Such value is intended to represent the degree to
which the entity is present in the patient. The in-
tended interpretation of such values is based, in prin-
ciple, on fuzzy set theory. However, other interpreta-
tions can also be suitable, at least to some extent. In
fact, when defining the system CadPL, the interpre-
tation to which we will commit will be probabilistic.
The assignment w
0
is then extended to negative state-
ments and logical equivalents according to the follow-
ing rule:
If w
0
(φ) = η then w
0
(¬φ) = 1− η, for φ ∈ SL
and η ∈ [0, 1].
After the initial assignment the inference rules in
Φ
CadBin
come into play. All the rules triggered by the
sentences in Γ are used during the inference process.
At each step in the inference process a rule is ap-
plied (that is done, in principle, in no particular order).
At the first step in the inference a rule of the form
P(θ|φ) = η in Φ
CadBin
is triggered, with η ∈ [0, 1] and
θ, φ ∈ L
Lit
. In order for that to happen φ or its negation
needs to be in Γ and the value w
0
(φ) has to be strictly
positive. The application of the rule P(θ|φ) = η gen-
erates a new assignment, w
1
, on {θ}. The value as-
signed to θ by it is calculated as the minimum be-
tween η and w
0
(φ) and the value assigned to ¬θ and
logical equivalents (if necessary for the inference) is
calculated from w
1
(θ) as mentioned above for w
0
.
At the n
th
step in the inference process a new rule
of the form P(θ|ψ) = η in Φ
CadBin
will be triggered,
for η ∈ [0, 1] and θ, ψ ∈ L
Lit
. In order for P(θ|ψ) = η
to be triggered ψ must have been assigned at least one
value in (0, 1] either by the initial assignment, w
0
, or
by any other assignment on {ψ} defined during the
inference process at some previous step. At the n
th
step the application of this new rule will generate a
new assignment on {θ} that will give θ the minimum
between η and the value of ψ considered for trigger-
ing the rule at this step in the inference (as above, this
value needs to be strictly positive). If the strictly posi-
tive values generated for ψ before the n
th
step are mul-
tiple the inference mechanism inCadiag2 will call the
rule P(θ|ψ) = η again in further steps, if it has not
done so previously,until all the valuesfor ψ havebeen
used and all the possible values for θ generated. The
assignment w
n
is defined to ¬θ as mentioned above.
The inference process goes on until all the rules
triggered by all the sentences in Γ and its negations
have been used and all the possible assignments for
the sentences involved in the inference have been gen-
erated. Cadiag2 yields as an outcome of the inference
the set of medical entities in L occurring in the rules
triggered by the evidence in Γ along with the maxi-
mal value (with respect to the ordering defined in
Section 2) assigned to them during the inference. If
a sentence is assigned both value 0 and 1 along the
inference process the system generates an error mes-
sage.
It is worth mentioning that the original inference
process in Cadiag2 works in a slightly different way.
The update in the value of the distinct sentences in-
volved in the inference is done as soon as two differ-
ent values for the same sentence are produced by the
system. The value chosen in the update for atomic
sentences in L is the maximal one (with respect to
the ordering ). Notice though that this feature has
a highly undesirable result (unless further restrictions
on the rules or on the order in which the rules are ap-
plied are imposed), which is that the outcome of a run
of the inference mechanism can depend on the order
in which the rules are applied.
Such a drawback is easily avoided by assuming
that the update is only done at the end of the pro-
cess. There are other several undesirable features in
Cadiag2’s inference engine, most of them related to
the maximal value 0 and negated propositions. Maybe
the most evident concerning the maximal value 0 is
that a medical entity that at some step along the in-
ference process is assigned value 0 (that is to say, it
is considered false with certainty or impossible) trig-
gers any rules in which it occurs as evidence if any
other value other than 0 is assigned to it along the in-
ICAART 2010 - 2nd International Conference on Agents and Artificial Intelligence
30