57
1 Key Expert Systems Concepts Harmony Kwawu [email protected] 1

Key Expert Systems Concepts

Embed Size (px)

Citation preview

Page 1: Key Expert Systems Concepts

1

Key Expert Systems Concepts

Harmony Kwawu

[email protected]

1

Page 2: Key Expert Systems Concepts

Knowledge Base Systems

Page 3: Key Expert Systems Concepts

Topics Covered

� What is an expert?

� What are expert sysems in the context of A.I?

� Charactertistics of Expert Systems

� Componets of Expert Sustems

� Expert Systems Apllication Domains including:

� Medcine

� Engineering

� Science

� Business

� LAW

� Rule base Expert System

� What is meant by Fact in Expert System

� What are rules

� Examples of how Facts and Rules are defned and stored

Page 4: Key Expert Systems Concepts

Introduction

� It’s more than 60years ago when Alan Turing, the great British mathematician designed a test to judge whether machines can outwit human beings.

� The test which is used by many experts in the field of A.I today, was designed to investigate whether people can detect if they are talking to a machine or human.

� The machine is declared a winner, if it manages to convince more than 30% of human judges into believing that it is not a machine but a human.

� Currently, it’s not possible to conclusively say that machines have developed the ability to think. But since Alan Turing’s experiment, the development of smart machines capable of outperforming humans in certain domains have been growing.

Page 5: Key Expert Systems Concepts

Introduction Con’t

� This follow up post on the subject of Artificial Intelligence will focus on discussing Expert systems and the role of traditional experts in their design and development.

� We shall explore in particular four main themes:

� What do we mean by Expert?

� How do experts work?

� Expert Systems Apllication Domains, and

� Features of rule based Expert (KB) Systems

Page 6: Key Expert Systems Concepts

What do we mean by Expert?

Page 7: Key Expert Systems Concepts

What do we mean by Expert?

� The term expert is over used nowadays to the extend that it’s at risk of

losing its true meaning and a lot more.

� During the June Brexit referendum campaign for example, Michael Gove,

the then secretary of state for justice declared “people in this country have

had enough of experts,” this piece is not about whether experts should be

trusted or not. But to introduce the basic concept of rule based expert

systems and their use cases

� For a start, experts are people with deep knowledge of specialist fields

and skills gained through many years of practise and learning

� Put another way, an expert is a person or an artificial agent with special

knowledge and skills gained after many hours of training and practice.

Page 8: Key Expert Systems Concepts

Taking it further

� The online business dictionary definition of an expert is perhaps the most comprehensive. It define expert as:

� A professional who has acquired knowledge and skills through study and practice over many years, in a particular field or subject, to the extent that his or her opinion may be helpful in fact finding, problem solving, or understanding of a situation.

� Experts are not only highly trained individuals, they reflect on their practice, continue to study and keep their knowledge up-to-date

Page 9: Key Expert Systems Concepts

Experts are Knowledge Workers

Page 10: Key Expert Systems Concepts

Knowledge Workers

� People who use their knowledge to create, use and share information, are known as knowledge workers. To name but a few:

� Lawyers, including barristers and solicitors who use their knowledge of law to advice and defend their clients

� Doctors use their knowledge of how the body works, diagnostics techniques and understanding of medicine to cure patients

� Information systems experts use their knowledge of information technology (Hardware and software) to design new systems that improve business process and make life better for end users

Page 11: Key Expert Systems Concepts

Knowledge Workers

� Expert Equation= Lots of facts + use of deductive logic + good understanding of how to solve complex problems

Page 12: Key Expert Systems Concepts

Question?

Is it possible to fully automate

human expertise?

More specifically, can the skills and

knowledge of a human expert be

captured and encoded?

Page 13: Key Expert Systems Concepts

What then is an Expert System?

Page 14: Key Expert Systems Concepts

Expert Systems

� Again this has many different meaning, but to keep it simple, an expert system is an artificial intelligence (AI) application that emulate human traits and perform complex tasks as a human expert would.

� Expert Systems are Knowledge Base Information Systems designed in most cases to offer support to human users in a particular field-medicine, law, insurance, etc

� That means knowledge in an expert system is domain specific and consist of facts and rules about the domain

� Like a human expert, experts systems are used in knowledge discovery, solving complex problems, and aiding humans in understanding complex situation.

Page 15: Key Expert Systems Concepts

Input from human Experts are crucial

Page 16: Key Expert Systems Concepts

Input from human experts are crucial

� The success of an expert system project depends on the quality of facts (data) and rules obtained from a human expert or users.

� We shall consider this in more details when discussing knowledge representation repository design in a future post

Page 17: Key Expert Systems Concepts

