Você está na página 1de 6

Evans: Solving Home Automation Problems Using Artificial Intelligence Techniques 395

SOLVING HOME AUTOMATION PROBLEMS USING ARTIFICIAL INTELLIGENCE TECHNIQUES

Grayson Evans
Director of Engineering, MTI Inc., Portland, OR

Abstract
The most difficult problem facing the success of In fact, most people feel that in the future all
future consumer home automation products is home automation products will use voice as the
not a purely technical one: how to make the means of control. It's a feature that the
products or systems intuitive to use, work entertainment media has made a requirement in
together, yet powerful enough to have real the mind of the consumer.
perceived value to the consumer.
The paper describes how existing Artificial Typical applications include:
Intelligence (AI) techniques are directly Voice command - instructing a product or
applicable to solving the human interface system to perform a function
problem of home automation products even "Please raise the temperature in the living
when the "system intelligence" is widely room" (how much? for how long?)
distributed among different products sharing a
common home network. Voice query - obtaining information from a
product or system
Introducton "How much have I spent this month on
Existing product user interfaces found in the electricity?"
home still represent a formidable obstacle to
most people. With the arrival of new home It doesn't take an engineer to see the benefits of
automation technology such as CEBus the using voice to eliminate other "unnatural" forrns
number of new products about to face the of product operation. Unfortunately, voice
consumer-that require yet another user recognition-the ability to recognize discrete
interface-will increase dramatically. words, either speaker dependent or
The home owner does not have any idea how independent-is only a first step in voice
to operate the systems (heating/cooling,energy operation. Voice recognition provides little
management, security) in his home in the most ability beyond voice driven "functions keys".
efficient yet most comfortable and safe way. For example, the words: light, room, kitchen,
It

To be a truly useful, home automation on" recognized in that order, might be used to
products must be able to adapt to their environ- turn on lights in the kitchen. "Kitchen, room,
ment. They have to know what to do without light, on" may produce no action or cause
the home owner having to tell the device unwanted results. While recognition is an
everything and constantly "fuss" with it. The accomplishment in the right direction it is only
best user interface is the one that requires the the first step in language processing needed to
least user interface. make voice a useful tool. The remaining
Solving these problems will be one of the requirements:
best contributions of Artificial Intelligence (AI) Syntactic analysis - word order and
technology yet devised. modification
Semantic recognition (Context sensitive) -
The AI Tools word meaning in the context of
The tools needed to solve these problems
already exist in many forms of AI technology the home and systems addressed
and have gained wide acceptance in commercial Pragmatic analysis - testing word usage
areas. The following sections describe applic- and meaning for reasonableness in the
able techniques, examples of their implemen- context of the home
tation and use, the problems they solve, and
operation in a home network. In fact, the ability to recognize words
without the ability to provide the necessary
analysis of syntax and content only makes the
Voice Operation user interface problem worse. It simply gives
Most people that learn about home automation the home owner the ability to get frustrated
seem to assume that "automated"products have much faster.
(or should have) voice recognition capability. But, oddly enough, the most difficult
Manuscript received June 7, 1991 0098 3063/91/0200 00395S01.00 Q 1991 IEEE
396 IEEE Transactions on Consumer Electronics, Vol. 37, No. 3, AUGUST 1991

