YTUP
Journals
About
Services
Guides
Sign InSubmit Article
HomeJournalsJournal of Advances in Manufacturing Engineering10.14744/ytu.jame.2025.00008
JoJournal of Advances in Manufacturing Engineering
Get Alerted Download PDF
AbstractKeywordsIntroductionMaterials And MethodsResults And DiscussionShare and CiteRelated Articles
Article Open Access1 January 2025

Comparative study of machine learning and ensemble learning approach on tool wear classification

Order Reprints Cite Share

Muhammet Ali AYKANAT*, and Rifat KURBAN

* Author to whom correspondence should be addressed.

Journal of Advances in Manufacturing Engineering 2025, Vol. 6, Issue 2, pp. 86-93; doi.org/10.14744/ytu.jame.2025.00008

Download PDF View DOI record

Abstract

Tool wear is a critical challenge in machining operations, significantly affecting production quality, operational efficiency, and maintenance costs. Traditional approaches, such as sen-sor-based monitoring and material coatings, have limitations in accurately and proactively predicting tool wear in dynamic manufacturing environments. To address these challenges, this study explores the application of machine learning and ensemble learning methods to improve the reliability and accuracy of tool wear classification. We implemented five differ-ent algorithms: K-Nearest Neighbors (KNN), Decision Trees, Random Forests, LightGBM, and XGBoost, to predict the tool condition as "worn" or "unworn." Despite high individu-al model performances, each exhibited certain weaknesses, motivating the development of an ensemble learning approach. A soft voting classifier, combining KNN, Random Forest, and LightGBM, was proposed to overcome these shortcomings by leveraging the strengths of multiple models. Experimental results demonstrated that the ensemble method achieved superior performance, with an accuracy of 0.9968 on the unseen test dataset. This research highlights the potential of ensemble learning to provide robust, accurate, and generalizable solutions for tool wear prediction, contributing to smarter, more proactive maintenance strat-egies in manufacturing environments.

Keywords: Classification; ensemble learning; machine learning; machine tools; tool wear prediction.

Introduction

Tool wear is a critical issue in machining operations as it directly impacts the workpiece's quality and the machining process's efficiency [1]. The gradual loss of material from the cutting tool due to friction and other factors not only affects the tool itself but also leads to changes in the machined surface and the overall performance of the machine tool Understanding and effectively managing tool wear is essential to maintaining production quality, reducing production time, and minimizing economic losses associated with tool replacement and poor workpiece quality [2].

Researchers have explored various traditional methods and technologies to address tool wear problems without resorting to machine learning or artificial intelligence. One approach involves using sensor fusion strategies to monitor cutting tool wear [2]. By integrating data from different sensors that capture information on tool conditions during machining processes, operators can make informed decisions regarding tool replacement and maintenance to ensure consistent workpiece quality and production efficiency. Additionally, the application of Ti/AlTiN multilayer coatings on cutting tools has been investigated to mitigate the crater wear process and improve the tribological properties of

*Corresponding author. *E-mail address: muhammetali.aykanat@agu.edu.tr Published by Yıldız Technical University Press, İstanbul, Türkiye This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).

J Adv Manuf Eng, Vol. 6, Issue. 2, pp. 86–93, December, 2025

