




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Chapter 1 – Introduction to knowledge-based systems In this first chapter, we attempt to define what we mean by the term “Artificial Intelligence” and to give a brief history of the subject. What AI is not First we must state a disclaimer that may be important in Georgia and other agricultural states. This author was a part of a conversation in which the use of AI on the farm was a central topic. Fortunately, before he made a fool of himself, this author recalled another meaning for AI – “Artificial Insemination”, a process that it is quite important for breading good strains of cattle and other farm animals. We shall have enough problems when restricting AI to its computational context, so we avoid the biology. 1.1 Intelligent Machines If we are to study the field of artificial intelligence, we must immediately face a number of questions. The most obvious is question number 1.
One view of artificial intelligence is that it focuses on non-algorithmic solutions to problems for which the best known algorithms take too much time. Problems in this class include the famous Traveling Salesman Problem (TSP) for which all known algorithms take time proportional to the factorial of the number of cities – to be precise (N – 1)! steps to solve the N-city problem. This is the example used to provide the number above, based on the approximation 49! 6.083 1062. A computer capable of 10^12 operations per second (there are none at present, but their creation is a reasonable near-term research goal) would require at least 6.083 1050 seconds or slightly less than 2 1035 years to complete. This view of AI is the easiest to defend theoretically, but note that it completely avoids any mention of the word “intelligence”. The Turing Test The Turing Test, devised by the mathematician Alan Turing, avoids the slippery definition of the word “intelligent” by positing a simple well-defined test, called the Turing Imitation game. A person, called the tester, (male or female – it does not matter) is seated at a terminal connected to two other input devices. One of these input devices is also a terminal being operated by another human and the other input device is actually a computer. The tester types sentences to either the other human or the computer and attempts to determine which is the computer. The question is whether or not the computer can be programmed to mimic the human sufficiently to fool the tester for a period of five minutes. Note that the original Turing test had a tester trying to determine which of two humans is a male and which is female, assuming that the tester is communicating with one of each, but that in today’s politically correct climate we prefer to forget this chauvinistic test. One should note immediately that the test is based on the communication of textual information, so that it avoids two areas considered very important in the field of Artificial Intelligence: the understanding of spoken natural language and the analysis of visual scenes. Before we consider the subject of intelligence in general (and predictably fail to come to any good definition), let us dispose of a few questions. Should an AI system attempt to mimic human intelligence? The answer is that it is not necessary. We present two examples, one from the military.
Intelligence as the accumulation of knowledge One model of intelligence focuses on the acquisition of large amounts of knowledge and the ability to reason using such knowledge. In an informal sense, this picture represents one of the more common ideas of intelligence; how well does one score on an IQ test. Put simply this view equates intelligence with the ability to do symbolic reasoning. The computational model that reflects this approach is that of expert systems. When we study expert systems, we shall find them to be quite powerful, but only in narrow ranges of specialization. Specifically, expert systems do not adapt well to unexpected inputs. Learning machines Another definition of human intelligence relates to the human’s ability to learn and change behavior in response to feedback. One may quickly ask whether or not a computer can learn and what it would mean for a computer to do so. This author cannot let this discussion pass without telling a true story from his freshman days at college (in 1964 if you must know). He was learning to program a small computer, called the IBM 1620. That machine had a program that played three-dimensional tic-tac-toe. In this game, the human was always invited to play first. After a number of losing games, this author finally beat the machine. On a guess, he repeated the same set of moves; the machine responded identically to the previous game and this author again beat the machine. After repeating this winning game a number of times, this author decided that the computer was not learning from its mistakes. It is now quite possible to create computer programs that “learn”, at least to the degree that such a program would not play the same losing game time after time. We shall discuss this possibility when we get to the representation of game trees. Ability to Survive A number of philosophers, including Heidegger and Merleau-Ponty, intelligence is not knowing what is true (and how to reason from it), but the ability to survive in a world that is constantly changing. This would be a logical conclusion if one were to posit that intelligence arose as a result of evolutionary pressures in a changing world, beginning with the origins of the human species in Africa a few million years ago. This “survivalist intelligence” model might lead to a computational approach that focuses on interacting with an environment and responding appropriately. Genetic algorithms were inspired by this approach, in this programming method a number of trial solutions are evaluated with the best ones being kept and new solutions generated based on these – only the better solutions “survive” while the inferior solutions are pruned. Social Intelligence For many species, intelligence seems to be a product of cooperative behavior. As we have mentioned earlier, an ant colony can generate apparently intelligent behavior out of the interaction of a large number of very simple agents – the individual insects. Similar behavior is noted among other social insects, such as bees. This behavior has been adapted in a style of programming based on creating a collection of simple autonomous agents, each of which interacting with a number of others to solve complex problems.
1.2 History of Artificial Intelligence The book presents an interesting history of the discipline of Artificial Intelligence. These notes will not duplicate that history, but only comment on it. 1.2.1 The Turk One of the earlier supposed examples of Artificial Intelligence was a chess-playing machine called “The Turk”, that toured Europe and the United States in the late 18 th^ and earliest 19th^ century. The figure at right was taken from the CNN website, more specifically from a report titled “The computer wore a turban and played chess”, posted on May 30, 2002. In order to understand this machine, one must first note that the view at right was never presented to the audience; only one door at a time was opened to reveal the marvelous clockwork inside. The Turk was created in 1769 by a Hungarian nobleman named Wolfgang von Kempelen, who challenged all comers to play the machine. The Turk did, in fact, defeat almost all opponents. The brilliance of its design had nothing to do with artificial intelligence, but more with the old conjuring tradition of hiding a man in a cabinet in such a way as not to be detected by careful inspection. In truth the machine hid a human expert chess player who was also a fairly good contortionist – as one door was opened he would hide behind another. During the history of the Turk’s exhibition, a number of human chess players provided the intelligence. Edgar Allan Poe, the great American writer, was one of those particularly fascinated by the Turk. What is interesting is that he considered it to be a fake because no machine could possibly lose a match. 1.2.2 General Purpose Problem Solvers Computers are well known to be able to apply specific algorithms to problems and to produce useable results. The early age of Artificial Intelligence was characterized by boundless enthusiasm and the belief that computers would be able to solve many non-numerical problems. Two of the early programs were a general purpose reasoning tool, called “Advice Taker” and another called “General Problem Solver”. This author considers this early stage of AI to be quite significant in that it really clarified the difficulties associated with the area. Early in the development of Artificial Intelligence, it became obvious that procedure-oriented languages, such as Assembly Language and the recently developed FORTRAN did not fit well to the problems of interest. For this reason, a number of programming languages were developed, including the language LISP, developed in the late 1950’s by John McCarthy while at MIT. One of the key functions in LISP is called EVAL, which does exactly what one would expect – it evaluates expressions. The story is that Dr. McCarthy viewed LISP purely as a formal language until one of his graduate students wrote an interpreter for the EVAL function and was able to use it to evaluate text files representing the source code of LISP programs.
Almost everyone would agree on the following statements 104 F (40 C) is definitely hot 50 F (10 C) is definitely not hot 86 F (30 C) is not quite clear, but probably is not hot. One way that mimics human experience is to define several fuzzy sets and define these values by membership in the fuzzy sets COLD, COOL, WARM, and HOT. Thus 104 F might be assigned the value (0, 0, 0, 1.0) - decidedly hot 50 F might be assigned the value (0.2, 0.8, 0, 0) - mostly cool, but maybe cold. Later we shall give a much more precise formulation of fuzzy sets. 1.2.3 ELIZA and Natural Language Processing NOTE: The source for almost all of the information on ELIZA is a report created by Christopher Rose on 2/21/2003 for a class CSE391, presumably at the University of Pennsylvania. It was located on Google using the key words “artificial intelligence”, “natural language”, “Rogerian”, and “Eliza”. In the mid 1960’s, we saw an rather frightful example of an AI program – called “ELIZA”, a program designed to mimic a Rogerian psychologist – i.e. a psychologist who practices what is called Rogerian Therapy, in which the therapist takes a passive role, reflecting the patient’s statements back by reformulating the statements as questions. The ELIZA program was created in the early 1960’s by Joseph Weizenbaum at MIT as an experiment in natural language processing. The scary part of this is how many people attributed human intelligence to the program, which used a number of syntactic tricks to extract a question from a previous statement that the “patient” had typed in. If the program could not apply any of its rules, it output a generic question such as “That is very interesting. Why do you say that”, or “Tell me about your mother” Here is a typical session. Remember that all interaction was by means of keyboard and some sort of monitor, specifically that no speech was involved. Person: Men are all alike. ELIZA: In what way? Person They’re always bugging us about something or other ELIZA: Can you think of a specific example? Person: Well, my boyfriend made me come here. ELIZA: Your boyfriend made you come here? Person: He says I’m depressed much of the time. ELIZA: I am sorry to hear that you are depressed. In the late 1960’s, the US government tried to make it easier for our researchers to read results coming out of the Soviet Union. It sponsored human translations of Soviet technical journals and sponsored an effort for computer translation of articles from Russian to English. The author of these notes was a user of such machine translations in the late 1960’s and found it easier to read the original Russian than the English produced by these programs.
1.2.4 Expert Systems In the early 1970’s the experts in AI decided to “punt”, that is – to focus development on problems much less ambitious than the general reasoning problems attempted earlier. It was decided to create programs focusing on a narrow area of expertise; these programs are now commonly called Rule-Based Systems or Expert Systems. Such systems work by mimicking the decision steps made by human engineers in solving a problem. Associated with the discipline of Expert Systems, there arose a discipline called “Knowledge Engineering”, which focuses on interviewing experts in the area and deducing how these experts solved problems. It was quickly realized that asking a human expert to for a written description of the process was largely useless as the document would almost certainly be incomplete and leave out all of the important stuff. Knowledge engineering became the art of interviewing experts, often by posing case studies, to elicit the “rules of the game”. It is not that the experts were uncooperative, it is just that much of what they do is almost unconscious and they have a hard time describing it formally. One of the early expert systems was R1, written by John McDermott in the late 1970’s. The author of these notes has met Dr. McDermott and heard his explanation of the name – an adaptation of an old joke “Two years ago I couldn’t spell ‘Knowledge Engineer’ and now I are one.” The project, later renamed, focused on configuring VAX computers produced by the Digital Equipment Corporation (now defunct) of Maynard, MA. The Digital Equipment Corporation had invested in an algorithmic solution to the problem of configuring computers for customer requests and had almost no success. As a result, the engineers at DEC concluded that the problem required human expertise and that no program could solve it. The program R1 was quite successful in producing consistent configurations and reportedly saved DEC quite a bit of money. The other expert system that is always mentioned is Prospector , which was used to locate a molybdenum deposit valued in excess of one hundred million dollars. 1.2.5 Where Now? At present there are two fairly interesting areas of research associated with AI.