<!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>
      <title-group>
        <article-title>Synthetic Embedding-based Data Generation Methods for Student Performance</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dom Huh</string-name>
          <email>dhuh4@gmu.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Huzefa Rangwala</string-name>
          <email>rangwala@gmu.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>George Mason University</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this work, we introduce a framework for synthetic data generation for academic performance prediction formulations. A common problem in these academic performance prediction dataset is that outcomes/grades are not distributed evenly, leading to class imbalance. This poses a challenge for predictive machine learning algorithms to learn important characteristics at the edges of the target class distribution. We present a general framework for synthetic embeddingbased data generation (SEDG), a search-based approach to generate new synthetic samples using embeddings to correct the detriment e ects of class imbalances. We compare the SEDG framework to traditional synthetic data generation methods and relate the framework in relation to deep generative models. In our results, we nd SEDG to outperform the traditional re-sampling methods for deep neural networks and perform competitively for common machine learning classi ers at the student performance task in several standard performance metrics.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. INTRODUCTION</title>
      <p>
        In the educational domain, academic performance
prediction approaches are at the crux of degree planning and early
warning systems. Classi ers that seek to predict the
performance of a student given input features can be biased
because these datasets are often skewed centrally to the mean
as a relative grading scale is often employed. The limited
number of examples belonging to outlier students, speci
cally those demonstrating success and failure (needing
interventions/help), are not su ciently represented. As these
predictive models are useful for identifying at-risk students
or helping students plan their degree and career pathways,
this imbalance directly con icts with this purpose. We
refer to these examples belonging to the minority classes. In
contrast, there exists an overwhelming number of students
with average grade scores. We refer to these examples
belonging to the majority classes. This evident disproportion
results in classi ers failing to understand and learn how to
classify within the minority classes, which was supported in
Copyright ©2021 for this paper by its authors. Use permitted under
Creative Commons License Attribution 4.0 International (CC BY 4.0)
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. This issue we are describing is known in the machine
learning community as class imbalances. Class imbalances
are recognized when working with a dataset that exhibits a
notable disparity in the number of examples amongst di
erent classes. This abnormality often disproportionately harm
the classi er's performance on the minority classes. As [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]
discusses, these datasets describe a true nature of the
problem, which correlates heavily with rare events, small sample
size, low class separability, and/or existence of within-class
subconcepts. For student performance datasets, we nd all
to be the case, and even so, we argue gaining insight into
the outlier students is signi cant for the educators as it may
point to indicators of failure and success. In this paper, we
want to alleviate the setbacks caused by class imbalance.
As described in [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], there exists three common approaches
to alleviate the e ects of class imbalances: data modi
cation, algorithm modi cations and learning modi cations.
Each approach modi es di erent aspects of the learning
system to counter the issue of class imbalances. In this paper,
we will focus on a class of data modi cation approach called
sampling methods. We consider two classes of sampling
methods: oversampling and under-sampling. Oversampling
methods append samples to the pre-existing training set,
whereas under-sampling methods remove samples from the
training set. With all sampling approaches, they aim to
balance the number of samples, given some criteria, in the
training set. We suggest taking a more systematic process.
We argue sampling methods must consider two important
components. First, the criteria that is targeted must be
dened. For the student performance dataset, the criteria may
be the number of samples in the class. Second, the method
of creating the balance should be well-de ned, meaning the
use of this method should improve upon the criteria.
Examples of naive approaches are randomly re-sampling or
randomly removing samples. In [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], a promising oversampling
approach has been generating new synthetic samples from
pre-existing samples. This approach is known as Synthetic
Data Generation (SDG). The most popular SDG algorithm
is Synthetic Minority Over-sampling Technique (SMOTE)
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which generates new samples by modifying a pre-existing
sample by adding the scaled (0-1) di erence between feature
vectors of its nearest neighbors, with the addition of noise.
There have been notable improvements to this method, such
as DataBoost-IM [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]and ADASYN [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] changing the
sampling criteria to be based on predictive error. However,
these methods have yet to demonstrate su cient
performance improvement of minority classes, but rather on the
entire dataset. Thus, in our approach, we systematically
break down the process of SDG, to target the improvement
of minority classes.
      </p>
      <p>
        Deep learning methods have also exhibited advances in
robustness, e cacy, and allowing end-to-end training for SDG
methods as seen in [
        <xref ref-type="bibr" rid="ref10 ref15 ref19">10, 15, 19</xref>
        ]. In speci c, deep
generative models (DGMs), such as generative adversarial models,
have been introduced as methods of SDG. [
        <xref ref-type="bibr" rid="ref10 ref15">10, 15</xref>
        ]. In our
approach, we leverage the advances in deep learning, using
embeddings learned by deep models.
      </p>
      <p>In this paper, we introduce an novel framework for synthetic
embedding-based data generation methods, called SEDG, to
target the e ects of class imbalances on academic
performance prediction tasks. In Section 2, the academic
performance dataset, the performance metrics, and the classi ers
used will be described. Further details of SEDG framework
and deep generative models will be discussed in Section 3.
In Section 4, the results are presented and evaluated.</p>
    </sec>
    <sec id="sec-2">
      <title>2. PRELIMINARIES</title>
      <p>
        In this section, we will discuss the details of the Student
