Skip to Content
AlgorithmsAlgorithms
  • Article
  • Open Access

17 July 2026

45 Pages

Explorations on Improving Interpretability of Decision Making Processes of Rule-Based Classifiers

Silesian University of Technology, Department of Computer Graphics, Vision and Digital Systems, Akademicka 2A, 44-100 Gliwice, Poland

Abstract

Rule-based classifiers are often preferred over other types of learners due to the transparent mode in which decisions are made. Each decision rule includes in its premise conditions on attributes. When they are satisfied, the conclusion part of the rule comes into play and leads to assigning an object to a specific class. Following the classification process is relatively straightforward but can become more complex when the cardinality of rule set is high. Furthermore, when rules are induced from continuous data, the conditions listed belong to this domain as well, which makes them less general. This paper presents an illustrative example for the exploratory research methodology where the sets of rules are induced in the continuous input domain, but next, they are transformed by discretisation procedures, which results in a simplified representation of the data and knowledge patterns learnt. In addition, the rule sets are also filtered based on rankings obtained for variants of the transformed data. The processing results in reduced decision algorithms with categorical conditions. This simplification is advantageous in and of itself, but the experiments carried out on datasets in the stylometric domain show that it can also lead to enhanced performance of rule-based classifiers.

1. Introduction

Reducing the complexity of a data model is an important step on the way to achieving interpretability of a decision making process [1]. Dimensionality reduction is a widely studied problem, with permanently increasing importance due to constantly accumulating amounts of data, which also increase in volume. With too many descriptive features to choose from, their relevance for any given task and the characteristics of a domain can become lost under information overload and work to disadvantage rather than help in understanding the properties of the data and leading to effective knowledge discovery.
Simplification of a space under consideration is a challenge that can be approached in many ways and directed at various aspects. Feature selection algorithms can be employed to provide some insight into importance of variables, evaluated outside or in addition to expert knowledge [2]. The ranking mechanisms, which can be embedded in the data exploration or applied in the data preprocessing stage, organise the available attributes into ordered lists, from the most relevant to the least relevant elements. This list can be exploited to retrieve only a subset of features found to be the most interesting or most important for the problem under study [3].
Characteristics of the input space, and dependencies and patterns that can be detected change when this space is transformed. Discretisation is a process that aims essentially at the simplification of data while preserving some part of the informative content [4]. The continuous space is partitioned into ranges of values, and datapoints are represented by the corresponding intervals defined along the way. Typically, discretisation is considered among data preprocessing methods and applied in the initial preparation stage. The categorical attributes obtained make data mining less demanding, and a wider range of approaches can handle them due to much simplified calculations. However, knowledge discovery based on discretised data means learning in conditions where some information becomes inaccessible. Supervised discretisation algorithms, by their focus on class distinction, are capable of rejecting attributes by assigning a single interval to represent their entire domains [5], which means operation as a feature reduction method.
Taking advantage of both reasoning from all available data and simplification resulting from discretisation means reversing the order of standard processing steps [6]. Instead of first preparing the data and then exploring them, discretisation can follow knowledge discovery. Yet, for this approach to work, the patterns extracted from the data need to be directly accessible; therefore, the methodology can be applied only in the situation of transparent representation of learnt knowledge. Such is the case with sets of decision rules.
In the field of supervised machine learning, rule-based classifiers are often preferred over other approaches, even at the cost of lowered expectations with respect to performance. This is due to the relatively easy interpretability of the decision making process. Each decision rule directly shows the premises on which a decision is made. Induction algorithms search for rules and return their sets of varied cardinalities, which can, next, be applied to labelling unknown samples. With many rules firing for a sample, a conflict can occur that needs to be resolved by some strategy [7], such as voting. When the numbers of inferred rules are high, the operation of a rule-based classifier is more complex and takes more time. To counteract this, pruning of rule sets can be attempted [8]. Individual rules are evaluated with some measure that reflects their quality, and then only the subset is selected. In the research presented in this paper, three mechanisms were examined with the aim of improving the interpretability of a decision making process for rule-based classifiers. These simplification approaches included discretisation of the data, transformations of the knowledge patterns learnt, and rule filtering combined with feature selection based on attribute rankings.
Operating in stylometry as an application domain [9], two datasets with numerical attributes were prepared for an exploratory analysis of writing styles. Each dataset represented a task of binary authorship attribution based on linguistic preferences and habits of authors, represented through stylometric features [10]. From the continuous input space, the sets of decision rules were induced by the Dominance-Based Rough Set Approach (DRSA) [11]. DRSA is an extension of the classical rough set approaches invented by Pawlak [12] that could handle only nominal or discrete data. By incorporating dominance relation, the Dominance-Based Rough Set Approach can process directly numerical attributes and returns sets of decision rules including conditions on them in their premises.
Within the illustrated methodology, the conditions in the inferred rules were discretised by replacing them with the corresponding categorical representations found in transformations of the data, which caused a noticeable simplification and enhanced generalisation properties of the rules. Several discretisation approaches were applied to the data and patterns: the Kononenko algorithm [13] of the supervised category and several variants of equal-frequency and equal-width binning from the group of unsupervised methods. For all investigated domains, continuous and discrete, the sets of decision rules were filtered. The selection process was controlled by rankings of attributes to include information on their relevance in considerations. In all filtering procedures, the performance of rule classifiers was evaluated with test sets discretised by two modes of transformation, independent and dependent, and examined in the context of two strategies of conflict resolution, weighted voting versus simple majority voting.
The described research expanded on the results obtained in previous experiments [14]. In the earlier works, as discretisation approaches, the algorithm by Fayyad and Irani and variants of equal frequency binning were employed. Classifier performance was evaluated only with dependently transformed test sets. Weighted voting was used as the only available conflict resolution strategy. This paper includes new directions and elements of the methodology by exploiting different discretisation methods, considering transformations adapted to sets used for evaluation of classifiers, examining the influence of conflicts occurring when many rules fire for a sample, and the characteristics of reduced rule sets.
The experimental results show the merits of the methodology presented. In most of the rule filtering procedures executed, some conditions for improved interpretability were detected while at the same time at least preserving, but also increasing, the power of rule-based classifiers. The improvement was visible in rule premises simplified by discretisation, and in noticeably smaller rule sets retrieved after filtering.
The main contributions of this paper are as follows.
  • Presentation of the research methodology where the representation of knowledge discovered by data mining was transformed by discretisation;
  • Investigation into an application of simplification approaches to the process of decision making by rule-based classifiers;
  • Study of rule filtering executed in various directions and with different rule selection strategies;
  • Examination of the influence of various operation conditions while labelling samples using rule-based classifiers.
The content of the paper was prepared as follows. Section 2 describes the research background and an explanation of the methodology used in the experiments. Section 3 includes comments on the results obtained, with the discussion provided in Section 4, while Section 5 concludes the paper.

2. Materials and Methods

The research reported in this paper involved the application of some simplification approaches to the task of decision making by rule-based classifiers. The simplification included transformations of the considered input space and also knowledge patterns discovered there by discretisation, and filtering sets of decision rules induced from the data. The section presents all elements of the background, as well as a description of the experimental setup, giving the scope and extent of investigations.

2.1. Decision Making Process of Rule-Based Classifiers

One of the key elements needed for effective data mining is understanding how the decision making process works and being able to interpret the knowledge patterns discovered by explorations [15]. Among a multitude of methods and algorithms that belong to supervised machine learning, rule-based classifiers deserve special mention because not only can they be used to label unknown samples but they also provide direct access to learnt knowledge represented by inferred rules, and the act of reaching a conclusion based on given premises is always completely transparent [16].
A decision rule of the I f … t h e n form consists of two parts. The premise includes the conjunction of descriptors, pairs of attribute–value, which give conditions on attributes. The conclusion provides the decision with respect to the assigned class, when all listed conditions are met. The number of conditions is referred to as the length of the rule, which is an important characteristic. Shorter rules are less detailed, and therefore, they possess better generalisation properties [17]. Longer rules describe some training data closely, sometimes too closely, which can lead to overfitting. A decision rule is discriminative with respect to classes when, for all covered training samples, that is, those with attribute values matching conditions, the assigned labels also match. Such covered samples support decisions based on the listed premise; therefore, this term is used as another important rule characteristic. The higher the value of the rule support, the more often it occurs or it represents a major pattern, while lower supports indicate some minor patterns described by the rules.
To infer decision rules, an induction algorithm needs to process values that comprise domains of attributes. The nature of the input domain reflects the relational operators used in the descriptors. Some approaches work only for nominal or discrete data, and then, the operator is that of equality. When attributes are numerical, either discretisation must precede the search for rules, or the rule induction algorithm must be able to handle real values [18]. In the latter case, the range of operators can then be extended to include some elements of the set { = , ≠ , < , ≤ , > , ≥ , ∈ } , leading to consideration of ordered attribute values or comparisons with a set or range of values.
When decision rules are inferred from the input data, they can be next applied in the process of assigning class labels to unknown samples. For all yet unattributed examples, rules that cover them are sought. If for a sample, a single rule is found with conditions that match the values of attributes included, then its decision attribute gives the corresponding class label. When several rules cover the sample, the question of labelling can become more complex, depending on agreement or lack of it, between individual decisions provided by firing rules. When all matching rules point to one and the same class, then they can kind of support each other in the process of reaching the final decision. If, however, some rules disagree on where a sample should be assigned, the resulting conflict must be resolved by some strategy [19].
The most radical strategy would be to treat all samples with ambiguous decisions caused by conflicts as unattributed, without the final decision about how they are classified. In consequence of such processing, only the samples with unanimous decisions reached by covering decision rules would be labelled. In cases where the sets of rules have a high cardinality, that could possibly mean even zero decisions. Furthermore, with this approach, the samples not covered could not be distinguished from those covered but by conflicting rules, which do not correctly reflect the characteristics of knowledge discovery [20]. When there is no coverage, it means that the patterns represented by the sample under study were absent in the data from which the rules were induced. A conflict shows that a sample is representative of multiple detected patterns, characteristic to not one but various classes.
Another tactic leads to exploiting mechanisms typically associated with collaborative decision making [21]. Decisions of all matching rules are considered as if they were submitted by elementary inducers, and some form of voting returns the needed final verdict. If each rule is assigned a single vote, regardless of its characteristics, and the class with the highest number of votes is chosen as the final label, then simple majority voting is applied. Disregarding the issue of rule quality can cause the situation where weaker rules outvote stronger rules simply because they are more numerous. An alternative procedure is provided by weighted voting. Each decision rule is assigned as many votes as its support, and then, the votes are calculated. With this approach, decisions submitted by stronger rules are reinforced to reflect the dominance of patterns represented by them.
Information on the extent of decisions that need to be reached through some strategy due to clashing assignments given by firing rules can be provided by the conflict rate. It can be expressed as a fraction of samples from a set under study for which conflicts occurred. A conflict rate equal zero means that when there are rules matching an example, they always agree on the decision. A conflict rate equal to one denotes the case where for all covered samples, at least one rule disagrees with the others with respect to the assigned class label. However, lower values of the conflict rate should not be interpreted as leading to higher accuracy, since the lack of conflict is not equivalent to only correct decisions being made. Therefore, this characteristic rather reflects the overall complexity of a decision making process for a classifier.