Characteristics of Expert Knowledge

Page 18: Key Expert Systems Concepts

Characteristics of an Expert Knowledge

� Expert systems are different from traditional information systems.

� They do more than just capture, process and store information. Experts Systems are capable of building on human knowledge, experience and discover new things on their own

� They are therefore expected to be amongst other things, highly reliable, flexible, efficient and provide a clear explanation of decision, (Giarratano and Riley, 2007)

Page 19: Key Expert Systems Concepts

Characteristics of Expert Knowledge

� An effective expert system is:

� Capable of responding at a level of competency equal to or better than a human expert

� Able to perform in a reasonable time, comparable to or better than human

� Able to explain the steps of its reasoning to the end user

� Built with facilities to enable users add, change, and replace dated knowledge

Page 20: Key Expert Systems Concepts

Components of Expert System

Page 21: Key Expert Systems Concepts

Components of Expert System

� Expert systems are made up of four major components:

� Knowledge base

� Inference Engine

� Interactive user interface, and

� An actives working memory

Page 22: Key Expert Systems Concepts

Components of Expert System

Working memory

fact base

Knowledge

base

Inference /Interface

Engine

Subject Experts Knowledge Engineer ES Developer

End user

With computer &

interface

Receives

expert advice

Ask question

or query

Page 23: Key Expert Systems Concepts

How the various components work together

23

Page 24: Key Expert Systems Concepts

How they work

� Expert systems solves problems or provide answers to users questions by:

� Comparing rules and facts stored in knowledge base and facts in memory respectively to produce result

� The main component that does the comparing or reasoning is called the inference engine.

� Any new fact obtained from users are added to the database and used to train the system for better performance

Page 25: Key Expert Systems Concepts

Expert System Application

Page 26: Key Expert Systems Concepts

Areas of use

� Knowledge base systems are used in many fields, including:

� Medical diagnostics

� Engineering equipment repair

� Financial decision, e.g. investment analysis

� Estate and insurance planning

� Transport, vehicle driver routing and navigation

� Manufacturing production control and

� Education and training

Page 27: Key Expert Systems Concepts

Real world examples

Page 28: Key Expert Systems Concepts

Application of expert systems to business problems

� Applications of expert systems technology to a wide variety of specific knowledge fields and problems

� See this list by World Technology Evaluation Center (WTEC), Division of Loyola University Maryland:

http://www.wtec.org/loyola/kb/c1_s2.htm

Page 29: Key Expert Systems Concepts

Expert systems Application

Artificial Neural Network

Automatic Self

service

Page 30: Key Expert Systems Concepts

The development of expert systems is a team effort

How are they developed?

Page 31: Key Expert Systems Concepts

The Development Team

� Team members involve in a typical expert system development project:

� Domain subject experts

� Knowledge engineer or Analyst

� System Engineer or developer

� Expert System user

Page 32: Key Expert Systems Concepts

Why Expert Systems

Page 33: Key Expert Systems Concepts

Are Expert Systems better than human experts?

Page 34: Key Expert Systems Concepts

Are Expert Systems better?

� The debate about performance gap between human experts versus intelligence machines is on going

� The limit of human capacity to make decision and solve problem pose great challenges to the wellbeing and prosperity of society.

� Expert System can be programmed to run on their own logic and intelligence.

� More often than not humans act out of emotion, insecurity, irrational thoughts, and personal beliefs that confuses how the world work with how they think the world ought to work.

Page 35: Key Expert Systems Concepts

But does that makes them better than human experts?

I am not sure, what do you think?

Page 36: Key Expert Systems Concepts

What are Rules and Facts in Expert Systems

Page 37: Key Expert Systems Concepts

What are Rules and Facts in Expert Systems

� The most important component of an expert system is perhaps the knowledge base

� Knowledge base comprises of:

� Domain specific data or fact, often expressed as a condition

� Rules for reasoning and for accomplishing task in the specific domain (condition & outcome)

� Both are structured so that they can aid reasoning

Page 38: Key Expert Systems Concepts

What is factual statement

Change the Facts not the Rules, says the great sage

Page 39: Key Expert Systems Concepts

What are facts and How do we know?

� A fact is something that has really occurred or is actually the case and known to be true.

� A statement is factual if it can be validated and verified

� The usual test for a statement of fact is whether it can be demonstrated to correspond to experience.

Page 40: Key Expert Systems Concepts

Examples of random factual statements

�Most mammals are hairy

� Humans are mammals

� All mammals are worm blooded

� January is the first month of the year

� the size of middle class in Africa is growing

� Sleep is necessary

� Humans need food to stay alive

Page 41: Key Expert Systems Concepts

