<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <pub-date>
        <year>1998</year>
      </pub-date>
      <volume>5</volume>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>While the term robustness is ambiguous in our case, we refer to the de nition of [RM14], where robustness is
de ned as the model's ability to handle data with noise or missing values.</p>
      <p>The proposed method can be seen as an extension of the missing values strategy of the classical C4.5 DT induction
algorithm. C4.5 weights the information gain with the ratio of non-missing data values for a certain attribute
and assumes the examples with missing values have no contribution to the information gain. We extend this by
imputing the missing values using a k-NN algorithm and compute the information gain of the imputed values
and add it to the overall information gain, which now becomes a weighted sum of the gain achieved by examples
with non-missing and examples with imputed data values. We can show that this improved information gain
computation consistently improves the performance of DT learning on a variety of datasets.
In the following, we will introduce to the background of the proposed approach in Section 2. In Section 3 the
related work to our approach is presented. Subsequently, we will de ne the proposed method in Section 4 and
present the empirical evaluation in Section 5. Finally, we conclude this paper in Section 6.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>We base our work on the following problem de nition. Let D be a dataset that consists of examples that are
represented by the vector (x1; ; xn; y), where xi are values provided by the attributes Ai 2 A and y 2 C is the
class label. Further, r : A ! [0; 1] where r(Ai) is the probability that the attribute will produce a value at any
point in time.</p>
      <p>In the following, we will explain missing data and the mechanisms that can be behind it as well as brie y
introduce the C4.5 algorithm in, which we embed our proposed criterion.
2.1</p>
      <p>Missing Data
Missing data is a common occurrence in datasets, based on the domain there may be various reasons and in some
cases it is also anticipated that there will be missing data [HBB+98]. [LR19] identi ed three mechanisms that
cause the missing of data: Missing Completely at Random (MCAR), Missing at Random (MAR) and Missing
Not at Random (MNAR). Based on the mechanism that causes the missing of data, di erent methods can be
applied to impute the data that is missing. In our case, we only consider MCAR, which means that there is no
relationship between the cause for the missing of data and their values.</p>
      <p>A lot of research has been attributed to the handling of missing data. Depending on how much data is available
one naive way of dealing with missing data is to discard the examples that contain missing data [End10]. However,
a more sophisticated approach is to impute the values either by a simple method like mean imputation or a more
sophisticated method like model based imputation. In the case of mean imputation [Zha16], every missing value
of an attribute Ai is replaced by the mean of that attribute Ai. Because there is only a single value used for each
attribute with missing data, this kind of method is referred to as single imputation. While the mean imputation
is bene cial in terms of not in uencing the mean of the attribute, the true variance of Ai is underestimated. An
example for a model based imputation is k-NN imputation [TCS+01]. Hereby, every occurrence of missing data,
receives a di erent value, hence called multiple imputation. A k-NN imputation works by using the mean of the
k nearest neighbors of an example. The nearest neighbors are determined by calculating the distance to other
examples, based on the available values in other attributes of a given example.
2.2</p>
      <p>Decision Tree Induction
We embed our proposed criterion in the general idea of the C4.5 Algorithm [Qui87, Qui86] for DT induction,
which is shown in Algorithm 1. In the following, we will brie y explain the relevant parts of how C4.5 handles
missing data during the induction and at prediction time.
2.2.1</p>
      <p>Induction with C4.5
As shown in Algorithm 1, the induction of a DT in the C4.5 algorithm follows a divide and conquer strategy.
Given the dataset D, the algorithm iterates over every attribute Ai 2 A and searches for the split value xsv,
where the impurity of the resulting subsets Di 2 D is minimized according to a given criterion. This step is
repeated on the resulting subsets Di until a stopping criterion is met. Possible stopping criteria are that the
resulting subset is pure or that there are less than two instances left in the subset.</p>
      <p>Based on this basic DT induction algorithm, [Qui89] furthermore proposed to make adjustments to be able to