2.2. Exploration of Data with Dominance-Based Rough Set Approach

In a rough set perspective, the universe of discourse is perceived as granular. In the Classical Rough Set Approach (CRSA), invented by Pawlak as a way of dealing with uncertainty in data [12], the granules of knowledge are equivalence classes of objects formed by the indiscernibility relation. The notion of indiscernibility is fundamental for processing and data exploration yet requires nominal attributes. When two objects are indiscernible because of values of features describing them, they should be classified in the same way, to the same class. For CRSA, only nominal classification is possible.
For ordinal classification and numerical attributes, such as those that occur in problems of multi-criteria decision making, some modification of the exploration procedure is needed. In the Dominance-Based Rough Set Approach (DRSA), the relation of indiscernibility is replaced by dominance, and the objects become dominating or dominated [22]. The values of all attributes, including decisions, are considered preference-ordered. The cost type denotes lower values leading to more preferred classes, while the gain type means that higher values point to more preferred classes. The dominance or Pareto principle states that when an object x is evaluated as at most as good as another object y, it should be classified at most as good. When an object is evaluated as at least as good as another object, it should be classified as at least as good. The induced decision rules take one of the main four forms:
I f ( a i 1 ≤ v 1 ) ∧ … ∧ ( a i k ≤ v k ) t h e n v d ≤ I f ( a i 1 ≥ v 1 ) ∧ … ∧ ( a i k ≥ v k ) t h e n v d ≤ I f ( a i 1 ≥ v 1 ) ∧ … ∧ ( a i k ≥ v k ) t h e n v d ≥ I f ( a i 1 ≤ v 1 ) ∧ … ∧ ( a i k ≤ v k ) t h e n v d ≥
a i with the corresponding v i are descriptors with the operator ≤ for the cost type and ≥ for the gain type, connected in a premise by the conjunction operator ∧. v d gives values of the decision attribute, and v d ≤ and v d ≥ are, respectively, downward and upward unions of decision classes. These forms lead to objects being assigned not to a specific class but to at most some class or at least some class.
The condition attributes do not have to represent one and the same type of preference; their combinations are possible. In the case of numerical attributes, ordering of their values is only natural, but preferences are not. For some application domains and attributes, establishing preference ordering comes in consequence of understanding the data or through the available expert knowledge. When knowledge is insufficient, preference can be discovered by data exploration, but that means an extension of processing and increasing computational costs. A much simpler solution can be applied instead, which, however, cannot guarantee finding the preference ordering most advantageous to performance or rule characteristics. Some variants of preference are proposed for attributes, and small subsets of rules (for example, providing a minimal cover) are induced. Then, evaluation of performance leads to choosing these preference orderings that turned out to be most beneficial.

2.3. Rule Sets and Filtering

Cardinalities of sets of decision rules obviously depend primarily on the input data but also heavily on the specifics of algorithms used for inferring them. Various approaches to the induction of decision rules were invented [23]. There are heuristics that generate only subsets of rules by focusing on some specific criteria, which could refer to direct rule characteristics such as length or support. Minimal cover algorithms find only the minimal number of decision rules that are sufficient to provide coverage of all training samples, which can be achieved by sequential covering, that is, removing from considerations the samples covered by the rules already found [24]. The quality of individual rules is not necessarily taken into account. Therefore, they may be insufficiently general to match unattributed samples but have the advantage of being found relatively quickly and enabling simpler decision making.
The exhaustive search for rules returns all rules on examples with minimal premises that can be defined. The premises of rules must satisfy the principle of containing only the minimal number of descriptors, that is, removing any of them would return the rule invalid, no longer true for the training data. This type of procedure is typically complex and costly, and the sets of inferred rules have much higher cardinalities. With more rules, the chances of obtaining coverage of unknown samples increase, but decision making takes longer, and strategies for conflict resolution are needed more often.
Before their application to the problem of labelling samples, sets of decision rules can be analysed more closely, to study characteristics and possibly evaluate quality [25]. The defined measures can then be employed in the rule filtering procedure, aiming at reducing dimensionality and recalling only these rules that are deemed interesting, however it is estimated. A strategy for selecting rules to discard or retrieve can rely on some calculated weighting factors or included conditions [26]. The task can be executed as a single preparation step in the construction of rule-based classifiers, or as a process with multiple steps and processing direction.
The forward search procedure starts with the empty set to which elements are gradually added. In each step, a subset of rules is recalled from the entire set of available rules. The starting point for the backward search is the entire set of rules from which subsets of elements are rejected with each step [27]. For both directions, typically two main variants of the stopping point are considered: either when the set of selected rules satisfies some set requirements (for example, based on the number of recalled rules, or the performance of rule-based classifier), or when the set of rules to analyse is exhausted (for forward search, it means all rules were selected, and for backward search, all rules were discarded). With the latter approach, observations of general trends are possible.

2.4. Discretisation as Data Preprocessing Method

Discretisation can be categorised as a data processing method that aims at reducing dimensionality and simplifying data. It transforms the domains of numerical attributes by forming intervals, also called bins, to represent ranges of continuous values. This kind of representation change can be needed to prepare the input space for exploration, which is why it is typically considered at the initial data preprocessing stage [28]. Not all learners can directly handle real-valued data, but even when they can, discretised features cause lower computational requirements and costs and can also positively influence the performance of inducers.
Depending on the way intervals are found, discretisation approaches can be divided into many different groups and types [4]. The most fundamental distinction is based on the treatment of information on recognised classes. If this information is taken into account and, to some extent, governs the process of defining bins, the algorithms are called supervised and often rely on the idea of modelling by shortest data description and the minimum description length principle [29]. Transformations go either from top to bottom or from bottom to top. For the former, the procedure starts with assigning one interval to represent the entire domain, and then, this interval is possibly partitioned into smaller sub-intervals. For the latter, the small intervals proposed at the beginning are next merged. The transformation is executed iteratively as long as the stopping criterion remains unsatisfied. It stops when further modification of intervals would not be advantageous to discrimination of classes, so it is possible that for some attribute, a single categorical representation is found. The quality of cutpoints between bins is evaluated using some measure that could employ entropy [30], which is often used to express the purity of the data. Popular algorithms in this category are the Fayyad and Irani [31], and Kononenko [13] methods.
When in translation from continuous to a discrete domain, the focus of the procedure is only on values of the processed attribute; the transformation is unsupervised [32]. Equal-width and equal-frequency binning are two representatives of this category. The approach of equal-width binning is most basic and intuitive as it means the uniform decrease in scale of distinguished details of description. The input parameter specifies the number of intervals of equal width that are defined to represent the domain. For binning based on equal frequency, the required number of intervals is formed by referring to distribution of datapoints, and bins are defined to provide categorical representation for the same number of original datapoints.
Due to their support for class distinction, supervised methods are widely perceived as leading to more advantageous representation than unsupervised algorithms. However, this should not be considered universal truth. No method can guarantee that it always leads to the best representation. The degree of complexity of the transformation depends on the data. Any irregularities existing in space can greatly influence the processing and the quality of the resulting categorical representation [33].
When data to be processed are kept in datasets composed of several separate sets with the same attributes, as in the case of training and test sets, the problem of discretisation becomes even more complicated. The processing of these sets and the samples included in them can be approached in various ways [34]. Independent transformations are the simplest to implement because each individual set is discretised completely disregarding the others. However, in consequence of proceeding this way, not only are different definitions for intervals formed, with different cutpoints, but it is possible that different numbers of bins are found due to local set characteristics [35]. Another path leads to dependent transformations, that is, imposing definitions of intervals learnt for one set (a training set) to represent values present in the other set (a test set). With independent transformations, the discrete data models are found and then the comparison of their characteristics becomes a part of the knowledge discovery process. Dependent discretisation means that the test data are perceived through the perspective of granules of information learnt from the training data.

