Open access peer-reviewed chapter

Decision Rule Induction Based on the Graph Theory

By Izabela Kutschenreiter-Praszkiewicz

Submitted: May 10th 2019Reviewed: July 21st 2019Published: August 29th 2019

DOI: 10.5772/intechopen.88737

Downloaded: 96

Abstract

The graph theory is a well-known and wildly used method of supporting the decision-making process. The present chapter presents an application of a decision tree for rule induction from a set of decision examples taken from past experiences. A decision tree is a graph, where each internal (non-leaf) node denotes a test on an attribute which characterises a decision problem, each branch (also called arc or edge) represents the outcome of a test (attribute value), and each leaf (or terminal) node holds a class label which can be interpreted as a decision type. In the presented approach, the object-attribute-value (OAV) framework will be used for decision problem characteristics. The chapter presents a method of optimal decision tree induction. It discusses the Iterative Dichotomiser 3 (ID3) algorithm and provides an example of the decision tree induction. Also, rules supporting the decision-making in engineering will be developed in this chapter.

Keywords

  • decision tree
  • decision rule induction
  • ID3 algorithm
  • QFD
  • dependence network

1. Introduction: decision problems in industry

In order to solve decision problems, we need knowledge, information and data. Data are understood as a set of discrete objectives, facts and events. Information represents a relationship between some pieces of data. For data to be transformed into information, raw data should be cleaned, corrected and processed while considering the context of a decision. Knowledge can be defined as application of the relevant information to address specific problems. Knowledge in decision problems is developed based on the decision-maker’s experiences. Hence, data gathering and analysis is one of the necessary stages of decision support systems development with the use of artificial intelligence.

The main issues related to decision support with the use of artificial intelligence are:

  • Representing knowledge as close as possible to the human way of thinking.

  • Knowledge representation should be easy to use and updated with computer software.

Decision problems in industry may be classified into one of the following decision categories:

  • Structured

  • Unstructured

  • Semi-structured

Structured decisions are routine, and there are usually specific procedures or actions that can be identified to help make the decision. In case of unstructured decisions, decision scenarios often involve new or unique problems, and an individual has little or no programmatic or routine procedure for addressing the problem or making a decision. In semi-structured decisions, decision scenarios involve both some structured and some unstructured components.

According to the data analysed by Iyer et al. [1], in product design, only 20% of parts are new, while 80% of them are reused or modified [2], so knowledge management focused on knowledge reuse related to product and production process is an important field of analysis and can influence the effectiveness of production process preparation.

Knowledge representation is a field of artificial intelligence that focuses on designing computer representations that capture knowledge which can be used to solve problems.

A knowledge representation should be:

  • Rich enough to express the knowledge needed to solve the problem

  • As close to the problem as possible

  • Compact, natural, and maintainable

  • Easy to see the relationship between the representation and the domain being represented

  • Able to conduct efficient computation, which usually means that it is able to express problem features that can be exploited for computational gain and able to trade off accuracy and computation time

  • Able to be acquired from people, data and past experiences

According to formalism used for knowledge representation, knowledge can be classified as:

  • Procedural knowledge, which defines algorithms that help to achieve given goals

  • Declarative knowledge, which gives the solution without analysing the problem structure

Taking into consideration knowledge transfer to another person, knowledge can be divided into:

  • Tacit, which is difficult to express by words or equations

  • Explicit, which is easy to formulate and transfer

The object-attribute-value (OAV) model is a knowledge representation framework. Objects are understood in OAV as entities that are items being described. Attributes are understood as features, properties, characteristics or variables of a given object. Value is understood as a numerically discreet or linguistically defined attribute esteem.

OAV can be used in artificial intelligent methods as a framework of data analysis useful for data preparation for applying chosen knowledge representation method. A data analysis schema is presented in Figure 1.

Figure 1.

A data analysis schema.