handle missing data. When having missing data present during the induction of a DT two problems arise. The
Algorithm 1 Induce Decision Tree
Require: A labeled dataset D, reliabilities r
. For example: D is pure or jDj &lt; 2
rst problem is concerned with the treatment of missing data when computing the optimal split and the second
problem is concerned with the propagation of the examples that contain missing values in the selected attribute
of the split. For the rst problem, it was proposed to calculate the information gain on the examples with no
missing data and multiply it with the reliability of the attribute to account for the missing data. In the given
Algorithm 1, the criterion used in line 9 would be r(Ai) inf ormation gain. The second problem is addressed
by reducing the weights for those examples where the value of the chosen attribute Ai is missing. This is done
proportionally to the sum of the weights of the resulting subsets based on the chosen split.
2.2.2</p>
      <p>Prediction with C4.5
Given a DT model and an example with no missing data the prediction is straight forward. Based on the rule
in every decision node of the tree, we follow the nodes of the tree according to the values of the example until
we reach a leaf, which then gives us the class distribution that reached this node during the DT induction.
However, given that the value of the example is missing for the attribute of the rule in a decision node, the C4.5
strategy to handle this issue is to propagate the example to all successive decision nodes and then weight the
class distributions proportionally to the weights of the splits.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Related Work</title>
      <p>In this section we present the related work of our approach. However, as we already mentioned the C4.5 algorithm
in Section 2, we will not mention it here again.</p>
      <p>In [Fri76], the rst idea of how to deal with missing data in DTs was introduced. During the induction of the
DT, they propose to ignore the samples with missing values for an attribute and calculate the impurity reduction
only based on those examples that have values present for a given attribute. Once the split is chosen, the samples
with missing values in the chosen attribute are then passed down to both child nodes. Another rather trivial
method was used in [CN89]. In this paper, the most common attribute value was used for imputation in an
attribute. Following this, they apply their proposed learning algorithm to induce the DT.
Another, DT induction algorithm that can handle missing data is the so called lazy decision tree [FKY96].
Hereby, the DT is induced on-the- y, based on the attributes that have no missing values at prediction time.
The apparent downside of this approach is that it is slow in the inference because the DT is learned just in time
with the arrival of the example.</p>
      <p>In [BFOS84], they propose to use a so called surrogate split. Hereby a primary split is calculated for a given
node, based on this primary split, a list of surrogate splits is calculated and ranked based on the fact of how
closely they resemble the distribution of the primary split. If during prediction time, the value for the primary
split is missing, the algorithm falls back to the list of surrogate splits. According to [Ste09], the CART algorithm
later adapted the mechanisms of C4.5 to handle missing data.</p>
      <p>The way of dealing with missing data of [Loh09] is, that all non-categorical values are sent to the left node, but
if enough missing data is present in the data the algorithm may use the missing of the value as a value to split
upon. If data is missing during prediction time, the data is classi ed according to the majority rule.
An approach, designed to handle MAR data in the DT induction is introduced in [BR18]. In this paper, the
authors present a method called BEST (Branch-Exclusive-Splits Trees). Hereby, only attributes are selected that
have no missing data at the current node. However, as the partitioning of the data progresses, regions with no
missing data will appear that could not be considered beforehand.</p>
      <p>In [TJH08] an approach called MIA is introduced. The authors state that the MIA can be plugged into any DT
induction algorithm regardless of splitting, stopping or pruning rules. Based on MIA, there are three possible
ways to split when missing data is present. Either the examples with missing data are included on the left side
of the split, the examples with missing data are included on the right side of the split, or a split is made on if
data is missing or not.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Expected Information Gain</title>
      <p>Given a DT induction algorithm such as C4.5, we propose a novel criteria that can be used to determine the
optimal split for a DT, in case missing data is present. The name of the proposed criterion is called Expected
Information Gain (EIG). In the following we will de ne EIG and the formulas on which EIG is grounded.
De nition 1 (Entropy) Let '(y) be the weight function, then the Weighted Entropy of a dataset D is given by
H(D) =</p>
      <p>X '(y)P (y) log2P (y)
y2C
Let D be a dataset and D(Ai;xi) D the subset of D with Ai = xi. A weight function is of D and D(Ai;xi) is
given by '. The conditional Entropy of a dataset given information from Attribute Ai is de ned for categorical
attributes as</p>
      <p>H(DjAi) =</p>
      <p>X
xi2Ai
'(D(Ai;xi))</p>
      <p>'(D)
and given a split value xsv for continuous attributes</p>
      <p>H(D(Ai;xi))
'(D(Ai;xi&gt;xsv))</p>
      <p>'(D)
