Frames and Scripts in Artificial Intelligence

Frames and Scripts in AI:

Frames and Scripts are the data structure for representing a stereotyped situation, like being in a certain kind of living room, or going to a child’s birthday party. Attached to each frame are several kinds of information.

Frames in Artificial Intelligence:

It is a method used to represent conceptual and commonsense knowledge. In 1975, Marvin Minsky proposed the organization of knowledge in the form of small packets called Frames. It is used to represent activities associated with conceptual events.

The contents of the frames are slots that have certain values. The slots may be of any type and any size slots have names and values called Facets. Facets may also have names and any number of values. An appropriate frame is selected from the memory for reasoning. There are two types of frames:

1. Declarative Frames: Frames consisting of only descriptive type of knowledge.
2. Procedural Frames: A-frame having knowledge about the action or procedures.

So, a frame is a collection of attributes or slots and associated values that describes some real-world entity.

Scripts in Artificial Intelligence:

A script is a structure that prescribes a set of circumstances that could be expected to follow from one another. It is similar to a chain of situations that could be anticipated. Like a script for a play, the script’s structure is defined in terms of – (a) Actors (b) Roles (c) Props (d) Scenes

Why Scripts are very useful?

i. Events tend to occur in known runs or patterns.
ii. Entry conditions exist which allow an event to take place.
iii. Casual relationships between events exist.
iv. Prerequisites exist.