2.5. Relevance of Features

Understanding an application domain includes recognition of the importance of characteristic features describing concepts. Expert domain knowledge can provide this information; however, it often happens that many alternative attributes are available. Using all of them would lead to an unnecessary increase in dimensionality. Furthermore, the excessive number of variables tends to be disadvantageous as it is more difficult for inducers to detect major patterns when they are obscuring each other. Some data exploration methods possess their own inherent mechanisms directed at the evaluation of relevance, such as, for example, the notion of reducts in rough set theory [36]. In addition to these embedded procedures, to help the situation, other methods and approaches from the field of feature selection and reduction can be employed [37].
The group of filters [38] consists of algorithms that estimate relevance without taking into account any characteristics or specifics of the methods applied for knowledge discovery. Rankings belong to this category of mechanisms. They return a list of attributes ordered by their importance, with the top-ranking positions assigned to variables with the highest relevance and the bottom left to least relevant. An ordering can be obtained by calculating a score that can be based on some statistical measures [39]. If entropy (or entropy-based weighting factor) is used in evaluation, it is possible that some variables, found as irrelevant, are not included on the list and only a proper subset is returned. On the other hand, algorithms such as Relief [40] find all attributes as relevant to some degree and always return non-zero score.
Wrappers discover relevance by conditioning it on a specific predictive model. In an iteratively executed search procedure, the performance of the model serves as the basis for the selection of features. This close tailoring to a particular learning algorithm tends to result in high accuracy but brings additional processing costs [41]. When the obtained ordering of attributes is used for a different type of inducer, it results in the hybrid combination of the filter-wrapper approach to ranking.

2.6. Experimental Setup

The research work described in this paper consisted of several stages, shown in Figure 1. It began with the selection of the application domain for the illustrative example. Once the input datasets were prepared for the experiments (D-Prep), they were explored with the Dominance-Based Rough Set Approach to find sets of decision rules (R-DRSA). For DRSA data mining, 4eMka2 Software was used, developed at Poznań University of Technology [42]. Then, both the data (D-Discr) and the knowledge patterns discovered and represented by the decision rules (C-DRSAd) were discretised by applying some algorithms available in the Waikato Environment for Knowledge Analysis (WEKA workbench) [43]. In the next stage, the sets of rules were filtered (R-Filter) by referring to rankings of attributes found for all data variants, continuous and discrete (A-Rank). For all constructed rule-based classifiers, performance was evaluated (Eval) and then analysed (Result). This subsection details the extent and conditions of the experiments that were carried out, while the results are given in the next section.
Figure 1. General procedure of the experiments performed.

2.6.1. Application Domain of Stylometry

Stylometry aims at the impossible: measuring something as subtle and vague as a writing style and expressing it in quantitative terms [44]. Accepting that this ideal cannot be reached, approximations are sought, and writer profiles are constructed by explorative analysis of texts of known authorship to discover linguistic patterns. The task of authorship attribution is considered the most important in this application domain. It combines elements of other problems: author characterisation and author comparison. When profiles are first learnt and then compared against characteristics detected for text samples of unknown or questioned authorship, the attribution is treated as a classification, with stylometric markers playing the role of characteristic features, and recognised authors used as class labels.
Two datasets were prepared for the experiments, both dedicated to binary authorship attribution, and well-known writers of classical literature as considered authors [45]. The female writer dataset (F-writers) reflected the profiles of Edith Wharton and Mary Johnston, while the male writer dataset (M-writers) was focused on works by Jack London and James Oliver Curwood. Each dataset consisted of one training set and two test sets, including samples based on text blocks, found by partitioning long literary works into smaller chunks of comparable size. Samples obtained through the division and processing of one longer text (such as a novel) show a closer similarity. The way of textual data preparation leads to a space where not only classes are recognised but also hidden stratification of subclasses exists, imposed by groups of samples based on the same longer works.
Various sets of features can be used in stylometric analysis. More reliable are markers that are less likely to be imitated because they belong to linguistic elements used rather subconsciously, habitually, such as common function words [46], or they appear in text due to individual preferences or learnt traits, such as patterns of sentence formulation indicated by punctuation marks [47]. When the frequency of occurrence for these lexical and syntactic markers is calculated, the resulting values of the attributes are continuous.
In the investigations reported in this paper, the set of 24 features (22 lexical and two syntactic) was used. They are listed in Table 1 with short symbols assigned to make presentation simpler. For both datasets, the same attributes were employed for analysis. To avoid problems connected with learning from imbalanced data, in all sets (training sets and test sets), both authors were represented by the same number of samples and also with the same hidden stratification structures.
Table 1. Stylometric attributes and short symbols assigned to them.

2.6.2. Discretisation Approaches Used

To transform the input space, the representatives of both supervised and unsupervised discretisation algorithms were applied. From the former category, the Kononenko method was used [13]. In addition to that, unsupervised equal-width binning and equal-frequency binning were employed [4]. The Kononenko approach is non-parametric, but for the unsupervised procedures, the input parameter needs to provide the required number of bins to be defined for all attributes. This number ranged from two to ten. Therefore, the total number of variants of representation of the training data was equal to 20: one continuous, one for Kononenko discretisation (denoted dsK), nine for equal width, and nine for equal-frequency binning (denoted, respectively, duwi and dufi, with i giving the number of bins).
In the case of test sets, the number of discrete variants was doubled. Each test set was transformed independently on other sets (denoted Test independent, Tind), but also dependently. The observed values were then replaced with the corresponding categorical representation found in transformation of the training data (denoted Test on Learnt, ToL).

2.6.3. Stylometric Features and Rankings

Any transformation of the space also makes changes in dependencies and characteristics that can be detected. To account for this, an evaluation of the relevance of stylometric features was performed for all data variants explored, in the original continuous and all discrete domains investigated. The attributes were ranked with the help of the One Rule (OneR) algorithm [48]. It is based on the properties of the decision rules. In the procedure, short rules are constructed using attribute values for conditions, and performance serves as the weighting factor. The rankings obtained for all domains are listed in Table 2, where the column R provides a ranking position for all domains studied, from 1 (top) to 24 (bottom).
Table 2. OneR rankings of attributes based on all data variants studied.
The form of a heat map adopted to simplify presentation relies on colour scales based on the rankings in the original continuous domain to visualise the effects of discretisation. They are mostly different between the two datasets, that is, similarities (when the same colour is used for the same attribute for both datasets) occurred only when some variables were ranked in the same way. The variables placed at the top, which means that they are considered the most important, were shown with a blue gradation, fading to white in the middle ranges of relevance, and then changing to deeper shades of red for the least important features.
With a single exception, both datasets agreed with respect to the attribute found as the most important for all data variants: it was a24 (comma). Only for the female writer dataset transformed with the duf3 approach was the highest ranked variable a18 (until). There were also cases where an attribute was relatively more important in the continuous domain, but after discretisation, its relevance was noticeably changed, either lower or higher, for example, for F-writers, a21 (around) in the duw2 approach or a4 (by) and the duf5 approach, and for M-writers, again a4 and duf3, or a6 (who) and the duw3 discretisation. Generally, higher degrees of similarity could be observed between rankings resulting from some variants of the same unsupervised discretisation algorithms, but no two rankings were the same. All rankings were employed to drive the rule filtering process.

2.6.4. Procedure of Ranking-Driven Rule Filtering

The rule filtering procedure (with the pseudo-code given by Algorithm 1) was executed iteratively, with the number of iteration steps equal to the number of attributes available. Each step involved considerations on one attribute. The order in which the variables were selected was determined by the rankings investigated but could be driven by any defined ordering. In the continuous domain, one ranking was studied, obtained for the original input training sets. In each discrete domain, in addition to this ranking based on the input data, the ranking calculated for this particular discrete data variant was also applied in rule filtering to examine the influence of both the original and transformed data on the process.
Two directions of the search procedure were used: forward and backward. For the forward direction, the starting point was the empty set to which rules were gradually added by referring to attributes listed by the ranking, beginning with the top positions. The stopping point was reached when the least important variable was selected and all induced rules were included in the recalled set. The backward search began at the bottom of the ranking, with the entire set of available rules, from which the elements were discarded in iteration steps, as indicated by gradually more and more important features. The procedure stopped when reaching the top of a ranking, when all attributes and rules were discarded.
Algorithm 1 Pseudo-code for rule filtering controlled by an ordering of attributes
Input: number of attributes M,
            set of attributes Attrib,
            ordering of attributes O r d e r A ,
            set of decision rules Rules,
            search direction Direction to follow ordering of attributes OrderA;
begin
if Direction=Forward then             //initialisation
             Attrib-TMP = Ø
             Rules-TMP = Ø
else
            Attrib-TMP = Attrib
             Rules-TMP = Rules