H(DjAi) =
'(D(Ai;xi xsv))
'(D)</p>
      <p>H(D(Ai;xi xsv)) +</p>
      <p>H(D(Ai;xi&gt;xsv))
In our approach we rely on the weighted entropy to measure the impurity of a given subset of the data. The
need for using the weighted entropy, instead of the normal entropy, arises from the propagation of the examples
with missing values. Due to this propagation the weights are not equal for all examples and therefore need to
be taken into account.</p>
      <p>De nition 2 (Information Gain) Let H(D) and H(DjAi) be the Entropy and Conditional Entropy as de ned
above. The Information Gain associated with a Attribute Ai is de ned as</p>
      <p>IG(D; Ai) = H(D)</p>
      <p>H(DjAi)
For the information gain we follow the well known de nition, where the conditional entropy of a possible split
is subtracted from the entropy that is present in the current subset of the data. Based on these de nitions, we
can now de ne the Expected Information Gain.</p>
      <p>De nition 3 (Expected Information Gain) Let IG(D; Ai) be the information gain associated with attribute
Ai as de ned above and r(Ai) the reliability of Ai, then the Expected Information Gain of Ai is de ned as
EIG(D; Ai) = r(Ai) IG(D; Ainot missing) + (1
r(Ai)) IG(D; Aiimputed)
The EIG is made up of two terms, the rst term is the information gain applied to the subset of the dataset at the
current decision node where no data is missing. In the second term of the formula, the information gain function
is applied to the subset of the dataset where data was missing originally for attribute Ai, but was imputed by a
given multiple imputation method, such as k-NN imputation. Given the DT induction algorithm in Algorithm 1,
the EIG would be used in line 9 and replaces the initial idea of C4.5 of multiplying the Information Gain of the
dataset with the reliability of the attribute. The reliability of an attribute r(Ai), is measured as the percentage
of missing data in that attribute Ai.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Evaluation</title>
      <p>We use six datasets from the UCI Machine Learning Repository and the synthetic data generation
make classification from scikit learn with standard parameters to evaluate the performance of the proposed
EIG. In our implementation we use a binary decision tree1. Therefore, all non-binary categorical features in the
datasets are one-hot encoded. In the evaluation, the learning is always performed on datasets with missing data,
i.e. the training data has missing data. However, for the test set we accounted for three di erent scenarios, i.e.
test set has no missing data, test set has missing data, and the missing data in the test set is imputed. In the
third case, a k-NN imputer is tted on the training set and then used on the test set to ll the missing data. The
missing data is introduced randomly to the datasets, meaning that every feature has about the same probability
of having missing data as the others. We hereby evaluate in a range from 5% to 95%, using steps of 5%. For
every percentage of missing data, the missing data is randomly generated ve times and for each run we use a
5-fold strati ed cross validation.</p>
      <p>In the experiments, we consider two variants of the proposed EIG and three baselines. The two EIG variants
make use of the k-NN imputation and what we call perfect imputation. In the latter imputation method, we use
the actual data values and consider them to be imputed. The three baselines are all based on the C4.5 algorithm,
the rst baseline uses the proposed C4.5 way of handling missing data during the training process, the second
and third baseline use mean and k-NN imputation respectively on the training data and then learn a DT as if
no data is missing. In all cases of k-NN imputation: k = 5.
5.1</p>
      <p>Prediction with Full Data</p>
      <p>The results for the rst experiment setting, i.e. predicting with a test set that has no missing data, are shown
in Figure 1. The missingness values in this case describe the amount of missing values in the training data.
Considering the mean over all tested missingness values, the two EIG variants perform better than the baselines
in ve of the seven datasets. In these ve cases the di erence between the best baseline and the EIG variants
are larger compared to the Audit and Autism datasets, in which the k-NN baseline outperforms the two EIG
1The code is available at github.com/cschreck/dt-eig
variants only by a small margin. From Figure 1 it can be observed that the accuracy curves for the EIG variants
are quite similar. In a few instances the k-NN imputation performs better than the perfect imputation, however,
considering the mean of all values, it shows that the perfect imputation has a small advantage over the k-NN
imputation when used with the EIG.</p>
      <p>In the Wine dataset the two EIG variants start to perform signi cantly better at around 35% of missingness in
the data. This is mainly because the baselines keep on losing accuracy, while the two EIG variants perform steady
until 90% of missingness. A similar pattern can be observed in Figure 1b and 1e. An interesting occurrence is
that the accuracy for the two EIG variants as well as the C4.5 baseline increase with more missing data in the
Credit dataset. The two imputation based baselines perform better on the Autism and Audit datasets, which
seem to be very learnable as they almost reach a perfect accuracy for low missingness values.
5.2</p>
      <p>Prediction with Missing Data
In Figure 3, the results for the third scenario are shown, where the missing values of the test set were imputed.
Judging by the mean accuracy over all missingness values, the two EIG variants perform better in six out of the
seven datasets. The performance is worse than the mean imputation method on the Autism dataset. Analyzing
the performance of the two EIG variants, it can be observed that there is barely a di erences between them.
Using the k-NN imputation for the EIG in this scenario is better in four out of the seven datasets.
The curves are mostly similar for all methods on the used datasets. For the Wine dataset it can be observed
that the C4.5 approach performs signi cantly worse than the four other methods, the mean accuracy of it is
about seven percent points lower compared to the other methods. On the Car dataset it can be observed that
at a missingness of 55% the accuracy of the two EIG variants and the C4.5 algorithm become a at line of 70%
0.95
0.90
0.85
y0.80
cu
ra0.75
cc0.70
A0.65
0.60
0.55
1.00
0.95
0.90
cy0.85
ra0.80
cu
cA0.75
0.70
0.65
0.60
of accuracy even with the missingness further increasing. The 70% in this dataset represents the majority class,
meaning that in this case the C4.5 and the two EIG variants resort to a prediction of the majority class, while
the other two baselines seem to be impacted negatively.
Comparing the three scenarios amongst each other it can be observed that the proposed approach performs best
compared to the baselines in the scenario where we also have missing values present during prediction time.
This means that the learned model is more robust when using the EIG in terms of its ability to handle missing
data at prediction time. But still, even when there is no data missing at prediction time or the data is imputed,
using the EIG proves to be bene cial in most cases. As the perfect imputation method outperforms the k-NN
imputation for the EIG in a majority of the cases, we assume that a more accurate imputation method generally
provides better results. Analyzing the trees that are built with the C4.5 approach and the two EIG variants, it
shows that especially the propagation of the examples with missing values lead to deeper trees compared to the
trees in the two imputation based baselines.</p>
      <p>However, it has to be noted that since the proposed EIG needs an imputation method such as k-NN imputation,
that relies on dependencies among the features to impute the missing data, there would be no bene t in applying
EIG to a dataset with features that are independent from one another. This means that attention has to be paid
to the underlying structure of the data when applying the proposed DT induction with EIG.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusion</title>
      <p>In this paper, we introduced the well-known problem of missing data in machine learning. In the following,
we described the background of the problem, especially with regard to the C4.5 algorithm. Subsequently, we
introduced the Expected Information Gain, which substitutes the approach of C4.5 to handle missing data. The
evaluation contained three scenarios where the performance of the EIG was tested in case, there was no missing
data, missing data, or imputed data at prediction time. The results have shown to be bene cial for our proposed
method. We could especially demonstrate an increasing robustness in the induced DT when there was data
missing at prediction time.</p>
      <p>Future work should comprise a thorough analysis on the impact of a given imputation method on the result.
This analysis should also contain the application of various other imputation methods that are applicable to the
proposed approach. Furthermore, stopping criteria as well as pruning methods should be investigated especially
with regards to the examples that are propagated with missing values.</p>
      <p>Acknowledgments