problems do not lie with the more sophisticated Typical home applications include
aspects of syntactic and semantic analysis but anticipation of family requirements
with the more mundane requirement of simply learning most efficient operation of the
sorting out separated speech in a typical home home systems
with a typical family. The current state of voice achieving safer operation of the house and
recognition is not very useful for an its systems
uncontrolled environment such as a home. prcviding advice on system operation
Voice recognition is a difficult problem in the
best of circumstances. In a home environment, Expert systems are created from a knowledge
it is nearly impossible. base, a set of rules, and an inference mechanism
Y1it.h praducts o p ~ i a t i in
~ ~agdistributed for applying thc rules io die knowledge base.
environment such as =Bus, all the needed There may or may not be a means of adding to
voice operation technology need not be the knowledge base. The raw knowledge base
contained in any one product. A single voice neededto suppport home automation consists of
recognition product-say, the voice recognition two parts: the information about the house itself,
telephone-can place the recognized words on and information about the family living in it:
the house network in a message to be picked up
and used by a product that only contains HOUSE KNOWLEDGE BASE
syntactic or semantic analysis that in turn can physical layout, openings, connectivity
place a resulting control message on the types of system in house
network. heating, cooling,
Figure 1 shows how the various parts of a water, gas, etc.
complete home automation system employing communications,phones, etc.
all the techniques proposed in this paper are put thermal characteristic
together to form a working system. environment
Figure 2 shows how the same techniques can costs: elec. rates, gas rates
be applied in a group of home automation
products using a network such as CEBus. OCCUPANTKNOWLEDGE BASE
names
Expert System Techniques relationships, age
The home will undoubtedly prove.to be the best authority
(and most difficult) applications for expert likes/dislikes
system software. The family would like to habits
operate their home in an efficient, comfortable,
and safe manner. It is not intuitively obvious The knowledge base is created in two ways:
how best to accomplish these sometimes simple manual entry of facts by the
conflicting goals. For example, is it more manufacturer, dealer, and/or home owner, and
efficient-given the present outside and inside synthesis of the knowledge by observation and
temperature, humidity, desired comfort level, learning.
and present electric rate-to operate the heat The rule base contains the basic operating
pump to cool the house, use outside air, a rules to apply to the knowledge base. Unlike
combination, or do nothing and wait for the knowledge about the house, most of the rules
house to loose enough heat? Certainly the are built in. That is, they are derived and
home owner doesn't know. However, an expert entered by the manufacturer based on "expert"
in thermal systems, HVAC equipment and knowledge about how best to operate a house.
human physiology could determine the best A learning process is applied to the rule base to
choice given temperature and humidity data and both modify the rules and derive new rules
a thermal model of the home. Expert system based on existing rules-rules that only apply to
software can easily embody this knowledge and one particular family or house.
adapt it to a particular home through a learning An inference mechanism applies the rules to
process. Temperature, humidity, and other the knowledge base driven by information
sensors can easily provide the basic infomation needed by other parts of the system.
needed by the software. The rules and knowledge about the house
Evans: Solving Home Automation Problems Using Artificial Intelligence Techniques 397

Environmental Data
House
Occupants

Figure 1. Elements of an artificial intelligence system arranged in one “central unit It.

Communication between elements is “hardwired Sensor inputs, flector outputs ,


‘I.

while remotely located are all wired to one location. Not explicitly shown is LEARNING since
this process is embodied in many places throughout the system. The WORKER software shown
represents most of the traditional home automation software used in existing systems to
perform routine tasks and interface to flector (output)type devices.

Knowledge Bsse

1 Smart
Security System
Knowledge Base
.Occupant data
TEMPLETS
Knowledge Base Voice
House Data LIGHTS,
VE&, etc. HEATER,etc.

Figure 2. Elements of an artificial intelligence system which are distributed over a home automation
bus such as CEBus. Elements must now share gained information by broadcasting the result of an
analysis ,recognition, inference, etc..
398 IEEE Transactions on Consumer Electronics, Vol. 37, No. 3, AUGUST 1991

form a working model of the house, its behavior do not require extensive processing.
and the occupants behavior. This model The North American, single family,
mimics a similar model that forms in the detached home is basically the same throughout
occupants minds, a model of the behavior of the the country. The activities that take place in the
home automation systems. The better the home tend to follow a regular pattern and are
models, the more synergistic will be the fairly limited. People get up, bathe, eat
relationship between the occupants and the breakfast, go to work, go to school, come home,
home automation system. eat dinner, watch TV, go to bed, sleep, and get
The "parts" that make up an expert system up to go to the bathroom. The patterns that
need not reside in one physical place but also need to be learned and remembered can be
can be distributed on the network. The observed in a somewhat short period.
knowledge base, rule base, templets, and In practice, multiple sensor input is feed to
inference mechanism can be located in different a "feature extractor" employed to filter out
products (assuming some division of knowledge "false alarm" sensor activity, extract pertinent
between different products) and still operate information, and parameterize that information.
successfully. This preliminary information can be used to
figure out basic, but extremely useful, state
Pattern Recognition information about the house. For example, by
Pattern recognition is usually used in the context knowing only four basic states:
of machine vision- identifying the contents of OCCUPIED - people are in the house
an image supplied from a camera or other ACTIVE - people are moving around in the
imaging device. Voice recognition is a special house
case of pattern recognition. In the context of INACTIVE - people are in the house but
home automation the term is used to describe are not moving around
the recognition of living patterns. While very UNOCCUPIED - the house is empty
different from machine vision, the techniques
used for identifying patterns are the same. we can greatly enhance the operation of so
Typical home applications include: called "programmable" devices. Products can
determining the occupancy state of home easily modify their behavior or operation to take
observing most likely way to operate the advantage of the extra information, such as
home operating the dishwasher only when the house is
looking for repetitive patterns to unoccupied, or operating lights only when the
determine: house is occupied and active.
-when to do things By applying time constraints to known
-where people are basic patterns and knowing something about
-abnormal or unsafe conditions basic American family habits, additional
-if the occupants are in need of help subcategories of states can be determined such
as: having breakfast, taking a bath, preparing
While the types of sensors available to detect meals, having dinner, watching TV.
the presence of people in the home are limited The processing elements for pattern
they may be used in combination-via the home recognition also can be easily distributed among
automation network-to achieve remarkable many products. The sensors are already
results. People detectors (short range passive distributed, feature extraction can be done on a
infrared) throughout the house, magnetic door "need to know" basis by each product. For
and window switches on all openings, power example, a security system may only be
sensors, light sensors, temperature sensors, and concerned with an UNOCCUPIED state. Once
other simple analog and digital devices can
provide a crude "picture" of the state of the this state is determined, a message is placed on
home. Even such information as phone lines in the network indicating UNOCCUPIED state
use, water flow, and what TV channel is being detection. The water heater may use this
watched can enhance the picture. This picture information plus time message traffic to set back
can be analyzed using similar techniques used to the water temperature.
analyze more traditional digitized pictures but The processing elements for pattern
because the sensor input is limited the patterns recognition also can be easily distributed among
Evans: Solving Home Automation Problems Using Artificial Intelligence Techniques 399

