The use of decision trees for applying the method of analogy with the cognitive design of complex dynamical systems
G. E. Kalinkina1 , N. G. Sokolova2 , D. M. Gadzhikurbanov3 , O. M. Perminova4
1, 2, 3, 4Kalashnikov Izhevsk State Technical University, Izhevsk, Russia
Vibroengineering PROCEDIA, Vol. 9, 2016, p. 76-82.
Received 2 October 2016; accepted 5 October 2016; published 9 October 2016
Modern intelligent methods to extract knowledge from data allow the use of the available material for evaluation of the complexity of parts of different class, identify any patterns in the data and, thus, replace expert – technologist (quantity surveyor). In the analysis of pre-production, it is also advisable to go by the time required to manufacture the product to the price tag. Method of analogy is based on solving the dynamic problems of classification trees using algorithms solutions.
Keywords: method of analogy, modern intelligent methods to extract knowledge from data, automated method of rationing production of parts and components of mechanical engineering constructions.
Currently we considered the various valuation methods of machining settlement-analytical; research-analytical; research-statistical; total; method of analogy; direct observation; enlarged; micronutrients method and other. These methods largely overlap with each other [1, 3, 4].
In the method of analogy rules established by comparing the complexity and scope of the job on the rated work with those doing the job on the basis of the experience quantity surveyor (technologist).
The method of analogies is actually an expert method. Modern intelligent methods to extract knowledge from data allow the use of the available material for evaluation of the complexity of parts of different class, identify any patterns in the data and, thus, replace expert - technologist (quantity surveyor). In the analysis of pre-production, it is also advisable to go by the time required to manufacture the product to the price tag.
Method of analogy is based on solving the problems of classification trees using algorithms solutions . These algorithms are used to solve classification problems. In the search for the classifying rule is carried out through all of the independent variables and the most representative sought a rule at this stage. These are divided into two groups according to the value of this predicate. Thereafter, the process is repeated for each of these groups as long as the resulting subgroups contain the representatives of classes and include a sufficiently large number of points to be significantly broken down into smaller subgroups. As a result, the final classifying rule constructed by this process can be represented as a binary tree.
2. Classification method based on a decision tree
Let the target variable corresponds to certain classes, which are divided a plurality of data. Required to find a classifying rule that allows to break a lot of data on these classes. In the search for the classifying rule is carried out through all of the independent variables and the most representative sought a rule at this stage. Predicates of the type , are used in the conventional decision tree. These are divided into two groups according to the value of this predicate. Thereafter, the process is repeated for each of these groups as long as the resulting subgroups contain the representatives of classes and include a sufficiently large number of points to be significantly broken down into smaller subgroups. As a result, the final classifying generally constructed by this process can be represented as a binary tree. Each node of the tree corresponds to a subset of the data and has found the classifying rule for that subset.
Convenient to analyze decision trees feature is the presentation of data in a hierarchical structure. Compact tree takes a picture of the influence of various factors, independent variables.
Classification method based on a decision tree has as advantages the following properties: a fast learning process; generation rules in areas where the expert is difficult to formalize their knowledge; removing rules in natural language; intuitive classification model; sufficiently high prediction accuracy, comparable with other methods; the construction of non-parametric models.
These positive properties approximate the methodology of decision trees to systems based on fuzzy logic, winning them in the speed of the learning process .
Decision trees – one of the methods of knowledge extraction from data . We introduce the basic concepts of the theory of decision trees: object - example, pattern observation point in space attributes; attribute – a sign, the independent variable, the property; class label – the dependent variable, the target variable, a sign that defines the object’s class; node – internal tree node, the node checks; list – the final node of the tree, the decision node; check – a condition in the node.
Decision trees – this is a way of representing rules in a hierarchical, coherent structure, where each object corresponds to a single node, which gives a solution. Under the rule refers to a logical structure, presented in the form of: if A then B (.
Let there be given a training set , containing objects, each of which is characterized by attributes and one of them points to the object belongs to a particular class. This set is denoted by , , , where each element of this set is described by the attributes , and belongs to one of the classes . The number of examples in the set is equal to the power of this set is . Through the denotes the set of classes.
Each set at any stage of decomposition is as follows:
– The set of contains a number of objects belonging to the same class . In this case the set is a sheet defining the class .
– The set of does not contain any object (). In this situation it is necessary to return to a previous decomposition stage.
– The set contains objects belonging to different classes. This set is suitable for splitting into several subsets. To do this, select one of the variables in accordance with the rules , the set is divided into two subsets. This recursive process continues as long as a finite set will consist of the examples pertaining to the same class.
This procedure is the basis of many algorithms of decision trees (separation and capture method). Construction of the tree decision takes place from top to bottom. First, it creates the root of the tree, then the descendants of the root, etc.
Since all objects have been pre-assigned to certain classes, such a process of building a decision tree called learning with a teacher.
In the construction of decision trees is necessary to solve the following tasks: Select the attribute criteria on which will partition; stop learning; pruning branches.
3. Choosing the partitioning criteria
To build of the tree on each internal node is necessary to find a condition that would divides the set associated with the node in the subset. For such a test , is one of the attributes should be selected. The chosen attribute must partition the set so that the result obtained in the subset composed of objects belonging to the same class, or were as close as possible to it, i.e., the number of objects from other classes in each of these sets is as small as possible.
One way to select the most appropriate attribute to the use of information-theoretic criteria.
Task is to build a hierarchical classification model as a tree from a set of objects , , . In the first step, there is only the root and the initial set associated with the root.
After checking, resulting in decomposition results in two (the number of terms (, )) subsets and, accordingly, are of two children of the root, each of which is assigned a subset of its obtained by partitioning the set of , , . This procedure is then applied recursively to all subsets (the descendants of the root), etc. Any of the attributes you can use an unlimited number of times in the construction of the tree.
We define as a test any variable that takes the value of , , . Then partition verification gives the corresponding subset of , , . The selection criterion is determined by the information about how the classes are distributed in a variety of and its subsets, resulting in the division on the .
Let , , , – the likelihood of membership in the class for the attribute and threshold value , , , and – the probability of falling into the class. As a measure of the expectation of the information necessary to determine the class of the object from a plurality of , Shannon entropy is considered:
The amount of entropy characterizes the degree of fuzziness of system data.
Partition of the set verification corresponds to the entropy .
The selection criterion is the expression corresponding to the maximum data ordering for classes .
The minimum value of entropy corresponds to the maximum probability of occurrence of one of the classes. The selected variable number and the threshold value , minimizing , is used to check the value of the variable on condition and the further movement of the tree is made depending on the result.
This algorithm is applied to the subsets obtained and allows the process to continue recursively constructing the tree up until the node will not examples of one class. If in the process of the algorithm obtained assembly associated with an empty set (i.e., no example was given in the node), then it is marked as a sheet and as solutions of the sheet is selected most common immediate ancestor class from this sheet.
The threshold values for the variable , , by the expression , , where , – the maximum and minimum values of the variable , , ; – the number of elements of a subset of breaking.
As already noted, all numerical tests are binary, i.e., share tree node into two branches.
Rule stop of partitioning node based on the fact that the partition should not be trivial, i.e., the resultant components must be at least a predetermined number of examples of .
The degree of fuzziness of the data system may be determined by a probabilistic process (1), or by possibilistic.
Instead of probability to define a possibility of accessory to the class , , , , – by attribute and to threshold , , value, and – a possibility of hit in a class . The measure of an opportunity is defined by expression of .
The Possibility measure fuzziness data system is determined by the formulas:
Function is called the function level . Possibilistic approach for determining the partitioning criterion is preferable in the case of a limited number of points in the training set.
4. Test method
Consider the procedure of constructing of a tree of solutions on the example of the test function. This feature is rather complicated topology and described by the expression:
The form of this function for the , is shown in Fig. 1.
Fig. 1. Graph a test function
Data for the learning sample in an amount of 1089 points , generated randomly. For the training sample is divided into two roughly equal parts - training (544 points) and test (545 points). Function values evenly divided into part and form a classes. Built tree contains 57 units and is represented in Fig. 2.
After the node number should be a condition of the form , for it is the number of objects in a selected set. The latter figure refers to the leaves and meets the class number, which is related object satisfying these conditions. The values , are given in a dimensionless form.
Fig. 2. View constructed tree
The resulting decision tree correspond to the following 29 rules of classification:
0 if X >= 1.79 then Y= 2
1 if X < 1.79 AND X >= -1.08 AND X >= 2.28 then Y= 2
2 if X < 1.79 AND X < 2.28 AND X >= 1.13 AND X >= 1.20 then Y= 2
3 if X < 2.28 AND X >= 1.13 AND X < 1.20 AND X >= 0.84 then Y= 3
4 if X < 2.28 AND X >= -0.60 AND X < 0.84 AND X >= 2.04 then Y= 3
5 if X >= -0.60 AND X < 0.84 AND X < 2.04 AND X >= 1.30 then Y= 4
6 if X >= 1.13 AND X >= -0.60 AND X < 0.84 AND X < 1.30 then Y= 3
7 if X >= -1.08 AND X < 2.28 AND X >= 1.13 AND X < -0.60 then Y= 3
8 if X < 1.79 AND X >= -0.60 AND X < 1.13 AND X >= 0.78 then Y= 3
9 if X >= -0.60 AND X < 1.13 AND X < 0.78 AND X >= 0.43 then Y= 2
10 if X < 1.13 AND X >= -0.54 AND X < 0.43 AND X >= 0.72 then Y= 3
11 if X >= -0.60 AND X >= -0.54 AND X < 0.43 AND X < 0.72 then Y= 2
12 if X >= -1.08 AND X >= -0.60 AND X < 1.13 AND X < -0.54 then Y= 2
13 if X < 1.79 AND X >= -1.08 AND X < -0.60 AND X >= -1.13 then Y= 2
14 if X < 1.79 AND X < -1.13 AND X >= -2.63 AND X >= 1.22 then Y= 2
15 if X < -1.13 AND X >= -2.63 AND X < 1.22 AND X >= 0.47 then Y= 1
16 if X < -1.13 AND X < 0.47 AND X >= -2.33 AND X >= 0.01 then Y= 0
17 if X < -1.13 AND X >= -0.62 AND X >= -2.33 AND X < 0.01 then Y= 1
18 if X >= -2.63 AND X >= -0.62 AND X < 0.47 AND X < -2.33 then Y= 1
19 if X >= -1.08 AND X < -1.13 AND X >= -2.63 AND X < -0.62 then Y= 2
20 if X < 1.79 AND X >= -1.08 AND X < -2.63 then Y= 2
21 if X < -1.08 AND X >= -2.31 AND X >= 1.46 then Y= 2
22 if X < -1.08 AND X >= -2.31 AND X < 1.46 AND X >= 0.94 then Y= 2
23 if X < -1.08 AND X >= -2.31 AND X < 0.94 AND X >= -0.45 then Y= 1
24 if X < -1.08 AND X >= -2.31 AND X >= -0.79 AND X < -0.45 then Y= 2
25 if X < -1.08 AND X >= -2.31 AND X >= -1.79 AND X < -0.79 then Y= 2
26 if X < -1.08 AND X >= -2.31 AND X < -1.79 then Y= 2
27 if X >= -2.62 AND X < -2.31 then Y= 2
28 if X < -2.62 then Y= 2,
where the values of variables correspond to , .
Number of correctly classified objects in the training sample is 97.4 %, and 96.9 % on the test. Fig. 3 shows the recovery of function in the test sample.
For a more detailed classification function value are divided into ten classes (). This tree contains 143 nodes and defines 64 rules. Number of correctly classified objects in the training sample is 81.6 %, 75.4 % on the test. Restore function in the test sample shown in Fig. 4.
Fig. 3. Restore function as a result of a discrete classification ()
Fig. 4. Restore function as a result of a discrete classification ()
Despite the fact that Fig. 4 can “guess” the type of a given function , it is clear that more appropriate methods should be used for the approximation of continuous functions.
In the article the authors presented an effective approach to the creation of the automated method of rationing production of parts and components of mechanical engineering structures, which is a generalization of the method of analogies. This valuation method is based on the construction of fuzzy decision trees, establishing depending complexity of labor in terms of value, and the parameters of the trees turn different for each of the object and take into account factors that are not related to the complexity of products, but the impact on labor intensity: the equipment used, qualification of workers, conditions labor and other indicators of organizational and technical level of production changing in dynamics. It was found that this method provides high accuracy and adaptability.
- Borisov V. V., Bychkov I. A., Dementev A. V., Solovev A. P., Fedulov A. S. Computer Support Complex Organizational-Technical Systems. Hotline-Telecom, Moscow, 2002, p. 154. [Search CrossRef]
- Asanov A. A. Genetic algorithm of creation of expert decisive rules in problems of multicriteria classification. Electronic Journal Investigated in Russia, 2002. [Search CrossRef]
- Hollnagel E., Woods D. D. Joint Cognitive Systems: Foundations of Cognitive Systems Engineering. Taylor and Francis, 2005. [Search CrossRef]
- Jackson M. O., Watts A. The evolution of social and economic networks. Journal of Economic Theory, Vol. 106, Issue 2, 2002, p. 265-295. [Search CrossRef]
- Casillas J., Cordon O., del Jesus M. J., Herrera F. Genetic Tuning of Fuzzy Rule Deep Structures for Linguistic Modeling. Technical Report DECSAI-010102, Department of Computer Science and A.I., University of Granada, 2001. [Search CrossRef]
- Jensen M. Value maximization, stakeholder theory, and the corporate objective function. Journal of Applied Corporate Finance, Vol. 14, Issue 3, 2001, p. 8-21. [Search CrossRef]