This research was supported by the German Federal Ministry for Economic A airs and Energy (Grant No.
01MD18011D).
[BFOS84] L Breiman, JH Friedman, R Olshen, and CJ Stone. Classi cation and regression trees. 1984.</p>
      <p>J. Ross Quinlan. Induction of decision trees. Machine learning, 1(1):81{106, 1986.</p>
      <p>J Ross Quinlan. Decision trees as probabilistic classi ers. In Proceedings of the Fourth International
Workshop on Machine Learning, pages 31{37. Elsevier, 1987.</p>
      <p>J Ross Quinlan. Unknown attribute values in induction. In Proceedings of the sixth international
workshop on Machine learning, pages 164{168. Elsevier, 1989.</p>
      <p>Lior Rokach and Oded Maimon. Data Mining with Decision Trees: Theory and Applications,
volume 81 of Series in Machine Perception and Arti cial Intelligence. WORLD SCIENTIFIC, 2 edition,
October 2014.</p>
      <p>Dan Steinberg. Cart: classi cation and regression trees. In The top ten algorithms in data mining,
pages 193{216. Chapman and Hall/CRC, 2009.</p>
      <p>Maytal Saar-Tsechansky and Foster Provost. Handling missing values when applying classi cation
models. Journal of machine learning research, 8(Jul):1623{1657, 2007.</p>
      <p>Wei-Yin Loh. Improving the precision of classi cation trees. The Annals of Applied Statistics, pages
1710{1737, 2009.</p>
      <p>Roderick JA Little and Donald B Rubin. Statistical analysis with missing data, volume 793. John
Wiley &amp; Sons, 2019.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          arXiv preprint arXiv:
          <year>1804</year>
          .10168,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <given-names>Peter</given-names>
            <surname>Clark</surname>
          </string-name>
          and
          <string-name>
            <given-names>Tim</given-names>
            <surname>Niblett</surname>
          </string-name>
          .
          <article-title>The CN2 induction algorithm</article-title>
          .
          <source>Machine learning</source>
          ,
          <volume>3</volume>
          (
          <issue>4</issue>
          ):
          <volume>261</volume>
          {
          <fpage>283</fpage>
          ,
          <year>1989</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Craig K Enders.</surname>
          </string-name>
          <article-title>Applied missing data analysis</article-title>
          . Guilford press,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Jerome H Friedman</surname>
            ,
            <given-names>Ron</given-names>
          </string-name>
          <string-name>
            <surname>Kohavi</surname>
            , and
            <given-names>Yeogirl</given-names>
          </string-name>
          <string-name>
            <surname>Yun</surname>
          </string-name>
          .
          <article-title>Lazy decision trees</article-title>
          .
          <source>In AAAI/IAAI</source>
          , Vol.
          <volume>1</volume>
          , pages
          <fpage>717</fpage>
          {
          <fpage>724</fpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Jerome H Friedman</surname>
          </string-name>
          .
          <article-title>A recursive partitioning decision rule for nonparametric classi cation</article-title>
          .
          <source>IEEE Trans. Comput.</source>
          ,
          <volume>26</volume>
          (
          <string-name>
            <surname>SLAC-PUB-</surname>
          </string-name>
          1573-REV):
          <volume>404</volume>
          ,
          <year>1976</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [LWTB97] Wei Zhong Liu,
          <string-name>
            <surname>Allan P White</surname>
          </string-name>
          , Simon G Thompson,
          <article-title>and Max A Bramer. Techniques for dealing with missing values in classi cation</article-title>
          .
          <source>In International Symposium on Intelligent Data Analysis</source>
          , pages
          <volume>527</volume>
          {
          <fpage>536</fpage>
          . Springer,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [TCS+01]
          <string-name>
            <surname>Olga</surname>
            <given-names>Troyanskaya</given-names>
          </string-name>
          , Michael Cantor, Gavin Sherlock, Pat Brown, Trevor Hastie, Robert Tibshirani, David Botstein, and Russ B Altman.
          <article-title>Missing value estimation methods for dna microarrays</article-title>
          .
          <source>Bioinformatics</source>
          ,
          <volume>17</volume>
          (
          <issue>6</issue>
          ):
          <volume>520</volume>
          {
          <fpage>525</fpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <string-name>
            <given-names>BETH</given-names>
            <surname>Twala</surname>
          </string-name>
          ,
          <article-title>MC Jones,</article-title>
          and
          <string-name>
            <surname>David</surname>
          </string-name>
          J Hand.
          <article-title>Good methods for coping with missing data in decision trees</article-title>
          .
          <source>Pattern Recognition Letters</source>
          ,
          <volume>29</volume>
          (
          <issue>7</issue>
          ):
          <volume>950</volume>
          {
          <fpage>956</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <string-name>
            <given-names>Zhongheng</given-names>
            <surname>Zhang</surname>
          </string-name>
          .
          <article-title>Missing data imputation: focusing on single imputation</article-title>
          .
          <source>Annals of translational medicine</source>
          ,
          <volume>4</volume>
          (
          <issue>1</issue>
          ),
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>