Artificial Intelligence For U.S. Army Wastewater Treatment Plant Operation and Maintenance
Artificial Intelligence For U.S. Army Wastewater Treatment Plant Operation and Maintenance
Artificial Intelligence For U.S. Army Wastewater Treatment Plant Operation and Maintenance
AD-A200 434
88 11 4,025
UNCLASSIFIED
SEC,)RTY CLASSIFICATION OF THIS PAGE
REPORT DOCUMENTATION PAGE OMB No 704 0188
,__________________________________ p Dare run 30 1986
la REPORT SECURITY CLASSIFICATiON Ib RESTRiCTivE MARKINGS
Unclassified
2a SECURITY (LASSFCAT 'ON AUTHORITY 3 DfSTR1BUTONAVAiLAB!LTY OF REPORT
Approved for public release; distribution
b00ECaSSIFICAThON DOWNGRADING SCHEDULE is unlimited.
PERIORMING ORGANIZATION REPORT NUMBER(S) 5 MONITORiNG OPGANIZAT ON REPORT N,,MBER(S)
USA-CERL TR N-88/26
UNCLASSIFIED
FOREWORD
This investigation was performed for the U.S. Army Engineering and Housing Sup-
port Center (USAEHSC) under Project 4A162720A896, "Environmental Quality Tech-
nology"; Task B, "Environmental Design and Construction"; Work Unit 043, "Automated
Army Water/Wastewater Treatment Process." The USAEHSC Technical Monitor was
Thomas Wash, CEHSC-FU-S.
The work was conducted by the U.S. Army Construction Engineering Research Lab-
oratory (USA-CERL) Environmental Division (EN). Dr. R. K. Jain is Chief of EN. The
technical editor was Dana Finney, USA-CERL Information Management Office.
D. . (g. idwani is witl* L.T, .r-., anrd D. S. PJ. Snelton is a professor at the
University ot New Mexico.
Sc i Accession For
2~ TAF'E
SDTIC
ilv
; and/or
l .it Special
3
CONTENTS
Page
DD FORM 1473 1
FOREWORD 3
1 INTRODUCTION ........................................................ 5
Background
Objective
Approach
Scope
Mode of Technology Transfer
REFERENCES 42
DISTRIBUTION
4
ARTIFICIAL INTELLIGENCE FOR U.S. ARMY WASTEWATER
TREATMENT PLANT OPERATION AND MAINTENANCE
1 INTRODUCTION
Background
In recent years, it has been shown that computer systems can make WWTP opera-
tion and maintenance (O&M) easier and less costly. Many persons in the field now be-
lieve that the computer will be a necessary part of plant O&M in the very near future
and that the computers wit' simplify, rather than complicate, the process.
Installations are required to compy with provisions of their National Pollutant Dis-
charge Elimination System (NPDES) permits.' However, the General Accounting Office
(GAO) reported in 1984 that a significant number of Department of Defense (DOD) plants
were failing to operate within NPDES limitations. 2 In response to the various problems
with Army WWTP operations, the Army Operators' Assistance Program (OAP) was imple-
mented. Despite this action, there is still a need to improve WWTP O&M at military
installations.
Objective
The twofold objective of this research is to (1) identify and evaluate potential op-
portunities for the Army to exploit recent advances in Al to improve the performance of
its water and wastewater treatment facilities and (2) provide a general orientation to
this emerging technology for Army installations that may be required to assess its value
to their WWTP.
5
Approach
Several alternative approaches were considered for sueveying and analyzing the
potential of using Al/expert systems in Army WWTP O&M. From these alternatives,
three different approaches were adopted:
1. LISP Machine, Inc., Los Angeles, CA, was contracted to analyze the potential
from an expert systems manufacturer's viewpoint.
3. Dr. S. P. Shelton, University of New Mexico, looking toward the future, pre-
dicted how the expert system would evolve and assessed the cost/benefit aspect.
Scope
6
2 ARMY WASTEWATER TREATMENT PLANTS (WWTP)
AND ARTIFICIAL INTELLIGENCE (A)
Army WWTP
Results of a 1980 in-house Department of the Army (DA) WWTP survey indicated
that the major problem with O&M at Army WWTPs was a shortage of operators and lack
of training. In 1984, GAO found that most randomly sampled DOD WWTPs had not con-
sistently met the effluent quality limitations imposed by their NPDES permits. This situ-
ation was due to inadequate staffing, a lack of specific guidance on adequate operation,
maintenance, and compliance, and a poor maintenance program. In response to various
problems with the Army WWTP operation, DA initiated the OAP through the former
Facilities Engineering Support Agency (FESA) and WWTP performance improved. How-
ever, there is a need for additional improvements.
One area still needing attention is the effluent quality mandated by NPDES per-
mits. Typical secondary treatment plant effluent limitations that WWTPs should meet
are:
e BOD and suspended solids (SS): 30 mg/L for a 30-day average and 45 mg/L for a
7-day average
More stringent mandates or other limitations such as pH, fecal coliform, settleable sol-
ids, residual chlorine, total Kjeldahl nitrogen (TKN), ammonia, and phosphorus levels may
be reqired, depending on the receiving water quality. Some WWTPs are still not
meeting these requirements.
The major areas of concern that could potentially be addressed through Al applica-
tion to WWTP O&M are:
" Proper operation and control techniques to meet NPDES permit limitations
* Efficient operation to minimize the operating costs (i.e., manpower, energy, and
chemicals)
7
Automation and Computerization of WWTPs
Automation is not a new subject for WWTP designers and operators. Proceedings of
3
an International Association on Water Pollution Research and Control workshop and an
American Water Works Association (AWWA) management resource book' summarize the
current status of automation and instrumentation for WWTPs and water plants. In these
references, many workers reported that computerization of WWTPs and water plants had
sdved operating costs through increased performance efficiency and optimal use of
energy and chemicals. Areas in which automation and computerization proved to be effi-
cient and reliable include: WWTP process control, information management, monitoring,
water plant unit process operation, pumping station operation, wastewater disinfection,
plant energy optimization, water distribution optimization, and maintenance manage-
ment. No water plants or WWTPs are currently operated by an expert system, but some
workers use an expert system-based technique. 5 In 1980, Kelley 6 stated that the com-
puter could not be justified for water plants smaller than 20 mgd. In 1986, Poon et al.,
concluded that the adoption of a microcomputer-based O&M 7
system would be beneficial
for new or larger (4-mgd or more) water plants and WWTPs.
Al-based expert systems are computer programs in which logical reasoning is sup-
V!erented t_-ec-f' - ! "
j,,dgr-ent,
I,7 th-rnh. Expert s-,tems solve
:' rulpq -4'
problems that generally fall into one of the following categories: interpretation, predic-
tion, diagnosis, debugging, design, planning, monitoring, repair, instruction and control.
History
In the late 1960s, early Al researchers believed that a few law- of re asoninf -01j-
pled with powerful computers would produce expert, superhuman performance. As
experience accrued, research began to focus on narrowly defined applications. From the
3
R. Drake (Ed.), Instrumentation and Control of Water and Wastewater Treatment and
Transport Systems (Pergamon, 1985).
'American Water Works Association (AWWA), Computer-Based Automation in Water
Systems (1980).
5
D. Johnston, "Diagnosis of Wastewater Treatment Processes," Proceedings, Specialty
Conference on Computer Applications and Water Resources (American Society of
Chemical Engineers [ASCE], June 1985).
6AWWA, p 12.
7
C. P. C. Poon, et al., Evaluation of Microcomputer-Based Operation and Maintenance
Management Systems for Army Water/Wastewater Treatment Plant Operation,
Technical Report N-9618/MDAI71992 (U.S. Army Construct*cn Engineering Resear.,,
Laboratory [USA-CERLJ, July 1986).
8
Table I
Gases Flow/pressure 1
Dissolved oxvgen 2
Hydrogen sulf ide 2
Methane 2
Carbon monoxide 2
Carbon dioxide 2
Sewage treatment Liquid flow 2
Liquid level 2
Sludge blanket level 2
Sewage (suspended solids) 3
Mixed liquor (suspendcd solids) 2
Returned sludge
(suspended solids) 2
Surplus sludge
(suspended solids) 2
Dissolved oxygen 1
Treatability/toxicity 3
Oxygen 1
Flow (sludge gases) 2
Pressure (sludge gases) 2
Calorific value (sludge gases) 2
Methane (sludge gases) 2
Carbon monoxide (sludge gases) 2
Carbon dioxide (sludge gases) 2
Oxygen (aludge gases) 2
BOD 3
pH 1
Fecal coliform 3
Ammonia 2
9
Table I (Cont'd)
mid-1970s through the early 1980s, work in the expert systems field achieved much
success, examples of which include:
"F. Hayes-Roth, D. Waterman, and D. Lenat, "An Overview of Expert Systems," Building
Expert Systems (Addison-Wesley, 1983).
10
Basic Concepts of an Expert System
A key step in Al research was the insight lhaL a vital part of this knowledge is em-
bodied in "heuristics"--that is, practical working rules rather than theoretical models
learned from experience and, often to some extent, beyond conscious recall. These heur-
istics guide the human expert to select correct solutions quickly and efficiently among a
multitude of alternatives.
Knowledge Erio
engineer user
0 EXPERT
SYSTEM
USER INTERFACE
aids
Debugging Knowledge
acquisition Explanation
facilities
aids L----
INFERENCE Interfaces
ENGINE with other
systems
KNOWLEDGE
BASE
1!
Identifying and representing the heuristics are major parts of developing a 1mowl-
edge base; this task is one of the main factors determining if the development of an ex-
pert system is easy, difficult, or infeasible. Key considerations are that the systems
must be restricted to a limited, clearly aefined knowledge domain, and that the heuristic
knowledge must be available in some form--either from a human expert or documenta-
tion.
The function of the second major expert system component, the inferenece engine,
is to operate oi, the knowledge base and apply the laws of logical inference to make fur-
ther deductions about the situation it describes. An inference engine, separated from the
knowledge base, represents the abstract rules of logic that ideally are independent of any
specific knuwled e domain. In practice, however, knowledge bases frequently contain
procedural informalion that guides the inference engine through the knowledge base, thus
saving research time. Such information is sometimes called "metaknowledge," or know-
ledge about the knowledge itself.
Besides the knowledge base and inference engine, the other essential elements in an
expert structure are the interfaces that link these two components to the outside world,
generally to a human user at present, but increasingly in the future to other computer
programs and conventional databases. A frequent requirement, sometimes regarded as
an essential feature of the expert systems, is an explanation facility that can trace the
line of reasoning a system has used to reach a conclusion and present it to the user in an
understandable form.
The expert s~stem's architecture also dictates the nature of the tasks to be carried
out by the users and the talents they need. The architecture is successful because it
places the emphasis of new systems development on the acquisition and organization of
domain knowledge. This condition, in turn, has created the need for "knowledge engi-
neers" who have the ability, training, and experience to elicit knowledge from domain
experts and structure it appropriately in the knowledge base, designing the whoL system
so that it can arrive at required solutions quickly and effectively. Thus, the whole tech-
nolo.g'y can be seen as a means of increasing the leverage that skilled persons can apply to
solve problems using computer-based solutions.
As an example of the type of expert system currently available on the market, the
PICON system is described here based on literature from the manufacturer. Los Ange-
les-based LISP Machine, Inc. (LMI), is a supplier for the PICON system, an integrated
hardware/software environm it built for industrial process management using Al tech-
nology. The hardware/software implementation of this system requires:
12
" A technique to process incoming data so that it is directly usable for decision
making.
" A way to enter the expert's knowledge into the computer's knowledge base ty
the domain expert with no Al background.
" A way to access expert advice and explanations by the process or factory
operator.
Sy-stem Features
According to LMI, for real-time response to the thousands of dynamic data points
of a large real-time system, PICON is designed with unique features, including: online
data collection; scanning; focus; scheduling; long-term strategy; background mainte-
nance; and simulation. These capabilities are summarized below.
Online Data Collection. PICON interfaces directly to the process control data via
its RTIME interface module. It selectively accesses the data needed for inference and
decision-making. All data is then stamped and carries a user-selected currency interval
that defines the life of data.
Scanning. PICON can scan certain conditions at regular intervals to look for incip-
ient upsets, problems, or significant events. The user can specify a scan rate for the
rules that control this activity.
Focus. Some sensors need to be read, and some rules tested, only when a certain
situation has occurred. These secondary rule-frames are activated by the primary alert-
ing rules, causing PICON to focus on parts of the process related to the actual or devel-
oping problem detected by the primary rules.
Scheduling. At the heart of the PICON inference engine is the scheduler. Online
applications require that data be obtained from other control or automation systems, but
it may not arrive in time for a particular inference. PICON's scheduler is responsible
for: (1) interrupting and resuming inferences and actions that are not complete due to a
lack of data; (2) taking alternative actions when an inference does not complete in a rea-
sonable amount of time; and (3) keeping many activities going without ambiguity. It can
schedule any number of activities, such as testing a rule, to occur on a regular, cyclic ba-
sis. It can also schedule any activity to occur at some specific time in the future,
whether in 3 seconds or 3 weeks.
Long-Term Strategy. An expert system that could respond only to a current situa-
tion would be of limited utility in most applications. PICON is designed to deal effec-
tively with the rates of change, and any abnormal trends in the process.
13
Simulation. PICON is supplied with a dynamic simulator that has the same user
interface as the knowledge-base editor. The simulator is a distinct module that supplies
sensor values to the inference engine as if they were obtained from a real plant. The
user can select the source, i.e., simulation or real process, from which PICON captures
its data. The simulation can be developed and tested incrementally as the knowledge
base is being built, making it an ideal tool for testing the knowledge base and checking
PICON's response to both normal and abnormal conditions. The simulator is also very
useful for training operators, as it can be used to expose them to situations seldom
encountered.
Interface Program
PICON interfaces with a real-time data source such as a process control system for
real-time data acquisition via the RTIME interface. RTIME consists of three functional
submodules:
3. 1/0 Driver: the element of RTIME that inputs and outputs data on the inter-
connect device chosen to communicate with the external system. Standard communica-
tions are via Multibus, high-speed RS232, Ethernet, and other Multibus-compatible inter-
faces. Since PICON is applicable to a variety of data-acquisiticn systems with differing
protocols, it is often necessary to customize this part of RTIME to a specific network.
PICON can send expert advice to the operator and/or the process to change a pro-
cess variable (e.g., controller setpoint in a closed-loop situation). The system is designed
to be compatible with existing color displays commonly offered by process control ven-
dors to display PICON decisions on these terminals.
The explanation facility in PICON allows a user to ask the system to explain its
decision process. This information is presented to the user graphically in the form of a
decision tree, which the system creates dynamically for every situation. LMI also claims
that modifications and additions can be made to the knowledge base without stopping
PICON.
14
expectations of those who normally deal with pure chemical systems. This criticism
should not be inferred as an effort to denigrate information from LMI. Certainly the LMI
approach would offer a substantial foundation from which an Al system could be devel-
oped for application to Army wastewater treatment process control and management;
however, it should be recognized that the off-the-shelf transference of current LMI pro-
ducts is not the panacea that one might perceive from reading the manufacturer's litera-
ture.
15
3 FEASIBILITY OF Al APPLICATION TO ARMY WWTP
2. The second phase in this evolution would be to tailor the first-phase expert sys-
tem on a plant-by-plant basis. In this way, a more succinct knowledge base could be
developed and the complexity of searching efforts for a specific problem will be low-
ered. As with the first-phase expert system, this system would have no direct interface
with the operations and would simply act as an inquiry system using operator-supplied
data.
3. The third phase would produce a recognition system. The term "recognition" is
used in reference to an Al system's recognizing a problem and defining the problem vari-
ables for future action. In WWTP process control, the role of recognition is shared
between the instrumentation for sensing and process control, and the knowledge base in
the computer. The direct linkage between instrumentation and the computer would per-
mit forward/backward chaining, thereby providing the potential for recognition of prob-
lems as they occur. The intelligent computer would suggest what needs to be done to
correct the problem and the operator would implement this suggestion. In this phase, the
operator action would yield new input data to the system, which would then generate a
new frame. In this real-time environment, the system will "learn" as a function of oper-
ator action and the resulting cause-and-effect relationships.
4. The final phase would generate real-time control, which would free the operator
from routine WWTP O&M and rely primarily on the Al system. In this scenario, the
computer would operate and maintain the plant by adjusting flow and recycle rates; turn-
ing on and off valves, pumps, and blowers; adjusting chemical dosage; lubricating and
replacing parts; and whatever else is needed for O&M. Operator intervention would be
required only when a null set occurs in the Al system, in which case the system notifies
the operator that an experience has occurred for which information is not available.
Development of this type of system would require all information from the preceding
three phases plus computer implementation of the action suggested in the first stage of
Al development. Under this system, a computer-initiated action would yield a new
frame. Thus, the chaining would appear in terms of "cause, action, effect, cause, action,
effect, etc." If backward chaining were also used, the reverse of the above scenario
could be incorporated in parallel, as well--specifically, "effect, action, and cause; effect,
action, and cause; etc." The framing technique proposed would produce child frames as a
function of new data while discarding parent frames. As time passes, efficiency and
sophistication of the Al operating system would be brought into sharper focus for the
specific treatment facility to which the Al system has been applied in a generalized
16
form. Therefore, the Al system, once implemented in generic form would evolve to
become unique to the specific facility as a function of the learning process incorporated
into the A[ procedure.
Although Al technology has seen impressive progress in recent years, the successes
described in the literature tend to exaggerate. At present, the above evolution scenario
sounds exciting, but in the real world, the technology and resource limitations, for
example, make the last phase infeasible from an economic perspective. However, A[
applications can be expected to continue growing rapidly in coming years.
In this study, as the first step toward Al application to Army WWTPs, a proof of
concept approach is proposed to explore the possibility of, and identify problems associ-
ated with, this application. The expert system in this study was constructed and tested
by a Stanford University research team. The following portion of this chapter is adopted
from the Stanford team report. 9
Knowledge Acquisition
Problem-Solving Expertise
The problem-solving ability within a specific domain is what separates experts from
novices. This ability, usually gained after prolonged experience with a specific class of
problems, allows the expert to solve problems quickly and efficiently. Experts rely on
facts, combined with procedural and heuristic problem-solving methods. Facts include
statements such as, "the dissolved oxygen is 4.5 mg/L," and "the primary clarifier was
built in 1978." Procedures include methods for activities such as collecting and analyzing
laboratory samples, cleaning and lubricating a pump, and calculating the sludge removal
rate. Some procedures take the form of algorithms--computational methods guaranteed
to provide a correct (or "optimal") solution in a finite period of time, or to conclude that
there is no possible solution. Other problem-solving methods are heuristic, often consist-
ing of rules of thumb that include symbolic information such as: "if the primary clarifier
effluent solids are too high and gas bubbles are rising to the surface, then the sludge has
9
L. Ortolano and C. Perman, Development of a Conceptual Plan for the Exploitation of
Artificial Intelligence in the Diagnosis of Operational Problems at Army Wastewater
Treatment Facilities, Draft Report, DACA 88-86-0247 and DACA 88-86-0008 (Depart-
ment of Civil Engineering, Stanford University, May 1987).
'B. Buchanan and E. Shortliffe (Eds.), Rule-Based Expert Systems: The MYCIN Experi-
ments of the Stanford Heuristic Programming Project (Addison-Wesley, 1984).
17
become anaerobic and is overflowing the weirs." An interesting characteristic of heuris-
tics Is that, although they ,orten solve problems, they are not guaranteed to provide opti
mal solutions. Much of the knowledge acquisition process is concerned with defining the
heuristic problem-solving techniques used by experts.
Knowledge Sources
In building an expert system, knowledge is gathered from both public and private
sources. Public sources include documents prepared by the Environmental Protection
Agency (EPA) and the Water Pollution Control Federation (WPCF). Generally, the public
knowledge source consists of all material available as public domain, including material
in textbooks, regulations, and videotapes. Public knowledge is available to more than one
individual and is subject to peer review.
Transferring knowledge means extracting and recording it from both public and pri-
vate sources. Extracting knowledge from public sources is a well known exercise. The
challenge of knowledge transfer lies with extracting personal knowledge from individ-
uals. The knowledge acquisition process must be structured such that the individual's
knowledge is captured and articulated in a way that allows it to be recorded. Three con-
ditions have caused the knowledge acquisition process to be called "ad hoc" and charac-
terized as being fraught with difficulties and frustrations: the nature of private know-
ledge, including its heuristic aspects; the dependence on an expert's ability to communi-
cate; and the importance of the knowledge engineee"s ability to listen.
In the context of expert systems, the transfer of private knowledge involves two-
way communication between the expert and another individual, called the "knowledge
engineer." Sometimes experts can record their problem-solving expertise independ-
ently. An advantage of using a knowledge engineer, however, is that he or she can con-
tribute an objective view of which knowledge is pertinent to the planned expert system
and often can direct experts in unraveling methods that they may never have formally
identified. The assistance provided by the knowledge engineer can save the expert time
during system development.
''P. Sell, Expert Systems: A PracticalIntroduction (Halsted Press, John Wiley and Sons,
18
representing expertise in a programmable format, including predicatt calculus, n-tuples,
semantic nets, frames, inference methods, and production rules. 12 n -ases for which
specific software and hardware have been chosen, the knowledge engineer must adapt the
recorded problem-solving xpertise to the syntax and representation schemes available.
One of the indirect accomplishments of the transformation process is clarification of the
expert's heuristic reasoning process. Since an explanation of the reasoning process is
included as part of an expert system, clarity of expression is a requirement in formal-
izing heuristic knowledge.
One method of creating production rules based on case study examples, called
"induction," is implemented with the help of specialized software.13 Induction is based
on a set of case studies, provided by the expert, which consists of different types of
problem-solving decisions (e.g., a "training set") and a set of relevant factors called
"attributes" that influence decision. The induction algorithm uses the training set to
induce general principles, thereby formulating a generalized decision process and enab-
ling the prediction of decisions for problem examples not included in the training set.
The induction method is most useful in the later stages of the knowledge acquisition
process when the expert, sometimes with the help of a knowledge engineer, has compiled
a large number of case studies.
The knowledge engineer is responsible for facilitating the knowledge transfer, tran-
scribing and formalizing the knowledge and, in some cases, implementing the expert sys-
tem. Sometimes several knowledge engineers work as a team; in other situations, a
single person carries out all knowledge acquisition tasks. When the knowledge acquisition
process is based on interviews and discussions, the knowledge engineer takes an active
role in the knowledge transfer. In this context, the knowledge engineer, either cons-
ciously or unconsciously, can filter the knowledge by selecting or altering information as
it is recorded and formalized. It is crucial that the experts have an opportunity to
review and refine the recorded material and its implemented version. In some circum-
stances, the knowledge engineer can also function as a knowledge source. For example,
the knowledge engineer might have some expertise in the problem-solving area.
Although the knowledge engineer's abilities may be less refined than the expert's, they
may be sufficient to contribute knowledge to the expert system.
The users are the individuals who ultimately employ the production version of the
expert system. If they dislike the system, feel uncomfortable with it, or fail to find it
usefui or worth the time it takes to learn, they will not use it. Consequently, identifying
the user's needs is essential to the design and implementation of the expert system. By
consulting the users at the start of knowledge acquisition, they become a knowledge
source--not so much for problem-solving expertise, but for giving feedback on the appro-
priateness of the input and output and on the effectiveness of the explanation facility.
Knowledge acquired from consulting with the user applies specifically to the expert sys-
tem's ability to communicate with the user (i.e., interface design) and the content of the
explanation facility. If the explanation facility does not fulfill the user's needs, then the
expert system is not attaining one of the defining characteristics of such a system: clar-
ifying the program function to the user.
1ZN. Nilsson, Principles of Artificial Intelligence (Tioga Publishing Co., Palo Alto, CA,
1980); E. Rich, Artificial Intelligence (McGraw-Hill, 1983).
1 3A. Hart, "The Role of Induction in Knowledge Elicitation," Expert Systems, Vol 2, No.
1 (1985), pp 24-28.
19
Knowledge Acquisition Methods for Developing a Prototype
What are the appropriate criteria for selecting an expert? As a pra&ca! matter,
the expert is someone who is regarded by those interested in solvin the problem as hav-
ing an outstanding record of accomplishment.
For this study, an "expert" was defined as a person who meets the following cri-
teria:
Based on these criteria, five experts were selected--three from ES2 Engineers,
Berkley, CA, and two operatons foremen from the Fort Lewis, WA, WWTP. The ES2
Engineers experts provided general expertise in diagnosing problems and recommending
actions while the Fort Lewis foremen supplied site-specific knowledge for building the
expert system.
The team planned to transfer knowledge from the experts to the computer program
in cycles, with each cycle consisting of the following steps: interview, transformation,
implementation, demonstration, review, and refinement. Interviews were used to gather
new knowledge which was then transformed into programmable form. Implementation of
the knowledge as a component of the prototype expert system was then demonstrated to
the experts and their review comments were used to refine it. The experts were involved
at the interview, demonstration, review, and refinement stages, whereas the knowledge
engineers participated in all stages. Each cycle began by collecting the more general
expertise from the ES2 experts and ended by having the Fort Lewis foremen add site-
specific expertise.
During each interview, the knowledge engineers and an expert developed a test
case. The various elements of the expert's problem-solving techniques were revealed by
20
examining how the expert discovered a problem symptom, how the cause of the various
symptoms were diagnosed, and how a particular remedial action was recommended. The
rules articulated in the context of the test cases came from the expert's own exper-
iences. Other rules were deduced from an expert's reactions to case histories developed
by other experts and reported in the literature. After these interviews, the knowledge
engineers formalized and added each test case to the developing expert system.
The next step in transferring knowledge from the expert consisted of soliciting the
expert's reactions to the formalized and implemented test cases with a demonstration of
the expert system. The expert's feedback was valuable in several ways, the most import-
ant of which was to validate the correctness of the work done by the knowledge engi-
neers in transfer'ring knowledge from the expert to the program. During the demonstra-
tion, the knowledge engineers and the expert verified that the program was emulating
the expert's problem-solving techniques. The demonstration also provided a forum for
reviewing the clarity and ease of use of the demonstiation system's interface.
The knowledge transfer process began with a seminar presented to the ES2 Engin-
eers. It included an introduction to expert systems and the knowledge acquisition process
along with a demonstration of an experimental rule-based system that was written in
INSIGHT (PC-based software) for diagnosing problems in a trickling filter. The ES2
Engineers recommended starting with the primary sedimentation (clarifying) tank
because it would have an appropriate ievel of complexity.
The first test case was developed during an informal interview while a knowledge
engineer tape-recorded the conversation. The expert took an active role in the knowl-
edge acquisition exercise by acting as if he were teaching the knowledge engineers how
to solve the test case.
Using the information from this interview, the knowledge engineers implemented
the first version of Sludgecadet, the proof-of-concept system discussed in the next sec-
tion. To validate the implemented knowledge, the Sludgecadet system was demonstrated
to experts for their review. All participants watched the expert system work and were
given the opportunity to use it themselves. Their comments were detailed and empha-
sized the choice of specific words and phrases used in the system. Since they found the
underlying reasoning and facts to be represented correctly, their comments emphasized
the need to make Sludgecadet understandable and accessible to the novice WWTP opera-
tor.
On an earlier site visit, the knowledge engineers had obtained a copy of the Fort
Lewis O&M manual. Using this information, the knowledge engineers prepared a version
of Sludgecadet that transferred the general solution of the total suspended solids problem
to the Fort Lewis plant. This version of Sludgecadet contained all facts and knowledge
from the Fort Lewis plant that applied to the test case. The experts reviewed this ver-
sion, focusing on its details and determining its applicability to the Fort Lewis WWTP.
The purpose of the Sludgecadet proof-of-concept system was to apply the process
of building an expert system to a representative diagnostic problem. With help from the
participating experts, the team focused on diagnosing and recommending remedial action
for a specific operating problem: abnormally high total suspended solids (TSS) in the pri-
mary clarifier effluent. The first version of Sludgecadet consisted of facts, calculations,
21
ana diagnostic and remedial expertise that is transferable to individual sites in the
category of WWTPs with trickling filters for secondary treatment and anaerobic digest-
ers for sludge treatment. In addition, this test version had complete user interface and
explanation facilities that had been reviewed by experts and potential users at ES2
Engineering and Fort Lewis.
Before implementing the Sludgecadet system, the following tasks were necessary:
During the knowledge acquisition process, knowledge was compiled primarily from
experts, but also from operating manuals, engineering texts, and plant engineering des-
criptions. Since the focus was on developing an expert system for one specific type of
operating problem, the team concentrated on gathering only those facts and problem-
solving techniques applicable to that problem. From the various sources, it was estab-
lished that the acquired knowledge could be separated into three categories: facts about
the treatment plant and operating data; reasoning for making diagnoses and recommend-
ing solutions; and calculations for the various empirical and dimensional relationships in a
WWTP.
o Operating Decisions: making necessary changes on each shift to keep the plant
on target for process parameters.
22
Of these four categories, diagnosing and recommending remedial actions are
grouped under "process decisions" and "operating decisions." Each type of decision can
be based on heuristics or algorithms. Heuristics include qualitative or symbolic problem-
solving rules developed from operating experience. An example of a heuristic rule for
diagnosing problems with trickling filter processes is: "If the trickling filter has an ob-
noxious odor problem, the wastewater, sludge, or biological growths have become anaer-
obic." 5
During treatment plant operations, the operator must respond to changes in plant
status by "taking action." Sometimes taking action means establishing routine activities
such as sampling, buying supplies, and scheduling maintenance. At other times, the oper-
ator must take action in response to adverse process conditions. Some typical operator
actions are: 6
" Take physical action, e.g., change flow, add chemicals, repair broken equipment
To run a WWTP, the operating staff must keep track of the present state of the on-
going processes. This status is evaluated by indicators that show influent flow rate, tem-
perature, pH, biological oxygen demand (BOD), settleable solids, SS, color, odor, and pro-
cess turbulence patterns. Some of the indicators are measured empirically; others are
based on the operator's subjective observations. The empirical data are associated with
standard units of measurement; the subjective data have no standard of measurement.
Methods of collecting information about these indicators include personal observations,
manual sample collection and laboratory analysis, and automatic data collection.
One of the operator's essential duties is to walk through the plant and observe its
present state. Familiaritv with the plant, coupled with personal observations, are essen-
tial to being an effective operator. Also, plaiit processes are dynamic; the operator must
understand the impact of changes on the plant. Since each plant is unique, operator
training is most effective with hands-on, site-specific conditions.
Laboratory results and measured parameters are necessary to operation and serve
to enhance, rather than replace, direct operator observations. Laboratory analysis is an
empirical method for collecting data about the status of a plant. Aside from being
required by Federal, State, and local regulatory agencies, such analysis is also vital to
the operator for monitoring and interpreting plant conditions. Without laboratory
results, the operator can only guess at what is happening in the plant. -1
ID. Cortinovis, et al., The Activated Sludge Process: Fundamentals of Operation (Ann
Arbor Science, 1983).
16D. Cortinovis; D. Cortinovis, et al.
'i'D. Cortinovis.
23
Formal Representation in Sludgecadet
The first step in testing the system's feasibility is to rewrite the acquired knowl-
edge into a formal documented form that is independent of a specific type of expert sys-
tem or programming environment. There are several reasons for this step. First, it
forces knowledge engineers to restate the acquired knowledge, thus checking their under-
standing of the domain. It also provides a medium for validation and review by the con-
tributing experts. Finally, since the knowledge is already recorded in a formal, validated
medium independent of implementation language, it allows efficiency in rewriting the
same system in a different language.
After formalizing the knowledge, the team designed five basic features and capa-
bilities of the Sludgecadet system which include:
1. Storage of and access to facts about the plant. Two important constraints guide
the formalization of knowledge: the facts describing the generic and site-specific plant
information need to be stored separately, and there needs to be a provision for high-
capacity data storage with easy updating and access, such as a database. An interesting
feature of wastewater treatment facts is that they concern complex objects with physi-
cal meanings and behaviors. For example, pumps are physical objects in wastewater
treatment plants. All pumps share certain attributes (e.g., a class, a model number, a
pressure rating, etc.); specific pumps have specific values for each of these attributes.
2. Reasoning for making diagnoses and recommending remedial action. The rea-
soning process that includes diagnosis and recommendation of remedial action has been
formalized frequently in the expert system programming envirunment. These systems
have represented the diagnostic process as one that attempts to prove a hypothesis about
the problem (i.e.. the diagnosis) by searching a database for proven facts or prompting
the user for confirmation on certain questions (i.e., new symptoms). This reasoning exer-
cise is usually called a "backward chaining" process because it starts with a posed hypo-
thesis, tests the hypothesis with various supporting facts (i.e., premises) and, if the pre-
mises are true, indicates that the hypothesis has become a proven solution. The diagnos-
tic process is represented conveniently by statements called "production rules" in an
"if...then...else" format.
4. Program control. This feature enables the user to control execution of the
expert system; these tasks include inputting data, outpuLting rebuits, requesting engi-
neering computations, accessing the database, initiating operating problem diagnosis and
recommending remedial action, and requesting explanations.
5. User interface and explanation. The user interface provides tools that enable
the user to interact with the expert system and exercise control over the program.
Unfortunately, this is the single part of the program design that depends on the software
and hardware chosen for system implementation. Classically, this interaction has been
based on text input and output. With a text-based interface, the terminal can be either a
teletype (typewriter) or a screen on which the lines are written in consecutive order from
24
top to bottom. With both graphics monitors and software, personal computers and work-
stations can provide an interface based on menus, pictures and, in some cases, a mouse-
guided cursor. Most importantly, graphics provide the entire screen to the user for both
input and output. A typical graphics interface consists of pictures (i.e., bitmaps) and
menus that are cursor-sensitive. By selecting a picture or menu item with the cursor,
the user activates a part of the software. Cursor-sensitive graphics can be used as an
interface to program control and for inputting and displaying data.
Another aspect of the expert system's interface is a feature that explains the sys-
tem reasoning, conclusions, and requests for information. The explanation facilities can
reply to questions that are posed such as, why the user is asking for this piece of data or
how the user forms that diagnosis. The specific design of the explanation facilities
depends as much on the capabilities of the expert system's interface as it does on the
users' needs and level of expertise. For this reason, it is to the advantage of the system
designer to be able to work in a programming environment that provides as many built-in
features as possible for responding to the system's potential users.
AI Programming Techniques
Nilsson has stated that the appropriateness of the representation depends on the
application; further, efficient storage, retrieval, and modification are key concerns in
selecting an implementation design. 8 Considering the enormous amount of information
on O&M of WWTPs, the developmental team chose an object-oriented programming style
as the guiding framework for designing the implementation.
25
N
object.! Frames often are organized into a hierarchical database, with some frames
representing general level "class" objects and others detailed level "instance" objects.
Class-level frames can be considered as parent objects that pass on their attributes to
instance or child frames. When a new child frame is created, it will automatically
inherit the attributes of the parent unit, thus establishing an efficient method for gener-
atirg and organizing information in the database.
"Daemons" are rule-based or procedural items of code that execute when a certain
attribute's value changes. A daemon is attached to an attribute and constantly monitors
the condition of the attribute value. When the value changes, the daemon executes.
Daemons are so called because they do not require explicit control by the user, but are
often activated as "side effects" when some other procedure changes an attribute's value.
It was clear that the object-oriented style database would be advantageous for
Sludgecadet, producing a system with a procedural language for program control and cal-
culations as well as a database for storing the -lant and operating data. Other desirable
features included object-oriented production rules with flexible inference mechanisms,
including forward and backward chaining; high-level control of text; and graphics inter-
face and explanation facilities.
The Sludgecadet system was tested and then implemented in a Knowledge Engi-
neering Environment (KEE) that resides in a LISP-based workstation. Of its many fea-
tures, those most applicable to the proof-of-concept version of Sludgecadet are: frames
that form a database of objects connected by attribute inheritance relationships; proce-
dural programming language (ILISP), accessed either by message passing between objects
or as explicitly invoked functions; built-in explanatic-i facilities; and a machine-inde-
pendent, high-level graphics package for building a customized user interface.
At the center of KEE are frame-based objects called "units." Frames are collected
into a knowledge base (KB). They can exist independently in a KB or can be linked by
26
relationships. Specifically, KEE provides "child of" or "parent of" links. With these links,
the child frames can inherit attributes of their parent frames. Parent frames describe
classes of objects.
KEE has another feature called "active values," sometimes known as daemons. This
feature can be invaluable for maintaining and updating dependent values in the plant and
operating database. In KEE, daemons are stored as method attributes on a special kind
of unit that is a child of the class "active values."
Implementation of Sludgecadet
" Recognize that an operating problem involves the primary clarifier and offer a
possible diagnosis
" Diagnose a problem or, if unable to infer a diagnosis, state that diagnosis is un-
known
" Represent the physical objects of a wastewater treatment plant (e.g., unit pro-
cesses, subsystems, specific parts, wastewater and sludge streams)
This exercise was implemented with the same Al programming techniques that
would be used in a production version of the Sludgecadet system. The current version of
Sludgecadet consists of two KEE KBs: the first named SLUDGECADET for knowledge
that is transferable between locations and the second named FORTLEWIS for the chosen
test site. These KBs contain all codes that implement the facts, production rules, and
most of the interface within frames (or KEE units). The only code not stored in the two
KBs is the LISP code required for procedural control of the program.
27
GEOGRAPHY
SERVICE. COMMUNITY
ENVIRONMEN .CALENOAR
INTERFACE TIME4 - CLOCK
ALARMS
CLIMATE
MASS.BALANCE / EFFLUENT.TSS
/ /, PRIMARY. SLUDGE.PRODUCTIN
/ //
OPERATING.CALCULATIONS .SURFACE .LOADING
" CLARIFIER.CALCULATIONS A -- TSS.REMOVAL
OPERATING.PROBLEMS ....TEST. "RCSBLEM
SLUDGE.DEPTH.RULE
d -
UE - ANAEROBIC.BY. COLLECTOR
----- AIIAERO6C.FROM.REMOVALRATE-RULE
DIAGNOSIS.RULES- PRIMARY. CLARIFIER.DIAGNO SIS.RULES -- CHECK.PUMPING.RATE.RULE
'.COLLECTOR. NOT. WORKING. RULE
,,
SLUDGE.COLLECTOR.WORKING.RULE
CHECK.DESIGN.PUMPING.RATE.RULE
SLUDGE - PRIMARY.CLARIFIER.SLUDGE - --TEST. PRIMARY.CLARIFIER.SLUDGE
PLANT.INFLUENT
/ PRIMARY.CLARIFIER.EFFLUENT- - TEST.PRMARY. CLARIFIER.EFFLUENT
FLUIDS WASTEWATER PRIMARY. CLARIFIER.INFLUENT
PRIMARY. CLARIFIER. SUPERNAI ANT
CLEAN.WATER
28
of physical objects) are on the right end of a dashed line. The frame representation in
the SLUDGECADET KB includes:
2. Operating calculations. This is the parent frame for all calculations required in
the TSS problem. All information needed for a specific type of calculation is stored in
each instance frame's attributes.
The attributes (called "own slots" in KEE) inherited by the unit PRIMARY CLARI-
FIER 1 (Figure 4) include: ACTUAL SLUDGE PUMPING RATE, DESIGN SLUDGE
PUMPING RATE, DOWNSTREAM, EFFLUENT, EFFLUENT SS, FRACTION DRY SOLIDS
IN SLUDGE, and GAS BUBBLES. Each slot has several subdivisions called "facets" such
as Inheritance, ValueClass, Cardinality Max, Comment, and Values. The Inheritance
facet specifies the way in which the slot inherits the value facet from a parent unit; in
the slot ACTUAL SLUDGE PUMPING RATE (top slot of Figure 4) the inheritance of
override values means that the value, in this case 15, is unique to the unit PRIMARY
CLARIFIER 1 and has not been inherited from the PRIMARY CLARIFIERS parent unit.
The ValueClass facet declares that the value of the slot must belong to a certain cate-
gory which in this slot is a number. A Cardinality Max establishes the upper limit of the
number of distinct values on the Values facet. A Cardinality Max of "1" means that the
slot can have only one value at a time. The values in the rest of the slot of PRIMARY
CLARIFIER 1 reflect the current state of the KB after diagnosing the TSS problem.
29
PRIMARY.CLARIFIER.1
PRIMARY.CLARIFIER.2
PRIMARY.CLARIFIER.3
PRIMARY.CLARIFIER.4
PRIMARY.CLARI FIER.SLUDGE. I
PRIMARY.CLARIFiER.SLUDGE.4
-- PRIMARY.SLUDGE.COLLECTION.PIPE
PRIMARY.S LUDG E.COLLECTION. SYSTEM. 1 <,
PRIMARYSLUDGE.PUMP
PRIMARY.SLUDGE.COLLECTION. SYSTEM .2
PRIMARY.SLUDGE.COLLECTION.SYSTEM.4
30
Unit.PRIMARYCLARIFIER.
I in kinocreledgei
bon.
FORTLEWIS
CreatedbY PERMANonr5-M1iar-8722.13:09
Modified
by PERMANon 8-Mar-8721:24,18
Member
Ofl (PRIMARY.CLARIFIERS
in Ib SLUDGEADET)
Ownslot: ACTUAL.SLUDGE.PLNfPING.RATE
fr
PRIMARY.CLARIFIERA
Inhseritance
OVERRIDE.VALUES
ValueClass(NUMWER
in khiKEEDATATYPES)
Carnaaliy Max:I
Values15
Ownslot DESIGNSLUDGE.PUUPlFG
RATEfroms
PRIMARYVCLARIFIER
I
Inherance OVERRIDE VALUES
ValueClass(NUMBERin WdKEEDATATYPES
1
Cardinality Max 1
Values 22
OwnSilt EFFLUENT
fromPRIMARY
CLARIFIER
I
Inhrintance OVERRIDE VALUES
Comment'Poinrer to threapprapsrale
effluentunit
CardinalilyMin I
CardosalityMax I
Values PRIMARY CLARIFIEREFFLUENT I
Ownslot EFFLUENT
SSfromCLARIFIERS
tInheritance OVERRIDE
VALUES
ValueClass(NUMBER in kb KEEDATATYPES)
Cardinaliy.Min I
CardinalityMax:1
Comnmentf
Efflersusp~ended
solids(mgh)
ValuesUnknown
OwnSlut GASBUBBLES
frornPRIMARY
CLARIFIER
I
Inherrance.OVERRIDE
VALUES
ValuesVISIBLE
31
One of the rules used in diagnosing the TDS problem is called the "Primary Clari-
fier Problem Rule" and is stored in a frame of the same name (Figure 5). All of a rule
frame's attributes are inherited from the high-level KEE frame called RULES. A system
developer enters a rule into a KB by storing it in the value facet of the EXTERNAL
FORM slot of a rule frame (see the fourth slot in Figure 5). The rule text is in a LISP-
like form with each premise enclosed by parentheses. Most premises have the format
"the slot of frame is value," thus associating each rule premise to frame-based informa-
tion in the KB. The "?Problem" and "?Unit.process.location" terms, which are distin-
guished from other terms by a question mark, are KEE rule variables. By using the ?Pro-
blem variable, this rule can be applied to any problem represented by a frame which is a
child of the class frame OPERATING PROBLEMS. This action is controlled by the pre-
mise "(?Problem is in class operating problems)."
Program Control
The Sludgecadet program control triggers several capabilities: (1) installing the
program at specific WWTPs, (2) inputting operating and plant data, (3) reporting data and
program results, and (4) diagnosing operating problems and recommending remedial ac-
tion. The program control is implemented with LISP and is activated with KEE active-
image Method Actuators.
Problem-Solving by Reasoning
Diagnosing problems in WWTPs is much more complex than simply diagnosing a par-
ticular solution to a specific operating problem. An experienced operator can review
problems experienced in the past and try to solve a new problem by looking for similari-
ties or associations with past difficulties. For optimal effectiveness, an experienced
operator should first see if a problem is really an operating problem or if it is due to
some other factor. 2 One of the first steps in problem diagnosis is to relate similarities
about the current problem to those in the past and ascertain if the current problem may
be caused by something over which the operator has no control.
The second phase of diagnosis uses the problem's hypothetical solution from the
preliminary analysis as a goal in a backward-chaining inference exercise. Since this
exercise makes use of more than one rule, the inference engine "chains" the rule by
matching similar conclusions from one rule to the premises of another rule to form a rule
graph. As the program chains from the goal to each supporting fact, the Sludgecadet
system first checks if the fact is available in the KB; if not, then the user is queried. If a
diagnosis is made, the results, which are displayed by Active Images, include the
diagnosis of the problem, the primary cause or reason for the problem, and the rec-
ommended remedial action.
Ruletakes primarysymptomns,
assertsa problemund andqueriestor a
dragnooss
OwnskX.ACTIONfromRULES
Irdse-r- UNIION
ValuesUnkrnown
Ownslot.ASSERIT.MODE
fromCLASSIFY.PROBLEM.RLES
Inherance OVERRIDEVALUES
ValueClass(ONEOF ADOREPLACE)
Cardinally Min I
Card,.ahly Mar I
ValuosREPLACE
Ownslot EXTERNALFORMfrornPRIMARY
CLARIFIER
PROBLEM
RULE
6rrreounce SAME
V IuaCLass
(LISTin It KEEDATATYPES)
AunrisIRULEPARSE inkbRULESYSTEM2)
Values(IF
9
(AND( PROBLEMIS INCLASSOPERATINGPROBLEMS)
(THE UNITPROCESS LOCATION
OF ?PROBLEMIS
?UNITPROCESSLOCATION)
(?UNITPROCESSLOCATION
IS IN CLASS
PRIMARYCLARIFIERS)
(THE TOTALSUSPENDED
SOLIDSOF
?UNITPROCESSLOCATIONIS TOOHIGH)
(THEGASBUBBLESOF ?UNITPROCESSLOCATIONIS
VISIBLE))
THEN
(THE PROBABLE
CAUSEOF ?PROBLEM
IS
ANAEROICi~
THESLUDGE.IS
Ownslot PARSEIron RULES
Inheflance METHOD
(METHOD
Va~u@Cluss in kbrKEEDATATYPES)
Values DEFAULT
RULEPARSER
Ownslot PREMISE
tramPRIMARY
CLARIFIER
PROBLEM
RULE
InhertanceUNION
Avunrnns
(WFFINDEXin AkrRULESYSTEM2)
IS INCLASSOPERATING
Values IWl, (?PROBLEM PROBLEMS)
aWl)(A UNITPROCESS
LOCATION
OF 7PR0BLEM IS ?UNIT
PROCESS
LOCATION)
WI (7UNITPROCESS
LOCATION
IS IN CLASSPRIMARY
CLARIFIERSI
aWl)IA TOTALSUSPENDED
SOLIDSOF ?UNITPROCESS
LOCATIONIS TOOHIGH)
OWtt(A GASBUBBLES
OF 'UNITPROCESS
LOCATION
IS
VISIBLE)
33
User-OrientedInterface and Delivery Feasibility
The interface as seen by the user, not the developer, consists of two panels:
Sludgecadet control and plant/operating information (Figure 6). Program control is
activated by using the cursor to select one of the rectangles labeled INITIALIZE, [DENT-
IFY.A.PROBLEM, or DIAGNOSE.A.PROBLEM. The results of and explanation for the
diagnostic process are displayed by the rectangles entitled Solution, Primary Cause,
Diagnosis, Probable Cause, and Unit Process Location. The operating data interface pro-
vides examples of active images that are used for input as well as output. For example,
the rectangle entitled "Actual sludge pumping rate" contains a number that can be
changed by superimposing it with the cursor and using the up-arrow key to increase it or
the down-arrow key to decrease it.
A logical strategy for extending the Sludgecadet system is to add knowledge f'or
operating problems other than the TSS exercise discussed above. An ideal production
version of Sludgecadet would be able to diagnose all possible problems for the category
of WWTPs with trickling filters for secondary treatnenL and with anaerobic aigesters for
sludge treatment. The next stage in developing Sludgecadet would focus on identifying
representative operating problems to accommodate typical, but not necessarily com-
plete, examples of what might actually occur. Although specific problem examples were
not identified for this study, the following categories of problems would be considered:
* Biological processes
* Operators' training
34
Z 0 0wc
0 > LU
4 o 0 U, < :
-
L) c
0 < cc:
(U
. n
C)
d 0 :D
-3 0 0
E)
0 0 a-c
LUm -) a ma
_ 0' t; i a z 0o w
<:a-
'UO N
ft Z 0 a- 6 -
aa aa
t0 t
zZ 00
ut m" Uf m
0 cc 0 5 o
0 '2 .
24ao~ i
t 35
4 THE PROOF-OF-CONCEPT SYSTEM: DISCUSSION
Like any other software, the pilot Sludgecadet system should be evaluated in terms
of both long- and near-term benefits and costs. Benefits would materialize in improved
WWTP performance and increased productivity for the system's user. Costs would accrue
with system development, software/hardware purchases and maintenance, and user train-
ing. Unlike other software, expert system development has additional benefits and costs
associated with acquiring and encoding expertise. These include the costs for identifica-
tion of domain experts, formalization of an expert's problem-solving knowledge, and
design of the expert system's explanation facilities. This chapter assesses the advantages
and disadvantages to the Army associated with developing and using a WWTP O&M sys-
tem like Sludgecadet in terms of long-range impacts, near-term impacts of this work,
and any immediate extensions.
Long-Term Impacts
Operator Training
In the longterm, the Sludgecadet system could be used as a foundation for a tutorial
system similar to GUIDON. The diagnostic rules, facts, and procedures specific to the
domain of WWTP operations would be augmented with the appropriate intelligent
22
B. Buchanan and E. Shortliffe.
36
computer-aided instruction technology. It is important to remember that systems like
Slidwev.,vit nre onlv {'omiptitr prograrms nnd are not meant to replace an operator certi-
fication and training program.
Long-term costs associated with developing and deploying a system like Sludge-
cadet would involve activities for system enhancement, system maintenance, and user
support. These costs are incurred as soon as a system is placed in the field and made
available to users.
The expansion of Sludgecadet into a software package for training would involve
separate long-term costs. These costs primarily relate to software development to pro-
duce intelligent computer-aided technology. An intelligent training system would not re-
quire new hardware or domain-specific software.
A continuing long-term cost would come from personnel requirements for software
maintenance. All software systems eventually require maintenance. In-house personnel
would have to be trained in the technology required for program maintenance or contrac-
tors would have to be used.
37
Benpfit/Cost AnalvN.qi.,
When data has been collected and reasonable cost estimates made for implementing
an Al system for O&M at Army WWTPs, the savings associated with the implementation
(in terms of reduced requirements for manpower, energy, chemicals, etc.), could be com-
pared with the cost of implementing the appropriate control systems and the expert sys-
tem development. It is anticipated that many of these numbers would fluctuate during
development due to new innovations in process control systems, microcontrollers for unit
operations, and advances in computer hardware and software techniques, ail of wnich
woulo impact the benefit/cost relationship.
Near-Term Impacts
Since the proposed system would be developed in an iterative fashion using a modu-
lar structure, the current version wouid always be functional and executable. This devel-
opmental approach would make the Sludgecadet program easy to expand and modify.
Having a functional version available at all times would permit the program to be tested
after each new module is added. An iterative, modular developmental approach would
match the requirements of the kno-viedge acquisition cycle described.
38
Hardware and Software Requirements
Expert system development tools available for PCs have the advantages of lower
purchase prices (around $500 to $10,000) and availability for the PCs at most Army
installations. In any case, the PC hardware has a modest purchase price (t round $2000 to
$12,000). On the negative side, the PC software is quite limited in representing know-
ledge, providing enough memory for large systems, and implementing a graphic inter-
face. Expert systems development tools (or "environments") available for workstations
provide flexible representation facilities and do not limit the size of the developing
expert system. A high-level graphics interface allows the program developer to quickly
test ideas ("rapid prototyping") and provides high-level graphics for the user interface.
Unfortunately, the cost of these systems is much higher (as of late 1987, around $40K to
$60K for the software and $20K to $80K for the hardware).
Other Issues
To implement an effective AI system for Army WWTP O&M, the following items, in
addition to those in the above discussion, would have to be considered:
1. Sensing devices. Proper monitoring and control of WWTP processes would not
be possible without reliable sensing devices. Even modern technology cannot provide
sensing devices that are simple and reliable enough to measure the monitoring and
control parameters for WWTP operation. Availability and reliability of sensing devices
must be evaluated carefully before expert systems can be constructed.
4. Size and number of WWTPb. As the WWTP size increases, the application of Al
will be more cost-effective. Although no attempt was made to determine a cutoff limit
for economical plant size in this study, this factor must be evaluated to determine if the
expert system implementation would be economical. Workstation connection with all
Army WWTPs or a group of WWTPs also must be evaluated.
5. Extent of Al application. Before the expert system is designed, the extent that
the expert system will be used must be determined. For example, the expert system may
be used only for troubleshooting, or for plant operation and record management, etc.
39
6. WWTP automation. WWTPs can be automated as long as this change will be
cost-effective. When a WWTP is being automated, the future potential use nf an expert
system should be considered.
40
5 CONCLUSIONS AND RECOMMENDATIONS
This study has explored opportunities for the Army to exploit recent advances in Al
technology for improving O&M at its WWTPs. Based on findings from a proof-of-concept
exercise performed in this study, AI/ES has potential application to the WWTP industry;
however, there are also limitations. WWTP processes involve many parameters that must
be controlled and monitored continuously, often within very strict limits. Current
sensors and software based on Al are neither developed enough nor economically
justifiable for immediate use in Army WWTPs. However, with the rapid growth in Al
technical capability and projected lower cost in the future, this situation can be expected
to change, possibly over a very short time period.
The state of the art in Al/ES technology has been reviewed to provide a general
orientation for Army personnel who may be required to evaluate its value to their instal-
lations.
The expert system may prove to be an innovative tool for enhancing and extending
the Army's limited personnel and budgetary resources supporting O&M at WWTPs. How-
ever, since cost reduction and improvement of WWTP performance would be the major
reasons for using this technology, it does not appear feasible at present. Al/ES
development costs for Army WWTP O&M are currently too expensive and the AI/ES
technology has not fully demonstrated the potential for handling the complex treatment
process. For these reasons, it is recommended that the Army postpone research and
development on such systems until the Al/ES technology has evolved further and becomes
affordable. In addition, it is recommended that any installations considering purchase of
Al/ES-based devices perform a cost-effectiveness study to determine if an alternative
technology would be indicated.
41
CITED REFERENCES
Buchanan, B., and E. Shortliffe (Eds.), Rule-Based Expert Systems: The MYCIN Experi-
ments of the Stanford Heuristic ProgrammingProject (Addison-Wesley, 1984).
Cortinovis, D., et al., The Activated Sludge Process: Fundamentals of Operation (Ann
Arbor Science, 1983).
Drake, R. (Ed.), Instrumentation and Control of Water and Wastewater Treatment and
Transport Systems (Pergamon, 1985).
General Accounting Office, DOD Can Make Further Progress in Controlling Pollution
From Its Sewage Treatment Plants, GAO/NSIAD-84-5 (February 3, 1984).
Hart, A., "The Role of Induction in Knowledge Elicitation," Expert Systems, Vol 2, No. 1,
(1985).
Hayes-Roth, F., D. Waterman, and D. Lenat, "An Overview of Expert Systems," Building
Expert Systems (Addison-Wesley, 1983).
Nilsson, N., Principles of Artificial Intelligence (Tioga Publishing Co., Palo Alto, CA,
1980).
Ortolano, L., and C. Perman, Development of a Conceptual Plan for the Exploitation of
Artificial Intelligence in the Diagnosis of Operational Problems at Army
Wastewater Treatment Facilities, Draft Report DACA 88-86-0247 and DACA 88-
86-0008 (Department of Civil Engineering, Stanford University, May 1987).
Sell, P., Expert Systems: A Practical Introduction (Halsted Press, John Wiley and Sons,
1985).
42
UNCITED REFERENCES
Geselbracht, J., E. Brill, Jr., and J. Pfeffer, "Incorporating Judgment Into an Optimiza-
tion Model of a Wastewater Treatment System," Proceedings, Water Forum 86,
World Water Issues in Evolution, Vol 1 (American Society of Civil Engineers
[ASCE], August 1986).
Mittal, S., and L. Dym, "Knowledge Acquisition From Multiple Experts," The Al Maga-
zine, Vol 6, No. 2 (Summer 1985).
Tversky, A., and D. Kahneman, "Judgment Under Uncertainty: Heuristics and Bias,"
Science, Vol 185 (September 27, 1974).
43
USA-CERL DISTRIBUTION