







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!








What is Knowledge Engineering? The basic issue here is how to choose the right tool for the job at hand. At this point in the course, the student should have become familiar with a number of styles of programming, including the following:
Here are a few rules that seem appropriate in selecting a programming style.
Here is one simple example related to what this instructor calls the “doghouse problem”. One might build a small house, the size of a doghouse, to be a prototype of a full-sized house for a family. This would allow certain features to be visualized and better design options to be decided upon, but never would be itself modified into a habitation for humans. For one thing, a doghouse will lack the necessary foundation structure. Early Test Cases In commercial software development, test cases are often defined late in the software development process. This can lead to a common fallacy of developing the test cases with special care that the existing software will pass all the tests. The best time for definition of a set of test cases is at the same time that the system requirements are being developed. One may reasonably ask how one can write requirements for a system without also stating what it would mean for the system to fail to meet the requirements. Each requirement should automatically generate at least one test case to detect its being met; this can be done early. Admittedly, the set of test cases should evolve as the software proceeds through the development cycle. But one should have a good set of tests at the start. Data mining and knowledge engineering We now introduce the last major topic to be covered in this course. The basic problem addressed here is the extraction of information from a lot of data. We perform such functions all the time, indeed one of the driving forces of human evolution seems to be the ability to recognize patterns in data and draw conclusions, such as how to avoid locations likely to hide dangerous animals. For one example of pattern recognition, the reader should examine the figure at right, which is really a collection of integers, each representing a color value. We do not think of this as such a collection, we humans see a picture. Many of us would immediately recognize the face as that of Ozzy Osbourne. The student is invited to speculate as to why this instructor has suddenly become fascinated with Ozzy, as this instructor has never listened to any of Ozzy’s music and up to a few years ago had never heard of him. The source of this picture is a web page linked from the CNN web site. The link is http://www.cnn.com/2003/SHOWBIZ/TV/12/09/osbourne.accident/index.html The important issue in recognizing this picture is that we did not process the data in any structured manner. We immediately extract the information from the data, almost without thought. In particular, we did not start processing a list of famous people to find a matching picture: “Is this a picture of George Bush?” – “No”, “Is this a picture of Elvis?” – “No”, etc.
In a similar way, we could treat a database as a collection of data to be processed by database queries. But that would require that we know what we are looking for or have a list of likely possibilities. The book calls this the use of assumption-based tools ; you tell me what you are looking for and I can tell you if you have found it. But suppose that you do not have a preconceived notion of what the data contain. How do you issue a query such as “Select all records in which there is a field having an interesting value” without specifying which field and what interesting value. One of this instructor’s favorite examples of discovery is related to the March 1979 encounter of the probe Voyager I with the moon Io, a satellite of Jupiter. According to this instructor’s memory, an assistant at NASA was processing images from the Voyager I probe, looking for something else in the data, when she noticed the image at right. It was soon recognized as an active volcano on the moon Io and was quickly explained as being due to gravitational heating of the moon by its interaction with the planet Jupiter. Again, a fortuitous discovery. The source of this image is the web site of the NASA Jet Propulsion Laboratory. http://photojournal.jpl.nasa.gov/target/Io?subselect=Spacecraft%3AVoyager+1%3A&start= Ancient Data Mining The textbook mentions a very ancient example of a practice that can be called data mining in that it involved extraction of patterns from a multitude of observations. Most of us think of astronomy as looking through large telescopes at the planets and stars. However, for all but the last 400 years (since Galileo used a telescope in 1609 to look at the planets Jupiter and Saturn) that we have used telescopes in astronomy. Prior to that, all astronomy could do was to track the paths of the planets and stars through the night sky. Very early, perhaps as early as the creation of Stonehenge in England, people discovered monthly and yearly patterns in the observations. The information they extracted from these data is called a calendar. We might well ask why this process resembles data mining more than other possible processes. The answer is that the ancients did not systematically examine all of the approximately 5,000 stars visible to the naked eye for examination and analysis (See http://www.abc.net.au/science/news/space/SpaceRepublish_910295.htm), but instead focused on the ones that attracted their attention – the sun, moon, and major planets (Mercury, Venus, Mars, Jupiter, and Saturn). Two Medical Examples We next discuss two examples (taken from the book The Great Influenza, by John M. Barry, published by Viking Press in 2004, ISBN 0-670-89473-7) from the medical research of the 18 th^ and 19th^ centuries that could have been good cases of data mining, had they any way of implementing the technique.. The first involved the discovery of the smallpox vaccine. In 1798, Edward Jenner heard a milkmaid say “I cannot take the smallpox because I have had cowpox”. Mr. Jenner observed this pattern – that infection with cowpox granted immunity to smallpox. That one observation lead to the development of a safer smallpox vaccine and eventually to the eradication of that disease in the 20th^ century.
We have already seen one significant application of data mining when we studied artificial neural networks previously. This is the use of artificial neural networks by Chase Manhattan Bank to examine data on the use of stolen credit cards and discovered that the most suspicious sales were for women’s shoes costing between $40.00 and $80.00. This is a perfect example of the discovery of an unanticipated pattern in a large amount of data. The essential question in data mining is how to automate the discovery of patterns in data, by which we mean the identification of structure that has not previously been suspected to exist. The book compares data mining to hard-rock mining, such as the search for gold. The analogy is valid in that real information is valuable and uncommon in the piles of data that must be examined. One way in which the analogy fails is that hard-rock mining typically separates a valuable mineral from material of no use, often called “tailings”. In data mining, the data that are rejected for one application might remain valuable for another. Another way in which the analogy fails is due to the fact that the term is somewhat of a misnomer. Remember that we are mining data in order to retrieve information. As our favorite reference puts it “Simply stated, data mining refers to extracting or “mining” knowledge from large amounts of data. The term is actually a misnomer. Remember that the mining of gold from rocks or sand is referred to as gold mining rather than rock or sand mining. Thus, data mining should have been more appropriately named “knowledge mining from data”, which unfortunately is somewhat long”. [DM 5] Often the data of interest are stored in large amounts (billions of records) in a facility called a data warehouse. Our reference defines a data warehouse as “a repository of multiple heterogeneous data sources, organized under a unified schema at a single site in order to facilitate management decision making” [DM 3]. While it should be obvious that value can be obtained by use of traditional database tools, such as queries, on data stored in a data warehouse, we focus on techniques that will assist in information discovery. In the above discussion, we note that a data warehouse is frequently a repository for heterogeneous data, by which we mean data contained in a variety of different database types. The best probable situation is that all of the databases will process standard SQL queries and precompiled procedures. As we shall see in a minute, data in data warehouses often have been preprocessed in order to facilitate their use when needed. We now consider the basic steps involved in data mining. Broadly speaking, these fall into two classes
Basic Steps in Data Mining Here are the seven steps of data mining, taken from our favorite reference. First we populate the data warehouse by preprocessing the data and making them available through some sort of common schema. “1. Data cleaning (to remove noise and inconsistent data). 2 Data integration (where multiple data sources may be combined).” [DM 7] Having established our data warehouse, we now propose to use it. Extraction of knowledge from the data involves the following steps. “3. Data selection (where data relevant to the analysis task are retrieved from the database).
There are two important measures associated with association analysis. These measures are called support and confidence. Formally speaking for association rule “X Y”, support (X Y) == P(X Y), the probability that a transaction record contains one or both of entries X and Y confidence (X Y) == P(Y | X), the probability that a transaction record containing an X entry also contains a Y entry. We now repeat and expand the above association rule that might have been noted in processing the data records of an electronics store. age (P, “20 … 29”) AND income (P, “20K … 29K”) buys (P, “CD player”) [support = 2%, confidence = 60%] This indicates that of all the customer records under study
Cluster Analysis In cluster analysis we divide the objects into clusters , which are groupings of objects in which similar objects are placed into the same class. The desire is that