Professional Documents
Culture Documents
Artificial Intelligence in Pharmaceutical Product Formulation: Knowledge-Based and Expert Systems
Artificial Intelligence in Pharmaceutical Product Formulation: Knowledge-Based and Expert Systems
Artificial intelligence in
pharmaceutical product formulation:
knowledge-based and expert systems
Raymond C. Rowe and Ronald J. Roberts
The pharmaceutical formulation process is a highly specialized task • ‘An expert system is a computer program that
requiring specific domain knowledge and often years of experience. draws upon the knowledge of human experts
captured in a knowledge base to solve prob-
Knowledge-based systems, expert systems, neural computing and lems that normally require human expertise’2
machine-learning derived from research into artificial intelligence
Because of their emphasis on knowledge, the
can assist the efficient formulation of products and therefore increase
terms ‘expert system’ and ‘knowledge-based sys-
productivity, consistency and quality. The authors provide an introduc- tems’ are often used interchangeably. If any dif-
tion to the technology of knowledge-based and expert systems. ference does exist, it is in how their input knowl-
edge is acquired. In expert systems input
knowledge is acquired, in the main, from human
▼ In all cases of product formulation – whether experts, whereas in knowledge-based systems it
Raymond C. Rowe* and
Ronald J. Roberts
it be for tablets, capsules, parenterals or any one is usual for input knowledge to be acquired
Zeneca Pharmaceuticals of the numerous other dosage forms – in generic through non-human interaction, such as through
Alderley Park terms the process is the same, beginning with information systems and databases.
Macclesfield the presentation of some form of product speci- In their simplest form, both systems have three
UK SK10 2NA fication and ending with the generation of one major components: an interface, monitor and
*tel: ⫹44 1625 513112
or more formulations that will fulfil the require- keyboard allowing two-way communication be-
fax: ⫹44 1625 512381
e-mail: ments. In many cases the specification has poten- tween the user and the system; a knowledge base
Ray.Rowe@alderley.zeneca.com tially conflicting requirements and thus it is left in which all the knowledge pertaining to the do-
to the highly skilled and experienced formulator main is stored; and an inference engine in which
to balance these and produce the optimum com- the knowledge is extracted and manipulated to
promise formulation. solve the relevant problem. Inferencing strategies
It is not surprising, therefore, that product may be either forward chaining, which involves
formulation has become a popular target for the the system reasoning from data and information
development of expert systems due to the poten- obtained by consultation with the user to form a
tial pay off of a system that can create formu- hypothesis, or backward chaining, which in-
lations with little or no human intervention. volves the system starting with a hypothesis and
then attempting to find data and information to
Technology prove or disprove the hypothesis. Both strategies
There is a wide range of views of what defines are included in most expert systems.
an expert system. Examples of widely used defi- Knowledge in any domain takes the form of
nitions include: facts and heuristics; the former being valid, true
and justifiable by rigorous argument, the latter
• ‘An expert system is a knowledge-based sys- (often referred to as ‘rules of thumb’) being the
tem that emulates expert thought to solve sig- expert’s best judgement in any particular circum-
nificant problems in a particular domain of stance and hence justifiable only by example.
expertise’1 Associated with these are the terms ‘data’ and
Copyright ©1998 Elsevier Science Ltd. All rights reserved. 1461-5347/98/$19.00. PII: S1461-5347(98)00042-X 153
reviews research focus PSTT Vol. 1, No. 4 July 1998
Box 1. Levels and categories of knowledge A technique that is often used in the acquisition process is
the rapid prototyping approach. In this approach, the knowl-
• Shallow – Surface-level, specific, heuristic edge engineer builds a small prototype system as early as
• Deep – Complete, integrated, conceptual possible and this is shown to both the expert and user, who can
• Explicit – Conscious, able to be articulated then suggest modification and additions.This system grows in-
• Tacit – Implicit in expert’s ability to solve problems crementally as more information and knowledge is gained, and
• Declarative – Descriptive representation of facts this methodology has been used successfully in the develop-
• Procedural – Detailed set of rules ment of systems for pharmaceutical formulation.
• Meta – Knowledge about knowledge Once acquired, there are many ways of representing the
knowledge in the knowledge base (Box 2). It is probable that
the most common methodology is the production rule; this ex-
‘information’, the former referring to facts and figures, the lat- presses the relationship between several pieces of information
ter being data transferred by processing such that it is mean- by way of conditioned statements which specify sections under
ingful to the recipient. Knowledge can therefore be regarded as certain sets of conditions.
information combined with heuristics and rules. There are
many levels and categories of knowledge (Box 1) and it is the • IF (Condition 1)
objective of the knowledge engineer to acquire or elicit this • AND (Condition 2)
knowledge and organize it into a computer-readable format. • OR (Condition 3)
Knowledge acquisition is probably one of the most difficult • THEN (Action)
stages in the development of an expert system. It is both time • UNLESS (Exception)
consuming and tedious as well as being expensive and often • BECAUSE (Reason)
difficult to manage. However, it is a necessary element in the
building of an expert system and, if done well, will undoubt- Each rule implements an autonomous piece of knowledge
edly lead to systems of potential use.The basic model of knowl- and is easy to understand. Unfortunately, complex knowledge
edge acquisition is one of a team process whereby the knowl- can require large numbers of rules, causing the system to be-
edge engineer mediates between the expert(s), the users and come difficult to manage. The decision over which method of
the knowledge bases.The knowledge engineer must acquire or knowledge representation should be adopted is dependent pri-
elicit knowledge from not only the expert(s) but also all the marily on the complexity of the domain. In a survey of 50 ex-
other potential sources; these include written documents (re- pert systems in the UK in 1987/1988, it was found that, al-
search reports, reference manuals, operating procedures policy though over half the systems were developed using production
statements) and consultants, users and managers. In the case of rules, nearly a sixth used multiple approaches3.
experts, in the main knowledge is acquired through face-to- Expert systems can be developed using either conventional
face interviews. This process is tedious and can place great de- computer languages, special purpose languages or with the as-
mands on both the expert and knowledge engineer but re- sistance of development shells or toolkits. Conventional lan-
quires little equipment (e.g. tape recorder or note book), is guages such as PASCAL and C have the advantages of wide
highly flexible and often yields a considerable amount of use- applicability and full flexibility to create the control and infer-
ful information. At all times, there must be an empathy be- encing strategies required. They are also well supported and
tween the participants and, in many cases, it is helpful to have easy to customize. However, considerable amounts of time and
two knowledge engineers present at the interview. effort are needed to create the basic facilities.
Specialized languages such as LISP (a recursive language and
the primary one for artificial intelligence research), PROLOG (a
Box 2. Methods of knowledge representation language based on first order predicate logic) and SMALLTALK
(an object-orientated language) have been used extensively in
• Production rules the development of expert systems because they share the ad-
• Frames vantages of applicability and flexibility of the conventional
• Semantic networks languages but are also faster to implement.
• Decision tables Expert system shells and toolkits are sets of computer pro-
• Decision trees grams written in either conventional or specialized languages
• Objects that can form an expert system when loaded with the relevant
knowledge. They compromise on applicability and flexibility
154
PSTT Vol. 1, No. 4 July 1998 research focus reviews
155
reviews research focus PSTT Vol. 1, No. 4 July 1998
Galenical Development System, Heidelberg a statistical design to optimize the formulation quantitatively,
This system, developed by personnel in the Departments of the specification of the excipients used, recommended tests to
Pharmaceutics and Biopharmaceuticals and of Medical validate the formulation and a complete documentation of the
Informatics at the University of Heidelberg (Germany), has decision process.
been designed to provide assistance in the development of a The system is unique in that its knowledge base is broad; it
range of formulations (e.g. aerosols, tablets, capsules, intra- contains information on a large number of excipients; a data-
venous injections), starting from the chemical and physical base of marketed formulations from Germany, Italy, Belgium,
properties of an active drug. The project was initiated in France and the USA; a database on literature references associ-
199010 and extensively revised and enhanced in the in- ated with the formulation of hard gelatin capsules; experience
terim11,12. Originally implemented in C, the system has re- and non-proprietary knowledge from a group of international
cently been upgraded using SMALLTALK. Knowledge represen- experts; and the results from statistically designed experiments
tation is by means of objects, frames and production rules. on capsule formulation. The data is frequently updated and the
Because of the complexity of the overall process, the devel- system has a semi-automatic learning tool that monitors users’
opers have adopted an approach whereby the system focuses on habits regarding the use of excipients. These, together with the
one problem and its associated subset of specification and con- results from user questionnaires, are analysed by the expert
straints at a time. These distinct development steps are worked system founder group providing the background to further
through in succession, care being taken that any solution enhancements.
should not violate any constraints from previous steps.
The output of the system is a formulation together with pro- Sanofi System
duction method, recommended packaging and, where appro- This system, developed by personnel at the Sanofi Research
priate, predicted product properties. Explanation of the strategy Division, has been designed to formulate hard gelatin capsules
used, formulae and rules fired as well as text and literature ref- based on specific preformulation data on the active drug14.
erences can be produced on request. An example formulation The system, implemented using PFES, generates one first-pass
for a 150 mg dose of griseofulvin in a hard gelatin capsule is capsule formulation with as many subsequent formulations as
shown in Table 312.The system was introduced for field trials in desired to accommodate an experimental design. Knowledge
December 1996. acquisition was by interview and structured using objects,
frames and production rules.
University of London/Capsugel System The user is first prompted to enter specified preformulation
This system, developed by personnel at the School of Pharmacy, data on the active drug and the system recommends a formu-
University of London (UK), supported by Capsugel together lation with relevant capsule size and production information.
with personnel from the Universities of Kyoto (Japan) and An explanation log, providing details of the decisions and rea-
Maryland (USA) has been designed to aid the formulation of soning used by the system, are also recorded. An example of a
hard gelatin capsules13.The system, implemented in C, uses de- formulation of 100 mg of naproxen is shown in Table 4.
cision trees and production rules for knowledge representation.
The system is fully interactive with the user and has a ques- Table 4. An example of a capsule formulation for naproxen
tionnaire to assist in collecting all necessary input data. From as generated by the Sanofi System
these data the system uses a variety of methods to predict prop-
Naproxen 100 mg
erties of mixtures of the new drug and various excipients and
Lactose (hydrous) 224 mg
recommends a formulation with any necessary powder pro-
Microcrystalline cellulose (PH105) 060 mg
cessing and filling conditions. In addition, the system provides
Sodium lauryl sulphate 004 mg
Talc 012 mg
Table 3. An example of a capsule formulation for
griseofulvin as generated by the Galenic Development Capsule size No. 0
System, Heidelberg, Germany
156
PSTT Vol. 1, No. 4 July 1998 research focus reviews
nel at the Boots Company, the system won second prize in Accuracy of work
Quality of work
the UK Department of Trade and Industry Manufacturing
Cost effectiveness
Intelligence Awards in 199119. The system was developed in
Increased output
the first instance to assist in the formulation of sun oils but has
Reduced skill level
been rapidly extended to cover creams and lotions. Knowledge
Reduced skilled staff
was acquired from senior formulators using interviews and
Increased throughput
structured as objects, frames and production rules.
Reduced staffing
Implemented in PFES, this is the only system in which the de-
velopers have given details of costings and quantitative benefits. 0 5 10 15 20 25
Total mentions (%)
Benefits Figure 1. A survey of key benefits for expert systems as reported by
Although there is a great deal of interest in expert systems, Dewar20.
there is still much uncertainty regarding their benefits. As
157
reviews research focus PSTT Vol. 1, No. 4 July 1998
Training No budget
All systems have been used to provide training for both novices No management support
158
PSTT Vol. 1, No. 4 July 1998 research focus reviews
Managers have a pivotal role in the development of expert has, in the main, changed to a mood of enthusiastic partici-
systems. They do not need to have an in-depth understanding pation. It is unlikely that expert systems will ever replace for-
of the technology but must set the framework within which mulators but as a decision-support tool they are invaluable and
the developers work.The management role is crucial to the suc- deliver many benefits.
cess of the project and, as a result of extensive studies, it is now
known that organizations that are successful in the develop- References
ment of expert systems are those whose management play an 01 Sell, P.S. (1985) Expert Systems – A Practical Introduction, Camelot Press
active role in coordinating and supporting their initiatives. Ex- 02 Partridge, D. and Hussain, K.M. (1994) Knowledge-Based Information Systems,
pert systems projects are no different from any other project McGraw Hill
and can be planned and managed using common prac- 03 O’Neill, M. and Morris, A. (1989) Expert Systems 6, 90–91
tices6,22,23.This does not mean that they are well managed. In a 04 Turner, J. (1991) Manufacturing Intelligence (issue 8), 12–14
survey of expert systems applications from all UK business sec- 05 Bentley, P. (1998) in Intelligent Software for Product Formulation (Rowe, R.C. and
tors, it was found that only 20% of respondents had used any Roberts R.J.), pp 27–41,Taylor and Francis
project planning/management systems20. 06 Edwards, J.S. (1991) Building Knowledge-Based Systems: Towards a Methodology, Pitman
An issue that must be managed sensitively at the outset is 07 Bradshaw, D. (1989) Financial Times, 27 April, 26
that of the role of the expert and users once the system has 08 Walko, J.Z. (1989) Innovation (issue 18), 24
been implemented. Although in the surveys (Fig. 1) reduced 09 Ramani, K.V., Patel, M.R. and Patel, S.K. (1992) Interfaces 22, 101–108
staff levels have been seen as one of the least important benefits 10 Stricker, H. et al. (1991) Pharm. Ind. 53, 571–578
of implementation, it can still be an issue with some individ- 11 Stricker, H. et al. (1994) Pharm. Ind. 56, 641–647
uals. It is inevitable that there will be a change in the job de- 12 Frank, J., Rupprecht, B. and Schmelmer,V. (1997) IEEE Expert 12, 40–48
scription of both the expert and users and this may or may not 13 Lai, S. et al. (1996) Pharm.Technol. Eur. 8(9), 60–68
result in a change in the opportunities for career development. 14 Bateman, S.D. et al. (1996) Pharm.Technol. 20(3), 174–184
This can result in a lack of cooperation by both users and ex- 15 Rowe, R.C. (1993) Manufacturing Intelligence (issue 14), 13–15
perts in both the development and implementation. 16 Rowe, R.C. et al. (1995) PDA J. Pharm. Sci.Technology 49, 257–261
17 Rowe, R.C., Hall, J. and Roberts, R.J. Pharm.Technol. Eur. (in press)
Conclusion 18 Rowe, R.C. and Roberts, R.J. (1998) Intelligent Software for Product Formulation,
Although there are many issues surrounding the development Taylor and Francis
of expert system applications, the majority of these can be 19 Wood, M. (1991) Lab. Equipment Digest December, 17–19
minimized by good management. The technology is mature 20 Dewar, J. (1989) Systems International 17(7), 12–14
and has proved its ability to generate real business benefit. It 21 Thomas, M. (1991) Manufacturing Intelligence (issue 7), 6–8
should now be considered routinely as one of the methods for 22 Guida, G. and Tasso, C. (1994) Design and Development of Knowledge-Based Systems
increasing competitiveness.Within the pharmaceutical product from Life Cycle to Methodology, John Wiley & Sons
formulation domain, early scepticism amongst potential users 23 Shaw, R. (1990) Expert Systems Opportunities – Case Studies, HMSO
159