Performance Dataset from [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], the performance metric, and
the classi ers used to test the SEDG framework introduced
in this paper. The training methods and implementation
decisions will also be described.
      </p>
    </sec>
    <sec id="sec-3">
      <title>2.1 Student Performance Dataset</title>
      <p>
        The dataset provided by [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], can be used to predict student
performance, or the nal grade, on a scale from 0 to 20.
The data was collected from two Portuguese secondary level
schools, and has 649 samples of 32 features. In Figure 1, we
show the class imbalance in the dataset, skewed centrally as
mentioned in Section 1. In Figure 2, we show the
distribution of features in the dataset, where some features, such as
parent's cohabitation status, extra paid classes, and extra
educational school support, also demonstrated imbalance.
Further information on the meaning of these features to can
be found in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. We will not opt to use the binary or
velevel classi cation found in other works on this dataset, but
will adhere to the the 20 classes preset. While regression
methods can be used, we stuck to classi cation methods to
better distinguish improvements in individual target values.
      </p>
    </sec>
    <sec id="sec-4">
      <title>2.2 Performance Metrics</title>
      <p>
        It is important to consider an appropriate performance
metric for datasets with class imbalance, as [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] found there to
exists an imbalance in the performance itself: a relatively
high predictive accuracy for the majority classes and
significantly lower in the minority classes. Thus, if we consider
traditional classi cation accuracy to evaluate the model's
efciency, we would obtain an overly optimistic belief in the
classi er. Thus, we consider using Area under Curve (AUC)
on the Receiver Operating Characteristic (ROC) curve. The
ROC graph is used to show the trade-o between true
positive and false positive error, and is represented in the ROC
space. A mapping to the ROC space requires the true
positive rate (TPR), or more commonly known as the sensitivity,
and the false positive rate (FPR), or more commonly known
as fall-out. For multi-class settings [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], we can use an
onevs-rest paradigm, and either obtain the AUC scores at the
class level, or aggregate with or without class weighing to
obtain a micro-AUC or macro-AUC score respectively. When
we view at a class level, we call this AUC-class score.
      </p>
    </sec>
    <sec id="sec-5">
      <title>2.3 Classifiers</title>
      <p>We will use three traditional machine learning classi ers
(support vector machines, random forest, gradient-boosted
decision trees/XGBoost) and an neural network architecture
which we will denote as NNModel.</p>
      <p>
        Support vector machines (SVM) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] are optimal-margin
