Knowledge-Based Agent in Artificial intelligence
A knowledge-based agent must able to do the following:
The architecture of knowledge-based agent:The above diagram is representing a generalized architecture for a knowledge-based agent. The knowledge-based agent (KBA) take input from the environment by perceiving the environment. The input is taken by the inference engine of the agent and which also communicate with KB to decide as per the knowledge store in KB. The learning element of KBA regularly updates the KB by learning new knowledge. Knowledge base: Knowledge-base is a central component of a knowledge-based agent, it is also known as KB. It is a collection of sentences (here 'sentence' is a technical term and it is not identical to sentence in English). These sentences are expressed in a language which is called a knowledge representation language. The Knowledge-base of KBA stores fact about the world. Why use a knowledge base?Knowledge-base is required for updating knowledge for an agent to learn with experiences and take action as per the knowledge. Inference systemInference means deriving new sentences from old. Inference system allows us to add a new sentence to the knowledge base. A sentence is a proposition about the world. Inference system applies logical rules to the KB to deduce new information. Inference system generates new facts so that an agent can update the KB. An inference system works mainly in two rules which are given as:
Operations Performed by KBAFollowing are three operations which are performed by KBA in order to show the intelligent behavior:
A generic knowledge-based agent:Following is the structure outline of a generic knowledge-based agents program: The knowledge-based agent takes percept as input and returns an action as output. The agent maintains the knowledge base, KB, and it initially has some background knowledge of the real world. It also has a counter to indicate the time for the whole process, and this counter is initialized with zero. Each time when the function is called, it performs its three operations:
The MAKE-PERCEPT-SENTENCE generates a sentence as setting that the agent perceived the given percept at the given time. The MAKE-ACTION-QUERY generates a sentence to ask which action should be done at the current time. MAKE-ACTION-SENTENCE generates a sentence which asserts that the chosen action was executed. Various levels of knowledge-based agent:A knowledge-based agent can be viewed at different levels which are given below: 1. Knowledge levelKnowledge level is the first level of knowledge-based agent, and in this level, we need to specify what the agent knows, and what the agent goals are. With these specifications, we can fix its behavior. For example, suppose an automated taxi agent needs to go from a station A to station B, and he knows the way from A to B, so this comes at the knowledge level. 2. Logical level:At this level, we understand that how the knowledge representation of knowledge is stored. At this level, sentences are encoded into different logics. At the logical level, an encoding of knowledge into logical sentences occurs. At the logical level we can expect to the automated taxi agent to reach to the destination B. 3. Implementation level:This is the physical representation of logic and knowledge. At the implementation level agent perform actions as per logical and knowledge level. At this level, an automated taxi agent actually implement his knowledge and logic so that he can reach to the destination. Approaches to designing a knowledge-based agent:There are mainly two approaches to build a knowledge-based agent:
However, in the real world, a successful agent can be built by combining both declarative and procedural approaches, and declarative knowledge can often be compiled into more efficient procedural code. Next TopicKnowledge representation in AI |