for i = 1 to  M  do                              //process iteratively all M attributes
             if Direction=Forward then
                          select attribute from the ordering attr = OrderA[i]  //select the variable
                          Attrib-TMP = Attrib-TMP ∪ attr     //expand the set of variables
                          Rules-TMP = SelectRules(Rules, Attrib-TMP)       //select the rules
                                    including conditions on attributes limited to the selected subset
            else
                  select attribute from the ordering attr = OrderA[M − i + 1]
                                      //select the variable
                  Attrib-TMP = Attrib-TMP \attr                  //reduce the set of variables
                  Rules-TMP = Rules-TMP \ SelectRules(Rules-TMP, Attrib \ Attrib-TMP)
                                    //from the currently considered set of rules remove those with
                                    conditions on attributes limited to the discarded subset
endfor
end {algorithm}
Different strategies of rule selection were assigned to the two investigated directions. For forward search, these rules were recalled, which in their premises included conditions on variables that belonged to the set of elements considered for each specific iteration step. In the first step, only rules with single conditions on the top ranking variables could be selected. In the second step, the recalled rules could have at most two conditions and refer to one or two top ranking features, and so on. In the backward search procedure, the rules were rejected when they did not include any condition on variables still remaining in considerations. Therefore, for the forward search, the iteration step also indicated the number of variables. For the backward search, it could not be interpreted in this way because still some rules could be present in the remaining set because the conditions were included on other, higher ranked attributes. In consequence of these two strategies, at the same iteration step, there could be a huge difference in the number of rules between the two directions.
Taking into account different rankings and directions, the rule filtering procedures examined were as follows.
  • Real-Forward (RF)—Based on the ranking in the continuous domain, starting at the top, and gradually expanding the set of rules, applied in all domains;
  • Real-Backward (RB)—Based on the ranking in the continuous domain, starting at the bottom, and with discarding rules with each iteration step, applied in all domains;
  • Discrete-Forward (DF)—Based on a ranking in a specific discrete domain and used only in this domain, executed forward;
  • Discrete-Backward (DB)—Based on a ranking in a specific discrete domain, applied only in this domain, and search performed backward.
To sum it up, for both female and male writer datasets in the continuous domain, two filtering procedures (RF and RB) were performed, while each discrete variant was subjected to four procedures (RF and RB, and DF and DB). This makes a total of 78 procedures per dataset studied taking into account several characteristics.

2.6.5. Evaluation of Performance

To evaluate the performance of rule-based classifiers, the measure of classification accuracy was selected. It specifies the percentage of correctly classified samples, regardless of class. This choice was made because of the working conditions of inducers [49]: the classification task was binary; the recognised classes were equally represented, so there was no imbalance; and both classes were of the same importance, with the same misclassification costs (false negative had the same meaning as false positive). The classification accuracy was calculated individually for the test sets used and then averaged. This average is the final elementary result given. In discrete domains, because of two modes of transformation adapted to test sets, independent and dependent, the evaluations and then calculated averages were studied for both.
The application of test sets in the evaluation, as opposed to some variant of a popular cross-validation technique [50] results from the characteristics of the input space studied, with hidden stratification formed by subclasses, which is the consequence of data preparation. In such conditions, cross-validation tends to return falsely over-optimistic evaluations. To make it more reliable would involve the selection of not just random samples, as per the standard, but groups of samples corresponding to entire subclasses [51]. This kind of processing was unfeasible because greatly extends the processing time and increases computational costs, which in the reported research, would be even greater due to multiple data variants examined and the relatively complex data exploration and then transformation. Using averages calculated over test sets provides a reasonable compromise and a sufficiently reliable estimation of accuracy.

3. Results

For all domains in which the input data were investigated, original continuous and all discrete variants, the process of rule filtering based on attribute rankings was executed. This section is focused on the observations of trends in the performance of the constructed rule-based classifiers, while characteristics of the rule filtering process performed under various conditions are discussed in the following.
The performance of inducers, evaluated by the classification accuracy averaged over test sets, is shown in figures separately for the datasets and rule filtering procedure, for the two conflict resolving methods and modes of transformation applied for discretised test sets. Each filtering procedure adopts its own individual colouring scheme: the highest values are displayed with shades of red background, gradually becoming lighter until the middle range is reached, which is white, and then lower and lower predictions are given with darkening shades of blue. This form of heat map simplifies the detection of trends in performance and facilitates intuitive understanding of the presentation. The results marked as hot (red) correspond to higher values, while cold (blue) zones indicate lower predictions.
For all procedures, the entire path was examined, from zero attributes and rules to all attributes and rules, or the other way round. R corresponds to the ranking positions considered. For the forward search, it directly specifies the number of iteration steps currently processed and equals the number of features selected. This is not true for the backward search due to the different strategies in discarding rules and the starting point of all available rules. The value of the ranking position for R equal 24 denotes the entire set of induced rules available; therefore, the only difference between directions could happen for different types of voting in the case of existing conflicts.

3.1. Operation with All Rules

Exploration of the original input data in the continuous domain with DRSA for all rules on the example algorithm implemented in 4eMka2 Software returned the sets of decision rules for both datasets, with the characteristics listed in Table 3. These two sets of decision rules provided the basis for all procedures and transformations directed at simplification, resulting in some improvement in the interpretability of decision making. The performance evaluated for these two sets, including all induced rules involved in labelling the test samples, constituted a reference point for comparison in the investigations.
Table 3. Characteristics of rule sets in the continuous domain.
For the female writer dataset, the difference in evaluation dependent on the conflict resolution strategy was noticeably larger, but for both datasets, weighted voting caused higher classification accuracy than simple majority voting. The two sets of decision rules provided perfect coverage of the test samples. The conflict rate was close to one due to the high number of rules. The numbers of rules which fired for a test sample varied but generally were in the range of several thousands. For both datasets, the minimum rule length was equal to one. It was also the minimal value of the rule support. The maximum length was higher for F-writers than for M-writers but so was the maximal value of support. Despite the lower number of rules; for the female writer dataset, the average support was lower; and the average rule length was larger than these two important characteristics of rules for the male writer dataset.
One of the approaches used in this research for the purpose of simplification of a decision-making process was discretisation. The transformation was applied both to the data and the patterns learnt from the data and then represented by the sets of decision rules. Discretisation of conditions included in rule premises returned sets with the same general characteristics such as the numbers of rules, their lengths, and supports, but the translation could cause different working conditions, that is, different conflict rates, coverage, and obviously the performance. These elements are given in Table 4. Due to the two considered processing modes adopted for the test sets, dependent and independent, the characteristics related to performance evaluation were listed separately for both types of test sets.
Table 4. Characteristics of rule sets in the discrete domains.
In all discrete domains, the complete sets of rules provided coverage for all test samples, regardless of the transformation mode adapted for the test sets. Although for the majority of cases, the conflict rate was equal to one, there were some exceptions to this rule. For the female writer dataset, they occurred for the Tind and discrete domains obtained by unsupervised equal-frequency binning with the number of bins from four to ten, and for the ToL test sets for both unsupervised discretisation approaches, from duf4 to duf10 and from duw8 to duw10. For M-writers, slightly different patterns emerged: for the Tind test sets, the fractional conflict rate was observed for equal-frequency binning with bins ranging from seven to ten, and for the ToL test sets, the same was detected for equal-width binning with nine or ten bins.
A comparison of performance within the voting strategy resulted in the conclusion that for F-writers and weighted voting, the reference point was reached in the duf7 domain for evaluation with dependently transformed test sets, while for all other conditions, the accuracy was lower than in the continuous domain. In this case, the majority voting always fell below the reference point for both types of test sets. On the other hand, some improved accuracy was recorded for M-writers. For the Tind test sets, both for weighted and simple majority voting applied when conflicts occurred, the performance was better in the duw7 and duw8 domains for the former and in the duw8 and duw10 domains for the latter, and for the ToL test sets in the duf9 and duf10 domains for weighted voting.
The discretisation process returned a more general form of definitions for knowledge patterns discovered, which can be considered beneficial because the risk of overfitting the input data reduced. Transformations affected performance and not necessarily to an advantage. The high numbers of inferred rules reflected on the high values of the conflict rate and suggested that an exploratory analysis of rules and rule filtering can lead to dimensionality reduction and possible improvements. The characteristics of decision making with rule sets subjected to filtering driven by attribute rankings were then studied.

3.2. Operation with Rule Filtering

When rule-based classifiers operated in the continuous domain, only one ranking was used as the ordering controlling the rule filtering procedure, based on real-valued attributes, executed in two directions: forward (RF) and backward (RB). Only one type of test set was employed in the performance evaluation, with two voting strategies resolving conflicts, weighted voting, and simple majority voting. Together, this accounts for four sets of results obtained for each dataset, the female writer dataset (denoted F-R) and the male writer dataset (denoted M-R), with R giving the iteration steps, as displayed in Figure 2.
Figure 2. Performance of rule-based classifiers in the process of rule filtering in the continuous domain, respectively: (a) Weighted voting. (b) Majority voting.
An analysis of patterns of predictions leads to the observation of similarities for both datasets using the same voting strategy but also for processing in the same direction. For the backward search, in the initial steps of discarding rules, the performance was never the best, at most in the middle ranges. Only once sufficiently many rules were rejected did the accuracy improve, with the highest values close to or at the very end of the rule filtering process. In the forward search procedure, the initial iteration steps retrieved relatively few rules, which caused rather poor recognition that was enhanced with more and more rules recalled, but when they became too numerous, the performance degraded. For this direction, the best results could be observed somewhere around the half-way point of the processing path.
Generally, weighted voting was more advantageous to reported performance than simple majority voting, but the differences were more noticeable when more rules were used in the classification. Higher numbers of rules meant that more of them could have lower supports, but by their sheer number, they outvoted stronger rules that were less numerous. For relatively low cardinalities of rule sets, such as recalled in the initial steps of a forward search, the accuracy was either the same or very close for both types of voting. The same was not necessarily true for the ending steps of the backward search, which by the different strategy of retaining rules, caused more of them to be employed in processing until the very last step of filtering.
For all procedures of rule filtering, some improvement over the performance for the entire set of available rules was detected, occurring for noticeably lower numbers of rules. Therefore, this part of the research alone already shows the merits of the adopted methodology. However, the gains were limited mainly to the dimensionality expressed by the cardinalities of the rule sets and their characteristics, while the constituent elementary rules remained unchanged. As a way to modify them further, the translation into discrete domains was also studied in the context of rule filtering.
Each discrete domain was characterised by its own ranking of features, which doubled the number of processing paths. In addition to that, two modes of transformation applied to test sets further doubled the number of performance evaluations and sets of results listed. Therefore, in each domain, the total of 16 groups of records, corresponding to 24 iteration steps, were taken per dataset and studied in categories of voting type and test set type.
Figure 3 includes the results for the discrete domain obtained by application of the supervised Kononenko algorithm (denoted dsK and, respectively, F-dsK and M-dsK) for all four processing paths. Since this discretisation method is supervised and relies on the process of forming intervals on the evaluation of how attributes support the distinction of classes, it can in effect remove some of features from consideration in the discrete space when a single bin is assigned to represent the entire domain. This was the case with the datasets explored. For independent transformations of test sets, different variables were found as single-bin variables due to irregularities in the data, which resulted in generally much degraded performance reported for evaluation with the Tind test sets and entire sets of rules applied in labelling. The ToL test sets, for which discretisation procedures rely on the intervals learnt from the training data, led to better results for both datasets in the case of weighted voting as the conflict resolution strategy, but for simple majority voting only for the male writer datasets, while for F-writers, still, poor accuracy was recorded.
Figure 3. Performance of rule-based classifiers in the process of rule filtering in the dsK domain, respectively: (a) Weighted voting, independently transformed test sets. (b) Majority voting, independently transformed test sets. (c) Weighted voting, dependently transformed test sets. (d) Majority voting, dependently transformed test sets.
Because of the similarities between rankings in the continuous and discrete dsK domain, also trends in performance were close when filtering was executed in the same direction, but with control by the two different rankings. For backward search, there were fewer or smaller differences. For M-writers, identical evaluations were obtained with the Tind test sets at all steps for the RB and DB procedures with weighted and majority voting. For forward processing, more variations could be detected for both datasets.
Each of the two unsupervised discretisation methods used in the research, equal width binning (duw) and equal frequency binning (duf), returned nine data variants due to ranging the number of bins from two to ten. For this kind of transformation, for all attributes processed, the required intervals were formed, so no attributes were removed from considerations as a consequence of the changed representation. Both independently and dependently transformed test sets had the same numbers of intervals defined for the variables, but they were not the same because of different cutpoints, which also in this case resulted in differently evaluated accuracy. To allow for closer observations of trends for all discrete data variants, for each filtering procedure characterised by direction and source of ranking, the performance of rule-based classifiers was shown separately by Figure A1, Figure A2, Figure A3 and Figure A4 included and commented on in the Appendix A.
When rule filtering was based on the rankings obtained for each of the discrete data variants considered, it was reasonable to expect that for both forward and backward directions of processing, more differences in the effectiveness of rule-based classifiers constructed should be visible than when one ranking led the way. However, because of similarities between the rankings, these intuitive expectations were not fully confirmed by the experimental results. Some different patterns and trends were observed, but not so striking as to form a contrast with the accuracy evaluations for the RF and RB procedures. Furthermore, the experimental results do not confirm the superiority of supervised methods over unsupervised algorithms used in discretisation. For the same filtering procedure (the same direction and ranking), the Kononenko method did not cause the representation of attributes to be more beneficial to performance evaluation than unsupervised approaches.
For all procedures, rule filtering proved to be effective because it led to acceptable levels of correct predictions. The patterns of accuracy were similar to those observed in the continuous domain. With some variations around the trends, backward search showed improvement with more and more rejected rules, even to the point of the maximum at the very end, at the last iteration step. Forward selection brought a gradual increase in performance, but then, with more retrieved rules, this was followed by a decrease. Not all processing paths and evaluation ways reached the same level as the maximum detected while filtering rules with conditions on numerical variables, but always some subset of rules worked better than the reference point in the continuous domain, that is, working with the entire set of decision rules.
For all domains and all procedures, basic statistics were calculated, including classification accuracy averaged over all processing steps and standard deviation associated with it. The extrema, maximum and minimum, were also detected. These elements are given in the included tables, in which the preferred best results are marked in bold font. Table 5 describes the operation in the continuous domain, where all procedures are shown together for both female and male writer datasets. Due to the different strategy of rule selection associated with processing directions, for the backward search, noticeably lower standard deviation values showed a much smaller range of recorded accuracy in the iteration steps than for the forward search. On the other hand, it was the latter approach that led to the best performance found in the evaluation with weighted voting in the case of occurring conflicts for both datasets.
Table 5. Characteristics of performance for rule filtering processes executed in the continuous domain.
For discrete domains, due to twice as many filtering procedures, the characteristics were grouped into tables by the specifics of the procedure. Table 6 corresponds to the filtering with backward search and control provided by the ranking in the continuous domain for all variants of discrete data. The results for the same ranking but for the forward direction of rule selection are given in Table 7. Table 8 and Table 9 refer to the characteristics of the rule selection processes based on the rankings obtained within each particular discrete domain, for the backward and forward search directions, respectively.
Table 6. Characteristics of performance for rule filtering processes executed backwards in discrete domains based on ranking in the continuous domain.
Table 7. Characteristics of performance for rule filtering processes executed forward in discrete domains based on ranking in the continuous domain.
Table 8. Characteristics of performance for rule filtering processes executed backwards in discrete domains based on the corresponding ranking in the same domain.
Table 9. Characteristics of performance for rule filtering processes executed forward in discrete domains based on the corresponding ranking in the same domain.
Within each discrete domain, the best results were marked for each characteristic studied. These preferred values can be analysed within each specific rule filtering procedure to learn which form of evaluation produced the best results. They can also be considered the other way round, that is, where, for which procedure, the results were the best. In the backward search based on the ranking obtained in the continuous domain, with the statistics shown in Table 6, for both female and male writer datasets, the majority of preferred best values for the characteristics studied are grouped mainly for evaluations with the test sets transformed based on definitions of intervals learnt from the training data and weighted voting. Some of best values are also present in evaluation by independently processed test sets but also with resolving conflicts by weighting votes of rules. For the female writer dataset, almost all highest values of maximum accuracy were found in this latter approach. When averages of accuracy calculated over the entire filtering path are taken into account, for F-writers, the highest values were observed mainly for evaluation with the ToL test sets, and the standard deviation associated with them was also mostly lowest, showing the relative stability of performance. For M-writers, the preferred Std values occurred mainly for evaluation with the Tind test sets, while favourable averages can be observed in almost the same number of cases for both the Tind and ToL test sets.
The simple majority voting applied as a conflict resolution strategy almost never caused the preferred best values of the characteristics calculated for the RB filtering procedures. There were only five exceptions, one for the female writer dataset and four for the male writer dataset, three times relating to standard deviation and twice to the maximum performance. Very similar patterns were detected for the backward filtering directed by discrete rankings, shown in Table 8, with only one more case added to those marked in the majority voting territory, the highest value of minimum accuracy.
For the forward direction, with statistics shown for a ranking from the continuous domain in Table 7 and Table 9 for the rankings specific to discrete domains, there were many more cases of the best results achieved through simple majority voting, but they were mainly for the category of the best minimal accuracy (highest) and the best (lowest) standard deviation, and still, more advantageous observations were detected for weighted voting. For these procedures, the dominance of evaluation by independently transformed test sets over cases when dependently discretised test sets were employed was also noted for M-writers and both the RF and DF processing, and for F-writers for RF.
Table 7 shows for the female writer dataset a closer grouping of the best results for weighted voting, with almost evenly distributed averages between the evaluation by the Tind and ToL test sets, but the maxima are marked mainly for the dependently discretised test sets. For the male writer dataset, the majority of distinguished entries belong to weighted voting and evaluation by independently transformed test sets.
Due to differences between rankings, fewer repetitions of individual values of characteristics were also noted, even though some patterns and groupings of preferred observations were reminiscent of those visible for filtering relying on ranking mechanism working in the continuous domain. Weighted voting was many times more advantageous than simple majority voting. Furthermore, in the case of F-writers and the backward direction, the application of the ToL test sets caused more favourable evaluations of characteristics with the exception of maximum accuracy, which was often higher for the Tind sets. For the male writer dataset, the highest maxima were always obtained by the ToL test sets. On the other hand, for the two datasets and the forward direction (with characteristics shown in Table 9), more preferred values were in the territory marked by evaluation based on the independently processed test sets.
Observations of performance trends as well as examination of overall statistics calculated for rule filtering processes showed the advantages of the processing adapted to rule sets. Comparison of the results obtained with the reference points led to the conclusion that enhanced accuracy in recognition can be achieved through the proposed transformations. Still, further investigation of conditions where improvement was detected was warranted, in particular when analysed in the perspective of other rule characteristics, such as length or support. These considerations are given in the next section of this paper.

4. Discussion

When an optimised solution is sought, dimensions in the optimisation space need to be clearly defined. In the investigation, two primary descriptive elements were selected: performance and number of rules. The former obviously should be the highest possible, as the classifier should be as effective as possible, and the latter should be the smallest to reduce dimensionality, complexity, and processing time. The form of representation was also taken into account, and discrete domains were preferred over the continuous domain because they guaranteed more general and simpler forms of conditions for interpretation.
The operation of all constructed rule-based classifiers was studied in the context of multiple factors: discretisation approach, ranking leading selection of rules, direction of processing and associated with it the method of rule selection; conflict resolution strategy; mode of transformation adapted for test sets; the number of attributes; the number of rules; and some rule characteristics, such as length, support, coverage, and conflict rate. The best performance recorded for a filtering path is an important characteristic. It can be employed as a stopping criterion for the search procedure. However, the maximum can only be found by examination of the entire set of iteration steps and their results. The number of rules remaining in consideration and the highest ranking position where it occurred are also essential for locating an optimised structure of a rule-based classifier.
For all filtering procedures executed, the best performance cases were selected and are given together with the corresponding describing elements and characteristics in Table 10 for the original continuous domain for both search directions and in Table 11, Table 12, Table 13 and Table 14 for the discrete domains, with each table corresponding to one direction. For the continuous domain, for all characteristics, except the conflict rate, the preferred best values are marked in bold font. In discrete domains, only the best accuracy was marked in this way because other elements often occurred for other entries, and to avoid many repetitions, a more condense presentation was adopted.
Table 10. Best performance and associated characteristics of rule filtering processes executed in the continuous domain.
Table 11. Best performance and associated characteristics of rule filtering processes executed backwards in discrete domains based on ranking in the continuous domain.
Table 12. Best performance and associated characteristics of rule filtering processes executed forward in discrete domains based on ranking in the continuous domain.
Table 13. Best performance and associated characteristics of rule filtering processes executed backwards in discrete domains based on the corresponding ranking in the same domain.
Table 14. Best performance and associated characteristics of rule filtering processes executed forward in discrete domains based on the corresponding ranking in the same domain.
In the continuous domain, as a consequence of rule filtering, both directions produced sets of rules with much reduced cardinalities without degrading the power of the rule-based classifiers and maintaining perfect coverage of test samples. In the optimisation space, a single Pareto point did not exist: the best performance was achieved with higher numbers of rules applied in labelling than the best minima, yet the latter offered some improvement over the reference point. The preferred values of the average length and support also did not accompany the best performance, although again, they were reported for classifiers outperforming the original inducers. The conflict rate was varied and did not show any specific relation to performance. For both datasets, the forward search direction was more beneficial, as indicated by more preferred values marked in this area.
The backward filtering procedure based on the rankings from the continuous domain and applied to discrete spaces (shown in Table 11) was characterised by the detection of the best performance close to the end of the processing. With just a few exceptions (a total of seven cases, six times for the female writer dataset and once for the male writer dataset), for the backward search, the maximum accuracy was almost always reported at the last iteration step, and the cardinalities of the rule sets remaining in considerations were mainly the same. Due to the strategy of rule selection associated with this direction, the numbers of rules left were relatively high compared to the forward direction. Still, the dimensionality reduction was noticeable while at the same time almost always protecting, but often also improving, the power of rule classifiers. The degraded performance was recorded in a few cases for unsupervised discretisation methods defining a low number of bins.
When classifier evaluation was performed with independently transformed test sets, for both conflict resolution strategies, the best results were recorded at the same ranking position, which meant essentially one and the same subset of rules, with the same length or support characteristics. For both procedures based on continuous rankings, for the same ranking position reported for the same search direction, the subset of returned rules must consist of the same elements, with the only differences in representation of conditions in rules due to discretisation procedures. However, such a subset could lead to different evaluations and different conflict rates. The same kind of similarities, but on a lower scale, were also observed for evaluations with the ToL test sets.
The forward search procedures controlled by the continuous rankings (Table 12) showed much more variety in the value of the ranking position and resulting from the number of recalled rules between variants of discrete domains. The conditions most advantageous to performance depended on representation, but in the majority of the observations, they were detected around the half-way of processing, for some cases sooner, while for others later, but mainly where around half of attributes and rules referring to them were recalled. Quite often, the number of rules was much lower than for the backward direction, due to the different strategies of rule selection applied. Also in this case, some lower bin numbers for unsupervised methods led to patterns different from those for other discrete variants. The conflict rate values ranged from zero to one and neither lower nor higher values were closely related to better or lower performance.
These trends were similar to some extent for filtering procedures controlled by attribute rankings obtained for discrete domains, characterised by statistics in Table 13 and Table 14. But then, the increased number of situations was observed where for the backward search, the last step of iteration did not lead to the best performance, but second or even third to last, which translated to a higher number of rules kept. For the forward filtering direction based on individual rankings, there were some repetitions with respect to the most favourable ranking positions, but also more varied results, where the same iteration step (which meant for this direction the same number of selected variables) led to different numbers of recalled rules. This was a direct consequence of applying different rankings to drive the rule retrieval processes.
The analysis from the perspective of details of the classifiers’ evaluation process (consisting of decisions on a type of voting and a type of test set employed) also brought some reflections with respect to the rule filtering procedures understood as direction and a type of ranking. There were some exceptions, but overall, within the results listed for each method of voting and both independently and dependently processed test sets, for the female writer dataset, continuous ranking worked better than discrete rankings, while for the male writer dataset, discrete rankings brought higher evaluations for both filtering directions.
The reverse perspective, with the focus on the evaluation process, leads to the conclusion that weighted voting brought higher accuracy than simple majority voting due to the distribution of rules among supports. When allowed, a larger number of rules with low supports tended to overpower less numerous rules with high supports. If the rule support had a narrower range of values, the situation could be different. Additional processing directed at pruning the rules with the lowest supports could help to change the operating conditions. For the most part, evaluation with the independently discretised test sets could be treated as a conservative evaluation of performance. They offered mainly lower predictions because they represent discrete data models formed on the basis of local set characteristics, not copied from the training sets, as did the dependently transformed sets. The closeness of the latter to the training data explains their better preparation for labelling and the higher accuracy resulting from it.
In the vast majority of cases, the processed sets and subsets of decision rules provided perfect cover for the test sets, but there were some exceptions to this rule. The conditions in which imperfect coverage was reported are presented in Table 15. They are divided into groups corresponding to specifics: direction, discretisation method, and processing step. It is worth noting that imperfect coverage was recorded only for the forward direction used with both types of ranking, and some initial iteration steps, when too few rules were retrieved to match all the test samples. Once more rules were recalled, the cover was ensured, which is why such situation did not occur for the backward search, where many more rules were available until the very last step of the filtering procedure.
Table 15. Cases of imperfect coverage of testing samples detected in the process of rule filtering.
All variants of rule sets that led to the best accuracy of the constructed classifiers were compared to locate conditions of best performance reported for the fewest rules. For the female writer dataset, for the forward filtering procedure based on the ranking in continuous space, the set of 122 rules was recalled in the seventh step, which in the evaluation by the independently processed test sets labelled with weighted voting used in the case of conflicts led to 96.12% classification accuracy while working with data and rule sets discretised by the supervised Kononenko algorithm. In the case of M-writers, the highest classification accuracy was 96.67%. It was recorded in the discrete domain obtained by unsupervised transformations with equal width binning with ten bins, in the forward filtering procedure controlled by the ranking based on this discrete data variant, and with evaluation by independently transformed test sets and weighted voting in the twelfth iteration step that returned 1768 rules.
For majority voting, the conditions for the highest improvement over the reference point were found as follows. For the female writer dataset, in the dsK domain in the forward search direction with filtering driven by the discrete ranking, when in the third iteration step 31 rules were retrieved, the evaluation by the independently transformed test sets returned a classification accuracy of 94.45%. For the male writer dataset, the same conditions were favourable but used a different discretisation method. In the discrete domain obtained by unsupervised equal-frequency binning with six bins, the eighth iteration step of the DF process led to recalling 362 rules that enabled correct classification of 95.00% of samples from the independently translated Tind test sets.
These selected overall best cases improve all important characteristics. In this context, accuracy is treated as the most important because it dictated the selection of a particular subset of rules. If there were some alternatives, other elements could be taken into account. The number of rules is the second most important property, since it offers dimensionality reduction. Then, the quality of the constituent rules should be considered. In this illustrative example, only fractions of rules were in the recalled set, while their average support increased and their average length decreased, which made for rule-classifiers with noticeably better properties and simpler decision-making processes.
The quality of categorical representation obtained after discretisation of the data is heavily dependent on the specificity of the application domain. When transformation is applied to knowledge patterns discovered by exploration of the input space, data mining approaches put their own mark on characteristics, which further influence the results of discretisation processes. The research presented in the paper was data-driven, with experiments carried out in a specific domain of stylometry. However, the extent of investigations, with several discretisation procedures applied, varied processing directions and methods of evaluations of performance, allowed for a wider scope of observations. In the vast majority of filtering paths, some improvement over the reference points was recorded. This improvement could be understood as an enhanced accuracy, but also dimensionality reduction due to decreased cardinalities of rule sets and simplification of interpretability resulting from discretised forms of conditions in decision rules. All of these elements were detected in the rule filtering procedures, separately but also together, which shows the merits of the illustrated methodology.
One of the elements of the general idea behind the described processing is to apply the transformations to the data not before knowledge explorations but after the patterns are detected and stored. Therefore, this approach is limited to the cases where a) the data mining algorithm can operate with sufficient effectiveness in both the continuous and discrete domains, and b) the results from explorations are directly accessible and can be transformed. Another limitation is provided by the number of input features available and the size of the patterns discovered through exploration. If both are too numerous or too large, the described processing can become unfeasible. However, there is no golden rule leading to the selection of the best discretisation method. Trying different approaches on the data and then mining them could be too costly, but within the presented framework, these costs greatly decrease because the most demanding data explorations are carried out only once and then the discretisation is applied. This makes the application of multiple transformation methods possible. The exploratory nature of the methodology shown in this paper also enables a better understanding of the characteristics of the domain under study and of the decision-making processes of rule-based classifiers.

