Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A rule-based expert system contains rules in its knowledge base. The rules are u

ID: 3917638 • Letter: A

Question

A rule-based expert system contains rules in its knowledge base. The rules are used to generate questions for the user. The user’s responses allow the system to provide recommendations. Suppose that you have an expert system that recommends notebook computers based on a customer’s needs.

Let’s consider the example of selecting a notebook. Several rules can be defined for choosing between Toshiba Satellite A100 and a Dell Latitude X1.

The following are rules in the knowledge base used for making recommendation:

Rule 1

IF the primary task = word processing

AND primary usage = travel

THEN weight requirement = light

Rule 2

IF the primary task = word processing

AND primary usage = office

THEN weight requirement = don’t care

Rule 3

IF budget <= 2000

AND budget > 1000

AND weight requirement = light

THEN NB model = Dell Latitude X1

Rule 4

IF budget < 1000

AND weight requirement = don’t care

THEN NB model = Toshiba Satellite A100

The following is a possible consultation session using forward chaining inference mechanism:

What is your primary task to be performed on the notebook computer?

Word processing

Communications

Multimedia applications

Answer: 1 (click the first check box)

Where are you going to use the notebook most often?

In the office

While traveling

Answer: 2 (click the second check box)

What is your budget range?

Below $1K

Between $1K and $2K

Above $2K

Answer: 2 (click the second check box)

System recommendation: You should consider buying a Dell Latitude X1.

Reasons: It is light and more suitable for your word processing and travel needs and it also fits your budget.

The following is a possible consultation session using backward chaining inference mechanism:

What is your budget range?

Below $1K

Between $1K and $2K

Above $2K

Answer: 2 (click the second check box)

What is your primary task to be performed on the notebook computer?

Word processing

Communications

Multimedia applications

Answer: 1 (click the first check box)

Where are you going to use the notebook most often?

In the office

While traveling

Answer: 2 (click the second check box)

System recommendation: You should consider buying a Dell Latitude X1.

Reasons: It is light and more suitable for your word processing and travel needs and it also fits your budget.

Creating Expert Systems

In this exercise you will be developing a simple expert system to identify animals. You don't have to write any computer code. Consider yourself to be the expert with expertise to distinguish different kinds of animals.

The expert system must be able to identify and distinguish between the following animals: cheetah, giraffe, ant, wasp, vulture, bat, lion, millipede, and ant-eater.

Use following questions as aid to identify ways to distinguish above animals:

How many legs does the animal have?

Does the animal eat meat?

Does the animal have a hard outer skeleton?

Does the animal have dark spots/patches on its fur?

Can the animal fly?

Organize knowledge gained from answers to above questions into a meaningful form that allows you to reach to a recommendation. Consider organizing in forms such as tables, trees, etc.

After organizing knowledge on distinguishing animals

Develop rules for knowledge base

Develop a sample consultation session using forward chaining inference strategy that leads to identification of Lion

Develop a sample consultation session using backward chaining inference strategy that leads to identification of Giraffe

Explanation / Answer

The following are rules in the knowledge base used for making recommendation:

RULES 1: IF X has four legs AND X has hard outer skeleton THEN X is animal.

RULES 2: IF X has two legs AND X fly THEN X is bird.

RULES 3: IF X is animal AND X has darkspot/patches AND X eats meat THEN X is cheetah.

RULES4: IF X is animal AND X has not darkspot/patches and X eats meat THEN X is lion.

RULES5: IF X is animal AND X has darkspot/patches AND X not eats meat THEN X is giraffe.

RULES 6: IF X is bird AND X eat meat THEN X is vulture.

RULES 7: IF X is bird AND X not eat meat THEN X is bat.

RULES 8: IF X is animal AND X has not darkspot/patches AND X not eat meat THEN X is ant-eater

RULES 9: IF X has not hard outer skeleton THEN X is insect.

RULES 10: IF X is insect AND X has legs >40 THEN X is millipede.

RULES 11: IF X is insect AND X fly AND X has legs = 6 THEN X is wasp.

RULES 12: IF X is insect AND X not fly AND X has legs = 6 THEN X is ant.

SUPPOSE given that X has 4 legs and X eat meat and X have hard outer skeleton and x not fly and X has not darkspot...

who is X?

BY USING forward chaining : Rules1 and Rules4 gives you the result :X is Lion...

BY USING backward chaining rules5 and rules1 gives you the leads to identification of Giraffe

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote