Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Nov 12;16(11):e0259227.
doi: 10.1371/journal.pone.0259227. eCollection 2021.

An oversampling method for multi-class imbalanced data based on composite weights

Affiliations

An oversampling method for multi-class imbalanced data based on composite weights

Mingyang Deng et al. PLoS One. .

Abstract

To solve the oversampling problem of multi-class small samples and to improve their classification accuracy, we develop an oversampling method based on classification ranking and weight setting. The designed oversampling algorithm sorts the data within each class of dataset according to the distance from original data to the hyperplane. Furthermore, iterative sampling is performed within the class and inter-class sampling is adopted at the boundaries of adjacent classes according to the sampling weight composed of data density and data sorting. Finally, information assignment is performed on all newly generated sampling data. The training and testing experiments of the algorithm are conducted by using the UCI imbalanced datasets, and the established composite metrics are used to evaluate the performance of the proposed algorithm and other algorithms in comprehensive evaluation method. The results show that the proposed algorithm makes the multi-class imbalanced data balanced in terms of quantity, and the newly generated data maintain the distribution characteristics and information properties of the original samples. Moreover, compared with other algorithms such as SMOTE and SVMOM, the proposed algorithm has reached a higher classification accuracy of about 90%. It is concluded that this algorithm has high practicability and general characteristics for imbalanced multi-class samples.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Multi-dimensional classification data.
Fig 2
Fig 2. Two-dimensional spatial classification data.
Fig 3
Fig 3. The classification oversampling algorithm flow chart.
Fig 4
Fig 4. Data sorting of oversampling for imbalanced data.
Fig 5
Fig 5. The 2-point sampling of oversampling for imbalanced data.
Fig 6
Fig 6. The 3-point sampling of oversampling for imbalanced data.
Fig 7
Fig 7. Inter-class sampling of oversampling for imbalanced data.

Similar articles

Cited by

References

    1. Kaewwichian P. Multiclass Classification with Imbalanced Datasets for Car Ownership Demand Model–Cost-Sensitive Learning[J]. Promet-Traffic&Transportation, 2021, 33(3): 361–371. doi: 10.7307/ptt.v33i3.3728 - DOI
    1. Yue He et al.. Wind disasters adaptation in cities in a changing climate: A systematic review.[J]. PloS one, 2021, 16(3): e0248503–e0248503. doi: 10.1371/journal.pone.0248503 . - DOI - PMC - PubMed
    1. Rajput D S, Basha S M, Xin Q, et al.. Providing diagnosis on diabetes using cloud computing environment to the people living in rural areas of India. Journal of Ambient Intelligence and Humanized Computing, 2021: 1–12. doi: 10.1007/s12652-021-03154-4 - DOI
    1. Mayo M, Chepulis L, Paul RG. Glycemic-aware metrics and oversampling techniques for predicting blood glucose levels using machine learning. PLOS ONE. 2019;14 (12):1–19. doi: 10.1371/journal.pone.0225613 . - DOI - PMC - PubMed
    1. Anand R, Mehrotra KG, Mohan CK, Ranka S. An improved algorithm for neural network classification of imbalanced training sets. IEEE transactions on neural networks. a publication of the IEEE Neural Networks Council. 1993;4(6):962–969. doi: 10.1109/72.286891 . - DOI - PubMed

Publication types