A Novel Approach to Weighted Fuzzy Rules for Positive Samples
Martina Da
ˇ
nkov
´
a
a
University of Ostrava, CE IT4Innovations,
30. dubna 22, 701 03 Ostrava 1,Czech Republic
Keywords:
Fuzzy Relation, Relational Model, Fuzzy Approximation, Implicative Model, Fuzzy IF–THEN Rules.
Abstract:
In this contribution, we propose a novel approach to automated fuzzy rule base generation based on underlying
observational data. The core of this method lies in adding information to a particular fuzzy rule in the form of
attached weight given as a value extracted from a relational data model. In particular, we blend two approaches
to receive particular models that overcome their specific drawbacks.
1 INTRODUCTION
Weighted fuzzy rules have been used intensively in
fuzzy modeling since the early days of the field.
Weights were applied to various parts of fuzzy rules:
to input variables, antecedents, consequences, or
whole rules; see, e.g., (Nauck, 2000; Ishibuchi and
Nakashima, 2001; Alcal
´
a et al., 2003; delaOssa et al.,
2009). Learning techniques for weighted fuzzy rules
usually involve optimization methods such as neu-
ral networks, evolutional computing, or genetic algo-
rithms to find the best possible fuzzy rules together
with their associated weights. This typical approach
is repeated also in various recent works, e.g. (Bemani-
N. and Akbarzadeh-T., 2019; Shiny Irene et al., 2020;
Navarro-Almanza et al., 2022).
In this contribution, we focus on weighted fuzzy
rules formalized by the so-called normal forms intro-
duced in (Perfiljeva, 2004). Normal forms-based for-
malization covers the wide spectrum of the weighted
fuzzy rules mentioned above. Their relationship was
described and studied in (Da
ˇ
nkov
´
a, 2007).
Furthermore, we deal with observed data that are
considered as positive ones, i.e. the given data are
the prototypical representatives of a relationship be-
tween input and output spaces. In the standard fuzzy
sets framework, where the scale for the truth values
is [0, 1], we assign F(c, d) = 1 to the observed data
(c, d) and the relationship F.
Having positive sample data at our disposal, we
can freely build fuzzy rules for each data using
the sample-based generation of fuzzy rules provided
a
https://orcid.org/0000-0001-5806-7898
in (H
´
ajek, 1998) and called H
´
ajek’s approach within
this paper.
At this stage, we can face the problem of a huge
number of rules that need to be further reduced for
a final computation efficiency and a rule-base trans-
parency. We propose to solve this problem by com-
bining the H
´
ajek approach with normal forms, where
we can fix a number of fuzzy rules in the fuzzy rule-
base to keep a sample-based learned information as
small and compact as needed.
The paper is organized as follows. In Section 2,
we recall a formalization of the basic fuzzy relational
models from (H
´
ajek, 1998) and provide some selected
properties. The normal conjunctive and disjunctive
norms are presented in Section 3 together with similar
results as in the preceding section. Next, in Section 4,
we introduce special normal forms based on positive
samples that blend the approach of H
´
ajek and the nor-
mal forms and provide their basic selected theoretical
results. Finally, we summarize the results and propose
some future directions in Section 5.
2 SAMPLE-BASED FUZZY
RULES
As already stated in the Introduction, there is a
vast amount of methods for generating fuzzy rules.
Mostly, they can be characterized as the result of
expert knowledge, generated from observed data, or
their combination. A method based on observed data
formalized in (H
´
ajek, 1998) automatically generates
a particular fuzzy rule using fuzzy similarity relations
for each input data. In the following, let us recall
Da
ˇ
nková, M.
A Novel Approach to Weighted Fuzzy Rules for Positive Samples.
DOI: 10.5220/0011548800003332
In Proceedings of the 14th International Joint Conference on Computational Intelligence (IJCCI 2022), pages 209-216
ISBN: 978-989-758-611-8; ISSN: 2184-3236
Copyright © 2023 by SCITEPRESS – Science and Technology Publications, Lda. Under CC license (CC BY-NC-ND 4.0)
209
H
´
ajek’s approach:
Consider a complete residuated lattice of the form
L = L, &, , , , 0, 1,
with the lattice operations (, ), the residuated
pair (&, ), the bottom and top elements 0 and 1,
respectively. Additionally, define
x y = (x y) & (y x).
Let X
1
, X
2
̸=
/
0 and
j
be a similarity relation on
X
j
, j = 1, 2, that is,
(x
j
x) = 1,
(x
j
y) (y
j
x),
(x
j
y) & (y
j
z) (x
j
z),
for all x, y, z X
j
.
Let (c
i
, d
i
) X
1
× X
2
, for i I, where I =
{1, 2, . . . , n}.
Moreover, let the following properties be valid for
a binary fuzzy relation F on X
1
× X
2
:
Extensionality of F:
(x
1
x
) & (y
2
y
) & F(x, y) F(x
, y
), (1)
for all x, x
X
1
, y, y
X
2
.
Functionality of F:
(x
1
x
) & F(x, y)& F(x
, y
) (y
2
y
), (2)
for all x, x
X
1
, y, y
X
2
.
Positive samples of F:
^
iI
F(c
i
, d
i
) = 1. (3)
Define:
Mamd
F
(x, y) =
_
iI
(x
1
c
i
) & (y
2
d
i
)
, (4)
Rules
F
(x, y) =
^
iI
(x
1
c
i
) (y
2
d
i
)
, (5)
for all x X
1
, y X
2
.
We call Mamd
F
and Rules
F
relational data mod-
els.
Example 2.1. Consider the data given in Figure 1,
where X
1
= [0, 6] and X
2
= [0, 50], moreover, define
S
k
(x, y) = 0 (1 k|x y|),
for all x X
1
, y X
2
, k R.
Furthermore, let
1
S
1.7
,
2
S
0.2
. Then the
relational The models Mamd
F
in the standard alge-
bras of Łukasiewicz, Product and G
¨
odel are shown in
Figures 2, 3, and 4, respectively. The relational model
Rules
F
in the standard algebras of Łukasiewicz alge-
bra is in Figure 5. Models Rules
F
for the remaining
algebras are omitted since their values are 0 nearly
everywhere.
But if we change
2
as follows:
2
S
0.02
, we
obtain relational models Rules
F
in the standard alge-
bras of Łukasiewicz, Product and G
¨
odel as shown in
Figures 6, 7, and 8, respectively.
Figure 1: Input data.
Figure 2: Mamd
F
for the input data from Figure 1 in
Łkasiewicz standard algebra.
Figure 3: Mamd
F
for the input data from Figure 1 in the
Product standard algebra.
FCTA 2022 - 14th International Conference on Fuzzy Computation Theory and Applications
210
Figure 4: Mamd
F
for the input data from Figure 1 in G
¨
odel
standard algebra.
Figure 5: Rules
F
for the input data from Figure 1
in Łukasiewicz standard algebra.
Figure 6: Rules
F
for the input data from Figure 1
in Łukasiewicz standard algebra with a finer similarity.
In (H
´
ajek, 1998), we can find many interesting
properties, e.g.,
Mamd
F
(x, y) F(x, y), (6)
Figure 7: Rules
F
for the input data from Figure 1 in the
product standard algebra with a finer similarity.
Figure 8: Rules
F
for the input data from Figure 1 in G
¨
odel
standard algebra with a finer similarity.
F(x, y) Rules
F
(x, y), (7)
_
iI
(x
1
c
i
)
2
Mamd
F
(x, y) F(x, y), (8)
_
iI
(x
1
c
i
)
2
F(x, y) Rules
F
(x, y), (9)
_
iI
(x
1
c
i
)
2
Mamd
F
(x, y) Rules
F
(x, y). (10)
for all x X
1
, y X
2
. Hence, Mamd
F
is below F
and Rules
F
is above F. The quality of approxima-
tion is expressed here using the equivalence relation
, which is dual to pseudometric.
Due to Lemma 7.2.10, the relational data model
Mamd
F
is extensional and functional. Contrary to
Mamd
F
, the relational data model Rules
F
is not func-
tional (see Remark 7.2.11 in (H
´
ajek, 1998)). How-
ever, it can be proved that Rules
F
is extensional.
Proposition 2.2. Let F,
1
,
2
be as above.
Then the fuzzy relation Rules
F
is extensional.
A Novel Approach to Weighted Fuzzy Rules for Positive Samples
211
Proof. We have to prove the following inequality
(x
1
x
) & (y
2
y
) & Rules
F
(x, y) Rules
F
(x
, y
),
for all x, x
X
1
, y, y
X
2
.
We start from the left-hand side of the above in-
equality:
(x
1
x
)& (y
2
y
)&
^
iI
(x
1
c
i
) (y
2
d
i
)
(x
1
x
) & (y
2
y
) & [(x
1
c
i
) (y
2
d
i
)] =
(x
1
x
)& [1 (y
2
y
)]& [(x
1
c
i
) (y
2
d
i
)]
(x
1
x
) & [(x
1
c
i
) ((y
2
y
) & (y
2
d
i
))]
(x
1
x
) & [(x
1
c
i
) ((y
2
d
i
)]
From the transitivity of
1
, it follows
x
1
x
(x
1
c
i
) (x
1
c
i
).
Thus, we obtain
(x
1
x
) & (y
2
y
) &
^
iI
(x
1
c
i
) (y
2
d
i
)
[(x
1
c
i
) (x
1
c
i
)] & [(x
1
c
i
) ((y
2
d
i
)]
(x
1
c
i
) (y
2
d
i
),
for all x, x
X
1
, y, y
X
2
and i I. From this the
extensionality of Rules
F
follows directly.
3 WEIGHTED FUZZY RULES
FOR EXTENSIONAL FUZZY
RELATIONS
Unfortunately, H
´
ajek’s approach without any further
fuzzy rule reduction method is suitable only for a
small number of data samples. One of the possible
solutions is to fix the number of rules and use quanti-
fiers of Fuzzy General Unary Hypotheses Automaton
(FGUHA) methods (Hole
ˇ
na, 1998; Ralbovsk
´
y, 2009)
(a generalization of the GUHA methods (H
´
ajek and
Havr
´
anek, 1978)) to confirm or reject each particular
fuzzy rule designed. Examples of successful solutions
to real-world problems in various fields of vague na-
ture can be found in (Turunen, 2008).
In the subsequent section, we propose another
novel solution to the problem, where we add to each
fixed fuzzy rule a special weight based on the given
sample data. Since both relational models are exten-
sional, we can use the so-called normal forms intro-
duced in (Perfiljeva, 2004). First, recall the definition
of normal forms.
Definition 3.1. Let G be a fuzzy binary relation on
X
1
×X
2
, X
1
, X
2
,
1
,
2
be as above, and p
j
X
1
, q
j
X
2
, for j J, where J = {1, 2. . . . , k}. Then
The disjunctive normal form for G is defined as
DNF
G
(x, y) =
_
jJ
(x
1
p
j
) & (y
2
q
j
) & G(p
j
, q
j
)
, (11)
for all x X
1
, y X
2
.
The conjunctive normal form for G is defined as
CNF
G
(x, y) =
^
jJ
((x
1
p
j
) & (y
2
q
j
)) G(p
j
, q
j
)
, (12)
for all x X
1
, y X
2
.
Observe that the relational model Mamd
F
can be
identified with DNF
G
, provided G(x, y) = F(x, y), for
all x X
1
, y X
2
, I = J, and (c
i
, d
i
) = (p
i
, q
i
), for
all i I. An analogous observation cannot be made
for Rules
F
and CNF
G
. Because the relational model
Rules
F
is based on functionality, while CNF
G
is based
on extensionality.
The values G(p
j
, q
j
), j J serve as weights of
particular fuzzy rules. In fact, it works as some kind
of shift (and rotate) operator because for each fuzzy
rule in DNF
G
, it holds
(p
j
1
x) & (q
j
2
y) & G(p
j
, q
j
) G(p
j
, q
j
), (13)
for all j J, x X
1
, y X
2
, and analogously, for each
fuzzy rule in CNF
G
, it holds
G(p
j
, q
j
) (p
j
1
x)& (q
j
2
y) G(p
j
, q
j
), (14)
for all j J, x X
1
, y X
2
. Roughly speaking, apply-
ing the weights to fuzzy rules as done in normal forms
gradually switches on or off the particular fuzzy rules.
Figures 9–14 demonstrate the behavior described
above. Figure 11 shows the aggregation of fuzzy sets
from Figures 9 and 10 in the Łukasiewicz algebra.
The weight 0.5 lowers the values of DNF below 0.5
as shown in Figure 12. Analogously, the same weight
rotates and shifts the values of DNF above 0.5, see
Figure 14. And Figure 13 demonstrates the duality of
DNF and CNF.
Figure 9: x
1
c.
FCTA 2022 - 14th International Conference on Fuzzy Computation Theory and Applications
212
Figure 10: y
2
d.
Figure 11: (X
1
c) & (y
2
d) in Łukasiewicz standard
algebra.
Figure 12: (X
1
c) & (y
2
d) & 0.5 in Łukasiewicz stan-
dard algebra.
If G is an extensional binary fuzzy relation, then
the following inequalities hold; see (Perfiljeva, 2004):
DNF
G
(x, y) G(x, y), (15)
G(x, y) CNF
G
(x, y), (16)
Figure 13: (X
1
c)&(y
2
d) 0 in Łukasiewicz standard
algebra.
Figure 14: (X
1
c) & (y
2
d) 0.5 in Łukasiewicz stan-
dard algebra.
_
iI
[(c
i
1
x)
2
& (y
1
d
i
)
2
] DNF
G
(x, y) G(x, y),
(17)
_
iI
[(c
i
1
x)
2
& (y
1
d
i
)
2
] CNF
G
(x, y) G(x, y),
(18)
_
iI
[(c
i
1
x)
2
& (y
1
d
i
)
2
]
DNF
G
(x, y) CNF
G
(x, y), (19)
for all x X
1
, y X
2
The above-listed inequalities seem to be analo-
gous to the results of H
´
ajek’s but they are more gen-
eral. Since the fuzzy relation G is not functional, we
have to lower estimate the above equivalences by the
A Novel Approach to Weighted Fuzzy Rules for Positive Samples
213
respective degrees of similarity in domain X
2
. How-
ever, in the case of H
´
ajek’s approach, it is sufficient
to take into consideration only the respective simi-
larities in the domain X
1
. More properties on ap-
proximate reasoning with normal forms can be found
in (Da
ˇ
nkov
´
a, 2007).
4 WEIGHTED FUZZY RULES
FROM THE RELATIONAL
DATA MODELS
Obviously, normal forms cannot be applied directly
for given input data. Naturally, the question arises of
how to obtain weights inside normal forms based on
observational positive data? In this section, we pro-
pose a particular solution to this question.
First, let us summarize the requirements:
j
be a similarity relation on X
j
, j = 1, 2.
(c
i
, d
i
) X
1
× X
2
, for i I.
(p
j
, q
j
) X
1
× X
2
, for j j.
F be a binary fuzzy relation on X
1
× X
2
.
D = {(c
i
, d
i
)}
iI
be a set of positive data, that is,
F(c
i
, d
i
) = 1 for all i I.
Notice that (c
i
, d
i
), for i I are input data for
Mamd and Rules, while (p
j
, q
j
), j J are nodes in
which we construct normal forms.
As shown in Section 2, the relational data models
Mamd and Rules given by (4) and (5), respectively,
are extensional; consequently, all the results valid for
the normal forms pass to the following normal forms:
DNF
Mamd
F
, (20)
DNF
Rules
F
, (21)
CNF
Mamd
F
, (22)
CNF
Rules
F
, (23)
that will be called weighted fuzzy rules for positive
samples.
In the following, we list the valid properties for the
introduced weighted fuzzy rules, i.e., the particular
normal forms, derived from (15)–(19).
DNF
Mamd
F
(x, y) Mamd
F
(x, y), (24)
Mamd
F
(x, y) CNF
Mamd
F
(x, y), (25)
DNF
Rules
F
(x, y) Rules
F
(x, y), (26)
Rules
F
(x, y) CNF
Rules
F
(x, y), (27)
_
jJ
(x
1
p
j
)
2
& (y
2
q
j
)
2
DNF
Mamd
F
(x, y) CNF
Mamd
F
(x, y). (28)
_
jJ
(x
1
p
j
)
2
& (y
2
q
j
)
2
DNF
Rules
F
(x, y) CNF
Rules
F
(x, y). (29)
for all x X
1
, y X
2
.
Moreover, if F is extensional and functional, then
we can use H
´
ajek’s results (6)–(10), and we obtain:
DNF
Mamd
F
(x, y) F(x, y), (30)
F(x, y) CNF
Rules
F
(x, y), (31)
_
jJ
(x
1
p
j
)
2
& (y
2
q
j
)
2
&
_
iI
(x
1
c
i
)
2
DNF
Mamd
F
(x, y) F(x, y), (32)
_
jJ
(x
1
p
j
)
2
& (y
2
q
j
)
2
&
_
iI
(x
1
c
i
)
2
F(x, y) CNF
Rules
(x, y). (33)
for all x X
1
, y X
2
.
Many more interesting results on approximate in-
ference with DNF
Mamd
F
and CNF
Mamd
F
are obtained
directly from the results on normal forms published
in (Da
ˇ
nkov
´
a, 2007).
Let us provide an illustrative example for the data
given in Figure 15 and the weighted fuzzy rules for
positive samples of the form DNF
Mamd
F
. We consider
11 nodes
{(p
i
, q
i
)}
10
i=0
= {(5.4 · i, i
2
)}
10
i=0
.
The resulting DNF
Mamd
F
for the three basic algebras
are shown in Figures 16–18. The respective weights
are as follows:
L
L
L
P
L
G
0.81 0.81 0.81
0.91 0.91 0.93
0.95 0.96 0.96
0.94 0.94 0.96
0.86 0.87 0.93
0.99 0.99 0.99
0.84 0.85 0.92
0.92 0.92 0.95
0.9 0.9 0.94
0.8 0.81 0.87
0.99 0.99 0.99
where L
L
denotes Łukasiewicz algebra, L
P
the prod-
uct algebra, and L
G
the G
¨
odel algebra.
5 CONCLUSION
In this contribution, we presented a novel approach
to the construction of weighted fuzzy rules based
FCTA 2022 - 14th International Conference on Fuzzy Computation Theory and Applications
214
Figure 15: Input data.
Figure 16: DNF
Mamd
F
in Łukasiewicz algebra.
Figure 17: DNF
Mamd
F
in Product algebra.
on positive samples. We combine Perfilieva’s nor-
mal forms and the relational data models proposed
by H
´
ajek. It allows us to fix a number of weighted
fuzzy rules and overcome the problem of a huge un-
clear fuzzy rule basis. Additionally, all theoretical re-
sults known in both approaches are applicable for the
special normal forms, too, as was presented some se-
lected results in the preceding section.
In this phase of research, only theoretical results
Figure 18: DNF
Mamd
F
in G
¨
odel algebra.
are at the disposal. Therefore, it is now the next
step to test the proposed method. Clearly, the num-
ber of weighted fuzzy rules can be optimized as well
as the position of nodes in which the special normal
forms will be constructed. Intuitively, in the case
of DNF
Mamd
F
, DNF
Rules
F
, the nodes (p
j
, q
j
), j J
closer to the data points (c
i
, d
i
), i I will propagate
a better approximation in the sense of the degree of
equivalence. In contrast to the previous fact, the more
distant the nodes are from the given data in CNF
Mamd
F
and CNF
Rules
F
, the better the approximation (higher
degree of equivalence).
ACKNOWLEDGEMENTS
This research was supported by the Czech Science
Foundation project No. 20–07851S.
REFERENCES
Alcal
´
a, R., Ram
´
on Cano, J., Cord
´
on, O., Herrera, F., Villar,
P., and Zwir, I. (2003). Linguistic modeling with hier-
archical systems of weighted linguistic rules. Interna-
tional Journal of Approximate Reasoning, 32(2):187–
215.
Bemani-N., A. and Akbarzadeh-T., M.-R. (2019). A hybrid
adaptive granular approach to takagi–sugeno–kang
fuzzy rule discovery. Applied Soft Computing,
81:105491.
Da
ˇ
nkov
´
a, M. (2007). On approximate reasoning with
graded rules. Fuzzy Sets and Systems, 158(6):652–
673. The Logic of Soft Computing.
delaOssa, L., G
´
amez, J. A., and Puerta, J. M. (2009).
Learning weighted linguistic fuzzy rules by using
specifically-tailored hybrid estimation of distribution
algorithms. International Journal of Approximate
Reasoning, 50(3):541–560.
A Novel Approach to Weighted Fuzzy Rules for Positive Samples
215
H
´
ajek, P. (1998). Metamathematics of Fuzzy Logic. Kluwer,
Dordrecht.
H
´
ajek, P. and Havr
´
anek, T. (1978). Mechanizing Hypothesis
Formation Mathematical: Foundations for a General
Theory. Springer-Verlag.
Hole
ˇ
na, M. (1998). Fuzzy hypotheses for GUHA implica-
tions. Fuzzy Sets and Systems, 98(1):101–125.
Ishibuchi, H. and Nakashima, T. (2001). Effect of rule
weights in fuzzy rule-based classification systems.
IEEE Transactions on Fuzzy Systems, 9(4):506–515.
Nauck, D. (2000). Adaptive rule weights in neuro-fuzzy
systems. Neural Computing & Applications, 9(1):60–
70.
Navarro-Almanza, R., Sanchez, M. A., Licea, G., and Cas-
tro, J. R. (2022). Knowledge transfer for labeling un-
known fuzzy sets using grammar-guided genetic algo-
rithms. Applied Soft Computing, 124:109019.
Perfiljeva, I. (2004). Normal forms in BL-algebra and their
contribution to universal approximation of functions.
Fuzzy Sets and Systems, 143:111–127.
Ralbovsk
´
y, M. (2009). Fuzzy GUHA. PhD thesis, Prague
University of Economics and Business.
Shiny Irene, D., Sethukarasi, T., and Vadivelan, N.
(2020). Heart disease prediction using hybrid fuzzy
k-medoids attribute weighting method with dbn-
kelm based regression model. Medical Hypotheses,
143:110072.
Turunen, E. (2008). GUHA-method in data mining, Pavelka
style fuzzy logic, many-valued similarity and their ap-
plications in real world problems. In MTISD 2008
Methods, Models and Information Technologies for
Decision Support Systems, pages 49–50.
FCTA 2022 - 14th International Conference on Fuzzy Computation Theory and Applications
216