classi ers that seek to nd the hyper-plane that maximize the
geometric margins between binary classes. In a multi-class
setting, we can proceed by using an one-vs-rest approach,
where the maximum score from n SVMs, where each SVM
is trained on masking all but one class to formulate a binary
setting, is selected, or an one-vs-one approach, where similar
to one-vs rest, we formulate a binary setting, but with pairs
of classes instead. Decision trees [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] are tree-based
classier that create binary splits based on a condition on the
features that maximizes information gain, a metric of weighted
entropy. Random forest [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] is a bootstrap aggregation, or
bagging, algorithm using decision trees, where n learners
learn on bootstrapped subsets of the dataset and are also
limited to a subset of features it can split on. Thus,
inference of random forest is run on majority vote of the learners.
XGBoost [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] is a gradient boosting algorithm using decision
trees, where learners are introduced to additively correct
errors of trained learners. Gradient boosting refers to
correcting the errors through gradient learning when adding
new learners [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. For our experiments, the neural network
architecture we call NNModel is a multi-layer perceptron
model that is sequentially made up of N LRND blocks, seen
in Figure 3. The LRND block is composed of a linear layer,
recti ed linear activation, batch normalization, and followed
by a dropout layer. This model is used for classi cation, and
its parameters are optimized using gradient learning on cross
entropy loss, seen in Equation 1, where p is the true, target
function and q is the hypothesis function, and an Adam
optimizer scheduled to reduce and anneal the learning rate on
plateaus by an order magnitude.
      </p>
      <p>L(p; q) =</p>
      <p>8x
1 X p(x) log(q(x)); jxj = N
N
(1)</p>
    </sec>
    <sec id="sec-6">
      <title>3. SYNTHETIC EMBEDDING-BASED</title>
    </sec>
    <sec id="sec-7">
      <title>DATA GENERATION</title>
      <p>We will describe the SEDG approach step by step, dividing
the discussion into 4 chronological parts: sample selection,
feature selection, feature modi cation and synthetic sample
usage. In each step, we o er various design considerations
that we have tested. For future works, we encourage new
variations and designs of this general framework. We will
then write on deep generative models in the context of the
SEDG framework.</p>
    </sec>
    <sec id="sec-8">
      <title>3.1 Sample Selection</title>
      <p>We must rst consider how to select the samples from the
original dataset to base the synthetic samples on. We can set
how many samples k we want to select to be xed constant
or stochastically chosen within a de ned range.</p>
      <sec id="sec-8-1">
        <title>3.1.1 Random Sample Selection</title>
        <p>Naively, we can randomly select k samples from the entire
dataset D, all with equal probability. Once the samples are
selected, we place them into a sample pool, S, that will be
used to generate the new synthetic samples. This approach
will be referred to as random sample selection.</p>
      </sec>
      <sec id="sec-8-2">
        <title>3.1.2 Partition-based Sample Selection</title>
        <p>We can de ne a sample selection approach that partitions
the dataset D and select a member Mi of the partition
P = fM0; M1:::g to sample from. The member selection can
occur at a probability p or be deterministic. The member
will be stochastically sampled from, with or without
replacement. Consider we want k samples from the datasets, we can
implement a partition P , where the equivalence relation is
de ned by the samples' associated class. We set each
member of the partition Mi 2 P to be associated to a selection
probability pi proportional to their cardinality pi / jMij.
The selection probability represent how likely the member
will be selected. We choose to de ne the surjective mapping
from the partition P = fM0; M1:::Mng to the probability
distribution p = fp0; p1:::pmg with a hashmap for
simplicity. A special case would be to deterministically select the
member Mi based on the cardinality, where jMij jMjj for
all j 2 [0; n]. Once a member Mi is selected, we sample m
examples from the set, where m k. The value of m,
similar to the value of k, is a hyper-parameter. The m samples
are stochastically selected from M by performing random
sample selection, and we add this to our sample pool S.
We repeat this process until jSj = k. This approach will
be referred to as partition-based sample selection. We note
that this approach is dependent solely on the dataset, and
remains entirely independent on the classi er.</p>
      </sec>
      <sec id="sec-8-3">
        <title>3.1.3 Performance-based Sample Selection</title>
        <p>We formulate a sample selection approach to select samples
based on the classi er's performance, similar to concept of
boosting. Speci cally, we can associate higher selection
likelihoods for samples the learner has the largest margin for
error or uncertainty. In this context, we can consider
classi cation accuracy to quantify error and uncertainty. Thus,
we can place the highest probability of selection to the
samples that were misclassi ed, and rank the correctly classi ed
samples based on the classi er's certainty of the prediction.
So, given a classi er C and an loss function L(C; s), where
s 2 S is a sample belonging to the training set S, we let the
selection probability pi for xi to be greater than the
selection probability pj for xj if and only if L(C; xi) &gt; L(C; xj).
The loss function returns a scalar value that represents the
correlation between the target and prediction values. This
approach will be referred to as performance-based sample
selection. We note that this approach, in contrast to
partitionbased approach, is dependent on the classi er, thus also
requires trained model for its operation. Consequently, the
performance-based sample selection method is more
computationally costly.</p>
      </sec>
      <sec id="sec-8-4">
        <title>Partition-Performance Sample Selection</title>
        <p>We now can formulate a selection method that incorporates
from both partition and performance sample selection
approaches. In this paper, we use the class-AUC score to do so.
We rst partition as described above and use the class-AUC
score as our uncertainty metric to develop a selection
probability distribution to select the member to sample from.
Thus, we implement a class partition to rst select a
member to sample from, and we incorporate the AUC score from
the classi er to develop the probability associated to
member selection. We call this the partition-performance sample
selection approach.</p>
      </sec>
    </sec>
    <sec id="sec-9">
      <title>3.2 Feature Selection</title>
      <p>At a more granular level, we can think of every sample
Si 2 S from the dataset D, where S D to be made up of
features. For example, a sample Si = ff1i; f2i; f3i:::; fng can
i
be de ned to be a set of features where jSij = n. We de ne
equality as Si = Sj if and only if fki = fkj, 8k 2 Z. After
sample selection, we can modify the selected samples to
generate new samples. Thus, given some mapping from Si to
Si0 where : ff1i; f2i; f3i:::g ! ff1i0 ; f2i0 ; f3i0 :::g would provide
us new samples Si0, where Si0 6= Si. But in order to modify
these features, we must consider how to select which features
to modify e ciently as to appropriately increase variance in
the dataset without creating class overlaps. But, to modify
the samples, we must rst select the features of the sample
that we wish to adjust. We will discuss three approaches to
select features, which we will call random, imbalance-based,
and importance-based feature selection approach. We can
label the imbalance-based and importance-based feature
selection methods together and classify them as weighted
feature selection.</p>
      <sec id="sec-9-1">
        <title>3.2.1 Random Feature Selection</title>
        <p>The random selection approach, similar to random sample
selection, stochastically sample a subset of feature f i Si =
ff0i; f1i; f2i:::fki g, where jf ij jSij, with all features with
equal probability. The number of feature selected k = jf j
can be xed or randomly chosen per sample.</p>
      </sec>
      <sec id="sec-9-2">
        <title>3.2.2 Imbalance-based Feature Selection</title>
        <p>
          We can weigh the feature selection based on a metric based
in feature value imbalances, as seen in Figure 2. We
introduce a metric that quanti es this imbalance by using the
following method, which di ers from past works [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. We
rst create an nested set c = fc0; c1:::g where each ci is a set
of counts that represent the number of examples that
contains each unique feature value for feature fi. For clarity,
for sample Si, jcj = jSij. Then, for each ci 2 c, we cluster
on a 1-dimensional space using a clustering method. For
example, if we use the k-means algorithm, we can obtain two
centroids to obtain the ratio ri to be set to the di erence
between the coordinate of the two centroids and the
maximum count in ci. In the end, we obtain a vector of ratios
R = fr0; r1:::g, which we normalize to treat as a probability
distribution to select subsets of features. This approach is
largely motivated to place higher emphasis on more
imbalanced features, and thus attempting to balance all features'
value representation.
3.2.3
        </p>
      </sec>
      <sec id="sec-9-3">
        <title>Importance-based Feature Selection</title>
        <p>The feature importance approach creates a probability
distribution p based on feature importance, which will be used
to select the features. Feature importance provides insight
into the relationship between the predictive system and the
data, and how much signi cance each feature in the data
may have on the overall system's performance at the given
task at hand. We will consider three approaches to calculate
and obtain the feature importance: mean decrease impurity
importance, permutation importance, drop-column
importance.</p>
        <p>
          Mean decrease, or gini impurity, importance methods rely
on the use of tree-based classi ers, and is calculated by
aggregating the gini decreases of each feature. This is criteria
used to determine the splits at every tree. However, [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] has
shown gini impurity importance approach is biased given the
scale of measurement or number of categories of the features.
Additionally, this approach can only be used for tree-based
classi ers, thus will only be consider such models.
Permutation importance methods, on the other hand, calculate
the feature importance by evaluating the decrease in
performance of a trained model on a test set that is shu ed on at
the single feature value of interest. The shu ing process can
be repeated to test multiple permutations of the feature
values. Thus, permutation importance only requires the model
to be trained once, but also needs to use the testing dataset.
Also, this approach can be used for any models. Similarly,
drop-column importance methods obtain the feature
importance using the di erence between the baseline performance
of a model, which would trained on the entire dataset, and
the performance of the model that has been trained on a
limited dataset with a single feature value dropped. Thus,
drop-column importance can also be used for any model.
However, we see that drop-column importance is very
computationally costly, proportionally to the number of features
in the dataset.
        </p>
      </sec>
    </sec>
    <sec id="sec-10">
      <title>3.3 Feature Modification</title>
      <p>We now consider how to modify the selected features
optimally. We de ne optimality as maximizing the variance
between the synthetic samples from original samples while
minimizing the class overlap in the new dataset. Our
objective is to maximize the improvements in the minority classes,
since that is the de cient area of performance. To modify
the features, we can naively inject noise to the continuous
features and replace discrete features with sampling, but we
wish to formulate a more targeted approach. In this paper,
we will focus on embedding-based modi cations, a
searchbased method where we will leverage learned embeddings
to o er insights in how to optimally modify the features.
For future works, we encourage di erent methodologies to
feature modi cation.</p>
      <p>
        Embeddings are mappings from the raw feature domain to a
domain that can be more useful and understandable for some
classi er to perform the task at hand. In other words, we
can think of embeddings as optimized pre-processing
transformation. We consider two methods of embedding
generation in Section 3.3.1 and Section 3.3.2: weights from
transfer learning (WTL) and latent representation from
autoencoder (LRA). There are many other embedding generation
approaches [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] that have been successfully demonstrated in
eld of representation learning.
      </p>
      <p>We now formulate a method for feature modi cation using
embeddings. Recall a sample S can be thought of as a set of
features fs. These features can either be discrete and
continuous. We will consider both cases, and discuss how we can
handle each case separately. Assume a set of features fd S
that was selected for modi cation is homogeneously discrete,
for each feature fd;i in fd, then there exists a set of
possible feature values fd;i can take on yi = fyi;0; yi;1; :::yi;kg.
We can sample a subset ci of yi, where jcij jyij and if
fd;i = yi;m then yi;m 62 ci. If the search space for unique
feature values yi is small enough, we can try all possible values
for fd;i, however if it is large, then we could sample a subset
as mentioned. Given the embedding mapping i : yi ! Ei,
we calculate the similarity score between i(fd;i) and i(yi;j )
for all yi;j 2 ci, and replace the feature value with the one
with the highest similarity score. We repeat this process
for every features in fd. In other form, given a
embedding mapping : S ! E, where the input is the entire
sample, we will again follow the same procedure, however
we must compare (S) and (S0) where S = ff0; f1:::fi; :::g
and S0 = ff0; f1:::fi0; :::g where fi0 2 ci. When we repeat this
process for each feature in fd, we can choose to replace S to
the updated S0 for the proceeding feature modi cations, or
choose not to replace S. To place higher emphasis on lower
class overlaps, we can place a soft constraint on the
similarity score using the mean similarity score from most similar,
or randomly selected, samples to S from di erent classes. To
place higher emphasis on class variance, we can set a
threshold value for the similarity score, or set a soft constraint on
the similarity score using the mean similarity score from
different samples from the same class as S. Now we assume a
set of features fc S that was selected for modi cation is
homogeneously continuous. For each element fc;i in fc, we
de ne a range with a xed step yi = fyi;0; yi;1; :::yi;kg where
fd;i 2 (yi;0; yi;k) and yi;0 &lt; yi;k. Then, we proceed similarly
to the discrete feature case for feature modi cation.</p>
      <sec id="sec-10-1">
        <title>3.3.1 Weights from Transfer Learning</title>
        <p>The WTL approach consists of learning the embedding
mapping through training an model F on some relevant task.
For example, we choose the task to be classi cation of
stu=
F = F
r</p>
        <p>L(y; y^)
r F LF (y; y^)</p>
      </sec>
      <sec id="sec-10-2">
        <title>3.3.2 Latent Representation from Auto-encoder</title>
        <p>Auto-encoders are parameterized functions learn to
compress and decompress the input data using unsupervised
learning. The architecture thus has a bottleneck structure.
Let the set of layers l = fl0; l1:::lng be the layer that make
up the autoencoder, and the cardinality jlij for i 2 [0; n] be
the number of parameters in layer li. Given 0 a &lt; c n
and b 2 (a; c), there exists an unique lb such that jlbj &lt; jlaj
and jlbj &lt; jlcj, where we will refer to lb as the bottleneck
layer. We de ne = fl0; l1:::lbg and D = flb+1; lb+2:::lng.
The aim of the autoencoder is to accurately build a
reconstruction of the input given this decompression. Inference
on auto-encoders can be seen in Equation 4, where x^ is the
prediction, and x is the input data.
dent performance. We note that both and F are
parameterized functions by their own independent weights and
F . Thus, inference on the model can be seen in Equation
2, where y^ is the prediction, and x is the input data.</p>
        <p>E^ =
(x)y^ = F F ( (x))
(2)
Following the speci cation from the example above, a
classier F and the embedding mapping can be optimized using
the same loss function L, de ned in Equation 1. With
gradient learning, the weight updates can be seen in Equation
3.
(3)
(4)
(5)
E^ = (x)
x^ = D(E^)
Auto-encoders are optimized given the reconstruction loss
L, and the target is the input data x. Typically, the loss
function L will compare the input x to the predicted value
x^ directly, using a function like mean-square error or cross
entropy. If gradient learning is used, the weight updates can
be seen in Equation 5.</p>
        <p>=
D = D
r</p>
        <p>L(x; x^)
r D L(x; x^)
Once the auto-encoder is optimized, we can export the
compressing subset of layers as the embedding mapping. We
call this procedure LRA.</p>
        <p>We also consider variational auto-encoders (VAE), which
follows the same inference and optimization methods,
however, we represent the bottleneck layer lb as a probability
distribution, often a Gaussian N ( ; ). Thus, the input
of layer lb+1 will be samples from the distribution from lb.
The loss function used is the empirical lower bound (ELBO)
loss, which combines the reconstruction loss normally used
in auto-encoders and the Kullback{Leibler divergence loss
term KL(P (zjx); PD(z)), where is a mapping that uses
the layers fl0; l1; :::lbg, D is a mapping that uses the layers
flb+1; lb+2; :::lng and z is the latent space representation, or
the output of the . Thus, z will be considered to be the
embedding of the sample.</p>
      </sec>
    </sec>
    <sec id="sec-11">
      <title>3.4 Synthetic Sample Usage</title>
      <p>Once we obtain the synthetic samples, we now must decide
how the samples will be utilized. We evaluate two
considerations: cold or warm start and iterative or non-iterative.
Initially, the model learns on the training set Dtrain. Then,
the set of synthetic samples Ds;t is appended to the
training set Dtrain. We can choose to either re-initialize the
weights of the model, which we will call cold-start, or keep
the weights from the previous training cycle, which we will
call warm-start. By doing cold starts, we remove the bias
from the previous dataset, but lose what was learned from
that dataset. We consider whether to repeat the process of
creating a new Ds;t+1 from the newly trained model,
making the process iterative, or end the training cycle entirely,
making the process non-iterative. If the process is iterative,
we can choose to dropout and replace the previous Ds;t
partially or wholly with Ds;t+1, or append Ds;t+1 to the current
Ds;t at each step using a nite queue system. Another
consideration is whether to re-sample the distributions used for
sample and feature selection.</p>
    </sec>
    <sec id="sec-12">
      <title>3.5 Deep Generative Models</title>
      <p>In this section, we will discuss deep generative models (DGM)
in context with the SEDG framework.</p>
      <p>Generative models can model the conditional probability
P (xjy), the joint probability P (x; y) or the prior P (x). A
DGM is expressed using a deep neural network
parameterized by learnable weights . Equivalently, DGM are
mappings f : y ! x, f : x ! x, or f : x; y ! x. In context of
SEDG, DGM can be viewed as an end to end approach to
generating synthetic samples, bypassing the need for Section
3.2, and 3.3. For our purposes, the objective is to learn how
to generate new samples following the de nition of
optimality discussed in Section 3.3. We can set the input of the
DGM to either be random noise, or samples selected using
methods from Section 3.1. A potential issue is the
possibility of the generative model learning to map the input to
itself without any variance, especially for traditional
autoencoders and given the nature of the optimization. This
paper does not propose a proven solution to this issue. In
fact, we address this issue by simply preventing over- tting
with early stopping with heuristics and holding out a subset
of the training dataset, discussed in further detail in Section
4. Now, we will discuss two main approaches to training
DGMs: unsupervised and adversarial training.</p>
      <sec id="sec-12-1">
        <title>3.5.1 Unsupervised Training</title>
        <p>Unsupervised training refers to learning the prior P (x), thus
in more practical terms, optimizing the model using only the
input x. An example of unsupervised training is training
auto-encoders, where we treat the input as the output as
well. Instead of exporting the embedding function, as seen
in Section 3.3.2, we treat the auto-encoder as the generator
model f : x ! x^, where x^ is the synthetic sample. In this
paper, we will solely evaluate DGMs using auto-encoders
and VAEs.</p>
      </sec>
      <sec id="sec-12-2">
        <title>3.5.2 Adversarial Training</title>
        <p>Adversarial training adds onto unsupervised learning with
the discriminator model, which learns to discern real or fake
data. At a high level, the generator model attempts to trick
the discriminator model by learning how to generate samples
that are realistic. We will consider the traditional approach
and the conditional approach.</p>
        <p>
          The traditional approach is to train the generator and
discriminator models separately using unsupervised and
supervised learning respectively. The training for the generator
model will follow the procedure discussed in Section 3.3.2,
however we aggregate the discriminator's inaccuracy and the
reconstruction loss, scaled by and 1 respectively, where
j j 1, to obtain our generative model's loss. The
training of the discriminator will optimize the classi cation loss
between real and fake data using the dataset and the
generator model. The conditional approach follows most of what is
stated in the traditional approach, however we aim to have
both the generative and discriminative models conditioned
on the class label, y. Similar to practices discussed in [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ],
we can append y to the input paired with an embedding
layer, and is trained accordingly.
        </p>
      </sec>
    </sec>
    <sec id="sec-13">
      <title>4. RESULTS</title>
      <p>In this section, we will evaluate the methods discussed in
Section 3 using the student performance dataset and
classi ers described in Section 2. We will compare our
results with other balancing methods from past works, such
as random oversampling, random under-sampling, SMOTE,
Tomek Links, extended nearest neighbors, and combinations
methods of these approaches. We see that if the classi ers
are trained on the dataset normally, optimizing the cross
entropy loss, we obtain performance seen in Figure 5, which
follows our hypothesis of disproportion performance between
minority and majority classes. We seek to mitigate these
effects of class imbalances with the SEDG framework we have
proposed.</p>
      <p>We now will discuss our results from our experiments
using the SEDG and DGM methods mentioned in Section 3
and using the NNModel and the traditional models
mentioned in Section 2.3 as the classi er. For all of the
experiments below, we set the number of synthetic samples that
will be generated to 100 samples. All recorded
improvements are on the testing set, which encompasses 40% of the
dataset. We de ne % improvement P I in Equation 6, where
M (ysyn; y^syn) is the score from some performance metric M
from the dataset with the synthetic samples, and M (y; y^) is
the score from the performance metric M from the original
dataset.</p>
      <p>P I = M (ysyn; y^syn)</p>
      <p>M (y; y^)
(6)
We consider using the NNModel de ned in Section 2.3 as
our classi er, and we will test our embedding-based SDG
methods and DGMs on the student performance dataset.
In Figure 6, we nd that the SEDG method outperforms all
traditional sampling methods for all performance metrics
when using NNModel as the classi er. Even given 50
independent trials to run, many of the classic sampling method
perform poorly, some even harming the performance. Most
notably, the class-AUC score demonstrate a signi cant
positive di erence in targeting the minority classes when using
SEDG methods.</p>
      <p>Now we consider the traditional classi ers seen in Section
2.3, and how SEDG methods a ect their performances. First,
we show that when we transfer the embeddings from the
deep models, to act as data pre-processing mappings to these
learners. We nd their performance increases noticeably, as
seen in Table 1. This supports and allows us to proceed to
use embedding-based SDG methods without worries of the
embeddings being incompatible to these classi ers.
In Figure 7, we nd that the SEDG method, while it does
not excel in accuracy and macro-AUC score % improvements
for traditional machine learning classi ers, it is able to
target the minority classes more e ectively in class-AUC score
than all other methods. Additionally, compared to the other
sampling methods, the results show when considering all the
performance metric, SEDG and DGMs performs the best as
other approaches that may excel in one metric often fail to
replicate the same success in other metrics.</p>
      <p>Here, we discuss design considerations made in Section 3
from what was demonstrated in these trials. We found
partition-performance based sample selection demonstrates
highest improvements in classi cation accuracy over other
sample selection methods. However, based on the
macroAUC and class AUC scores, there doesn't seem to be a
clear sample selection method that outperforms the others,
all performing comparatively targeting the minority classes
than the traditional sampling methods.</p>
      <p>We also remark that DGMs demonstrates very minimal
improvements in predictive accuracy and macro-AUC score
when using the NNModel classi er. We assume this to be
related to the issue of over- tting, which we accommodated
for by employing early stopping with basic heuristics: if the
majority of training data ( 50%) share 80% of the
features to the target sample, then we end training. We
suggest for future works to handle this issue of over- tting in
the context of SDG more e ciently.</p>
      <p>We further con rm that weighted feature selection is more
e ective than random feature selection in all performance
metrics. The feature imbalance approach performs better in
all metrics, with permutation importance and drop-column
importance, the two feature importance methods,
performing similarly in predictive accuracy. We nd that for both
accuracy and macro-AUC score, using the embedding
matrix from the NNModel outperform the other methods, with
VAE being a close second in terms of macro-AUC score. For
class AUC scores, we nd that VAEs and embedding matrix
from NNModel improve the scores of the minority classes
the most.</p>
    </sec>
    <sec id="sec-14">
      <title>4.1 Understanding Student Performance</title>
      <p>In this section, we investigate the synthetic samples more
in-depth for each class to improve our understanding for
student performance by showing how likely certain features are
allowed to change without much signi cant changes to the
data distribution, similar to feature importance. However,
with synthetic samples, we can also see how we can change
these features, thus seeing possible feature value candidates.
In Figure 8, we use a VAE as DGM to create 100 synthetic
samples for each class to show how likely each feature in each
class is subject to change, and what feature values is
reasonable. For example, we can see for low performing students,
the likelihood of changing absences is low, with greater
number of absences being a possible candidates. We also see that
some features, such as travel time, school supplies, and
famrel, are highly susceptible to change, inferring to their lack
of distinction between possible candidates. Thus, we can
leverage this method for feature understanding at a class
level. Its usage can inform educators further on di erent
performing students.</p>
    </sec>
    <sec id="sec-15">
      <title>5. CONCLUSION</title>
      <p>In this paper, we proposed a general framework for
embeddingbased SDG and investigated DGMs for academic
performance tasks. We tested the SEDG approach and DGMs
against standard re-sampling methods, and found greater
improvements in our proposed approaches in all performance
metrics when we use our NNModel as the classi er and a
more comprehensive improvement when we use traditional
machine learning classi ers. We also introduced a technique
for greater interpretibilty and insight into the dataset using
a DGM by looking at the synthetic samples generated and
seeing how likely each feature is modi ed and to what values
it can take on for each class.</p>
    </sec>
    <sec id="sec-16">
      <title>6. ACKNOWLEDGEMENT</title>
      <p>We acknowledge NSF #1757064 Grant for support this work.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. C.</given-names>
            <surname>Courville</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>Vincent</surname>
          </string-name>
          .
          <article-title>Unsupervised feature learning and deep learning: A review and new perspectives</article-title>
          .
          <source>CoRR, abs/1206.5538</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>K. W.</given-names>
            <surname>Bowyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. V.</given-names>
            <surname>Chawla</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. O.</given-names>
            <surname>Hall</surname>
          </string-name>
          , and
          <string-name>
            <given-names>W. P.</given-names>
            <surname>Kegelmeyer</surname>
          </string-name>
          .
          <article-title>SMOTE: synthetic minority over-sampling technique</article-title>
          .
          <source>CoRR, abs/1106</source>
          .
          <year>1813</year>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>L.</given-names>
            <surname>Breiman</surname>
          </string-name>
          .
          <article-title>Random forests</article-title>
          . Mach. Learn.,
          <volume>45</volume>
          (
          <issue>1</issue>
          ):5{
          <fpage>32</fpage>
          ,
          <string-name>
            <surname>Oct</surname>
          </string-name>
          .
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>T.</given-names>
            <surname>Chen</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.</given-names>
            <surname>Guestrin</surname>
          </string-name>
          .
          <article-title>Xgboost: A scalable tree boosting system</article-title>
          .
          <source>CoRR, abs/1603.02754</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>P.</given-names>
            <surname>Cortez</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Silva</surname>
          </string-name>
          .
          <article-title>Using data mining to predict secondary school student performance</article-title>
          .
          <source>EUROSIS</source>
          , 01
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Friedman</surname>
          </string-name>
          .
          <article-title>Greedy function approximation: A gradient boosting machine</article-title>
          .
          <source>The Annals of Statistics</source>
          ,
          <volume>29</volume>
          (
          <issue>5</issue>
          ):
          <volume>1189</volume>
          {
          <fpage>1232</fpage>
          ,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>H.</given-names>
            <surname>Guo</surname>
          </string-name>
          and
          <string-name>
            <given-names>H. L.</given-names>
            <surname>Viktor</surname>
          </string-name>
          .
          <article-title>Learning from imbalanced data sets with boosting and data generation: The databoost-im approach</article-title>
          .
          <source>SIGKDD Explor</source>
          . Newsl.,
          <volume>6</volume>
          (
          <issue>1</issue>
          ):
          <volume>30</volume>
          {
          <fpage>39</fpage>
          ,
          <year>June 2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Haibo</surname>
            <given-names>He</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yang Bai</surname>
            ,
            <given-names>E. A.</given-names>
          </string-name>
          <string-name>
            <surname>Garcia</surname>
            , and
            <given-names>Shutao</given-names>
          </string-name>
          <string-name>
            <surname>Li</surname>
          </string-name>
          .
          <article-title>Adasyn: Adaptive synthetic sampling approach for imbalanced learning</article-title>
          .
          <source>In 2008 IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence)</source>
          , pages
          <fpage>1322</fpage>
          {
          <fpage>1328</fpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M. A.</given-names>
            <surname>Hearst</surname>
          </string-name>
          .
          <article-title>Support vector machines</article-title>
          .
          <source>IEEE Intelligent Systems</source>
          ,
          <volume>13</volume>
          (
          <issue>4</issue>
          ):
          <volume>18</volume>
          {
          <fpage>28</fpage>
          ,
          <year>July 1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S. S.</given-names>
            <surname>Mullick</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Datta</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Das</surname>
          </string-name>
          .
          <article-title>Generative adversarial minority oversampling</article-title>
          .
          <source>CoRR</source>
          , abs/
          <year>1903</year>
          .09730,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>H.</given-names>
            <surname>Narasimhan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Kar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Protopapas</surname>
          </string-name>
          , and
          <string-name>
            <given-names>H. G.</given-names>
            <surname>Ramaswamy.</surname>
          </string-name>
          <article-title>Optimizing the multiclass f-measure via biconcave programming</article-title>
          .
          <source>In 2016 IEEE 16th International Conference on Data Mining (ICDM)</source>
          , pages
          <fpage>1101</fpage>
          {
          <fpage>1106</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>F.</given-names>
            <surname>Provost</surname>
          </string-name>
          and
          <string-name>
            <given-names>T.</given-names>
            <surname>Fawcett</surname>
          </string-name>
          .
          <article-title>Analysis and visualization of classi er performance: Comparison under imprecise class and cost distributions</article-title>
          .
          <source>In Proceedings of the Third International Conference on Knowledge Discovery and Data Mining</source>
          , KDD'
          <volume>97</volume>
          , page
          <volume>43</volume>
          {
          <fpage>48</fpage>
          . AAAI Press,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>F. J.</given-names>
            <surname>Provost</surname>
          </string-name>
          and
          <string-name>
            <given-names>G. M.</given-names>
            <surname>Weiss</surname>
          </string-name>
          .
          <article-title>Learning when training data are costly: The e ect of class distribution on tree induction</article-title>
          .
          <source>CoRR, abs/1106.4557</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>J. R.</given-names>
            <surname>Quinlan</surname>
          </string-name>
          .
          <article-title>Induction of decision trees</article-title>
          .
          <source>Mach. Learn.</source>
          ,
          <volume>1</volume>
          (
          <issue>1</issue>
          ):
          <volume>81</volume>
          {
          <fpage>106</fpage>
          ,
          <string-name>
            <surname>Mar</surname>
          </string-name>
          .
          <year>1986</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>P.</given-names>
            <surname>Shamsolmoali</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Zareapoor</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. H.</given-names>
            <surname>Sadka</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Yang</surname>
          </string-name>
          .
          <article-title>Imbalanced data learning by minority class augmentation using capsule adversarial networks</article-title>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>C.</given-names>
            <surname>Strobl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Boulesteix</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zeileis</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Hothorn</surname>
          </string-name>
          .
          <article-title>Bias in random forest variable importance measures: Illustrations, sources and a solution</article-title>
          .
          <source>BMC Bioinformatics</source>
          ,
          <volume>8</volume>
          :
          <fpage>25</fpage>
          {
          <fpage>25</fpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Wong</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Kamel</surname>
          </string-name>
          .
          <article-title>Classi cation of imbalanced data: a review</article-title>
          .
          <source>International Journal of Pattern Recognition and Arti cial Intelligence</source>
          ,
          <volume>23</volume>
          , 11
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>S.</given-names>
            <surname>Susan</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Kumar</surname>
          </string-name>
          .
          <article-title>The balancing trick: Optimized sampling of imbalanced datasets|a brief survey of the recent state of the art. Engineering Reports, n/a(n/a):e12298.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>C. G.</given-names>
            <surname>Turhan</surname>
          </string-name>
          and
          <string-name>
            <given-names>H. S.</given-names>
            <surname>Bilge</surname>
          </string-name>
          .
          <article-title>Recent trends in deep generative models: a review</article-title>
          .
          <source>In 2018 3rd International Conference on Computer Science and Engineering (UBMK)</source>
          , pages
          <fpage>574</fpage>
          {
          <fpage>579</fpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>