the tools [3]. These coating technologies offer a preventive measure against wear, enhancing the durability and performance of cutting tools in machining operations. On the other hand, leveraging machine learning techniques for tool wear classification has shown promising results in enhancing the accuracy and efficiency of wear monitoring systems. Studies have demonstrated using support vector machine (SVM) algorithms coupled with time and frequency domain analysis to correlate sound signals generated during cutting processes with tool wear conditions [4]. Training machine learning models on these acoustic signatures makes it possible to classify tool wear states in real time, enabling proactive maintenance and replacement strategies to be implemented. Furthermore, the integration of machine learning classification models, such as convolutional neural networks (CNNs), has been explored for online tool wear classification during machining processes [5]. By utilizing real-time cutting force measurements and CNN approaches, researchers have achieved significant accuracy rates in classifying tool wear states, enabling timely identification and mitigation strategies to be deployed [5]. Additionally, the use of pre-trained CNNs for vision-based tool wear classification has been investigated, highlighting the importance of timely identification and classification of wear conditions to guide tool replacement decisions and minimize wear-related issues [6]. In conclusion, the problem of tool wear in machine tools is a multifaceted issue that requires a comprehensive approach for effective management. While traditional methods like sensor fusion and coating technologies offer preventive measures against wear, the use of machine learning and artificial intelligence techniques provide advanced capabilities for real-time wear monitoring and classification. By combining these approaches, manufacturers can optimize tool usage, enhance production efficiency, and ensure consistent quality in machining operations. In this study, various machine learning algorithms are implemented to address the tool wear problem. By leveraging the capabilities of machine learning, it becomes possible to predict tool wear with higher accuracy and reliability compared to traditional methods. The algorithms used in this study include K-Nearest Neighbors (KNN), Decision Tree, Random Forest, LightGBM, and XGBoost, each known for their unique strengths in handling different aspects of data. These models are compared in terms of their predictive accuracy to identify the most effective approach for tool wear prediction. Additionally, ensemble learning techniques are employed to combine the strengths of multiple models, aiming to achieve more robust and reliable results. Ensemble learning, through methods like voting classifiers, enhances the overall performance by mitigating the weaknesses of individual models, thus providing a more comprehensive solution to the tool wear problem.

Materials And Methods

Dataset The dataset, originating from the University of Michigan's System-level Manufacturing and Automation Research Testbed (SMART) published in April 2018, 18 dif-

