Hostname: page-component-74656f9884-c52kr Total loading time: 0 Render date: 2026-11-07T13:27:16.414Z Has data issue: false hasContentIssue false

Discretization as the enabling technique for the Naïve Bayes and semi-Naïve Bayes-based classification

Published online by Cambridge University Press:  01 December 2010

Marcin J. Mizianty*
Affiliation:
Department of Electrical and Computer Engineering, University of Alberta, Edmonton, Canada; e-mail: mizianty@ualberta.ca, lkurgan@ece.ualberta.ca
Lukasz A. Kurgan*
Affiliation:
Department of Electrical and Computer Engineering, University of Alberta, Edmonton, Canada; e-mail: mizianty@ualberta.ca, lkurgan@ece.ualberta.ca
Marek R. Ogiela*
Affiliation:
Bio-cybernetics Laboratory, Institute of Automatics, AGH University of Science and Technology, Krakow, Poland; e-mail: mogiela@agh.edu.pl
Rights & Permissions [Opens in a new window]

Abstract

Current classification problems that concern data sets of large and increasing size require scalable classification algorithms. In this study, we concentrate on several scalable, linear complexity classifiers that include one of the top 10 voted data mining methods, Naïve Bayes (NB), and several recently proposed semi-NB classifiers. These algorithms perform front-end discretization of the continuous features since by design they work only with nominal or discrete features. We address the lack of studies that investigate the benefits and drawbacks of discretization in the context of the subsequent classification. Our comprehensive empirical study considers 12 discretizers (two unsupervised and 10 supervised), seven classifiers (two classical NB and five semi-NB), and 16 data sets. We investigate the scalability of the discretizers and show that the fastest supervised discretizers fast class-attribute interdependency maximization (FCAIM), class-attribute interdependency maximization (CAIM), and information entropy maximization (IEM) provide discretization schemes with the highest overall quality. We show that discretization improves the classification accuracy when compared against the two classical methods, NB and Flexible Naïve Bayes (FNB), executed on the raw data. The choice of the discretization algorithm impacts the significance of the improvements. The MODL, FCAIM, and CAIM methods provide statistically significant improvements, while the IEM, Class-attribute contingency coefficient (CACC), and Khiops discretizers provide moderate improvements. The most accurate classification models are generated by the Averaged one-dependence estimators (AODEsr) classifier followed by AODE and HNB (Hidden Naïve Bayes). AODEsr run on data discretized with MODL, FCAIM, and CAIM provides statistically significantly better accuracies than both the classical NB methods. The worst results are obtained with the NB, FNB, and LBR (Lazy Bayes rule) classifiers. We show that although the time to build the discretization scheme could be longer than the time to train the classifier, the completion of the entire process (to discretize data, compute the classifier, and predict test instances) is often faster than the NB-based classification of the continuous instances. This is because the time to classify test instances is an important factor that is positively influenced by discretization. The biggest positive influence, both on the accuracy and the classification time, is associated with the MODL, FCAIM, and CAIM algorithms.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2010
Figure 0

Table 1 Two-dimensional quanta matrix for attribute F and discretization scheme D where qir is the number of training instances with i-th class label which are in r-th interval, Mi+ is the number of all training instancess with i-th class label, and M+r corresponds to the number of all training instancess in r-th interval. two-dimensional quanta matrix for attribute F and discretization scheme D where qir is the number of training instances with i-th class label which are in r-th interval, Mi+ is the number of all training instancess with i-th class label, and M+r corresponds to the number of all training instancess in r-th interval

Figure 1

Table 2 Comparison of the 12 discretization algorithms used in the research

Figure 2

Table 3 Comparison and main characteristics of the nine considered Naïve Bayes and semi-Naïve Bayes classifiers. k is the number of classes, t is the number of training instances, n is the number of attributes, and v is the average number of distinct values for an attribute; tr stands for training and cl stands for classification

Figure 3

Table 4 Benchmark data sets used in the experiments

Figure 4

Table 5 The average CAIR values associated with the discretization performed by the 12 discretization algorithms on the 16 benchmark data sets; higher CAIR value indicates better discretization scheme. The values in round brackets indicate standard deviation (over the 10-folds). The values in third row show rank of a given discretization algorithm for a given data set. Values in bold indicate the best results for a given data set. Last column shows average rank of a given algorithm over all data sets. Abbreviations for data set names can be found in Table 4

Figure 5

