Performance of AISI 1045 Axial Surface Roughness Classification Using KNearest Neighbor with Multiple Distance Metrics and an Ensemble Method
DOI:
https://doi.org/10.37934/sej.17.1.116Keywords:
AISI 1045, distance metric, ensemble learning, k-nearest neighbors, surface roughness classificationAbstract
Reliable classification of surface-roughness grades is important for machining quality control because incorrect decisions may increase rework, inspection time, and production cost. This study evaluates k-nearest-neighbor (KNN) classifiers for predicting the axial surface-roughness grades of face-milled AISI 1045 steel using Euclidean, Cosine, and Hamming distance metrics. A hard-voting ensemble combining the three classifiers is also examined. The predictor set comprises cutting speed, feed rate, depth of cut, and tangential roughness measured at six locations. Candidate neighborhood sizes were evaluated from k = 1 to 20, and the selected models were subsequently assessed through repeated hold-out resampling with replacement. Model performance was quantified using Accuracy, Precision, Recall, F1-score, and area under the receiver-operating-characteristic curve (AUC), followed by one-way analysis of variance and Tukey-Cramer comparisons. Euclidean KNN was the strongest and most stable individual classifier, whereas the ensemble achieved the highest mean Accuracy (83.01%), Recall (59.45%), F1-score (55.72%), and AUC (73.33%). Euclidean KNN retained the highest Precision (55.02%). The results demonstrate that combining complementary neighborhood geometries improves detection-oriented performance, although class imbalance and the limited representation of the N3 roughness grade remain important constraints. Relative to Euclidean KNN, the ensemble improved Accuracy by only 1.52 percentage points and F1-score by 1.51 points while reducing Precision by 1.34 points. These results reflect internal resampling under a single machining condition; computational cost, external validation, and real-time feasibility were not established.








