Professional Documents
Culture Documents
Articles
PI-IN-A-BOX
A Knowledge-Based System for Space
Science Experimentation
■ The principal investigator (PI )- IN - A - BOX knowl- knowledge-based system helps scientist-astro-
edge-based system helps astronauts perform sci- nauts do better science in space given fairly
ence experiments in space. These experiments are severe time constraints and the need for them
typically costly to devise and build and often are to work in areas outside their specialty. The
difficult to perform. Further, the space laboratory
goal is to help the astronaut become a scien-
environment is unique; ever changing; hectic;
tific collaborator with the ground-based prin-
and, therefore, stressful. The environment
requires quick, correct reactions to events over a cipal investigator who designed the experi-
wide range of experiments and disciplines, ment. The system facilitates increasing both
including ones distant from an astronaut’s main (1) the level of astronaut-investigator collabo-
science specialty. This environment suggests the ration and (2) the quality of the science per-
use of advanced techniques for data collection, formed in space by sharing observations with
analysis, and decision making to maximize the the astronaut about the quality and the
value of the research performed. PI-IN-A-BOX aids importance of the data as they are being col-
astronauts with quick-look data collection, reduc- lected in flight. This system has the potential
tion, and analysis as well as equipment diagnosis
to fundamentally change the way crew mem-
and troubleshooting, procedural reminders, and
bers interact with ground-based investigators
suggestions for high-value departures from the
preplanned experiment protocol. The astronauts
in the space station era.
have direct access to the system, which is hosted In this article, we present a logical overview
on a portable computer in the Space Lab module. of the system; continue with a description of
The system is in use on the ground for mission our first area of application; explain the tech-
training and was used in flight during the Octo- nical details of the current implementation;
ber 1993 space life sciences 2 (SLS-2) shuttle mis- and, finally, share some development philoso-
sion. phy used to manage this multiyear project.
This system continues previous work
T
he critical resource in astronaut-tended described in Young et al. (1989), Haymann-
flight experiments is time. The lack of Haber et al. (1989), and Frainier et al. (1990).
time affects both preflight training for,
and in-flight operation of, the experiment.
This difficulty with time is currently true with
Functional Overview
the Space Shuttle Program and will persist The PI-IN-A-BOX system has several modules
with the advent of Space Station Freedom (figure 1). Together, they allow diagnosis of
operations. Another key factor in space exper- data-collection problems, hypothesis moni-
imentation is the use of fixed experiment pro- toring and formulation (limited to an analysis
tocols. This major constraint severely limits of interestingness in the initial system), deter-
the ability of an earth-bound scientist to mination and scheduling of the experiment’s
change the course of an experiment even steps, and general-purpose help for the astro-
when the data and current situation clearly naut-user.
indicate that it would be scientifically more The data-acquisition module (DAM) and the
valuable to do so. data-quality monitor (DQM) acquire data from
The principal investigator ( PI )- IN - A - BOX the experiment (displayed in real time),
Copyright © 1994, AAAI. All rights reserved. 0738-4602-1994 / $2.00 SPRING 1994 39
Articles
40 AI MAGAZINE
Articles
understand the human oculovestibular sys- repair plan is offered to the user), (2) advice
tem and its relationship to the phenomenon on the order in which to test subjects and the
of space motion sickness. During the experi- order of individual test steps for a given sub-
ment, the subject’s visual field is filled by a ject, and (3) alerts about analyzed data that
dome. The dome, which contains a constella- appear to be of particularly high value (inter-
tion of dots, is rotated at various speeds and esting data).
directions. Gazing into the field of rotating Other features allow the review of previ-
dots induces vection, or the sensation that the ously completed portions of the experiment
subject, not the dots, is rotating. Voluntary and facilitate planning or replanning future
and involuntary reactions to the vection are experiment sessions. Finally, there are fea-
measured. There are typically two or three in- tures that provide reminders on setting up
flight sessions, each involving two to four and using the experiment apparatus.
crew members. An experiment session con-
sists of equipment setup, equipment electric
checkout, several experiment runs on the first
Some Typical Scenarios
subject, introduction of follow-on subjects, Let us assume that it is now two days after
and equipment shutdown and stowage. The lift-off. The first session involves two astro-
experiment has been flown in space three nauts who will alternate as subject and opera-
times in the past,1 and it will fly again this tor. The system has been set up for the first
year (1993). [The computer system flew with session, but there is a problem. An electric
experiment on shuttle mission STS-58 in connection at the junction of two cables is
October 1993. – Ed.] damaged. The problem affects one of the two
When performed in space, this experiment electromyography data channels. The experi-
generates five analog data channels. Although ment setup is on time, but the problem must
the astronauts could monitor two of the five be addressed. Further, there will be a voice
channels in real time on a small oscilloscope, and data outage (loss of signal [LOS]) com-
they are not as expert as the ground-based mencing in 5 minutes that will last 20 min-
investigator at validating or reacting to the utes. Without PI-IN-A-BOX, the crew would typ-
data. Investigators can monitor all the chan- ically attempt to repair the apparatus and
nels, but the experiment data are subject to then ask the ground crew for advice if the
delays and outages as they are passed from the effort were unsuccessful. If LOS was in effect,
shuttle to relay satellites to and through the the advice would not arrive until after the 20-
ground-based telecommunications system. minute blackout. With PI-IN-A-BOX, the crew
Further, the investigators are limited in their could ask for a recommendation at any time.
ability to change the course of the experiment In this situation, even if the system had a
during an hour-long session. In fact, they are repair procedure available, it would recom-
limited in their ability to change the course of mend not spending time repairing the low-
the experiment during any remaining in- priority channel but, instead, using this time
flight experiment sessions. to get data from the scheduled subjects.
PI-IN-A-BOX has direct access to all five data Let us now assume that the astronauts
channels and performs quick-look validation declined the recommendation and spent 20
and analysis in real time. The analysis is driv- minutes at the repair. They are now part way
en by heuristics compiled from the investiga- through the experiment protocol and 15
tors, and the results are communicated to the minutes behind schedule. The astronauts
astronaut performing the experiment. Thus, realize that they are going to have to cut the
the system provides the astronaut with advice experiment short. Without PI - IN - A - BOX , the
on how to best use the precious time allocat- crew would typically work as long as they
ed to the experiment. This advice is based on could and then cut the last steps of the proto-
the preflight plan, modified by all the events col. In this case, the entire second subject
that have occurred in flight, including a would be eliminated. With PI - IN - A - BOX , the
record of the experiment apparatus’ perfor- crew could again ask for a recommendation.
mance, the list of crew members who have Here, the system would recommend cutting
already performed the experiment, and indi- the last experiment condition for the first
cations made by the analyzed data about subject and the first experiment condition for
each of these subjects. Specific advice the second subject and then continuing with
includes (1) recommendations on accepting a the rest of the experiment. This recommenda-
degradation of the experiment’s data collec- tion accounts for the various setup times and
tion or spending time to repair a problem (if the scientific importance of the experiment
repair is elected, a step-by-step diagnosis- steps, realizing that a lengthy setup was
SPRING 1994 41
Articles
42 AI MAGAZINE
Articles
An Illustration of the
System in Use
Assume that the operator has just set up the Figure 3. Session Startup.
laptop computer and analog-to-digital con-
verter in anticipation of an experiment ses-
sion. The system automatically loads after the
MACINTOSH powers up. Two minutes and 20
seconds later, startup is complete. The system
has selected the next scheduled session and
presents overview information, such as the
scheduled start time, the end time, and sub-
jects (figure 3). In this example, there are two
subjects: mission specialist 1 (MS1) and pay-
load specialist 1 (PS1). If the begin time or
end time has recently changed, the user com-
municates the currently scheduled time to
the system by clicking on the item to be
updated. There is also the ability to similarly
change or edit the subject list as well as other
options. When the current settings are com-
pletely correct, the user proceeds by clicking
on Begin Session.
The system prepares for the next action—a Figure 4. Functional Check Preparation.
functional checkout of the experiment’s elec-
trical output. Notice that because the EMG
(electromyogram) functional check should be
performed, an illustration is displayed to help
assure correct electrode placement (figure 4).
The LABVIEW -based DQM is used for this
checkout and autocalibration of the experi-
ment apparatus (these checks typically occur
after equipment setup and before each new
subject enters the experiment, although they
can be performed optionally at any time dur-
ing a session). The system displays a list of
the signals to be checked, with an arrow
pointing to the currently checked signal. As
each 10-second check occurs, a real-time trace
of the signal is displayed (figure 5). Five sig-
nal traces are displayed from top to bottom
on the left side of the screen: Joystick, Bite-
board, Right-EMG, Left-EMG, and Tachome-
Figure 5. Functional Check Operation.
ter. The tachometer is a heartbeat trace that is
only two pixels high. Note that in figure 5,
SPRING 1994 43
Articles
44 AI MAGAZINE
Articles
SPRING 1994 45
Articles
Figure 11. A Brief Explanation of Interesting Data. If no subject is set up, give first prefer-
ence to a subject with unfinished tests
from an earlier session, and give next
trolling the content of the two suggested pro- preference to a subject who was giving
tocols consists of about 200 rules. interesting data.
The experiment protocol is conceptualized
as follows: There are a number of experiment If there were interesting data on a sub-
sessions in a mission. Each session is conduct- ject and an experiment condition from
ed in accordance with its protocol. The proto- the current session, and the subject and
col consists of a number of blocks. There is the condition have not been repeated,
one block for each subject, a block for experi- then rerun the subject and the condi-
ment setup, and a block for experiment tion.
stowage. Each block has a number of steps. If there were interesting data on a sub-
The setup and store blocks are straightfor- ject and an experiment condition from
ward, but the optimum subject block order the current session, and this condition
(and run ordering within a given subject was again run today but was again not
block) depends on a complex interpretation found to be interesting, then run the
of previous mission history. The first task is to subject in this condition one more time.
determine which experiment steps should be
performed and assign a (science) priority to If there were interesting data on a sub-
each. The block ordering is determined next, ject and an experiment condition from
after which, step ordering within a block is the current session, and this subject and
determined. Following the step ordering, condition were again run today, but the
minor setup tasks are inserted. Finally, the condition was not run on another sub-
result is checked against current time con- ject, then run the condition on another
straints. subject.
Heuristics currently used to determine new If there were interesting data to be
protocols include the following: confirmed on a subject and an experi-
Get at least some data on every sub- ment condition from a previous session,
ject. and this condition was not run today,
then run the subject in this condition.
Complete the data collection using a
full set of experiment conditions on at If there were interesting data to be
least one subject. confirmed on a subject and an experi-
ment condition from a previous session,
Each subject has a set of run condi-
and this condition was run today but
tions to be performed. Some of these
was again not found to be interesting,
conditions might be performed multiple
then run the subject in this condition
times. Always give a subject’s as-yet-
one more time.
untested run conditions priority over
duplicate run conditions that have been If more time is needed than is current-
tested at least once. ly allowed, cut the least desirable (from a
46 AI MAGAZINE
Articles
Troubleshooting
Another option is to invoke a manual trou-
bleshooting session (DTM ). The user has a
chance to indicate a variety of observed prob-
lems, as seen in figure 12. In this case, the
user has indicated that the ECDS (experi-
ment-control data system) display associated
with another on-board data-gathering com-
puter is garbled. The system responds by rec- Figure 12. Selecting Manual Troubleshooting.
ommending reinitializing ECDS (figure 13)
and displays the relevant portion of the con-
trol panel to aid recall (figure 14). A further
example is seen in figures 15 and 16. Here, a
bad EMG functional check leads to an inves-
tigation of the EMG connectors and, later, to
a replacement of the EMG amplifier batteries.
Additional functional checks are occasionally
part of the troubleshooting process.
The DTM module consists of about 200 CLIPS
rules. The CLIPS rules work with procedural
code in HYPERCARD to guide the user through
troubleshooting and repair. The overall flow
involves the formulation of a repair recom-
mendation based on the current experimen-
tal situation (the recommendation could
entail forgoing a lengthy repair, for example).
If troubleshooting continues, the system tra-
verses a graph step by step until either the
problem is repaired, the user terminates the Figure 13. DTM Recommendations.
session, or the system has no further advice
to offer. Steps include displaying pictures (fig-
ure 14), line drawings (figure 15), and repair
instructions (figure 16); conducting function-
al checks; and making observations for the
system (figure 15).
Several other between-run options can be
invoked from the Options pull-down menu.
These options include the use of a notepad,
the review of the history of previously com-
pleted sessions, and the use of a manual edit-
ing facility for the current protocol. Finally,
as mentioned earlier, the procedures associat-
ed with any step can be brought up for
review.
SPRING 1994 47
Articles
48 AI MAGAZINE
Articles
ments. Because each development cycle mod- enough to create a general-purpose tool to aid
ifies the system’s requirements, these changes science experiments in space or, indeed, in
must be captured and reflected in the test any situation where quick-look analysis can
plan and other documents. We found these be used to guide the focus of attention for the
issues to be minor frustrations compared to remainder of a limited scientific observation
the benefits of our software development period. Examples under consideration
scheme. include other life science experiments, mate-
An interesting approach to validating a rials science experiments, atmospheric stud-
module is cross-prototyping, which was used ies, and plasma physics. Although the system
on one of the modules. One team member yields maximum benefit when applied to a
built a prototype of the module based on the particular experiment, there is value in
official production system (OPS) style of repre- adding just the DAM, DQM, and DTM modules
sentation. When this team member left the to major equipment or facilities on the space
project, maintenance and extension of the station (for example, a centrifuge and gas-
module was given to a new member. The new grain simulation facility). The addition of
member was initially much more familiar these three modules without reference to a
with object-frame representations than with particular set of experiments would still allow
the OPS paradigm. After understanding the for the use of a general-purpose monitoring,
purpose and current requirements of the diagnosis, and repair system over the life (20+
module, a new prototype was quickly built in years) of the orbiting equipment. In this case,
IntelliCorp’s KEE and then translated to the a repair recommendation is weakened to the
PARMENIDES frame tool and FRULEKIT OPS-style extent that experiment-specific data-collec-
rule system (both from Carnegie Mellon Uni- tion heuristics and history are not available.
versity) running over MACINTOSH Allegro Com-
mon Lisp. This approach provided perfor-
mance comparisons between the two
Alternative Approaches
implementations and led to the discovery There are alternatives to the in situ knowl-
and elimination of several subtle bugs in the edge-based approach described in this article.
module. A more traditional approach would be to add
more ground support people at one of the
Benefits of the existing sites with voice and data channel
links. They would do the analysis and present
Knowledge-Based System results and recommendations to the scientist.
The main benefit of this system is the maxi- The traditional AI approach would be to add
mization (or, certainly, an increase in) the sci- LispM (in place of people) in the back room
entific quality of data from experiments per- of shuttle operations with a data link to the
formed by humans in space. This benefit, in scientist. Both approaches are critically hin-
turn, increases the value of the research per- dered by the key problem of any ground-
formed. The increased value comes from based solution: delays and outages in receiv-
increased crew productivity. This increased ing experiment data and transmitting
productivity has two dimensions: First, time solutions to the crew. We feel that space
is not spent on unproductive tasks after experimentation requires careful considera-
equipment failures. Second, reactions to the tion of the trade-offs between these
scientific consequences of already-gathered approaches and on-board intelligence.
data are improved. Although caution should Conceptually related work is associated
be exercised in generating dollar figures, we with a space shuttle–based cryogenic experi-
estimate savings of $6,000 for each astronaut ment— SHOOT (superfluid helium on-orbit
science–hour (based on a 20-percent crew transfer). Two systems, AFDEX and CMS, facili-
productivity increase from operational use tate the conduct of SHOOT (Raymond 1989;
and a conservative figure of $30,000 an hour Shapiro and Robinson 1989). The AFDEX rule-
of crew time on the space station). based system is designed to provide intelli-
gent process control, diagnosis, and error
recovery. This system is hosted on a 80386-
Future Directions based GRID laptop and will be located on the
Use of the system in support of space shuttle space shuttle’s aft flight deck. The AFDEX sys-
mission SLS-2 will continue through 1993. tem software is a combination of CLIPS and C
The team is also working to identify follow- code. AFDEX is capable of autonomous (closed-
on experiments for future missions. After one loop) control of the experiment but is
or two experiments, we hope to know planned for use under astronaut control. The
SPRING 1994 49
Articles
command and monitoring system (CMS ) is POWERBOOK for our target mission.
designed to provide near–real-time monitor- 4. The system files include documentation text
ing and control of the SHOOT experiment from files, rule files, permanent data files, other applica-
earth by the investigator. CMS is hosted on a tion files, and tool image files.
MACINTOSH II computer. The system software is 5. Consider that CLIPS has been around since 1986
written in Apple’s MPW(C). It is anticipated (or earlier), H Y P E R CA R D and LA B VI E W were first
that most (roughly 80 percent) of the time, released in 1988, MACINTOSH system 7 was released
in 1991, and POWERBOOKs became available in quan-
the SHOOT experiment will be under ground
tity in 1992. The pace of improvement of hard-
control and the remainder under astronaut ware-based computing power over the last 20 years
control. has been astonishing. Looking ahead to operations
on a space station with a projected life of 40 years
or more, it is critical not to start with hardware sys-
Conclusion tems that will be obsolete before they are launched.
PI-IN-A-BOXis a unique knowledge-based sys- 6. These differences included both the ground-
tem for aiding scientific experimentation in based scientists and the astronauts. In both cases,
space. We used AI (symbolic reasoning), for- actual task-performance style was more conserva-
merly AI (advanced object-oriented HCI), and tive than the idealized version articulated for the
system developers. We feel that the key to a really
non-AI (data acquisition and analysis) tech-
useful and valuable system lies in aiding actual task
niques to build a useful system. Our frame-
performance.
work will be expanded and generalized into a
tool to aid the investigations that will occur References
on Space Station Freedom in the latter part of
Frainier, R.; Groleau, N.; Bhatnagar, R.; Lam, C.;
this decade. Compton, M.; Colombano, S.; Lai, S.; Szolovits, P.;
Manahan, M.; Statler, I.; and Young, L. 1990. A
Acknowledgments
Comparison of CLIPS- and Lisp-Based Approaches to
We would like to thank the other members of the Development of a Real-Time Expert System. In
the PI - IN - A - BOX team, past and present, for Proceedings of the First CLIPS Conference, 320–333.
their efforts, especially Jeffery Shapiro, Guido Houston, Tex.: National Aeronautics and Space
Haymann-Haber, Chih Chao Lam, and Don- Administration.
ald Kaiser. Thanks as well for the technical Haymann-Haber, G.; Colombano, S. P.; Groleau, N.;
assistance provided by the NASA Johnson Rosenthal, D.; Szolovits, P.; Young, L. R. 1989. An
Expert System to Advise Astronauts during Experi-
Space Center Software Technology Branch,
ments: The Protocol Manager Module. In Proceed-
National Instruments, and Apple Computer,
ings of the Conference on Space Automation and
especially Gary Reily, Chris Culbert, Rob Dye, Robotics, Houston, Texas, August.
John Hanks, John Fowler, Don Powers, Dave
Raymond, E. 1989. Knowledge-Based Process Con-
Nagel, and Tom Mayer. Thanks also to our trol and Diagnostics for Orbital Cryogen Transfer.
reviewers for their helpful comments. Last In Proceedings of the Computers in Aerospace VII
but not least, thanks to NASA, especially Peter Conference, 276–280. Washington, D.C.: American
Friedland, Mark Gersh, Henry Lum, and Institute of Aeronautics and Astronautics.
Gregg Sweitek, for management support. Shapiro, J., and Robinson, F. 1989. Interactive
This work was cofunded by the NASA Remote Control for an STS-Based Superfluid Heli-
Space Station Freedom Advanced Develop- um Transfer Demonstration. In Proceedings of the
ment Program and the Office of Aeronautics, Computers in Aerospace VII Conference, 696–704.
Exploration, and Technology AI Program, to Washington, D.C.: American Institute of Aeronau-
tics and Astronautics.
whom we are grateful.
Young, L. R.; Colombano, S. P.; Haymann-Haber,
Notes G.; Groleau, N.; Szolovits, P.; and Rosenthal, D.
1989. An Expert System to Advise Astronauts dur-
1. The rotating-dome experiment flew on space
ing Experiments (presented at the Fortieth
shuttle–hosted Space Lab missions SL-1 (1983), D-1
Congress of the International Astronautical Federa-
(1985), and SLS-1 (1991).
tion), IAF-89-033, International Astronautical Fed-
2. The coverage heuristic states that it is better to eration, Paris, France.
have at least some data on each subject than to
have a full set of runs on one subject with no data
Richard Frainier is a computer sci-
on another.
entist for RECOM Technologies, Inc.,
3. All materials and equipment used on and in the at the NASA Ames Artificial Intelli-
space shuttle require a qualification (analysis and gence Research Branch in Mountain
test for safety, reliability, and so on). These tests View, California. His work centers
need to be performed in advance of the mission’s on the engineering of real-time
critical design review. It was not possible to qualify knowledge-based systems and issues
more recent (and more capable) versions of the
50 AI MAGAZINE
Articles
SPRING 1994 51