Real world datasets are heavily skewed where some classes are significantly outnumbered by the other classes. In these situations, machine learning algorithms fail to achieve substantial efficacy while predicting these under-represented instances. To solve this problem, many variations of synthetic minority over-sampling methods (SMOTE) have been proposed to balance the dataset which deals with continuous features. However, for datasets with both nominal and continuous features, SMOTE-NC is the only SMOTE-based over-sampling technique to balance the data. In this paper, we present a novel minority over-sampling method, SMOTE-ENC (SMOTE - Encoded Nominal and Continuous), in which, nominal features are encoded as numeric values and the difference between two such numeric value reflects the amount of change of association with minority class. Our experiments show that the classification model using SMOTE-ENC method offers better prediction than model using SMOTE-NC when the dataset has a substantial number of nominal features and also when there is some association between the categorical features and the target class. Additionally, our proposed method addressed one of the major limitations of SMOTE-NC algorithm. SMOTE-NC can be applied only on mixed datasets that have features consisting of both continuous and nominal features and cannot function if all the features of the dataset are nominal. Our novel method has been generalized to be applied on both mixed datasets and on nominal only datasets. The code is available from mkhushi.github.io
翻译:真正的世界数据集严重偏斜, 某些类的数据远远多于其他类。 在这些情况下, 机器学习算法在预测这些代表性不足的事例时未能取得实质性效果。 为了解决这个问题, 提出了合成少数群体过量抽样方法( SMOTE) 的许多变异, 以平衡涉及连续特征的数据集。 但是, 对于具有名义和连续特征的数据集, SMOTE- NC 是唯一基于 SMOTE 的过度抽样技术来平衡数据。 在本文中, 我们展示了一种新颖的少数群体过量取样方法, SMOTE- ENC (SMOTE - Encodded Nominalal and Continating), 其中, 将名义特征编码为数字值, 以及两个这样的数字值之间的差异反映了与少数群体类别关联的程度。 但是, 我们的实验表明, 使用SMOTE- ENC 方法的分类模型比使用SMOTE- NC 模型的模型的预测要好得多, 当数据集只有大量的名义特征时, 而且当精确特征与目标类( SMO- NC ) 之间有一些关联的时候,, 我们提出的数据方法只能同时使用。