many products. The sensors are already systems.


distributed, feature extraction can be done on a 2) Owner feedback comes from requested
"need to know" basis by each product, and the changes to schedules, ovemdes, cancellations,
detected state of one product can be "passed manually requested actions, and family activity.
along" to other products. If a product performs an action and the action is
constantly cancelled by the owner it is easy to
Learning learn not to do it again. If someone always
Learning is integrally tied to the capabilities of requests an action (turns on the TV for example)
the three previous techniques. Learning, for when he arrives home from work, the TV can
purposes of home automation products, means simply learn to perform the task automatically.
changing "behavior", or operation, in a The second requirement for learning is a
beneficial way based on experience. Learning "weighting"of information. A learning
requires the altering or changing of the technique relies on the altering of weighting of
knowledge base and rule base that the home probable actions. When an action was
automation systems uses to perform tasks or determined to be inappropriate, a decision must
generate actions. be made to reduce the weighting function used
Typical home applications: to generate that action. The true skill of a
improving the "behavior" of products learning algorithm can be judged by its ability to
freeing the family from "teaching" determine the correct thing to change and by
products how much. The difficult task in developing this
building a knowledge base about the home skill lies in setting feedback thresholds-that is,
environment determining how much "weight" to give
adapting product behavior based on family feedback information.
feedback Two techniques can be used to help
improve weighting functions in the home: a
The process of learning requires two things. behavior predictability function developed by
First, a method of feedback. If behavior is to be pattern observation; and asking for assistance
changed based on observed input, there must be via voice' synthesis.
some way to know what needs to be changed. A This learning process should be applied to
learning technique must decide (1) that it is not all parts of the knowledge base: the
sure whether a certain action was appropriate, characteristics of the house, the habits of the
(2) that some particular input is relevant to occupants, the rules of operation, the patterns
determining if an action was appropriate, (3) looked for to determine when to do things, etc.
what this relevance is, (4) what the actions
should have been, and (5) how to change its
knowledge base so that future actions will be Summary
more appropriate. These choices involve some Solving the problems inherent in the user
extremely subtle decision making. There is no interface of home automation products and
obvious input to a home automation system systems will be one of the best applications for
labeled "feedback". There must be some AI ever invented. Home automation products
method to observe ovemdes, contradictions, or can employ techniques from all areas of AI:
other actions (either from the house or language processing, expert systems, pattern
occupants) to determine that an action taken was recognition, and learning. The author believes
inappropriate. that the long term market acceptance of home
Two forms of feedback in the home can automation products will, in fact, require the
provide the majority of information needed for ability to adapt to the family. An ability that
learning. A.I. techniques can provide.
1) The physical characteristics of the home
are learned primarily via sensor feedback. For
example, electric energy usage, temperature, and
humidity throughout the house can be used to
determine the thermal characteristics of the
house and the efficiency of the heatinglcooling
400 IEEE Transactions on Consumer Electronics, Vol. 37, No. 3, AUGUST 1991

Biography
Grayson Evans is currently the Director of
Engineering at MTI Inc. in Portland, Oregon
and a consultant to the EIA for the development
of the CEBus home automation standard. Prior
to MTI, Mr. Evans was Manager of Applica-
tions Engineering at Echelon Inc. From 1983 to
1987 he was founder and President of
Archinetics Inc., a leading manufacturer of
home automation systems.

Você também pode gostar