Professional Documents
Culture Documents
In Milord II, a rule is composed of an identier, a The structural construct of Milord II is the mod-
premise (a conjunction of conditions), a conclusion, ule. A program consists of a set of modules that
and a truth-value. In the case of conditions contain- can recursively contain other modules, then forming
ing variables, the language is provided with a set of a hierarchy.
predened predicates that apply on them to produce
as result intervals of truth values. A module declaration can be clustered in the next
sets of components: hierarchy, interface, deductive
Premises of rules are conjunctions of elemental con- knowledge and control knowledge.
ditions either in armative or in negative form. Con-
ditions can contain propositions directly. - Hierarchy: Is a set of submodule declarations.
- Interface: It has two components, the import and
For instance, for the fuzzy proposition presence of the export interface. That is, which propositions
creatinine dened above, we can say If presence and variables may be asked to the user (import) and
of creatinine then renal failure is denite. An- those whose value is computed by the module (ex-
other example using many-valued propositions is If port).
- Deductive knowledge: It contains a dictionary dec- is penicillin-resistant to pneumococci microorganism,
laration, that is, the set of propositions and variables that is, whether penicillin is adequate to treat pneu-
(those belonging to the interface of the module and mococci or not.
other intermediate ones) and their attributes; a set
of rule declarations, that is, a set of propositional A data acquisition module usually deduces values for
weighted rules; and an inference system declaration, concepts dierent from those acquired from the pa-
that is, the local logic of the module. tient. For instance, one of them deduces penicillin-
- Control knowledge: It is expressed in a meta- resistant from the number of leukocytes (we consider
language which acts by re
ection over the deductive that there is penicillin-resistant when the number of
knowledge and the hierarchy of submodules. leukocytes is less that 5000 cells per a mm3 .
The implementation of the conceptual scheme of Fig- Many concepts in the domain are vague. In some
ure 1 is made by programming several Milord II cases quantitative data is translated into a qualita-
modules (about one hundred). It is not possible tive one by means of fuzzy sets. For instance, it is
here to explain in detail every module of the system, easier for the expert to reason about the concept the
thought, we will give some idea of their commonali- state of white blood cells is normal than the number
ties by explaining groups of modules. of leukocytes is 7000 cel=mm3. This qualitative ab-
straction allows the expert to say, for example, that
Pharmacological model modules These modules there is penicillin-resistance of pneumococci when the
contain the knowledge about antibiotics for the Te- state of white blood cells is leukopenia. You can nd
rap{IA domain. We represent each antibiotic as a examples of qualitative abstractions in Section 3.2.
concept for which we declare to which pharmaco-
logical group it belongs; which is the administration Examples of this type of modules are: the related to
route of that antibiotic (oral or parenteral); the pos- the clinical history of the patient; his physical exami-
sible interactions with other drugs administrated to nation; his laboratory test and chest radiograph data;
the patient and which are the antibiotics with the the possible complications (for instance, associated
same activity. infectious diseases as meningitis or arthritis) and the
severity of illness.
For instance, erythromycin is an antibiotic that be-
longs to the group of macrolides, it interacts with Sieve modules group These modules, indepen-
another drug, teophylline, and it has the same sensi- dently of the microorganism we want to treat, modify
bility than the antibiotic doxycycline. The adminis- the current antibiotic treatment by eliminating the
tration source of this antibiotic can be both: oral or antibiotics belonging to concrete groups of antibi-
parenteral. otics of the list of possible treatments for a patient.
For instance, it is not possible to administrate an-
This information will be used by modules that rea- tibiotics of the group
uoroquinolones to a pregnant
son about antibiotics. Following the example above patient, because it would aect the fetus.
it is not adequate to administrate erythromycin to
a patient already taking teophylline, it is better to These modules use the pharmacological model mod-
administrate an antibiotic without interaction with ules and acquisition data modules to determine
teophylline, for instance, roxithromycin. which are the groups of antibiotics that is possible
to administrate to a given patient.
All the concepts above (antibiotics, pharmacologi-
cal groups of antibiotics, other drugs, administration The modules of this group are: pregnancy; allergies;
source) are declared into the pharmacological model renal failure; and genetic conditions. Each module
modules. Every propositions or variable declaration uses data about the patient (from the data acquisi-
contains relations with other propositions and vari- tion modules) and exports groups of antibiotics. The
ables, for instance, we declare that the antibiotic ery- truth-value of every group of antibiotics is weighted
thromycin belongs to the group of macrolides. taking into account the adequacy of that group of
antibiotics for the given patient. For instance, if the
Data acquisition modules These modules are the patient has allergic reaction to penicillin, the module
responsible of gathering the patient data that the of allergies gives to the penicillin group the truth-
expert has considered to be relevant for a correct value false.
treatment determination. For instance the number of
leukocytes in the blood of the patient is an important Operationally we start from a truth-value of denite
laboratory test data. It is useful to determine if there for each group of antibiotics, and then every sieve
module sequentially \sieves" them, keeping the same to the concrete patient.
truth-value if there is no reason against the group, or
decrementing it if there is. When the truth-value is
false we consider that the group has been eliminated
from the list of potential groups. 4 Conclusions and Results
Microorganisms modules groups There are We have presented the Terap{IA knowledge-based
twenty-two groups of microorganism modules, one system. The application takes into account the nd-
group for each microorganism treated by Terap{IA. ings of the patient, knowledge about antibiotics and
Each group of microorganism modules uses the out- the diagnosis to nd the best treatment. We also
put obtained by the pharmacological model mod- have introduced Milord II as an appropriate tool
ules, data acquisition modules (specially those about and language to develop knowledge-based systems4 .
severity of the illness, adverse reactions and interac-
tions) and by the sieve modules group. They deduce The expert has developed a partial validation of
which antibiotics to use to treat a microorganism, the system contrasting real world cases of antibiotic
giving a truth-value for each antibiotic. The truth- treatment of pneumonia with the answers of Terap{
value of an antibiotic is obtained taking into account IA. The treatment for each previous diagnosis has
the truth-value of its group (obtained by the sieve been veried separately, producing hopeful results.
modules) and data about the patient.
The nal validation will be made by giving fty real
Given a diagnosis (one, two or three possible mi- world cases of pneumonia to four human experts and
croorganisms) the system only executes the microor- Terap{IA, and comparing the results.
ganisms' module groups corresponding to the mi-
croorganisms in the diagnosis.
Combination modules group These modules References
combine the results of the microorganisms modules.
The modules providing input to this task export [1] J. Almirall et al. Incidence of community-
truth-values for antibiotics. Truth-values represent adquired pneumonia and chamydia pneumoniae
the adequacy of antibiotics for treating the microor- infection: a prospective multicentre study. Eur
ganisms. The results of these modules are weitghed Respir, 6:14{18, 1993.
antibiotic combinations. [2] J. Puyol-Gruart, Llus Godo, and C. Sierra. Spe-
There are several criteria to combine the antibiotics, cialisation calculus and communication. Interna-
implemented in these modules. The combinations tional Journal of Approximate Reasoning, 1998.
are of one (monotherapy), two or upmost three an- To appear.
tibiotics. Some of the criteria are: [3] J. Puyol-Gruart and C. Sierra. Milord II: a lan-
- Combinations are never made with antibiotics be- guage description. Mathware and Soft Comput-
longing to the same group. ing, 4(3):299{338, 1997.
- Combinations are never made with antibiotics that [4] Josep Puyol-Gruart. MILORD II: A Lan-
have the same sensibility, that is, antibiotics that guage for Knowledge-Based Systems, volume 1 of
cover the same microorganisms. Monograes del IIIA. IIIA{CSIC, 1996.
- Combinations are never made with antibiotics that
have dierent administration route (oral or par- [5] A. Torres, J. Serra-Batlles, A. Ferrer, and
enteral). P. Jimenez. Severe community-adquired pneumo-
- Given the same adequacy (truth-value) we prefer a nia. etiology prognosis and treatment. Am Rev
monotherapy than a combination with two or three Respir Dis, (144):312{318, 1991.
antibiotics. [6] A. Verdaguer. Pneumon{IA: Desenvolupa-
Sieve combinations modules group The com- ment i validacio d'un sistema expert d'ajuda
binations of antibiotics are \sieved" taking into ac- al diagnostic medic. PhD thesis, Universitat
count other criteria, as specicity or cost. Autonoma de Barcelona, 1989.
Finally, the system gives to the user the ordered set 4 This software is available for research and educational pur-
of antibiotic combinations possible to administrate poses. You can nd the last version and more information on
Milord II at http://www.iiia.csic.es/~milord.