Table 6 The average Entropy values associated with the discretization performed by the twelve discretization algorithms on the 16 benchmark datasets; lower entropy value corresponds to better discretization scheme. The values in round brackets indicate standard deviation (over the 10-folds). The values in third row show rank of a given discretization algorithm for a given data set. Values in bold indicate the best results for a given data set. Last column shows average rank of a given algorithm scored over all data sets. Abbreviations for data set names can be found in Table 4

Figure 6

Table 7 The average running time (ms) associated with the discretization performed by the 12 discretization algorithms on the 16 benchmark data sets. The values in round brackets indicate standard deviation (over the 10-folds). The values in third row show rank of a given discretization algorithm for a given data set. Bolded values indicate the best results for a given data set. Last column shows average rank of a given algorithm scored over all data sets. Abbreviations for data set names can be found in Table 4

Figure 7

Table 8 The average number of intervals for a continuous feature associated with the discretization performed by the 12 discretization algorithms on the 16 benchmark data sets. The values in round brackets indicate standard deviation (over the 10-folds). The values in third row show rank of a given discretization algorithm for a given data set. Values in bold indicate the smallest number of intervals for a given data set. Last column shows average rank of a given algorithm scored over all data sets. Abbreviations for data set names can be found in Table 4

Figure 8

Figure 1 Graphical representation of the Nemenyi test performed for results obtained by NB and FNB run on the 16 original data sets. The results for the Naïve Bayes, LBR, AODE, HNB, WAODE, and AODEsr classifiers are shown in panels (a, b, c, d, e), and (f), respectively, and they concern runs on the 16 data sets discretized by the 12 discretization algorithms. The best result is obtained by the setup with the lowest rank; CD is the critical value which determines whether different setups are statistically different. The sets of classifiers that are not significantly different are shown using the horizontal lines. The considered setups are shown in the x:y form where x denotes a classifier and y denotes a discretization method; abbreviations for x and y can be found in Tables 2 and 3, respectively. O denotes the original (raw) data

Figure 9

Figure 2 Graphical representation of the Nemenyi test performed for results obtained by NB and FNB run on the 16 original data sets, and the results for the 6 classifiers run on the 16 data sets discretized by the 12 discretization algorithms. The best result is obtained by the setup with the lowest rank; CD is the critical value which determines whether different setups are statistically different. The sets of classifiers that are not significantly different are shown using horizontal lines. The considered setups are shown in the x:y form where x denotes a classifier and y denotes a discretization method; abbreviations for x and y can be found in Tables 3 and 2, respectively. O denotes the original (raw) data

Figure 10

Table 9 Number of wins, draws, and losses, respectively, achieved by a setup in a given row when compared against all setups (using all discretization methods) for a given classifier shown in the column. The setups include NB or FNB classifier run on the 16 raw data sets and each of the six classifiers run on the 16 data sets discretized by each of the 12 discretization algorithms. Bolded scores show WDLC scores greater than 0.2; underlined scores correspond to WDLC scores smaller than −0.2. Gray shading indicates comparison between setups that use the same classifier. The last column contains the aggregated, over all other setups, scores for a given setup. Abbreviations for algorithms and classifiers names can be found in Tables 2 and 3, respectively

Figure 11

Figure 3 WDLC values for all considered setups. The values are based on comparison with all other setups except the setups that include the same classifier. The setups include NB or FNB executed on the 16 raw data sets and each of the 6 classifiers on the 16 data sets discretized by each of the 12 algorithms. Abbreviations for algorithms and classifier names can be found in Tables 2 and 3, respectively

Figure 12

Figure 4 WDLC values for all considered setups. The values are based on comparison among setups that are based on the same classifier. The setups include NB or FNB executed on the 16 raw data sets and each of the six classifiers on the 16 data sets discretized by each of the 12 algorithms. Abbreviations for algorithms and classifier names can be found in Tables 2 and 3, respectively

Figure 13

Figure 5 Time plots for the glass, hypo and pen data sets are shown in panels (a, b), and (c), respectively. The y axis gives the time in milliseconds; the x axis lists all setups including NB and FNB executed on the raw data and the six classifiers run on the data discretized by each of the 12 algorithms. Black bars show the time of the discretization process on the training fold; white color represents the time to train the classification model on the training fold; gray color denotes the time needed to classify the test fold. Training and test folds have the same number of instances. Abbreviations for algorithms and classifier names can be found in Tables 2 and 3, respectively