5. Conclusions

As in many other fields and areas, the computer science and machine learning domains face the challenge of managing constantly increasing amounts and complexities of data. This caused processing aimed at simplification to become a widespread and valued trend, which, when effective, facilitates understanding of the nature of space under study, supports better generalisation, and lowers computational and storage requirements. In the research presented in this paper, three different mechanisms dedicated to simplification were combined to observe their influence on the interpretability of decision-making processes of rule-based classifiers.
By relying on decision rules in the recognition task, the path from the premise to the conclusion is laid bare, transparent, and easy to follow. However, when the number of rules is high and the conditions refer to continuous values, the execution of labelling samples becomes more complicated, while the rules could describe the training data too closely to be general and simply explainable. In the illustrated research methodology, a feature selection algorithm in the form of attribute ranking, discretisation applied to data and discovered patterns, and rule filtering were used together, and the impact of these approaches was examined in the context of the extent of simplification achieved.
The investigations were carried out in the stylometric domain for the task of authorship attribution approached as classification. The selected stylometric features of lexical and syntactic type resulted in the continuous input space that was subjected to mining with the Dominance-Based Rough Set Approach. In the next step, both the input space and the discovered knowledge patterns represented by the sets of induced decision rules were discretised by selected algorithms. Then, based on the rankings of features obtained for all data variants, continuous and discrete, the sets of rules were filtered with the forward and backward search procedures. The performance of rule-based classifiers was evaluated with consideration of two voting strategies for resolving occurring conflicts, and two modes of transformation adapted in transformation of test sets.
The experiments brought observations on the influence of applied forms of transformations on the characteristics of rule sets and trends in performance occurring for varying conditions. An analysis of the results led to the discovery of many cases of improvement over the reference point in the continuous domain and entire sets of available rules, evidenced by sets of rules with noticeably decreased cardinalities, with simplified conditions due to categorical representation, and offering at least the same or even enhanced performance, thereby leading to simpler interpretability. This showed the merits of the methodology presented in the paper.
The adopted processing steps, with discretisation following data mining, can be used not only for sets of induced decision rules but whenever the patterns detected during knowledge exploration are directly accessible. On the other hand, the procedure of rule filtering can be performed based on other criteria, for other strategies of rule selection, and in many different directions. These considerations indicate some of the paths available for future research.

Funding

This research received no external funding.

Data Availability Statement

Data available upon request.

Acknowledgments

The research described in the paper was performed at the Silesian University of Technology, Gliwice, Poland, within the statutory project of the Department of Computer Graphics, Vision and Digital Systems (RAU-6, 2026).

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
F-writersFemale writer dataset
M-writersMale writer dataset
RFDirection of processing for rule filtering, forward and based on ranking for the original datasets with real-valued attributes
RBDirection of processing for rule filtering, backward and based on ranking for the original datasets with real-valued attributes
DFDirection of processing for rule filtering, forward and based on ranking for the datasets discretised by some algorithm
DBDirection of processing for rule filtering, backward and based on ranking for the datasets discretised by some algorithm
dsKDiscretised by the supervised Kononenko method
dufDiscretised by the unsupervised equal frequency binning algorithm
duwDiscretised by the unsupervised equal width binning algorithm
F-R/M-RFemale/Male writer dataset represented in the continuous domain
F-dsK/M-dsKFemale/Male writer dataset represented in the discrete domain obtained by supervised Kononenko algorithm
F-duf/M-dufFemale/Male writer dataset represented in the discrete domain obtained by unsupervised equal frequency binning algorithm
F-duw/M-duwFemale/Male writer dataset represented in the discrete domain obtained by unsupervised equal width binning algorithm
TindTest sets discretised independently on other sets
ToLTest sets discretised dependently on train sets by imposing definitions of intervals previously learnt
WIn relation to conflict resolution strategy, weighted voting
MIn relation to conflict resolution strategy, simple majority voting

