




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!





48 Computer 0018-9162/01/$17.00 © 2001 IEEE
ecision support systems are the core of busi- ness IT infrastructures because they give companies a way to translate a wealth of business information into tangible and lucrative results. Collecting, maintaining, and analyzing large amounts of data, however, are mammoth tasks that involve significant technical chal- lenges, expenses, and organizational commitment. Online transaction processing systems allow orga- nizations to collect large volumes of daily business point-of-sales data. OLTP applications typically auto- mate structured, repetitive data processing tasks such as order entry and banking transactions. This detailed, up-to-date data from various independent touch points must be consolidated into a single location before ana- lysts can extract meaningful summaries. Managers use this aggregated data to make numerous day-to-day business decisions—everything from managing inven- tory to coordinating mail-order campaigns.
A successful decision support system is a complex creation with numerous components. A fictitious busi- ness example, the Footwear Sellers Company, helps illustrate a decision support system’s various compo- nents. FSC manufactures footwear and sells through two channels—directly to customers and through resellers. FSC’s marketing executives need to extract the following information from the company’s aggre- gate business data:
Before building a system that provides this decision support information, FSC’s analysts must address and resolve three fundamental issues:
As Figure 1 shows, these issues correlate to a deci- sion support system’s three principal components: a data warehouse server, online analytical processing and data mining tools, and back-end tools for popu- lating the data warehouse. Data warehouses contain data consolidated from several operational databases and tend to be orders of magnitude larger than operational databases, often hundreds of gigabytes to terabytes in size. Typically, the data warehouse is maintained separately from the organization’s operational databases because analyti- cal applications’ functional and performance require- ments are quite different from those of operational databases. Data warehouses exist principally for deci- sion support applications and provide the historical, summarized, and consolidated data more appropriate
Surajit Chaudhuri Microsoft Research
Umeshwar Dayal Hewlett-Packard Laboratories
Venkatesh Ganti Microsoft Research
C O V E R F E A T U R E
for analysis than detailed, individual records. The workloads consist of ad hoc, complex queries that access millions of records and perform multiple scans, joins, and aggregates. Query response times are more important than transaction throughput. Because data warehouse construction is a complex process that can take many years, some organizations instead build data marts , which contain information for specific departmental subsets. For example, a mar- keting data mart may include only customer, product, and sales information and may not include delivery schedules. Several departmental data marts can coex- ist with the main data warehouse and provide a par- tial view of the warehouse contents. Data marts roll out faster than data warehouses but can involve com- plex integration problems later if the initial planning does not reflect a complete business model. Online analytical processing and data mining tools enable sophisticated data analysis. Back-end tools— such as extraction, transformation, and load tools— populate the data warehouse from external data sources.
Most data warehouses use relational database tech- nology because it offers a robust, reliable, and effi- cient approach for storing and managing large vol- umes of data. The most significant issue associated with data warehouse construction is database design, both logical and physical. Building a logical schema for an enterprise data warehouse requires extensive business modeling.
In the star schema design, the database consists of a fact table that describes all transactions and a dimen- sion table for each entity. For the fictitious FSC, each sales transaction involves several entities—a customer, a salesperson, a product, an order, a transaction date, and the city where the transaction occurred. Each transaction also has measure attributes—the number
of units sold and the total amount the customer paid. Each tuple in the fact table consists of a pointer to each entity in a transaction and the numeric measures associated with the transaction. Each dimension table consists of columns that correspond to the entity’s attributes. Computing the join between a fact table and a set of dimension tables is more efficient than computing a join among arbitrary relations. Some entities, however, are associated with hierar- chies , which star schemas do not explicitly support. A hierarchy is a multilevel grouping in which each level consists of a disjoint grouping of the values in the level immediately below it. For example, all products can be grouped into a disjoint set of categories , which are themselves grouped into a disjoint set of families. Snowflake schemas are a refinement of star schemas in which a dimensional hierarchy is explicitly repre- sented by normalizing the dimension tables. In the star schema depicted in Figure 2, a set of attributes describes each dimension and may be related via a relationship hierarchy. For example, the FSC’s product dimension consists of five attributes: the product name (Running Shoe 2000), category (athletics), product family (shoe), price ($80), and the profit margin (80 percent).
Database systems use redundant structures such as indices and materialized views to efficiently process complex queries. Determining the most appropriate set of indices and views is a complex physical design prob- lem. While index lookups and scans can be effective for data-selective queries, data-intensive queries can require sequential scans of an entire relation or a relation’s ver- tical partitions. Improving the efficiency of table scans and exploiting parallelism to reduce query response times are important design considerations.^1
Query processing techniques that exploit indices through index intersection and union are useful for answering multiple-predicate queries. Index intersec-
December 2001 49
Operational databases
Online analytical processing servers
Data warehouse server
Analysis
Query/reporting
Data mining
Tools
Serve
Back-end tools
Data marts
Data sources
Metadata repository
Monitoring and administration
External sources
Figure 1. Decision support system architecture, which consists of three principal components: a data warehouse server, analysis and data mining tools, and data warehouse back-end tools.
compare two measures that are aggregated by the same dimensions, such as sales and budget. OLAP analysis can involve more complex statisti- cal calculations than simple aggregations such as sum, count, and average. Examples include functions such as moving averages and the percentage change of an aggregate within a certain period compared with a dif- ferent time period. Many commercial OLAP tools pro- vide such additional functions. The time dimension is particularly significant for decision support processes such as trend analysis. For example, FSC’s market analysts may want to chart sales activity for a class of athletic shoes before or after major national athletic contests. Sophisticated trend analysis is possible if the database has built-in knowl- edge of calendars and other sequential characteristics of the time dimension. The OLAP Council (http:// www.olapcouncil.org) has defined a list of other such multidimensional cube operations.
Although traditional relational servers do not effi- ciently process complex OLAP queries or support multidimensional data views, three types of relational DBMS servers—relational, multidimensional, and hybrid online analytical processing—now support OLAP on data warehouses built with relational data- base systems. ROLAP servers. ROLAP middleware servers sit be- tween the relational back-end server where the data warehouse is stored and the client front-end tools. ROLAPs support multidimensional OLAP queries and typically optimize for specific back-end relational servers. They identify the views to be materialized, rephrase user queries in terms of the appropriate mate- rialized views, and generate multistatement SQL for the back-end server. They also provide additional ser- vices such as query scheduling and resource assign- ment. ROLAP servers exploit the scalability and transactional features of relational systems, but intrin- sic mismatches between OLAP-style querying and SQL can create performance bottlenecks in OLAP servers. Bottlenecks are becoming less of a problem with the OLAP-specific SQL extensions implemented in rela- tional servers such as Oracle, IBM DB2, and Micro- soft SQL Server. Functions such as median, mode, rank, and percentile extend the aggregate functions. Other feature additions include aggregate computa- tions over moving windows, running totals, and breakpoints to enhance support for reporting appli- cations. Multidimensional spreadsheets require grouping by different sets of attributes. Jim Gray and colleagues^2 proposed two operators— roll-up and cube —to aug- ment SQL and address this requirement. Roll-up of a list of attributes such as product, year, and city over a
data set results in answer sets with the following appli- cations:
Given a list of k columns, the cube operator pro- vides a group-by for each of the 2 k^ combinations of columns. Such multiple group-by operations can be executed efficiently by recognizing commonalities among them. 3 When applicable, precomputing can enhance OLAP server performance.^4 MOLAP servers. MOLAP is a native server architec- ture that does not exploit the functionality of a re- lational back end but directly supports a multi- dimensional data view through a multidimensional storage engine. MOLAP enables the implementation of multidimensional queries on the storage layer via direct mapping. MOLAP’s principal advantage is its excellent indexing properties; its disadvantage is poor storage utilization, especially when the data is sparse. Many MOLAP servers adapt to sparse data sets through a two-level storage representation and exten- sive compression. In a two-level storage representa- tion, either directly or by means of design tools, the user identifies a set of one- or two-dimensional sub- arrays that are likely to be dense and represents them in the array format. Traditional indexing structures can then index these smaller arrays. Many of the tech- niques devised for statistical databases are relevant for MOLAP servers. Although MOLAP servers offer good performance and functionality, they do not scale well for extremely large data sizes. HOLAP servers. The HOLAP architecture combines ROLAP and MOLAP technologies. In contrast to MOLAP, which performs better when the data is rea- sonably dense, ROLAP servers perform better when the data is extremely sparse. HOLAP servers identify sparse and dense regions of the multidimensional space and take the ROLAP approach for sparse regions and the MOLAP approach for dense regions. HOLAP servers split a query into multiple queries, issue the queries against the relevant data portions, combine the results, and then present the result to the user. HOLAP’s selective view materialization, selec- tive index building, and query and resource schedul- ing are similar to its MOLAP and ROLAP counter- parts.
December 2001 51
Sandals Sneakers Boots Slippers Hiking shoes Running shoes 1 2 3 4 5 6 7
W S N 10 50 20 12 15 10
Date
City
Product
Hierarchical summarization paths Industry
Category
Product
Country
State
City
Year
Quarter
Month Week
Date
Figure 3. A sample multidimensional database. Each numeric measure in this aggregation- centric conceptual data model depends on dimensions that describe the entities in the transaction.
52 Computer
Suppose that FSC wants to launch a catalog mailing campaign with an expense budget of less than $1 million. Given this constraint, the marketing analysts want to identify the set of customers most likely to respond to and buy from the catalog. Data mining tools provide such advanced predictive and analytical func- tionality by identifying distribution patterns and characteristic behaviors within a data set. Knowledge discovery —the process of speci- fying and achieving a goal through iterative data mining—typically consists of three phases:
In the data preparation phase, the analyst prepares a data set containing enough information to build accu- rate models in subsequent phases. To address FSC’s information requirement, an accurate model will pre- dict whether a customer is likely to buy products adver- tised in a new catalog. Because predictions are based on factors potentially influencing customers’ purchases, a model data set would include all customers who responded to mailed catalogs in the past three years, their demographic information, the 10 most expensive products each customer purchased, and information about the catalogs that elicited their purchases. Data preparation can involve complex queries with large results. For instance, preparing the FSC data set involves joins between the customer relation and the sales relation as well as identifying the top 10 products for each customer. All the issues related to efficiently processing decision support queries are equally rele- vant in the data mining context. In fact, data mining platforms use OLAP or relational servers to meet their data preparation requirements. Data mining typically involves iteratively building models on a prepared data set and then deploying one or more models. Because building models on large data sets can be expensive, analysts often work ini- tially with data set samples. Data mining platforms, therefore, must support computing random samples of data over complex queries.
Only after deciding which model to deploy does the analyst build the model on the entire prepared data set. The goal of the model-building phase is to iden- tify patterns that determine a target attribute. A tar- get attribute example in the FSC data set is whether a customer purchased at least one product from a past catalog.
Several classes of data mining models help predict both explicitly specified and hidden attributes. Two important issues influencing model selection are the accuracy of the model and the efficiency of the algo- rithm for constructing the model over large data sets. Statistically, the accuracy of most models improves with the amount of data used, so the algorithms for inducing mining models must be efficient and scalable to process large data sets within a reasonable amount of time.
Classification models are predictive. When given a new tuple, classification models predict whether the tuple belongs to one of a set of target classes. In the FSC catalog example, a classification model would determine, based on past behavior, whether a cus- tomer is or is not likely to purchase from a catalog. Decision trees and naïve Bayes models are two popu- lar types of classification models.5- Regression trees and logistic regression are two pop- ular types of regression models , which predict numeric attributes, such as a customer’s salary or age.^5 With some applications, the analyst does not explic- itly know the set of target classes and considers them hidden. The analyst uses clustering models such as K- Means and Birch to determine the appropriate set of classes and to classify a new tuple into one of these hidden classes.6, Analysts use rule-based models such as the associa- tion rules model to explore whether the purchase of a certain set of footwear products is indicative, with some degree of confidence, of a purchase of another product.
No single model class or algorithm will always build the ideal model for all applications. Data mining plat- forms must therefore support several types of model construction for evaluation and provide additional functionality for extensibility and interchangeability. In some cases, analysts may want to build a unique correlation model that the data mining platform does not support. To handle such requirements, mining platforms must support extensibility. Many commercial products build models for spe- cific domains, but the actual database on which the model must be deployed may be in a different data- base system. Data mining platforms and database servers therefore must also be capable of interchang- ing models. The Data Mining Group (http://www.dmg.org) recently proposed using the Predictive Model Markup Language, an XML-based standard, to interchange several popular predictive model classes. The idea is that any database supporting the standard can import and deploy any model described in the standard.
Data mining iteratively builds models on a prepared data set and then deploys one or more models.
54 Computer
automatically collected records of customer behavior at the Web site—can reveal typical pat- terns. For example, this kind of analysis would allow FSC to offer a special on athletic socks to a customer who purchases shoes. Data mining models can exploit such behavioral data—par- ticularly when it is combined with the demo- graphic data the customer enters during registration or checkout—to personalize the Web pages the customer sees with appropriate advertisements. Over time, when a large user community develops, the business can recom- mend additional products based on similarities among users’ behavioral patterns. Data mining models can identify such similar user classes.
Building a data warehouse from independent data sources is a multistep process that involves extracting the data from each source, transforming it to conform to the warehouse schema, cleaning it, and then load- ing it into the warehouse. The Data Warehousing Information Center provides an extensive list of ETL (extract, transform, load) tools for use in this opera- tions sequence.
The goal of the data extraction step is to bring data from disparate sources into a database where it can be modified and incorporated into the data ware- house. The goal of the subsequent data transforma- tion step is to address discrepancies in schema and attribute value conventions. A set of rules and scripts typically handles the transformation of data from an input schema to the destination schema. For example, an FSC distributor may report sales transactions as a flat file in which each record describes all entities and the number of units involved in the transaction. The distributor might split each customer name into three fields: first name, middle initial, and last name. To incorporate the distributor’s sales infor- mation into the FSC data warehouse with the schema shown in Figure 2, the analyst must first extract the records and then, for each record, transform all three name-related source columns to derive a value for the customer name attribute.
Data entry errors and differences in schema con- ventions can cause the customer dimension table to have several corresponding tuples for a single cus- tomer, resulting in inaccurate query responses and inappropriate mining models. For example, if the cus- tomer table has multiple tuples for several FSC cus- tomers in New York, New York may incorrectly appear in the list of top 50 cities with the highest num-
ber of unique customers. Tools that help detect and correct data anomalies can have a high payoff, and a significant amount of research addresses the problems of duplicate elimination 10 and data-cleaning frame- works.^11
After its extraction and transformation, data may still require additional preprocessing before it is loaded into the data warehouse. Typically, batch load utili- ties handle functions such as checking integrity con- straints; sorting; summarizing, aggregating, and performing other computations to build derived tables stored in the warehouse; and building indices and other access paths. In addition to populating the ware- house, a load utility must allow the system adminis- trator to monitor status; to cancel, suspend, and resume a load; and to restart after failure with no data integrity loss. Because load utilities for data ware- houses handle much larger data volumes than opera- tional databases, they exploit pipelined and parti- tioned parallelism.^1
Refreshing a data warehouse consists of propagat- ing updates on source data that correspondingly update the base tables and the derived data—materi- alized views and indexes—stored in the warehouse. The two issues to consider are when to refresh and how to refresh. Typically, data warehouses are refreshed periodi- cally according to a predetermined schedule, such as daily or weekly. Only if some OLAP queries require current data such as up-to-the-minute stock quotes is it necessary to propagate every update. The data ware- house administrator sets the refresh policy depending on user needs and traffic. Refresh schedules may dif- fer for different sources. The administrator must choose the refresh cycles properly so that the data vol- ume does not overwhelm the incremental load utility. Most commercial utilities use incremental loading during refresh to reduce data volume, inserting only the updated tuples if the data sources support extract- ing relevant portions of data. However, the incre- mental load process can be difficult to manage because the update must be coordinated with ongoing trans- actions.
Metadata is any information required to manage the data warehouse, and metadata management is an essential warehousing architecture element. Adminis- trative metadata includes all information required to set up and use a warehouse. Business metadata in- cludes business terms and definitions, data ownership, and charging policies. Operational metadata includes
Data mining models can exploit behavioral data to personalize the Web pages the customer sees with appropriate advertisements.
information collected during warehouse operation such as the lineage of migrated and transformed data; the data currency (active, archived, or purged); and monitoring information such as usage statistics, error reports, and audit trails. Warehouse metadata often resides in a repository that enables metadata sharing among tools and processes for designing, setting up, using, operating, and administering a warehouse.
C
oncerted efforts within industry and academia have brought substantial technological progress to the data warehousing task, reflected by the number of commercial tools that exist for each of the three major operations: populating the data ware- house from independent operational databases, stor- ing and managing the data, and analyzing the data to make intelligent business decisions. Despite the plethora of commercial tools, however, several inter- esting avenues for research remain. Data cleaning is related to heterogeneous data inte- gration, a problem that has been studied for many years. To date, much emphasis has centered on data inconsistencies rather than schema inconsistencies. Although data cleaning is the subject of recent atten- tion, more work needs to be done to develop domain- independent tools that solve the variety of data- cleaning problems associated with data warehouse development. Most data mining research has focused on devel- oping algorithms for building more accurate models or for building models faster. The other two stages of the knowledge discovery process—data preparation and mining model deployment—have largely been ignored. Both stages present several interesting prob- lems specifically related to achieving better synergy between database systems and data mining technol- ogy. Ultimately, new tools should give analysts more efficient ways to prepare a good data set for achieving a specific goal and more efficient ways to deploy mod- els over the results of arbitrary SQL queries. ✸
References
Surajit Chaudhuri is a senior researcher and manager of the Data Management, Exploration, and Mining Group at Microsoft Research. His research interests include self-tuning database systems, decision support systems, and integration of text, relational, and semi- structured information. He received a PhD in com- puter science from Stanford University. Chaudhuri is a member of the IEEE Computer Society and the ACM. Contact him at [email protected].
Umeshwar Dayal is a principal laboratory scientist at Hewlett-Packard Laboratories. His research interests are data mining, business process management, dis- tributed information management, and decision sup- port technologies, especially as applied to e-business. He received a PhD in applied mathematics from Har- vard University. Dayal is a member of the ACM and the IEEE. Contact him at [email protected].
Venkatesh Ganti is a researcher in the Data Manage- ment, Exploration, and Mining Group at Microsoft Research. His research interests include mining and monitoring large evolving data sets and decision sup- port systems. He received a PhD in computer science from the University of Wisconsin–Madison. Ganti is a member of the ACM. Contact him at vganti@ microsoft.com.
December 2001 55
More work is required to develop domain-independent tools that solve the data-cleaning problems associated with data warehouse development.