Knowledge representation methods include:

  • Decision rules—which transform premises (e.g. observations expressed in the OAV framework) into conclusions (e.g. decision expressed in the OAV framework).

  • Decision trees—which are graph representations of the decision process. Inspecting the conditions in the decision path starts from the beginning node called the root and to the leaves which give the decision.

  • Frames—which are used when information units are characterised by many important features. The structure of a simple frame contains three different lines: a heading with the frame name, a pointer to another frame with appropriate relation and slots defining attribute names and values.

  • Semantic networks—which capture knowledge in form of a graph in which nodes represent pieces of information (objects, concepts or situations in the problem domain) and the arcs represent relations or associations between them.

  • Artificial neural networks (ANNs)—which are inspired by neurons in the brain and have become a popular target representation for learning. The idea of ANN usage is to create a learning set which includes data characterised by input and output features. During training, ANNs create a model which is able to transform input features into output features of a data set.

Literature presents different methods of formal knowledge representation which have been successfully applied to support various decision problems. Joshi and Dutta [3] use rule-based method to recognise and simplify features in freeform surface models for automatic finite element mesh generation. Cakir et al. [4] apply rule-based expert system for die and mould making. According to Trabelsi et al. [5], decision trees are recognised as effective and efficient machine learning approaches which have been successfully applied to solve real-world problems [5].

2. Data preparation for decision problem solving

One of the phases of knowledge acquisition processes based on a learning data set is the feature selection phase [6].

Obtaining data and selecting features for a given problem can be supported by means of the quality function deployment (QFD) method. QFD was developed to link product users and engineering attributes [7, 8]. QFD can be used for attribute identification not only in product development but also for decision support.

QFD helps to build a partnership between decision-makers and experts who are able to solve a given decision problem.

The structure of the QFD matrix was presented in Figure 2. The attributes identified in the QFD matrix can be used for obtaining data and developing a training data set.

Figure 2.

QFD for DSS attribute identification and training data set development.

Decision-making can be supported with the use of an algorithm presented in Figure 3.

Figure 3.

Decision-making with the use of chosen knowledge representation methods.

3. Decision tree development with the use of the ID3 algorithm

Decision tree is a commonly used decision support tool. It is built with the use of training data set which contains examples of a decision problem solved in the past, characterised with the use of the OAV framework. A decision tree example is presented in Figure 4 [9].

Figure 4.

A decision tree example.

A proper decision tree uses meaningful attributes in the decision-making process. In the presented approach, decisions are generated by a decision tree built with the use of the ID3 (Iterative Dichotomiser 3) algorithm, which helps to feature selection to avoid keeping too many or too few attributes than is appropriate [10, 11, 12]. The basic idea of the ID3 family algorithms is to develop decision trees by growing them from the most important attribute, which is on the root, and selecting the next best attribute for each new decision branch added to the tree [12].

The ID3 algorithm [13, 14] uses entropy, which is understood as a measure of the amount of uncertainty in the training data set and which is calculated according to Eq. (1):

E1

where:

p probability that an element from i class occurs

Entropy of a given attribute is calculated according to Eq. (2):

E2

where Mk number of values taken by attribute Ak; N number of classes; k number of attributes; p(ak, j) probability that ak takes value j; p(ci/ak,j) probability that class ci occurs, when ak = j.

Information gained is calculated according to Eq. (3):

E3

A decision tree starts from the root node which is created with the use of the most meaningful attribute for which information gain is the highest. The next node in a decision tree is created with the use of the attribute for which information gain has a high value.

A pseudocode for ID3 algorithm includes the following stages:

  • Calculating entropy for the training data set (Eq. 1).

  • Calculating entropy for each attribute (Eq. 2).

  • Calculating information gain for each attribute (Eq. (3)).

  • Creating the root node in the decision tree with the attribute for which information gain is the highest.

  • Creating decision tree branches using attribute and their values for which information gain is high.

  • Classifying examples from the training data set, taking into consideration the given attribute and its values.

  • If all cases for the given attribute and values lead unambiguously a decision, a decision leaf should be added at the end of the decision tree branch.

  • If it is not possible to classify all cases from the training data set in a given decision tree branch to a decision, it is necessary to add a new node with the attribute which has high information gain.

The two last steps should be repeated until all branches in a decision tree will end with a decision leaf.

4. Decision rule formulation

4.1 Formulating and transforming rules

Basing on a decision tree, it is possible to formulate decision rules which consist of premises and a conclusion. The rule can be formulated as follows:

If premise 1 and/or premise 2 and/or premisethen conclusion.

where in the OAV framework premise is expressed as attribute… = value…conclusion is expressed as decision = decision variant….