References

  1. Theodoridis, S.; Koutroumbas, K. Pattern Recognition, 4th ed.; Academic Press: Cambridge, MA, USA, 2008. [Google Scholar]
  2. Guyon, I.; Elisseeff, A. An Introduction to Variable and Feature Selection. J. Mach. Learn. Res. 2003, 3, 1157–1182. [Google Scholar]
  3. Blum, A.L.; Langley, P. Selection of relevant features and examples in machine learning. Artif. Intell. 1997, 97, 245–271. [Google Scholar] [CrossRef] [Scilit]
  4. Dash, R.; Paramguru, R.L.; Dash, R. Comparative analysis of supervised and unsupervised discretization techniques. Int. J. Adv. Sci. Technol. 2011, 2, 29–37. [Google Scholar] [CrossRef] [Scilit]
  5. Stańczyk, U.; Zielosko, B.; Baron, G. Significance of Single-Interval Discrete Attributes: Case Study on Two-Level Discretisation. Appl. Sci. 2024, 14, 4088. [Google Scholar] [CrossRef] [Scilit]
  6. Stańczyk, U.; Zielosko, B.; Baron, G. Discretisation of conditions in decision rules induced for continuous data. PLoS ONE 2020, 15, e0231788. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Lindgren, T. Methods for Rule Conflict Resolution. In Machine Learning: ECML 2004; Boulicaut, J., Esposito, F., Giannotti, F., Pedreschi, D., Eds.; Lecture Notes in Computer Sicence; Springer: Berlin/Heidelberg, Germany, 2004; Volume 3201, pp. 262–273. [Google Scholar]
  8. Fürnkranz, J.; Gamberger, D.; Lavrač, N. Pruning of Rules and Rule Sets. In Foundations of Rule Learning; Springer: Berlin/Heidelberg, Germany, 2012; pp. 187–216. [Google Scholar]
  9. He, X.; Lashkari, A.H.; Vombatkere, N.; Sharma, D.P. Authorship Attribution Methods, Challenges, and Future Research Directions: A Comprehensive Survey. Information 2024, 15, 131. [Google Scholar] [CrossRef] [Scilit]
  10. Wu, H.; Zhang, Z.; Wu, Q. Exploring syntactic and semantic features for authorship attribution. Appl. Soft Comput. 2021, 111, 107815. [Google Scholar] [CrossRef] [Scilit]
  11. Słowiński, R.; Greco, S.; Matarazzo, B. Dominance-based rough set approach to reasoning about ordinal data. In Rough Sets and Emerging Intelligent Systems Pardigms; Kryszkiewicz, M., Peters, J., Rybiński, H., Skowron, A., Eds.; Lecture Notes in Computer Science; Springer: Berlin, Germany, 2007; Volume 4585, pp. 5–11. [Google Scholar]
  12. Pawlak, Z. Rough sets and intelligent data analysis. Inf. Sci. 2002, 147, 1–12. [Google Scholar] [CrossRef] [Scilit]
  13. Kononenko, I. On Biases in Estimating Multi-valued Attributes. In Proceedings of the 14th International Joint Conference on Artificial Intelligence IJCAI’95, Montreal, QC, Canada, 20–25 August 1995; Volume 2, pp. 1034–1040. [Google Scholar]
  14. Stańczyk, U. Simplification Oriented Data and Pattern Transformations vs. Attribute Importance and Rule-Based Classifier Performance. In Emerging Challenges in Intelligent Management Information Systems, Proceedings of the 28th European Conference on Artificial Intelligence ECAI 2025-IMIS Workshop, Volume 1; Hernes, M., Walaszczyk, E., Rot, A., Eds.; Lecture Notes in Networks and Systems; Springer Nature: Cham, Switzerland, 2026; Volume 1767, pp. 96–109. [Google Scholar]
  15. Sokol, K.; Flach, P. Interpretable representations in explainable AI: From theory to practice. Datamining Knowl. Discov. 2024, 38, 3102–3140. [Google Scholar] [CrossRef] [Scilit]
  16. Cios, K.J.; Pedrycz, W.; Świniarski, R.W.; Kurgan, L. Data Mining: A Knowledge Discovery Approach; Springer: New York, NY, USA, 2007. [Google Scholar]
  17. Bruha, I.; Tkadlec, J. Rule quality for multiple-rule classifier: Empirical expertise and theoretical methodology. Intell. Data Anal. 2003, 7, 99–124. [Google Scholar] [CrossRef] [Scilit]
  18. Grzymała-Busse, J.W. Three Strategies to Rule Induction from Data with Numerical Attributes. In Transactions on Rough Sets II; Peters, J.F., Skowron, A., Dubois, D., Grzymała-Busse, J.W., Inuiguchi, M., Eds.; Springer: Berlin/Heidelberg, Germany, 2004; pp. 54–62. [Google Scholar]
  19. Lindgren, T.; Boström, H. Resolving Rule Conflicts with Double Induction. Intell. Data Anal. 2004, 8, 457–468. [Google Scholar] [CrossRef] [Scilit]
  20. Zielosko, B. Application of Dynamic Programming Approach to Optimization of Association Rules Relative to Coverage and Length. Fundam. Informaticae 2016, 148, 87–105. [Google Scholar] [CrossRef] [Scilit]
  21. Cutler, A.; Cutler, D.R.; Stevens, J.R. Random Forests. In Ensemble Machine Learning: Methods and Applications; Zhang, C., Ma, Y., Eds.; Springer: New York, NY, USA, 2012; pp. 157–175. [Google Scholar]
  22. Greco, S.; Matarazzo, B.; Słowiński, R. Dominance-Based Rough Set Approach as a proper way of handling graduality in rough set theory. Trans. Rough Sets VII 2007, 4400, 36–52. [Google Scholar] [CrossRef] [Scilit]
  23. Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd ed.; Springer Series in Statistics; Springer: Berlin/Heidelberg, Germany, 2009. [Google Scholar]
  24. Stefanowski, J. On Combined Classifiers, Rule Induction and Rough Sets. In Transactions on Rough Sets VI: Commemorating the Life and Work of Zdzisław Pawlak, Part I; Peters, J.F., Skowron, A., Düntsch, I., Grzymała-Busse, J., Orłowska, E., Polkowski, L., Eds.; Springer: Berlin/Heidelberg, Germany, 2007; pp. 329–350. [Google Scholar]
  25. Wróbel, L.; Sikora, M.; Michalak, M. Rule Quality Measures Settings in Classification, Regression and Survival Rule Induction—An Empirical Approach. Fundam. Informaticae 2016, 149, 419–449. [Google Scholar] [CrossRef] [Scilit]
  26. Stańczyk, U. Selection of decision rules based on attribute ranking. J. Intell. Fuzzy Syst. 2015, 29, 899–915. [Google Scholar] [CrossRef] [Scilit]
  27. Stańczyk, U. Pruning Decision Rules by Reduct-Based Weighting and Ranking of Features. Entropy 2022, 24, 1602. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Huan, L.; Farhad, H.; Lim, T.; Manoranjan, D. Discretization: An Enabling Technique. Data Min. Knowl. Discov. 2002, 6, 393–423. [Google Scholar] [CrossRef] [Scilit]
  29. Quinlan, J.R.; Rivest, R.L. Inferring decision trees using the minimum description length principle. Inf. Comput. 1989, 80, 227–248. [Google Scholar] [CrossRef] [Scilit]
  30. de Sá, C.R.; Soares, C.; Knobbe, A. Entropy-based discretization methods for ranking data. Inf. Sci. 2016, 329, 921–936. [Google Scholar] [CrossRef] [Scilit]
  31. Fayyad, U.; Irani, K. Multi-interval discretization of continuous valued attributes for classification learning. In Proceedings of the 13th International Joint Conference on Artificial Intelligence, Chambéry, France, 28 August–3 September 1993; Volume 2, pp. 1022–1027. [Google Scholar]
  32. Dougherty, J.; Kohavi, R.; Sahami, M. Supervised and Unsupervised Discretization of Continuous Features. In Proceedings of the Machine Learning Proceedings 1995: Proceedings of the 12th International Conference on Machine Learning; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1995; pp. 194–202. [Google Scholar]
  33. Das, S.; Datta, S.; Chaudhuri, B.B. Handling data irregularities in classification: Foundations, trends, and future challenges. Pattern Recognit. 2018, 81, 674–693. [Google Scholar] [CrossRef] [Scilit]
  34. Baron, G.; Harezlak, K. On Approaches to Discretization of Datasets Used for Evaluation of Decision Systems. In Intelligent Decision Technologies 2016: Proceedings of the 8th KES International Conference on Intelligent Decision Technologies (KES-IDT 2016)–Part II; Czarnowski, I., Caballero, M.A., Howlett, J.R., Jain, C.L., Eds.; Springer International Publishing: Cham, Switzerland, 2016; pp. 149–159. [Google Scholar]
  35. Stańczyk, U.; Zielosko, B. Data irregularities in discretisation of test sets used for evaluation of classification systems: A case study on authorship attribution. Bull. Pol. Acad. Sci. Tech. Sci. 2021, 69, 1–12. [Google Scholar] [CrossRef] [Scilit]
  36. Shen, Q. Rough feature selection for intelligent classifiers. Trans. Rough Sets 2006, 7, 244–255. [Google Scholar]
  37. Liu, H.; Motoda, H. Computational Methods of Feature Selection; CRC Press: Boca Raton, FL, USA, 2007. [Google Scholar]
  38. Ferreira, A.; Figueiredo, M. Efficient feature selection filters for high-dimensional data. Pattern Recognit. Lett. 2012, 33, 1794–1804. [Google Scholar] [CrossRef] [Scilit]
  39. Mansoori, E. Using statistical measures for feature ranking. Int. J. Pattern Recognit. Artifficial Intell. 2013, 27, 1350003-14. [Google Scholar] [CrossRef] [Scilit]
  40. Kononenko, I. Estimating attributes: Analysis and extensions of RELIEF. In Proceedings of the Machine Learning: ECML-94; Bergadano, F., De Raedt, L., Eds.; LNCS; Springer: Berlin/Heidelberg, Germany, 1994; Volume 784, pp. 171–182. [Google Scholar]
  41. Novaković, J.; Strbac, P.; Bulatović, D. Toward optimal feature selection using ranking methods and classification algorithms. Yugosl. J. Oper. Res. 2011, 21, 119–135. [Google Scholar] [CrossRef] [Scilit]
  42. eMka System—A Rule System for Multicriteria Decision Support Integrating Dominance Relation with Rough Approximation. Laboratory of Intelligent Decision Support Systems. Available online: http://www-idss.cs.put.poznan.pl/ (accessed on 30 May 2026).
  43. Hall, M.; Frank, E.; Holmes, G.; Pfahringer, B.; Reutemann, P.; Witten, I.H. The WEKA data mining software: An update. Sigkdd Explor. 2009, 11, 10–18. [Google Scholar] [CrossRef] [Scilit]
  44. Savoy, J. Machine Learning Methods for Stylometry: Authorship Attribution and Author Profiling; Springer: Berlin/Heidelberg, Germany, 2020. [Google Scholar]
  45. Zhao, Y.; Zobel, J. Searching with Style: Authorship Attribution in Classic Literature. In Proceedings of the Thirtieth Australasian Conference on Computer Science; ACSC ’07; Australian Computer Society, Inc.: Darlinghurst, Australia, 2007; Volume 62, pp. 59–68. [Google Scholar]
  46. Zhao, Y.; Zobel, J. Effective and Scalable Authorship Attribution Using Function Words. In Proceedings of the Information Retrieval Technology; Lee, G.G., Yamada, A., Meng, H., Myaeng, S.H., Eds.; Springer: Berlin/Heidelberg, Germany, 2005; pp. 174–189. [Google Scholar]
  47. Kalaivani, K.; Kuppuswami, S. Exploring the use of syntactic dependency features for document-level sentiment classification. Bull. Pol. Acad. Sci. Tech. Sci. 2019, 67, 339–347. [Google Scholar] [CrossRef] [Scilit]
  48. Holte, R. Very simple classification rules perform well on most commonly used datasets. Mach. Learn. 1993, 11, 63–91. [Google Scholar] [CrossRef] [Scilit]
  49. Stąpor, K.; Ksieniewicz, P.; García, S.; Woźniak, M. How to design the fair experimental classifier evaluation. Appl. Soft Comput. 2021, 104, 107219. [Google Scholar] [CrossRef] [Scilit]
  50. Wong, T.T. Performance evaluation of classification algorithms by k-fold and leave-one-out cross validation. Pattern Recognit. 2015, 48, 2839–2846. [Google Scholar] [CrossRef] [Scilit]
  51. Baron, G.; Stańczyk, U. Standard vs. non-standard cross-validation: Evaluation of performance in a space with structured distribution of datapoints. In Knowledge-Based and Intelligent Information & Engineering Systems: Proceedings of the 25th International Conference KES-2021, Szczecin, Poland, 8–10 September 2021; Wątróbski, J., Salabun, W., Toro, C., Zanni-Merk, C., Howlett, R.J., Jain, L.C., Eds.; Procedia Computer Science; Elsevier: Amsterdam, The Netherlands, 2021; Volume 192, pp. 1245–1254. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.