On a Novel Way of Processing Data that Uses Fuzzy Sets for Later Use in RuleBased Regression and Pattern Classification
 Author: Mendel Jerry M.
 Organization: Mendel Jerry M.
 Publish: International Journal of Fuzzy Logic and Intelligent Systems Volume 14, Issue1, p1~7, 25 March 2014

ABSTRACT
This paper presents a novel method for simultaneously and automatically choosing the nonlinear structures of regressors or discriminant functions, as well as the number of terms to include in a rulebased regression model or pattern classifier. Variables are first partitioned into subsets each of which has a linguistic term (called a causal condition) associated with it; fuzzy sets are used to model the terms. Candidate interconnections (causal combinations) of either a term or its complement are formed, where the connecting word is AND which is modeled using the minimum operation. The data establishes which of the candidate causal combinations survive. A novel theoretical result leads to an exponential speedup in establishing this.

KEYWORD
Rule based regression , Pattern recognition , Fuzzy set

1. Introduction
Regression and pattern classification are very widely used in many fields and applications.
1 Both face four major challenges: 1) choosing the variables/features; 2) choosing the nonlinear structure of the regressors/discriminant functions; 3) choosing how many terms to include in the regression model/pattern classifier; and, 4) optimizing the parameters that complete the description of the regression model/pattern classifier.For Challenge 1, how to choose the variables/features is crucial to the success of any regression model/pattern classifier. In this paper we assume that the user has established the variables that affect the outcome, using methods already available for doing this. For Challenge 4, there are a multitude of methods for optimizing parameters, ranging from classical steepest descent (backpropagation) to a plethora of evolutionary computing methods (e.g., simulated annealing, GA, PS0, QPSO, ant colony, etc. [4]), and we assume that the user has decided on which one of these to use. Our focus in this paper is on Challenges 2 and 3.
For Challenge 2, in realworld applications the nonlinear structures of the regressors/ discriminant functions are usually not known ahead of time, and are therefore chosen either
2 as products of the variables (e.g., two at a time, three at a time, etc.), or in other more complicated ways (e.g., trigonometric, exponential, logarithmicfunctions, etc.). Sometimes knowledge about the application provides justifications for the choices made for the nonlinear terms; however, often one does not have such knowledge, and a lot of time is spent, using trial and error, trying to establish the nonlinear dependencies. For Challenge 3, how to determine how many terms to include in the regression model/pattern classifier is also usually done by trial and error, and this can be very tedious to do. In this paper we present a novel method that chooses the nonlinear structure of the regressors/discriminant functions as well as the number of terms to include in the regression model/pattern classifier simultaneously and automatically. This is accomplished using a novel way of preprocessing the given data.The rest of this paper is organized as follows: Section 2 explains how data can be treated as cases; Section 3 explains how each variable must be granulated; Section 4 describes the TakagiSugenoKang (TSK) rules that are used for regression/ pattern classification; Section 5 presents the main results of this paper, a novel way to simultaneously determine the nonlinear structure of the regressors/discriminant functions and the number of terms to include in the regression model/pattern classifier; Section 6 provides some discussions; and, Section7 draws conclusions and indicates some directions for further research.
2. Data Treated as Cases
A data pair is denoted (x(
t ),y (t )) where x=col (x _{1},x _{2}, ...,x _{p}),x_{i} is thei ^{th} variable/feature andy (t ) is the output for that x(t ). As is commonly done in the social sciences [5, 6], each data pair is treated as a “case” and index t denotes a data case. Treating data as cases is motivated by a method called fuzzy set qualitative comparative analysis (fsQCA), which was developed by the prominent social scientist Ragin [5, 6], and has been thoroughly quantified by Mendel and Korjani [7, 8].Note that there may or may not be a natural ordering of the cases over
t . In multivariable function approximation or pattern classification applications the data have no natural ordering; but in timeseries forecasting applications the data cases have a natural temporal ordering. We assume thatN data pairs are available, and refer to the collection of these data pairs asS_{Cases} , where3. Preprocessing
To begin, each of the
p variables is granulated [9] into a fixed number of terms. Our suggested approach is to begin with only two terms per variable, design the regression model/pattern classifier, and determine if acceptable performance is obtained. If it has not, then increase the number of terms to three (then four, etc.) and repeat this process, stopping when acceptable performance has been obtained. Due to space limitations, we explain our preprocessing only for two terms per variable. Its extensions to more than two terms is straightforward.For illustrative purposes, we shall call the two terms high (
H ) and low (L ). Each variablex _{i} (i = 1, …,p ),x _{i} ∈R ^{+} (orx _{i} ∈R ), is mapped into the membership functions (MFs) of two type1 fuzzy sets, one each for high and low. There are many different ways to do this, e.g. choose each MF as a prescribed twoparameter sigmoidal or piecewiselinear function.In order to use the construction that is described in Section 5, it is required that the two MFs must be the complement of one another. This is easily achieved by using fuzzy cmeans (FCM) for two clusters [10], (or linguistically modified FCM [LMFCM] [11]), because it is well known that the MFs for the two FCM clusters are constrained so that one is the complement of the other.
As a result of this preprocessing step, the MFs 𝜇
_{L} _{i} (x _{i} ) and 𝜇_{H} _{i} (x _{i} ) = 1 −𝜇_{L} _{i} (x _{i} )(i = 1, ..., 𝑝) will have been obtained. Note that, if independent MFs are used forL _{i} andH _{i} (for which 𝜇_{H} _{i} (x _{i} ) ≠ 1–𝜇_{L} _{i} (x _{i} ), then our Section 5 method will useL _{i} andH _{i} as well as their complements−four quantities. When, however, 𝜇_{H} _{i} (x _{i} ) = 1 −𝜇_{L} _{i} (x _{i} ) the four quantities reduce to two.4. Rules
Our rules for a rulebased regression model or classifier have the following TSK structure [12]:
For the rulebased regression model, the
β _{𝜐} play the role of the regression coefficients which are determined by means of optimizing a regression objective function (e.g., minimizing a root mean square error), whereas for a binary pattern classifier theβ _{𝜐} are either +1 or 1, depending upon which class the rule is for. Regardless of whether Eq. (1) is used for regression or pattern classification, observe that the antecedent structure (x _{1} is … andx _{p} is ) and the number of rules (R_{S} ) must be specified, after which it is straightforward to convert Eq. (1) into a socalledfuzzy basis function expansion [12, 13]. It is the mathematics of this conversion that establishes the nonlinear natures of the regressors/discriminant functions (Challenge 2); but this requires determiningR_{S} and the antecedent structure. We show how to determine these simultaneously and automatically in the next section.5. Establish Antecedents of Rules and the Number of Rules
The (compound) antecedent of each rule contains one linguistic term or its complement for each of the
p variables, and each of these linguistic terms is combined with the others by using the word “and” (e.g.,A _{1} andA _{2} and … andA _{p}). We refer to this interconnection as acausal combination 3 . Note that in a traditional ifthen rule the antecedents only use the terms and not their complements. In our approach (as in fsQCA), protection about being wrong for postulating a term is achieved by considering each term as well as its complement.To begin, 2^{𝑝}
candidate causal combinations (the 2 is due to both the term and its complement4 ) are conceptually postulated (we will show below that these causal combinations do not actually have to be enumerated). If, e.g., 𝑝 = 6 there would be 64 candidate causal combinations, or, if 𝑝 = 10, there would be 1,024 candidate causal combinations.One does not know ahead of time which of the 2^{𝑝} candidate causal combinations should actually be used as a compound antecedent in a rule. Our approach prunes this large collection by using the MFs that were determined in Section 3, as well as the MF for “
A _{1} andA _{2} and… andA _{𝑝}” (obtained using fuzzy set mathematics) and a simple test. The results of doing this are calledR_{s} surviving causal combinations .Let
S_{F} be the collection of the following 2^{𝑝} candidate causal combinations,F_{j} (j = 1,…, 2^{𝑝} andi = 1, …, 𝑝):where ∧ denotes conjunction (the “and” operator) and is modeled using minimum and (using Ragin’s [5] notation)
c_{i} denotes the complement ofC_{i} . TheR_{S} surviving causal combinations are found from all of the 2^{𝑝} candidate causal combinations by keeping only those causal combinations whose MF > 0.5 for at leastf cases, wheref is a threshold that has to be specified ahead of time5 . A brute force way to do this is to create a table in which there areN rows, one for each case, and 2^{𝑝} columns, one for each of the causal combinations. The entries into this table areμ_{F}_{j} (t ) and there will beN 2^{𝑝} such entries. Such a table is called a truth table by Ragin[4 ,5] . One then searches through this very large table and keeps only those causal combinations whose MF entries are > 0.5. Iff = 1 then all such causal combinations, removing duplications, become the set ofR_{S} surviving causal combinations. It is very easy forN 2^{𝑝} to become very large6 and so this brute force way to carry out this procedure is impractical.Ragin [5] observed the following in an example with four causal conditions: “... each case can have (at most) only a single membership score greater than 0.5 in the logical possible combinations from a given set of causal conditions (i.e., in the candidate causal combinations).” This somewhat surprising result is true in general and in [8] the following theorem that locates the one causal combination for each case whose MF > 0.5 was presented:
Theorem 5.1 (minmax theorem). [8]: givenp causal conditions,C _{1},C _{2},…,C _{𝑝} and their respective complements,c _{1},c _{2}, …,c _{𝑝}. Consider the 2^{𝑝} candidate causal combinations (j = 1, …, 2^{𝑝}) where orci andi = 1, …, 𝑝.Proof. LetThen for each
t (case) there is only onej ,j * (t ), for which 𝜇_{F} _{j} _{*}_{(t)} (t) > 0.5 and 𝜇_{F} _{j} _{*}_{(t)} (t ) can be computed as:where is determined from the righthand side of Eq. (4), as:
In Eq. (5),
arg max denotes the winner of max namelyC_{i} orc_{i} .A proof of this theorem is in [8]. When
n_{c} independent terms are used for each variable, replacep byn_{c}p . A numerical example that illustrates the computations can be found in [7].This minmax Theorem leads to the following procedure for computing the
R_{S} surviving causal combinations7 :1. Compute
F_{j}_{＊} (t ) using Eq. (5).2. Find the
J uniquely differentF_{j}_{＊} (t ) and relabel themF_{j}_{′} (j^{′} = 1, …,J ).3. Compute
t _{F}_{j}_{′} , where (t = 1, …,N )4. Compute
N _{F}_{j}_{′} , where5. Establish the
R_{S} surviving causal combinations (𝜐 =1. …,R_{S} ), as:where
F_{j}_{′} (j^{′} →v ) meansF_{j}_{′} is added to the set of surviving causal combinations as , andv is the index of the surviving set.Numerical examples that illustrates this fivestep procedure can be found in [8].
In order to implement Eq. (8) threshold fhas to be chosen. In our works, we often choose
f = 1. This choice is arbitrary and depends on an application and how many cases are available. Discussions on how to choosef are given in [57, 14]. One popular way to choosef is as the integer such that at least 80% of all cases are covered by the set of surviving causal combinations.From
F_{j} in Eq. (2) and in Eq. (8), it follows that (v = 1, …,R_{S} ):In [8] it is shown that the speedup between our method for determining the surviving causal combinations and the bruteforce approach is ≈
O (2^{ncp} ), wheren_{c} is the number of terms used for each variable (assumed to be the same for all variables).Example : This example illustrates the number of surviving causal combinations for eight readily available data sets: abalone [15], concrete compressive strength [15], concrete slump test [15], wave force [16], chemical process concentration readings [17], chemical process temperature readings [17], gas furnace [17] and MackeyGlass Chaotic Time Series [18]. Our results are summarized in8 Table 1 . For each problem a twocluster FCM was applied to all of its cases. The fivestep procedure described above was then used to determineR_{S} .Observe that: (1) for three variables (as occurs for wave force, chemical process concentration reading and chemical process temperature readings), the number of surviving causal combinations is either the same number, or close to the same number, as the number of candidate causal combinations, which suggests that one should use more than two terms per variable; and, (2) In all other situations the number of surviving causal combinations is considerably smaller than the number of candidate causal combinations. Although not shown here, this difference increases when more terms per variable are used, e.g., using three terms per variables the candidate causal combinations for the concrete slump test data set is 134,217,728 whereas the number of surviving causal combinations is only 97 [19].
Observe, from the last column in Table 1, that for four of the problems
R_{S} ≥ 25. We seriously doubt that a human designer could postulate the nonlinear structures for so many regressors/discriminant functions. Our method not only shows that so many of them are necessary, it also finds their nonlinear structures.6. Discussion
In Korjani and Mendel [19] have shown how the surviving causal combinations can be used in a new regression model, called variable structure regression (VSR). Using the surviving causal combinations one can simultaneously determine the number of terms in the (nonlinear) regression model as well as the exact mathematical structure for each of the terms (basis functions). VSR has been tested on the eight small to moderate size data sets that are stated in Table 1 (four are for multivariable function approximation and four are for forecasting), using only two terms per variable whose MFs are the complements of one another, has been compared against five other methods, and has ranked #1 against all of them for all of the eight data sets.
Specific formulas for fuzzy basis function expansions can be found in [12, 13]. Similar formulas for rulebased binary classification can be found in [12].
Surviving causal combinations have also been used to obtain linguistic summarizations using fsQCA [7, 8].
7. Conclusions
This paper presents a novel method for simultaneously and automatically choosing the nonlinear structures of regressors or discriminant functions, as well as the number of terms to include in a rulebased regression model or pattern classifier. Variables are first partitioned into subsets each of which has a linguistic term (called a causal condition) associated with it; fuzzy sets are used to model the terms. Candidate interconnections (causal combinations) of either a term or its complement are formed, where the connecting word is AND which is modeled using the minimum operation. The data establishes which of the candidate causal combinations survive. A novel theoretical result leads to an exponential speedup in establishing this. For specific applications, see [7, 8, 19].
Much work remains to be done in using surviving causal combinations in realworld applications. The extension of the minmax Theorem to interval type2 fuzzy sets is currently being researched.
Conflict of Interest
No potential conflict of interest relevant to this article was reported.

[]

[]

[]

[]

[]

[]

[]

[]

[]

[Table 1.] Number of surviving causal combinations for eight problems