ferent machining experiments performed on wax blocks (2" x 2" x 1.5") with S shape using a CNC milling machine [7]. The general data from each of the 18 distinct experiments encompass the experiment number, the material used (wax), the feed rate, and the clamping pressure. Each experiment's outputs include the condition of the tool (unworn or worn) and whether the tool passed a visual inspection. Time series data were collected from the 18 experiments at a sampling rate of 100 ms and are individually documented in files named experiment_01.csv to experiment_18.csv. Each file contains measurements from the CNC machine's four motors (X, Y, Z axes, and spindle). These experiments varied tool conditions, feed rates, and clamping pressures to investigate their effects on machining performance. The aggregated dataset comprised 25,286 observations and 52 features, of which 12 were categorical, and 40 were numerical. Proposed Method The proposed method, given in Figure 1, leverages a machine learning and ensemble learning approach to solve the given problem. This methodology comprises three main steps: data preprocessing, model implementation, and ensemble approach. Data preprocessing is a crucial step that involves handling outliers and missing values, encoding categorical variables, standardizing the features, and performing stratified data splitting. Outlier handling ensures that extreme values do not skew the model's performance while addressing missing values, which prevents the introduction of bias. Encoding categorical variables transforms them into a numerical format suitable for machine learning algorithms. Standardization ensures that the features have a mean of zero and a standard deviation of one, essential for the proper convergence of many machine learning algorithms. Stratified splitting ensures that the train and test sets have similar distributions of the target variable, maintaining the representativeness of the data. Five different machine learning models are implemented to identify the best solution: K-Nearest Neighbors (KNN) [8], Decision Tree [9], Random Forest [10], LightGBM [11], and XGBoost [12]. Each base model undergoes hyperparameter optimization and is evaluated using 5-fold cross-validation on the training set to ensure robust performance and prevent overfitting. KNN is known for its simplicity and effectiveness in classification tasks [13]. Decision Trees provide interpretability by creating a tree-like structure of decisions [14]. Random Forest, an ensemble of Decision Trees, improves performance through averaging, which reduces variance and prevents overfitting [15]. LightGBM and XGBoost are gradient-boosting frameworks that build models sequentially, with each new model correcting errors made by the previous ones [11, 12]. These methods are compelling for large datasets and have been shown to achieve high predictive accuracy [16, 17]. The ensemble approach employs a voting classifier, evaluated on the test set. The voting classifier combines KNN, Random Forest, and LightGBM as voters. Ensemble methods are known to improve predictive performance by combining the strengths of multiple models [18]. This approach reduces the

J Adv Manuf Eng, Vol. 6, Issue. 2, pp. 86–93, December, 2025

Figure 1. An architecture of proposed method. likelihood of overfitting and increases robustness and generalization [19]. By aggregating the predictions of diverse models, the ensemble method can achieve higher accuracy and better generalization compared to individual models [20, 21].

Results And Discussion

Data Preprocessing The dataset comprised 18 experimental CSV files and one training file containing tool status labels categorized as "worn" or "unworn". The initial step involved merging the 18 experimental files into a single dataset. This merged dataset included features from the experimental files along with additional columns for exp_no, feedrate, clamp_pressure, and tool_condition extracted from the training file. The aggregated dataset consisted of 25,286 observations and 52 features. Among these features, 12 were categorical, and 40 were numerical. Outliers were detected in 27 features and addressed using the Interquartile Range (IQR) method to ensure a more robust dataset for analysis. To prepare the dataset for machine learning algorithms, we meticulously applied label encoding to the tool_condition feature. This process converted the categorical labels "worn" and "unworn" into numerical values, ensuring the accuracy of the data. One-hot encoding was then applied to the other categorical features to avoid any ordinal relationships being implied by the model. After implementing the encoding, the shape of the dataset was transformed to (25,286, 61), reflecting the addition of new columns from the one-hot encoding process. To standardize the dataset, Min-Max scaling (1) was applied to all features, bringing them into the range [0, 1]. The exp_no feature was subsequently dropped to prevent potential issues with high correlation. These preprocessing steps resulted in a clean, normal-

ized, and well-structured dataset ready for subsequent machine learning model development and analysis. After pre-processing, the whole dataset was shuffled and split into different CSV files named train and test to ensure the model did not see the data. Base Model Before the training phase, the dataset was stratified and split into training and testing sets with an 80-20 ratio, ensuring that both sets' class distribution of the tool_condition labels was preserved. A fixed random state was used to ensure the reproducibility of the results. Five different machine learning models, KNN, DT, RF, LightGBM, and XGBoost, respectively, were implemented to predict the tool condition of the dataset. To assess the models' performance and their ability to generalize to unseen data, a 5-fold cross-validation was conducted on the training set. This strategy ensured that each model was trained and validated on different portions of the data, providing a solid evaluation of the model's effectiveness. The results of this evaluation are presented in Table 1. Hyperparameter Optimization The same split data and model were used to implement hyperparameter optimization. A 5-fold cross-validation was performed during the training phase to evaluate the models. Hyperparameter optimization was then conducted using the following ranges in Table 2. The hyperparameters’ ranges were found and decided by trial and error. The performance of each model was evaluated based on accuracy, F1-score, and ROC_AUC on the test set. The results of the best models after hyperparameter optimization with the train set are summarized in Table 3. Model Evaluation Accuracy measures how correct a model's predictions are overall. It is calculated as the ratio of correctly predicted instances to the total number of instances in the dataset. The formula for accuracy is:

J Adv Manuf Eng, Vol. 6, Issue. 2, pp. 86–93, December, 2025

0.01. to 0.1

{'max_depth': None, 'min_samples_ split': 15, 'n_estimators': 300}

where Accuracy is a valuable metric when the classes are balanced, as it provides a straightforward measure of how often the model is correct. The F1-Score, which is the harmonic mean of precision and recall, serves as a metric that balances false positives and false negatives. It is particularly beneficial for imbalanced datasets because it takes into account both precision (the correctness of positive predictions) and recall (the capability to identify all positive cases). The formula for the F1-score is:

The receiver Operating Characteristic (ROC) and the Area Under the Curve (AUC) are fundamental concepts in evaluating the performance of binary classification models in machine learning and statistics. The ROC curve is a graphical representation that illustrates the diagnostic ability of a binary classifier system as its discrimination threshold is varied. It is a plot of the True Positive Rate (TPR) (also called sensitivity) against the

J Adv Manuf Eng, Vol. 6, Issue. 2, pp. 86–93, December, 2025

Figure 2. Confusion matrix of 5 models on train-validation sets. KNN (a), DT (b), RF (c), LightGBM (d), XGBoost (e). False Positive Rate (FPR) (also called false-alarm-rate). So, it is a commonly used summary for assessing the tradeoff between sensitivity and specificity [22]. In mathematical terms, the ROC described as:

The AUC is that summarizes how well a classification model separates positive and negative classes. It is derived from the ROC curve, which plots the true positive rate against the false positive rate at different thresholds. That’s why it called ROC_AUC. When the ROC_AUC is 1.0, it indicates that the model perfectly separates the classes, making accurate predictions without any mistakes. An ROC_ AUC of 0.5 means the model has no discriminative power and performs as if it were guessing randomly, with no better performance than chance. When the ROC_AUC is less than 0.5, the model performs worse than random guessing, making more incorrect predictions than correct ones, and thus is considered worse than random. The higher the AUC, the better the model is at correctly distinguishing between the classes. Mathematical formula for ROC_AUC is:

where TPR is true positive rate, FPR is false positive rate Accuracy was selected as the primary evaluation metric for this study because the dataset is close to balanced, with 13,308 instances labelled as "worn" (52.63%) and 11,978 instances labelled as "unworn" (47.37%). In a balanced data-

set, accuracy provides a clear and straightforward measure of model performance, as it equally considers the correct predictions of both classes. Additionally, since there is no significant class imbalance, the potential issues of overemphasizing either precision or recall (which the F1-score addresses) are minimized. Accuracy Comparison of Models on Train-Validation Phase Prediction results are obtained from the test set and classification report results are given in Table 4. Experiment results are given in Table 4 and Figure 2 and show that most of the models have good enough accuracy to handle tool wear classification. LightGBM and XGBoost are significantly accurate classifications compared to others. Ensemble Learning In ensemble learning, a soft voting classifier is an advanced technique that merges the probabilistic outputs of several machine learning models to determine the final prediction. This classifier makes decisions based on the combined probabilities provided by all the contributing models. The soft voting classifier operates through the following steps: Base model training: Multiple base classifiers, denotare independently trained on the same ed as dataset. These classifiers can be homogeneous (same algorithm) or heterogeneous (different algorithms) Probability Prediction: For given input data x, each classifier j produces a predicted probability vector:

where is the predicted probability that belongs to classifier j and j is the total predicting class number.

J Adv Manuf Eng, Vol. 6, Issue. 2, pp. 86–93, December, 2025

Table 4. Models and their prediction results on train-validation phase Model

Worn Table 5. Models and their prediction results on the test phase Model

Worn The formula for the soft-voting classifier final decision:

where is probability for each class C given an input x. For a classifier task with m models and C classes, each for model j outputs a probability distribution each given class C. This approach effectively leverages the strengths and mitigates the weaknesses of individual models, leading to enhanced overall performance. In this study, KNN, RF, and LightGBM models are utilized as constituent models for the soft voting classifier. KNN is a non-parametric method that classifies a sample by looking at the predominant class among its nearest neighbors. RF is an ensemble approach that utilizes a collection of decision trees to boost predictive accuracy and prevent overfitting by averaging the predictions from several trees. LightGBM is a gradient-boosting framework that utilizes tree-based algorithms, renowned for its efficiency and outstanding performance. To improve performance, 3 different substructures of the machine learning model were selected. The combined use of these diverse models in a soft voting classifier resulted in an exceptional performance on the train-validation phase, achieving an accuracy of 0.9953, an F1 score of 0.9955, and an ROC AUC of 0.9996. Even though the voting clas-

sifier model could not reach the training-validation phase, it shows that the voting classifier model is not as effective as LightGBM (0.9972). We need to evaluate the test data to make a final decision. To handle this, all models, including the voting classifier, are saved to make predictions on the test set, which is taken during the data pre-processing phase. Test results are given in Table 5 and show that even if the model achieves good results in the training-validation phase, it may lose performance on test data that it has not yet encountered. While gradient-based models, like LightGBM, often demonstrate strong performance during the training and validation phases, there is a possibility that their effectiveness may diminish when applied to new, unseen test data. This phenomenon can arise due to the model's reliance on specific patterns learned from the training data, which may not generalize well to other datasets. In contrast, non-parametric models such as K-Nearest Neighbors (KNN) tend to excel in these situations. KNN operates on the principle of proximity, making predictions based on the closest training data points to a given test instance. This flexibility allows KNN to adapt to the underlying structure of the data more effectively, often resulting in improved performance when faced with previously unencountered data. Thus, as can be seen from Table 5, while both model types have their strengths and weaknesses, the voting classifier can eliminate model weaknesses if it contains diverse types of machine learning models.

J Adv Manuf Eng, Vol. 6, Issue. 2, pp. 86–93, December, 2025

Share and Cite

AYKANAT, M.A.; KURBAN, R. Comparative study of machine learning and ensemble learning approach on tool wear classification. Journal of Advances in Manufacturing Engineering 2025, Vol. 6, pp. 86-93. https://doi.org/10.14744/ytu.jame.2025.00008

Export:

Related Articles

Evaluation of health care systems using supervised and unsupervised machine learning approachesCanan BULUT, Tuğba SÖNAL et al., 1 January 2025Classification of breast cancer using ensemble machine learning with apache sparkDurga Pujitha KROTHA, Fathimabi SHAIK, 1 January 2025Expense tracker management system using machine learningRishiraj Singh THAKUR, Akshay JADHAV, 1 January 2025Cutting force estimation in turning of AISI 1117 free-cutting steel using machine learning algorithKadir ÖZDEMİR, Ulvi ŞEKER et al., 1 January 2025
Publication History
Published1 January 2025
Versionv1
AccessOpen Access
10.14744/ytu.jame.2025.00008
Article Figures (3)
Figure 1Figure 2Figure 3
Related Articles
Evaluation of health care systems using supervised and unsupervised machine learning approachesCanan BULUT, Tuğba SÖNAL et al.Journal of Advances in Manufacturing Engineering, 1 January 2025Classification of breast cancer using ensemble machine learning with apache sparkDurga Pujitha KROTHA, Fathimabi SHAIKJournal of Advances in Manufacturing Engineering, 1 January 2025Expense tracker management system using machine learningRishiraj Singh THAKUR, Akshay JADHAVJournal of Advances in Manufacturing Engineering, 1 January 2025
Journal of Advances in Manufacturing Engineering coverJournal of Advances in Manufacturing Engineering Download PDF

Subscribe to YTUP

Stay connected and receive the latest research updates directly in your inbox.

YTUP — Yıldız Technical University Publishing

Advancing knowledge and fostering innovation through high-quality, peer-reviewed academic publications.

About YTU

Discover

  • ›Articles
  • ›Journals
  • ›Research Topics
  • ›Open Access Policy

Guidelines

  • ›Author guidelines
  • ›Services for authors
  • ›Policies and publication ethics
  • ›Editor guidelines
  • ›Fee policy

Explore

  • ›Articles
  • ›Research Topics
  • ›Journals
  • ›How we publish

Support

  • ›Help center
  • ›Emails and alerts
  • ›Contact us
  • ›Submit
  • ›Career opportunities
YTU Logo

© 2026 Yıldız Technical University (Istanbul, Turkey)

Terms and ConditionsTerms of UsePrivacy PolicyPrivacy SettingsDisclaimer
Like this platform? Join our teamHave feedback or questions?
Supervisor