{"title":"Adaptive K-means clustering based under-sampling methods to solve the class imbalance problem","authors":"","doi":"10.1016/j.dim.2023.100064","DOIUrl":null,"url":null,"abstract":"<div><p>In the field of machine learning, the issue of class imbalance is a common problem. It refers to an imbalance in the quantity of data collected, where one class has a significantly larger number of data compared to another class, which can negatively affect the classification efficiency of algorithms. Under-sampling methods address class imbalance by reducing the quantity of data in the majority class, thereby achieving a balanced dataset and mitigating the class imbalance problem. Traditional under-sampling methods based on k-means clustering either set the unified value of <em>k</em> (number of clusters) or determine it directly based on the quantity of data in the minority or majority class. This paper proposes an adaptive k-means clustering under-sampling algorithm that calculates an appropriate <em>k</em> for each dataset. After clustering the majority class dataset into <em>k</em> clusters, our algorithm calculates the distances between the data within each cluster and the cluster centroids from two perspectives and selects data based on these distances. Subsequently, the subset of the majority class dataset are combined with the minority class dataset to generate a new balanced dataset, which is then used for classification algorithms. The performance of our algorithm is evaluated on 45 datasets. Experimental results demonstrate that our algorithm can dynamically determine appropriate <em>k</em> for different datasets and output a balanced dataset, thus enhancing the classification efficiency of machine learning algorithms. This work can provide new algorithmic ensemble strategies for addressing class imbalance problem.</p></div>","PeriodicalId":72769,"journal":{"name":"Data and information management","volume":"8 3","pages":"Article 100064"},"PeriodicalIF":0.0000,"publicationDate":"2024-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2543925123000384/pdfft?md5=25a3920a1a4e803650366fa56c8a9827&pid=1-s2.0-S2543925123000384-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Data and information management","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2543925123000384","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
In the field of machine learning, the issue of class imbalance is a common problem. It refers to an imbalance in the quantity of data collected, where one class has a significantly larger number of data compared to another class, which can negatively affect the classification efficiency of algorithms. Under-sampling methods address class imbalance by reducing the quantity of data in the majority class, thereby achieving a balanced dataset and mitigating the class imbalance problem. Traditional under-sampling methods based on k-means clustering either set the unified value of k (number of clusters) or determine it directly based on the quantity of data in the minority or majority class. This paper proposes an adaptive k-means clustering under-sampling algorithm that calculates an appropriate k for each dataset. After clustering the majority class dataset into k clusters, our algorithm calculates the distances between the data within each cluster and the cluster centroids from two perspectives and selects data based on these distances. Subsequently, the subset of the majority class dataset are combined with the minority class dataset to generate a new balanced dataset, which is then used for classification algorithms. The performance of our algorithm is evaluated on 45 datasets. Experimental results demonstrate that our algorithm can dynamically determine appropriate k for different datasets and output a balanced dataset, thus enhancing the classification efficiency of machine learning algorithms. This work can provide new algorithmic ensemble strategies for addressing class imbalance problem.
在机器学习领域,类不平衡是一个常见问题。它指的是收集到的数据数量不平衡,即一个类别的数据数量明显多于另一个类别,这会对算法的分类效率产生负面影响。欠采样方法通过减少多数类的数据量来解决类不平衡问题,从而获得平衡的数据集,缓解类不平衡问题。传统的基于 k-means 聚类的欠采样方法要么设置统一的 k 值(聚类数),要么直接根据少数类或多数类的数据量来确定。本文提出了一种自适应 k 均值聚类低采样算法,它能为每个数据集计算出合适的 k 值。将多数类数据集聚类成 k 个聚类后,我们的算法从两个角度计算每个聚类内的数据与聚类中心点之间的距离,并根据这些距离选择数据。随后,将多数类数据集的子集与少数类数据集合并,生成一个新的平衡数据集,然后用于分类算法。我们在 45 个数据集上评估了算法的性能。实验结果表明,我们的算法可以为不同的数据集动态确定合适的 k,并输出平衡数据集,从而提高机器学习算法的分类效率。这项工作可以为解决类不平衡问题提供新的算法集合策略。