Each premise consists of an attribute (a decision tree node) and a value (a decision tree branch) which create the given path (branch sequence) in a decision tree. A conclusion is understood as a decision leaf at the end of a given path in the decision tree.

The rules directly coming from a decision tree transform each decision tree branch into a given rule, so the obtained set of rules can include some rules which consist of different premises and the same conclusions. In such a case, it is necessary to transform the rules.

The rules which come directly from a decision tree use the operator “and” between the premises. Rule transformation focuses on conjoint premises with the same conclusions and develops a complex rule with the use of the operator “or” between the premise sequences from a given decision tree path. The algorithm for rule formulation is presented in Figure 5.

Figure 5.

Rule formulation algorithm.

4.2 An example of decision rule transformation

In the example, a set of initial rules comes from the decision tree presented in Figure 4 and includes seven rules:

Rule 1:

If attribute 1 = value 1.1 and attribute 2 = value 2.1 then decision = decision 3.

Rule 2:

If attribute 1 = value 1.1 and attribute 2 = value 2.2 then decision = decision 1.

Rule 3:

If attribute 1 = value 1.2 and attribute 2 = value 2.1 and attribute 3 = value 3.1 then decision = decision 2.

Rule 4:

If attribute 1 = value 1.2 and attribute 2 = value 2.1 and attribute 3 = value 3.2 then decision = decision 1.

Rule 5:

If attribute 1 = value 1.2 and attribute 2 = value 2.2 and attribute 3 = value 3.1 and attribute 4 = value 4.1 then decision = decision 2.

Rule 6:

If attribute 1 = value 1.2 and attribute 2 = value 2.2 and attribute 3 = value 3.1 and attribute 4 = value 4.2 then decision = decision 1.

Rule 7:

If attribute 1 = value 1.2 and attribute 2 = value 2.2 and attribute 3 = value 3.2 then decision = decision 2.

The set of rules has to be transformed into complex rules with the use of the operator “or”. The number of complex rules is equal to the number of decision variants.

Rule 1:

If (attribute 1 = value 1.1 and attribute 2 = value 2.2) or (attribute 1 = value 1.2 and attribute 2 = value 2.1 and attribute 3 = value 3.2) or (attribute 1 = value 1.2 and attribute 2 = value 2.2 and attribute 3 = value 3.1 and attribute 4 = value 4.2) then decision = decision 1.

Rule 2:

If (attribute 1 = value 1.2 and attribute 2 = value 2.1 and attribute 3 = value 3.1) or (attribute 1 = value 1.2 and attribute 2 = value 2.2 and attribute 3 = value 3.1 and attribute 4 = value 4.1) or (attribute 1 = value 1.2 and attribute 2 = value 2.2 and attribute 3 = value 3.2) then decision = decision 2.

Rule 3:

If attribute 1 = value 1.1 and attribute 2 = value 2.1 then decision = decision 3.

4.3 Checking the completeness of the rules

Rule completeness can be checked with the use of a dependence network which consists of the components presented in Figure 6 [13].

Figure 6.

Components of a dependence network.

An example of a dependence network is presented in Figure 7.

Figure 7.

An example of a dependence network.

Formal correctness of the rules can be verified by a dependence network, but substantial correctness can be verified by using the rules in the knowledge-based system (KBS).

KBS is essentially composed of two subsystems:

  • The knowledge base

  • The inference engine

The knowledge base consists of rules, whereas the inference engine is an automated reasoning system that evaluates the current state of the knowledge base, applies relevant rules and then asserts new knowledge into the knowledge base.

There are primarily two modes for the inference engine:

  • Forward chaining

  • Backward chaining

In case of backward chaining, the system looks at possible conclusions and works backwards to see if they might be true.

Forward chaining starts with the available data and uses inference rules to extract more data until a goal is reached.

Software tools for KBS include:

  • Programming languages (e.g. Pascal, C++, Java, LISP, Prolog, etc.)

  • Expert system shells (e.g. Sphinx)

5. An example

The decision problem analysed in the example is to find the right component—bearing to the toothed gear. The QFD matrix for a decision problem is presented in Figure 8.

Figure 8.

An example of the QFD matrix.