Examples of random factual statements

� Students who hand in their work late score less mark

� Immigration visa is issued to applicants who score more than 60 points

� Over draft fees are charged to customers who exceed an agreed limit

� The pass mark for BCS Exam is 40%

� BCS exams this year is in March

Page 42: Key Expert Systems Concepts

How can you be sure of your facts?

How would you check a statement for its

accuracy and validity?

Page 43: Key Expert Systems Concepts

Expert Systems Rules

What do we mean by Rules in an Expert System?

Page 44: Key Expert Systems Concepts

Rules

� In problem solving or artificial intelligence, rules are forms of knowledge expression.

� A way to express understanding of what the facts are and how they apply in practice

� Rules provide some description of how to solve a problem or perform a task

� Rules are the popular paradigm for representing knowledge.

Page 45: Key Expert Systems Concepts

The Building Block of rules

� Rules are made of two main parts, namely an “IF….” part and “THEN….” Part. Condition of an event, real world object on one hand and possible outcome on the other

� A rule based expert system is one whose knowledge base contains the domain knowledge encoded in the form of rules.

Page 46: Key Expert Systems Concepts

Rules for various fields of knowledge

� Can you work out the Rules for the use cases below:

� Making a scientific discovery

� Data mining and knowledge discovery

� Health promotion campaign

� Solving a complex mathematical problem

� Teaching someone how to learn effectively

� Deducing intelligent behaviour

� Building a new computer software

� Solving a complex crime, like inspector Colombo would

Page 47: Key Expert Systems Concepts

Rules outline how work is done or how to solve a problem

Page 48: Key Expert Systems Concepts

Thinking in Rules

Page 49: Key Expert Systems Concepts

Thinking in Rules

� Rules base thinking can be applied to:

� Situations and expected actions

� Premises and conclusions, and

� Antecedents and consequences

Page 50: Key Expert Systems Concepts

Situations and Expected Actions

� Situation refers to a condition or an event

� Action by definition is what should be done if the condition is satisfied

� A simple illustrated example: � IF traffic light shows red Then stop, do not cross the road.

� IF total point scored < 60 THEN Reject visa Application

� IF customer account is >=10% over drawn THEN charge Overdraft fee

Page 51: Key Expert Systems Concepts

Premise and Possible Conclusions

� Premise is defined as a statement or an idea on which a reason is based

� The statement may be true or false

� Conclusion, could referred to as end result or a final point

Page 52: Key Expert Systems Concepts

Premise and Possible Conclusions

� Example

� IF student continue to absent themselves from class THEN it means they have other interfering activity

� If the account holder has low credit score THEN they are high risk, their loan application should be rejected

� If the sky is cloudy THEN it is likely to rain

� If a product is scarce THEN sellers will charge more for it

Page 53: Key Expert Systems Concepts

Antecedent and Consequences

� The term Antecedent refers to a thing or event that exist or occur before another. Put simply, it’s simply, ancestors to a person, an object, event or process

� Remember, generalisation and specialisation

� Consequences may be defined as: The outcome of a course of action. E.g. the outcome of an event

Page 54: Key Expert Systems Concepts

Antecedent and Consequences

� Example:

� IF x is a dog then x is an animal.

� IF student attendance <=70% THEN they would not pass their exam

� IF x is a girl THEN x is a Female

� IF x head injury is severe THEN x should be rushed to emergency hospital

� IF y is fitted with complicated systems THEN it will cost more to repair it

Page 55: Key Expert Systems Concepts

Thanks for your attention

Keep in touch and let me know what you think

Page 56: Key Expert Systems Concepts

To find out more:

Peter Jackson, Introduction to Expert Systems, Addison-Wesley (3rd Ed), 1998, ISBN 0201876868978-0201876864

Alison Cawsey, The Essence of Artificial Intelligence, ISBN-13: 978-0135717790 ISBN-10: 0135717795

Pedro Domingos, (2015) The Master Algorithm: How the Quest for the Ultimate Learning Machine Will Remake Our World

Page 57: Key Expert Systems Concepts

To find out more:

http://www.bcs.org/upload/pdf/pgdkbssyll.pdf

http://www.businessdictionary.com/definition/expert.html#ixzz3RJxhhhlK

http://users.cs.cf.ac.uk/Dave.Marshall/AI1/mycin.html

http://www.codeproject.com/Articles/179375/Man-Marriage-and-Machine-

Adventures-in-Artificia

MYCIN Artificial intelligence program

https://www.britannica.com/technology/MYCIN

https://www.deepdyve.com/browse/journalslp/expert-

systems?gclid=CJ2LrojGjNACFUoW0wodwXIFhQ