Reducing Data Chaos and Partitioning the Training Sample into Macro-Features in Classification Problem ()
1. Introduction
The paper proposes a new approach to solving machine learning problems in which it is necessary to divide objects into non-overlapping classes or to determine the composition of a subset of objects that meet given requirements [1]. These problems are characterized by a high level of uncertainty, since the feature values are measured with random errors, and the set of features cannot take into account all the object features. At the same time, the concept of class is not defined precisely enough. Such problems are considered difficult to formalize, in which the dependencies between data elements are difficult to express in formulas or words.
Their solution requires a cognitive approach based on the analysis of experience in solving similar problems in nature, which has shown the commonality of information processing mechanisms in humans and animals [2]. Then, the set of task data is interpreted as a model of a complex system formed by a set of interconnected elements in which general patterns of information processing exist and the above-mentioned uncertainty factors operate. Research carried out according to this approach led to the development of a method for reducing data entropy, the application of which ensured formalization of the classification problem.
The obtained results are found on a new concept of similarity, according to which for objects of the same class, it is assessed not by the distance between objects in metric space, but by the proximity of individual feature values. In [3], it is shown that a hierarchically organized system, the elements of which are features, objects and classes, allows us to describe the existing mechanism of information processing by individual sensory systems of an animal [4]. Its receptors perceive information from the external and internal environment, which, after processing, is transmitted to the brain, where it is compared with similar information already accumulated there.
This scheme of the information processing process was implemented in the classification problem [5] as follows: the set of each feature value was divided into an equal number of intervals, within which it was considered possible to neglect the difference of the feature values. For each interval number, lists of training sample (TS) objects of the same class were determined, forming the corresponding subsets called granules, as well as the frequency of granules. Given the concept of proximity for granule objects, the classes of test sample objects were calculated by combining the obtained results based on the simplest formula for total probability.
According to the given algorithm, the main volume of calculations falls on operations with the individual feature values of objects or a set of objects that form granules. Its simplicity makes it qualitatively different from existing algorithms [6], where, as a rule, objects are considered as a multidimensional set of all their features. It is obvious that the simplification of the algorithm was caused by the indicated change in the data structure.
A number of questions about the properties of distributions of ordered features were considered in [7]. It turned out that these distributions differ significantly for each feature and class. In another series of studies, the influence of a class on the frequency of occurrence of one, two, and so on objects of any other class among its objects was examined for ordered features. Calculations for several databases showed a stable nature of the joint influence of class and feature on these frequencies.
In analyzing the obtained results, an approach that has been repeatedly used in physics was used: “guessing the patterns” of processes by comparing known research data [8]. The main focus was on the theory of patterns [9]. The consecutive numbers of intervals were considered as variables, with the help of which it was possible to identify relationships and optimize the structure of the TS data. Since the corresponding the TS feature values were assumed to be equal on each interval, they played the role of closest neighbors in terms of the feature value. In fact, it was assumed that the distribution of any feature values has the form of a step curve, increasing at each interval.
Further analysis showed that it is advisable to use the method of ordering feature values by sorting in non-decreasing order, in which their feature values also form a sequence of nearest neighbors. (The concept of ordering will be clarified below). Then, the number of data placement options will be minimized, which will lead to a decrease in data entropy and, accordingly, the level of uncertainty and chaos [10]. This ordering serves as a way to optimize the data structure and opens up new possibilities for revealing patterns of the system. It is no coincidence that for over 50 years now, issues of chaos have attracted increased attention and solutions have been obtained to problems that have important theoretical and practical significance in physics, mechanics, chemistry, medicine, ecology, telecommunications, control of mechanical and electronic systems, technological processes, etc. [11].
It was shown that for any TS, ordered features are hidden variables that reveal the relationships between the observed, given values of objects’ features of the same class. From now on, the term “feature” will be used to refer only to unordered features. It turned out that the set of the TS data can be considered as a union of its subsets, on each of which a deterministic function of ordered values of objects’ feature of a certain class is defined.
Note that there is no functional dependence between the objects’ features of the same class, since the distribution of the values feature has many jumps of the same order as the range of the feature values. By ordering features, complex chaotic relationships between features of objects of the same class are transformed into deterministic functions.
2. Properties of Ordered Features
Let us consider the classification problem TS. Let
be the matrix of quantitative data of the TS,
are the numbers of objects,
is the feature vector
,
is the class of object s,
.
A set of elements of a vector
will be called ordered [12] if they have been renumbered and given new numbers
such that the corresponding values of this vector form a non-decreasing sequence
. The process of ordering the feature
is reduced to the simplest sorting of the vector
. In the case where objects have equal feature values, the one-to-one correspondence between their numbers and ordered numbers may be violated. However, this circumstance will not affect subsequent results, since the numbers and ordered numbers of objects correspond to the same attribute value. Therefore, the mapping of features onto ordered features of the TS objects can be considered as one-to-one [13].
Structure of the ordered vector
has important features. It is obvious that if the feature values
for objects
and
, then the ordered numbers of these objects are
, and this relationship is preserved for objects of the same class. Let us denote by
ordinal numbers objects of class
, arranged in non-decreasing order of feature values, where
is the length of class
. These numbers determine the values of
on the same set
for features or ordered features.
Let us illustrate the features of structuring using the example of the vector
, all of whose objects, except
and
, have class 1:
Here, the set
is the union of the subsets
and
for objects of class
and
, respectively. In ordinal scales, these subsets have the form
and
. Then, the vectors
and
will describe in these scales the objects’ features of classes
and
, respectively.
Note that in the case where two objects have the same value of the feature
, we will get an ambiguous relation
when sorting. But this circumstance will not affect subsequent results, since both object numbers correspond to the same attribute value. This conclusion extends to the case where several objects have equal feature values.
As shown above, the values of
on the set
form a non-decreasing sequence. This result means that there is some discrete monotone function that describes the values feature
for objects of class
:
, where
.
In an ordered feature space, these functions are visualized into clear “chains” of feature values for objects of the same class. On the plane, we obtain a graph of point values feature
for objects of class
. For example, let class
consist of three objects, the feature values
are
. According to these data, the ordered numbers
and the values
correspond to the values
.
Let us consider the subset of the feature values
for the TS objects of class
They are defined for all
and
on the subset
which will call a “macro-feature”. Any TS consists of
macro-features that generalize the information contained in it and map it onto a set of functions
.
It is obvious that macro-features play the role of patterns.
3. Classification of Ordered Data
The classes of objects of the test sample are determined based on the generally accepted assumption that the training and test samples belong to a single general population. To make the results of problem-solving clearer, we will assume that the values of each feature of the combined sample objects were previously normalized by bringing them to the interval [0, 1] using the formula
.
The class of an arbitrary object of the test sample t is calculated on the basis of the simplest formula of total probability by estimating the frequency
of its feature values
falling into the nearest neighborhood of the ordered feature values for each class. In the paper, two variants of the value
were used, corresponding to the application of formulas for estimating the proximity condition
and
, where
is the proximity parameter. These relations allow us to determine the class of objects in the test sample whose feature values are closest in value to
or fall within
is the neighborhood of the value to
, respectively.
However, given that monotone functions
determine the magnitude of features, and not the estimates of their probability, it is advisable to implement option two also for the approximating function. Using the linear regression equation, we obtain the relation
. Considering that
is equal to the tangent of the angle of inclination of the regression line to the horizontal axis, we can normalize the length of the normal segment to this line according to the relation
.
One of the options for determining the class of an arbitrary object
of a test sample is illustrated in Figure 1. It shows a graph of the values
for the TS with
, linear regression line and two straight lines removed from this line at distance of
, and the straight line
, which corresponds to the feature value
for some object
of the test sample. It follows from the drawing that
, since the value of
is inside the rectangle ABCD. Here,
is a binary value equal to 1 if the value of
corresponds to class
, and 0 otherwise.
The average frequency of cases across all features in which the value
will correspond to class
equal to
Figure 1. Scheme for assessing the proximity
and class
.
.
Then, the class of object
equal to
.
The results of applying these formulas were obtained for the well-known Iris and Wine databases [14]. For all variants of calculation formulas, the number of classification errors did not exceed 13%, but in the range
for the approximation variant, the solution was error-free.
4. Effect of Feature Ordering on the Data Matrix
In the previous sections, hidden patterns in the data were revealed concerning the relationship between the individual feature values of objects and their class. Now, let us consider the issues of the relationship between the entire set of feature values describing an object and its class.
Obviously, the ordering of any feature vector disrupts the composition of the elements of the matrix rows that describe the objects. Therefore, the ordering of the entire set of the TS data is carried out for each of the features separately, and the data matrix
is mapped onto a set of
matrices of ordered data
. All these matrices and the matrix
have one identical row each and the elements of column
of the matrix It is obvious that all these matrices and the matrix
have one identical row, and the elements of column
of the matrix
are ordered and arranged in non-decreasing order of the values feature
.
The resulting changes are illustrated by the example:
,
,
,
.
Let class
of the TS object number
be determined by the dependence
. Let us consider the properties of subsets of objects called clusters
, the features of which are described by row
of the matrix
when
.
Let the class
of the object OB number
, equal to the row number of the data matrix
, be given by the dependence
. Let us consider the properties of object subsets called clusters
, the features of which are described by row
of the matrix
when
. Note that clusters
and classes
have the same length. To estimate the level of coincidence of objects of class
and cluster
, we find the average number of the TS objects for all classes for which the dependence is satisfied
, where
.
The number of such matches, divided by the set length, is called the match index
of the feature
. Index analysis was performed for 10 databases [15]. Calculations showed that for a third of the databases considered, the maximum index value exceeds 0.9, 0.7 or 0.5, respectively, for one of the databases it reaches 0.961, and for another
for all
. From the results obtained, it follows that classes and clusters partition many objects into subsets, which partially (in many cases) or almost completely (in some cases) consist of the same objects. Note that the wide range of the index
values is partly caused by errors in measurements and the selection of features characterizing properties of the class objects.
According to the definition of the matrix
, the feature values
are ordered. Any segment of a sequence of ordered features consists of the nearest neighbors by feature value, and therefore, there is a probability that the corresponding objects belong to the same class and have common properties. It follows that in the case where the value of
significantly exceeds the average value of the index, it can be approximately assumed that the feature
determines the class of the TS objects, and the influence of the remaining features on the class will be insignificant.
Then, by dividing the set
into
subsets whose length is equal to the number of objects in the corresponding class, we find lists of objects of each class
that apparently have common properties. Considering that the order of the classes along the sample length is arbitrary, we obtain
variants of partitioning each matrix
into classes. However, due to the high level of uncertainty, it is advisable to consider the found classes as clusters that consist of objects with similar properties.
5. Conclusions
The paper proposes an atomistic approach to solving machine learning problems, according to which the elements of classes are not objects, but individual attribute values of objects. It is implemented by a bio-inspired concept for solving classification and clustering problems based on mapping features to ordered features by sorting each feature value of the TS in non-decreasing order, which leads to a decrease in entropy and chaos of the data.
This transformation made it possible to establish that any TS can be partitioned into patterns called macro-features, the elements of which are ordered features of objects of the same class. On macro-features, functions are defined that describe the distribution of feature values, as well as ordered features, over the length of the corresponding class.
Classification of test sample objects comes down to calculating the average frequencies of occurrence of their feature values in the nearest neighborhood of ordered feature values of objects of the same class.
The article develops an approximate method for dividing a data set into clusters of objects that differ in their common properties.
The obtained results indicate the advisability of developing neural networks based on the use of hidden variables. Instead of complex and cumbersome calculations, these networks will use the specified functions. Their monotonicity will ensure widespread use of approximation, as well as minimization of the amount of sampling. Networks of the new type will be distinguished by significantly lower costs of computer time.