1. INTRODUCTION
Machine learning [1], [2] can be used in a variety of ways for algorithm selection. A few papers compare different machine learning algorithms in detail. J48, CART, and ADTree are compared by [3]. CART was found to be the most accurate algorithm, with a 98.5 percent accuracy rating. GRU-SVM, LR, MLP, NN, SR, and SVM for breast cancer dataset were used to discover Agarap [4]. MLP was determined to have the highest classification accuracy of 99.04 percent. J48, Nave Bayes, LMT, REP Tree, DT, K-star, LR, ICO, IBK, and FC are used to analyze several machine learning methods for the breast cancer dataset in [3], [5], [6], [7], [8], [9]. Clean classifiers are good with a classification accuracy of 76 percent. For a breast cancer dataset, [9] examine LR, NB, and SVM. They discovered that SVM is the most effective. [10] Compared DT and SVM on a breast cancer dataset and discovered that the SVM had the highest accuracy of 96.99 percent. Doulah [11] compare three algorithms SVM, K-NN, DT and found that SVM grants the largest accuracy of (98.1%). [12] Examine five algorithms SVM; ANN; DT; NB; and K-NN. They located that SVM reap the best accuracy is ninety%. [13] Discover the use of lower BPNN and RBFN for breast tissue dataset and locate RBFN outperforms the BPNN in phrases of accuracy. Ravi [14] assessed NB, IBK and J48 to procedure classify the Breast Tissue dataset. They discovered that the J48 set of rules proficiency is higher than other algorithms. [15] compare 3 classification algorithms are SVM, KNN and DT and discovered that SVM performs. [16] examined algorithms NN, LR, SVM and determined that LR is the pleasant choice with 93.4%. Thomas [17] compares BB, DT, C4.5 and found that BB is outperform. [18] examined NN, BB, NB and found that NB, the highest accuracy is 93.87%. [19] Compares NB, NN, SMO, IBK, J48 and RIPPER, BB set of rules on various datasets. [20] Compare BPNN, RST-GA, RST-JA and discovered that BPNN performs higher than the opposite algorithms. [21] Evaluate the Quest, univariate splits, C4.5, Ind-Cart, and LR and discovered that C4.5 provides quality results.
2. METHODOLOGY
2.1 Naive Bayes (NB)
Naive Bayes classifier [22] considers that the effect of the value of a predictor (x) on a given class (c) is independent of the values of other predictors is given by-
Where, Equation (1) is the posterior probabilityπ(π), is the prior probability of class; π(π₯|π), is the likelihood.
2.2 Logistic Regression (LR)
Letβs assume a target variable Y and π = π₯1 + π₯2+. . . . . +π₯π where j is the number of independent variables, then the conditional mean of Y is given x is given by:
(2) Is the expected value of the target variable for a given X. The LR is given by the formula:
Equation (3) is called the logit transformation, whereπ½0, π½1, . . . . . , π½π are estimated using maximum
2.3 Linear Discriminant Analysis (LDA)
LDA was developed in 1936 by R.A. Fisher [23]. We assume the density function π(π = π₯|π = π) of X for an observation that comes from the kth class is known, then by Bayes Theorem we have.
In general, ππ(π) = π(π = x|π = π) is the densities? For example, if we assume πΏ = (π1, π2, . . . , ππ) is drawn from a multivariate Gaussian distributionπ(ΞΌπ, π΄), then
11
The LDA classifier assigns an observation X = x to the class for which
1
Is the largest. From here we can see that the decision boundary for LDA is linear.
2.4 Support Vector Machine (SVM)
SVM [24], [25] have been added by using Vapnik and collaborators in 1992. According to [26], the selection floor by using SVM for linearly separated space is a hyper-plane and is given below:
Where x is an arbitrary feature vector,π andπ€are learned from training set linearly separable data. The dot product π€ β’ π₯is defined by,
This linear classifier is represented by the hyper-plane π»( π€ β’ π₯ + π = 0) and defines a region for class +1 patterns(π€ β’ π₯ + π > 0) and another region for class -1 pattern(π€ β’ π₯ + π < 0).
2.5 Classification and Regression Tree (Cart)
CART algorithm changed into advanced through Brieman, Friedman, Olshen, and Stone in 1984 π‘2 [27]. For a binary magnificence the GINI degree of impurity is given by, πΊπΌππΌ(π‘) = 1 β β[π( )]
Whereπ( ) is the relative frequency of class j at node t. When a node p is split into x partitions, the π quality of split is given by
Whereππ=number of records at childπ
The first step in C4.5 set of rules [28] is to specify root of the tree. To determine the order of functions inside the choice tree, records benefit components is evaluated for each attribute as described in
Where π is a state, ππ is the possibility of outcome being in state π for the set π and π is the number of possible.
2.6 K-Nearest Neighbor (K-NN)
KNN [29] is distance-primarily based classifier wherein distance is used to classify information based on labels of its associates which can be decided on from training data.
If k = 1, the class where itβs nearest neighbour belongs. Alternatively, if we provide a huge ok input, it can bring about underneath-fitting.
2.6.1 Random Forest (RF)
Random Forests [29] similarly weighted is offered as inside the following system:
The generalization error is given by, β
The strength of the set of classifiers{πΌ(π₯, π©)}is
An upper bound for the generalization error is given by 2
2.6.2 Bagging and Boosting (BB)
Let π· = {(π₯1, π¦1) , (π₯2, π¦2) , . . . . . , (π₯π, π¦π)}be a set of πitems and letπ¦π β π = {π1, π2, . . . . . , ππ}be a set of k class labels; C denotes classification algorithm and n is number of learners.
1. Draw m items randomly with replacement from the dataset D, so generate bootstrap samples, D1,
D2,.β¦,Dn 2. Each dataset Di is trained and multiple classification models are constructed, Mi = C (Di).
3. Consensus of classification models is tested to calculate out-of-bag error.
4. New sample x is given to classifiers as input and the outputs yi are obtained from each model yi =Mi(x) 5. The outputs of models {M1, M2,.β¦,Mt } are combined as in
2.6.3 Hoeffding Tree (HT)
The Hoeffding Bound [30], [31], [32] is calculated the usage of the following equation: Hoeffding
As mentioned before, the Hoeffding Tree algorithm incrementally generates a decision tree from Data Streams.
2.6.4 Decision Table (DT)
Decision table is an accurate technique for making numerical predictions from decision trees. It is an ordered set of If-Then rules, which may be denser than decision trees and therefore easier to understand [33].
2.6.5 Evaluation Criteria
Table 1 shows a confusion matrix illustrating what might happen for positive and negative outcomes in a data mining model.
2.6.6 Software Used
The open-source programming language R is used to analyse statistical data, present graphics, and generate reports [34]. The experiments were conducted using open-source R software, version 3.5.2 (https://www.r-project.org).
2.6.7 Dataset Description
The summary of the datasets used in comparative studies in the following Table 3.
2.6.7.1 Missing Value Estimation
There are numerous methods available for estimating missing values [35], to estimate missing values for our analysis, however, we use mode method.
2.6.7.2 Hold Out Approach
The hold out approach is a straightforward method for generating test data. This method divides the data set into two subsets, a training set and a test set, at random. In this study, the training set will contain 80% of the data, while the test set will contain the remaining 20%. We use the training data set to train the model and use the test data set to test the model based on the training model.
3. RESULTS AND DISCUSSION
A simple and sensible way to start is by looking at the data frame, using pairs to plot every variable against every other. There appears to be excellent data separation, and reasonable separation, but nothing obvious for the other variables. The commonest plots for a sample are histograms and box plots. Histograms are excellent for showing the mode, the spread, and the symmetry (skew) of a set of data whereas boxplots are outstanding for showing the spread [9], outliers [6], [7] and normality of a set of data [5]. From Figure 1, we found that the Wisconsin breast cancer dataset contains two classes. From Figure 2, we visualize that the breast tissue dataset contains six classes. From Figure 3, we envisage that the vehicle dataset contains four classes. From Figure 4, we found that the vertebral column dataset contains three classes. From Figure 5, we visualize that the contraceptive method choice dataset contains three classes. From Figure 6, we visualize that the image segmentation dataset contains seven classes. From Figure 7, we envisage that the artificial characters dataset contain ten classes and we also see the correlation coefficient between the attribute.
For Table 4, all algorithms provide relatively higher accuracy and random forest gives the highest accuracy (97.85%). It is worth noting that all algorithms provide relatively higher kappa value and random forest gives the highest value (95.03%). It is worth mentioned that all algorithms provide relatively higher precision and random forest gives the highest value (98%). It is notice that all algorithms provide relatively higher recall and random forest gives the highest value (97.9%). From the table, all algorithms provide relatively higher specificity and random forest gives the highest value (99.1%).
For Table 5, all the algorithm provides average performance and KNN has the highest accuracy (77.27%). all of the algorithm provides average performance and C4.5 has the highest kappa statistic (66.67%). It is worth noting that all the algorithm provides good performance and KNN has the highest precision value of (90.9%). It is noticed that all the algorithms provide good performance and KNN has the highest recall value of (77.3%). It is worth noting that all the algorithm provides good performance and KNN has the highest specificity value of (97.8%).
For Table 6, logistic regression provides the highest accuracy (81.17%) and other algorithms give relatively lower accuracy than logistic regression. It is worth noting that logistic regression provides the highest kappa value (74.87%) and other algorithms give relatively lower value than logistic regression. It is notice that logistic regression provides the highest precision value (80.40%) and other algorithms gives relatively lower value than logistic regression. it can be seen that logistic regression provides the highest recall value (81.2%) and other algorithms give relatively lower value than logistic regression. It is noticed that logistic regression provides the highest specificity value (93.4%) and other algorithms give relatively lower value than logistic regression.
For Table 7, NN and LR provide highest accuracy (88.71%) and Bagging, C4.5, RF, CART provide the same value (87.10%). It is notice that NN and LR provides highest accuracy (81.38%) and Bagging, C4.5, RF and CART has the kappa value (78.71%). In addition, NN and LR provide the highest precision value (89.60%) and Bagging, RF and CART have the precision of (88.50%). Moreover, NN and LR provide the highest recall value (88.70%) and Bagging, C4.5, RF and CART have the recall value of (87.1%). It is clear that NN provides the highest specificity value (95.3%).
For Table 8, the accuracy of all algorithms is less than 60%. It is noticed that the kappa value of all algorithms is less than 30%. It is worth noting that the precision of all algorithms is less than 60% and NN has the highest precision (56.6%). It is more notice that the recall of all algorithms is below 60% and NN has the highest precision (59.2%). It is worth mentioned that the specificity of NN (76.5%) algorithm are higher than the other algorithms.
In Table 9, all algorithms provide relatively higher accuracy and random forest gives the highest accuracy (98.48%). It is worth noting that all algorithms provide relatively higher kappa value and random forest gives the highest value (98.23%). It is notice that all algorithms provide relatively higher precision and random forest gives the highest value (98.5%). It can be clearly seen that all algorithms provide relatively higher recall value and random forest gives the highest value (98.5%). It is worth mentioned that all algorithms provide relatively higher specificity value and random forest gives the highest value (99.7%).
For Table 10, RF and KNN provide relatively higher accuracy and RF has the highest accuracy (91.10%). It is noticed that RF and KNN provide relatively higher kappa statistic and RF has the highest kappa value (90.06%). It is worth mentioning that RF and KNN provide relatively higher precision and RF has the highest value (91.20%). It can be clearly seen that RF and KNN provide relatively higher recall and RF has the highest value (91.10%). It is noticed that RF and KNN provide relatively higher specificity and RF has the highest value (99%).
From Table 11, it can be seen that all the algorithms are highly significant for breast cancer and image segmentation dataset. The Random Forest (RF) algorithm has the higher value of F-measure on 3 out of 7 datasets (breast cancer, image, and artificial characters). The LR also gives the higher value of F- measure for vehicle (80.5%) and vertebral column (88.70%). K-NN also provides the highest significant value of F-measure for breast tissue dataset. Bagging provides the highest value of F-measure (53.60%) for CMC dataset. For image and artificial dataset Random Forest (RF) provides highest value of F-measure (98.5% and 91.10%). It is seen that for image segmentation and artificial dataset, the RF provides the highest MCC values are (0.98 and 0.90). For breast cancer, vehicle, and vertebral column dataset, the LR gives the highest MCC values are (0.97, 0.74 and 0.84). For breast tissue dataset, KNN provides the largest value of MCC (0.80) and for CMC dataset all algorithm shows the lowest value of MCC. We also see that the LR gives the best MCC value in 3 out of 7 datasets. It is worth mentioned that for breast cancer dataset, the SVM gives the lesser error rate (0.03) as it provides more perfect prediction and lesser variance in predictions. For vehicle dataset, the LR and NN algorithm provides smallest error rate (0.12). For vertebral column and breast tissue dataset, the LR provides smaller error rate (0.10 and 0.11). For CMC dataset, C4.5 and CART shows the lesser error rate are (0.35). For image dataset, the NN, KNN and CART provides the smaller error rate (0.01). For artificial dataset, the KNN and RF performs better as they provide lowest error rate (0.02). It is notice that the Random Forest (RF) algorithm provides lowest root mean square error of 5 (breast cancer (0.15), vehicle (0.28), breast tissue (0.27), image segmentation (0.07) and artificial characters (0.13)) out of 7 datasets. For vertebral column dataset, the LR provides lesser error rate (0.22) than the other algorithms. For CMC dataset, the KNN provides the lowest root mean square error (0.43).
4. CONCLUSION
Twelve different machine learning algorithms were considered: NB, LDA, LR, ANN, SVM, K-NN, HT, DT, C4.5, CART, RF and BB that have been applied on seven datasets. The results show that Random Forest (RF) was found to be the algorithms with most accuracy, precision and Matthewβs correlation coefficient (MCC). Other four algorithms: NN, NB, BB and LR were found to be the next accurate after RF accordingly. While kappa statistic and RMSE is another factor. For future research, there is a plan to make hybridization of SVM and ANN to enhance and improve the performance of that type of successful famous machine learning algorithm.
Acknowledgments
The authors have no specific acknowledgments to make for this research.
Funding Information
This research received no specific grant from any funding agency in the public, commercial, or notfor-profit sectors.
Author Contributions Statement
| Name of Author | C | M | So | Va | Fo | I | R | D | O | E | Vi | Su | P | Fu | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Md. Siraj-Ud-Doulah | β | β | β | β | β | β | β | β | β | β | β | ||||
| Md. Nazmul Islam | β | β | β | β | β | β | β |
C: Conceptualization; M: Methodology; So: Software; Va: Validation; Fo: Formal analysis; I: Investigation; R: Resources; D: Data curation; O: Writing β original draft; E: Writing β review & editing; Vi: Visualization; Su: Supervision; P: Project administration; Fu: Funding acquisition.
Conflict of Interest Statement
The authors declare that there are no conflicts of interest regarding the publication of this paper.
Informed Consent
All participants were informed about the purpose of the study, and their voluntary consent was obtained prior to data collection.
Ethical Approval
Not Applicable.
Data Availability
The data that support the findings of this study are available from the corresponding author upon reasonable request.
References
- [1] R. Caruana and A. Niculescu-Mizil, 'An Empirical Comparison of Supervised Learning Algorithms', in Proceedings of the 23rd International Conference on Machine Learning, 2006. doi.org/10.1145/1143844.1143865
- [2] 'Machine learning techniques for classification of breast tissue', 9th International Conference on Theory and Application of Soft Computing, vol. 120, pp. 402-410, 2017. doi.org/10.1016/j.procs.2017.11.256
- [3] B. Padmapriya and T. Velmurugan, 'Classification Algorithm Based Analysis of Breast Cancer Data', Breast Cancer Data. IJDMTA, vol. 5, pp. 43-49, 2016. doi.org/10.20894/IJDMTA.102.005.001.010
- [4] A. F. Agarap, 'On breast cancer detection: An application of machine learning algorithms on the Wisconsin diagnostic dataset', arXiv [cs.LG], 20-Nov-2017.
- [5] Tekur and J. Prerna, 'A Study on Classification Algorithms for Predicting Colon Cancer using Gene Tissue Parameters', Gene Tissue Parameters. IJPAM, vol. 119, pp. 2147-2166, 2018
- [6] An Introduction to Statistical Learning with Applications in R. Springer, 2014.
- [7] Handbook of Statistical Analysis and Data Mining Applications. 2009
- [8] βComparison of Classification Algorithms for Predicting Breast Cancer', IJSRD|, vol. IJSRD|, pp. 390- 394, 2017.
- [9] M. Li and R. Sundararajan, 'Application of Machine Learning Algorithms on Breast Cancer Dataset, Electrostatics Joint Conference', pp. 1-7, 2018
- [10] 'Proportional learning of classifiers using breast cancer datasets', IJCSMC, vol. 3, no. 1, pp. 25-37, 2014.
- [11] M. S. U. Doulah, 'Time Series Forecasting: A Comparative Study of VAR ANN and SVM Models', Journal of Statistical and Econometric Methods, vol. 8, pp. 21-34, 2019
- [12] 'Diagnostic Accuracy of Different Machine Learning Algorithms for Breast Cancer Risk Calculation: a Meta-Analysis', Asian Pacific Journal of Cancer Prevention, vol. 19, no. 7, pp. 1747-1752, 2018
- [13] 'Machine learning techniques for classification of breast tissue', 9th International Conference on Theory and Application of Soft Computing, vol. 120, pp. 402-410, 2017. doi.org/10.1016/j.procs.2017.11.256
- [14] Ravi, 'Analysis of Classification Algorithms towards Breast Tissue Data Set', IJMTE, vol. 8, pp. 650- 658, 2018
- [15] Vehicle Identification using Support Vector Machines, IOSRJEN', pp. 18-21, 2018
- [16] H. He and E. A. Garcia, 'Learning from imbalanced data', IEEE Trans. Knowledge Data Eng, vol. 21, pp. 1263-1284, 2009. doi.org/10.1109/TKDE.2008.239
- [17] T. G. Dietterich, 'An Experimental Comparison of Three Methods for Constructing Ensembles of Decision Trees: BBR', Kluwer-Academic-Publishers, vol. 40, pp. 139-157, 2000. doi.org/10.1023/A:1007607513941
- [18] 'Diagnosis of Vertebral Column Disorders Using Machine Learning Classifiers', in Conference: Information Science and Applications (ICISA), 2013, pp. 57-89
- [19] 'Guidelines to Select Machine Learning Scheme for Classification of Biomedical Datasets', pp. 128- 139, 2009. doi.org/10.1007/978-3-642-01184-9_12
- [20] 'Diagnostic Prediction of Vertebral Column Using Rough Set Theory and Neural Network Technique', Information Technology Journal, vol. 13, no. 5, pp. 874-884, 2014. doi.org/10.3923/itj.2014.874.884
- [21] H. He and E. A. Garcia, 'Learning from imbalanced data', IEEE Trans. Knowledge Data Eng, vol. 21, pp. 1263-1284, 2009. doi.org/10.1109/TKDE.2008.239
- [22] 'Performance Analysis and Evaluation of Different Data Mining Algorithms used for Cancer Classification', IJARAI, vol. 2, no. 2, pp. 67-89, 2013. doi.org/10.14569/IJARAI.2013.020508
- [23] B.S. Everitt Cluster analysis. Edward Arnold, London, 1993.
- [24] V. Jakkula, Tutorial on Support Vector Machine (SVM). Retrieved August 15, 2011, from http://eecs.wsu.edu/~vjakkula/SVMTutorial.doc
- [25] 'Comparative Study of Classification Techniques (SVM, Logistic Regression and Neural Networks) to Predict the Prevalence of Heart Disease', Heart Disease. IJMLC, vol. 5, no. 5, pp. 414-419, 2015. doi.org/10.7763/IJMLC.2015.V5.544
- [26] M. S. U. Doulah, 'Application of Machine Learning Algorithms in Bioinformatics', Bioinformatics and Proteomics Open Access Journal, vol. 3, pp. 1-11, 2019. doi.org/10.23880/bpoj-16000127
- [27] Classification and Regression Trees. Wadsworth, Belmont, 1984
- [28] N. Dogan and Z. Tanrikulu, 'A Comparative Framework for Evaluating Classification Algorithms', in Proceedings of the World Congress of Engineering, 2010.
- [29] Duda et al., Pattern Classification, Wiley-New York, 2001
- [30] 'A principled Approach for Building and Evaluating Neural Network Classification Models', Decision Support Systems, pp. 233-246, 2004. doi.org/10.1016/S0167-9236(03)00093-9
- [31] 'Performance analysis of Hoeffding trees in data streams by using massive online analysis framework', Int. J. Data Mining, Modelling and Management, vol. 7, pp. 293-313, 2015. doi.org/10.1504/IJDMMM.2015.073865
- [32] 'An Algorithm Model for Incremental detection of Spam Reviews', International Journal of Modelling and Optimization, vol. 6, pp. 45-48, 2016. doi.org/10.7763/IJMO.2016.V6.501
- [33] Tharwat, 'Classification assessment methods', Applied Computing and Informatics, vol. 17, no. 1, pp. 39-56, 2021. doi.org/10.1016/j.aci.2018.08.003
- [34] D. Yu-Wei, 'Machine learning with R cookbook, Published by Packt Publishing Ltd', Birmingham, vol. 3, no. 2, 2015.
- [35] 'On the Comparison of Methods of Estimating Missing Values in Rectangular Lattice Designs', Journal of Mathematics and Statistics, vol. 14, pp. 201-208, 2018. doi.org/10.3844/jmssp.2018.201.208