The data from the matrix presented in Figure 8 creates the first record in the training data set presented in Table 1. The data from the matrix was transformed according to the schema presented in Figure 9.

NoAttribute/(value 1, value 2,…)Decision
Principal dimensions (small, medium, big)Basic dynamic load rating (small, big)Basic static load rating (small, big)Delivery time (short, long)Price (high, low)
1SmallBigSmallShortHighw2
2MediumBigBigShortHighw1
3MediumBigBigShortLoww2
4SmallSmallBigLongHighw1
5MediumSmallSmallShortLoww1
6BigBigSmallLongHighw2
7BigSmallBigLongLoww1
8SmallBigBigLongLoww1

Table 1.

A training data set example.

Figure 9.

An example of the OAV framework for a training set.

The training data set was presented in Table 1.

The meaning of the attributes was set with the use of the ID3 algorithm (Table 2).

Entropy of the system IEntropy of the attribute I(C/Ak)
Principal dimensionsBasic dynamic load rating (BDLR)Basic static load rating (BSLR)Delivery time (DT)Price
0.9540.9390.6070.7960.9060.906
Information gain I(Ak)
0.0150.3470.1580.0480.048
Attribute importance (ranking)
51234

Table 2.

Information gain calculation.

An example of information gain calculation for Ak = principal dimensions (Eqs. 4–6):

I=3/8×LOG23/85/8×LOG25/8=0,954.E4
IC/Ak=3/8×2/3×LOG22/31/3×LOG21/3+3/8×2/3×LOG22/31/3×LOG21/3+2/8×1/2×LOG21/21/2×LOG21/2=0,939.E5
ΔIAk=0,015.E6

The decision tree for the training data set in the example was presented in Figure 10.

Figure 10.

An exemplary decision tree.

Decision rule induction based on the decision tree presented in Figure 10 is as follows:

Rule 1:

If basic dynamic load rating = small then decision = w1.

Rule 2:

If basic dynamic load rating = big and basic static load rating = small then decision = w2.

Rule 3:

If basic dynamic load rating = big and basic static load rating = big and delivery time = long then decision = w2.

Rule 4:

If basic dynamic load rating = big and basic static load rating = big and delivery time = short and price = high then decision = w1.

Rule 5:

If basic dynamic load rating = big and basic static load rating = big and delivery time = short and price = low then decision = w2.

The transformed rules:

Rule 1:

If (basic dynamic load rating = small) or (basic dynamic load rating = big and basic static load rating = big and delivery time = short and price = high) then decision = w1.

Rule 2:

If (basic dynamic load rating = big and basic static load rating = small) or (basic dynamic load rating = big and basic static load rating = big and delivery time = long) or (basic dynamic load rating = big and basic static load rating = big and delivery time = short and price = low) then decision = w2.

The dependence network for checking the transformed rules was presented in Figure 11.

Figure 11.

Dependence network.

6. Conclusions

The decision-making process in enterprises needs knowledge, information and data. A decision-maker’s knowledge is developed based on past experiences and can be supported by means of artificial intelligence methods, such as rules which are the widely used methods of knowledge representation. Decision trees are an efficient method of rule formulation. This chapter presents the methodology of decision tree induction with the Iterative Dichotomiser 3 algorithm, as well as rule formulation and checking with the use of dependence network.

A useful method for data analysis in the decision process is Quality Function Deployment, which organises data both from the customer and expert perspectives. The data was analysed with the object-attribute-value framework in which attributes and their values are used for building a training data set.

An example related to bearing selection was presented to illustrate the decision process.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

Izabela Kutschenreiter-Praszkiewicz (August 29th 2019). Decision Rule Induction Based on the Graph Theory, Application of Decision Science in Business and Management, Fausto Pedro García Márquez, IntechOpen, DOI: 10.5772/intechopen.88737. Available from:

chapter statistics

96total chapter downloads

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Inventory Policies for Deteriorating Items with Maximum Lifetime under Downstream Partial Trade Credits to Credit-Risk Customers by Discounted Cash Flow Analysis

By Nirmal Kumar Duari, Sorforaj Nowaj and Jobin George Varghese

Related Book

First chapter

Digital Filters for Maintenance Management

By Fausto Pedro García Márquez and Diego José Pedregal Tercero

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More About Us