Manuscript Offprint
arXiv:2611.07356Acoustic Anomaly Detection for Early Identification of Drill Jamming
1st Maria Beatriz Silva
Federal Rural University of Pernambuco
Recife, Brazil
2nd Lucas Edson Silva de Araújo
Federal Rural University of Pernambuco
Recife, Brazil
3rd Sergio F. Chevtchenko
ICNS, Western Sydney University
Penrith, Australia
s.chevtchenko@westernsydney.edu.au
4th Ermeson Andrade
Federal Rural University of Pernambuco
Recife, Brazil
5th Danilo Araujo
Federal Rural University of Pernambuco
Recife, Brazil
6th Saeed Afshar
ICNS, Western Sydney University
Penrith, Australia
Abstract—In the context of Industry 4.0, predictive maintenance is essential to minimize unplanned downtime and ensure operational safety. In machining processes, drill jamming is a critical failure that compromises both workpiece quality and tool integrity. This work proposes an acoustic anomaly detection system using ultrasonic sensors to identify pre-failure patterns in Computer Numerical Control (CNC) machining. We release a public dataset of time- and frequency-domain acoustic features from 17 drills, and benchmark semi-supervised autoencoder-based normality modelling against supervised XGBoost classification using Leave-One-Drill-Out validation. The results demonstrate that the Autoencoder is highly effective for industrial safety, achieving a Recall of 1.00 and a consolidated F1-score of 0.81. Furthermore, the threshold-independent analysis shows that the Autoencoder better separates normal and pre-failure acoustic patterns, achieving a consolidated AUC of 0.8294, compared with 0.7559 for the supervised model under inter-tool covariate shift. In contrast, the supervised XGBoost achieved an average F1-score of 0.55 and failed to detect failures in some of the evaluated drills. The findings highlight that the ultrasonic spectrum provides a reliable window for identifying incipient mechanical instabilities, and the AE model offers a robust safety envelope by anticipating all jamming events across the tested drill bits.
Index Terms—Acoustic Emission, Drill Jamming, Anomaly Detection, Autoencoders, XGBoost, Predictive Maintenance.
I. INTRODUCTION
In the context of Industry 4.0, predictive maintenance strategies have replaced traditional corrective and preventive approaches by integrating sensors and advanced data analysis techniques into production systems [1]. In machining operations, tool integrity is a critical factor for product quality and operational safety. Among the most severe events is drill jamming, which can cause damage to the workpiece, the tool, and the machining center, in addition to generating unplanned downtime and high costs [2].
Acoustic monitoring has emerged as a non-invasive and low-cost alternative for tool condition monitoring. Unlike force or vibration sensors directly coupled to the system, acoustic sensors can be easily integrated into the industrial environment without interfering with the production process. Studies based on acoustic emission show that high-frequency components are particularly sensitive to changes in the cutting regime and to the onset of mechanical instabilities, especially in micro-drilling operations [3]. This sensitivity occurs because acoustic emission signals are generated by the rapid release of strain energy from localized sources such as plastic deformation and crack propagation, which are inherently high-frequency phenomena in machining [2], [4]. In this context, acoustic signals in the ultrasonic range present high potential for capturing subtle signatures associated with tool wear and pre-failure phenomena. Therefore, ultrasonic spectrum analysis can reveal patterns that precede catastrophic failures.
Despite advances in tool condition monitoring, relevant challenges remain. In real industrial environments, failures are rare events when compared with the large volume of normal data, resulting in imbalanced datasets that hinder the application of traditional classifiers [5], [6]. In addition, natural variations in service life and wear dynamics among different tools may introduce changes in the statistical distribution of data between training and testing phases, a phenomenon known as covariate shift [7]. This effect compromises the generalization capability of models when applied to tools not seen during training.
Although the literature presents effective methods for fault diagnosis after occurrence, as demonstrated by Nakano et al. [3] and Tagawa et al. [8], there remains a gap in the investigation of explicit anticipation of jamming under rigorous validation protocols [6]. In particular, many existing studies do not explicitly account for covariate shift across different tools, often relying on validation strategies that mix data from the same tool in both training and testing sets, leading to overestimated performance and limited real-world generalization. To the best of our knowledge, no study simultaneously explores (i) the use of the ultrasonic microphones for drill wear monitoring throughout the tool's life cycle, (ii) inter-tool validation strategies that prevent information leakage between distinct
© 2026 IEEE. Accepted for publication in the IEEE International Conference on Industrial Informatics (INDIN 2026).
cycles and explicitly simulate covariate shift conditions, and (iii) the systematic comparison between supervised models and anomaly detection approaches with respect to their robustness under distributional shifts.
Given this scenario, this work proposes a modular system for offline detection of ultrasonic acoustic anomalies, composed of independent stages for signal processing, feature extraction, and specialized detection models, aimed at the early identification of drill jamming in CNC machining processes. The study is conducted on a dataset composed of 17 4mm carbide drills, covering different wear profiles and jamming events, whose signals were acquired by an ultrasonic microphone positioned externally to the cutting region. This setup evaluates model robustness to variability across physically distinct tools. To address the challenges of data imbalance and inter-tool variability, this work evaluates and compares two complementary machine learning paradigms: (i) a semi-supervised model based on an Autoencoder trained exclusively with normal data, in which the detection threshold is modeled as a controllable statistical parameter, and (ii) a supervised model based on XGBoost with evolutionary hyperparameter optimization. This comparison is particularly relevant under covariate shift conditions, where models must generalize across unseen tool distributions.
To ensure a realistic evaluation of generalization capability, the Leave-One-Drill-Out (LODO) strategy is adopted, equivalent to group-based cross-validation, in which each drill is alternately used as the test set. This configuration prevents data from the same tool from being simultaneously present in training and testing, simulating the industrial scenario in which the model must operate on unseen tools. In this context, LODO explicitly enforces a covariate shift condition between training and testing data. This dual analysis aims to determine which approach provides a more reliable early warning mechanism, capable of identifying the subtle spectral shifts that precede tool failure. The main contributions of this work are: (i) the construction, documentation, and public release of a multi-drill acoustic dataset, including a detailed description of the experimental protocol; (ii) the proposal of a rigorous inter-tool validation protocol for acoustic monitoring of drills under covariate shift conditions; and (iii) the comparative analysis between supervised and unsupervised approaches, including the investigation of the influence of the decision threshold on Autoencoder performance.
Studies based on acoustic emission show that high-frequency components are particularly informative for progressive tool degradation. Nakano et al. [3] proposed a monitoring method for micro-drilling based on anomaly segmentation in time-frequency images derived from acoustic emission signals, showing that specific spectral signatures emerge in advanced wear stages. Similarly, Tagawa et al. [8] investigated the detection of mechanical faults through acoustic signals in noisy industrial environments, highlighting the need for robust techniques capable of isolating relevant patterns even under significant interference.
In addition to the use of acoustic signals, approaches based on internal machine control data have also been explored. Reeber et al. [6] evaluated anomaly detection methods applied to tool condition monitoring in drilling processes, demonstrating that machine learning models can distinguish normal and anomalous behavior with consistent performance. However, these studies focus predominantly on the identification of already established irregularities, with less emphasis on the explicit anticipation of the jamming event.
In the context of modeling, supervised methods based on ensemble learning, such as XGBoost, have shown significant results in industrial fault diagnosis tasks. Wu et al. [9] demonstrated that combining XGBoost with genetic algorithms for hyperparameter optimization significantly improves performance in electrical fault detection systems. In parallel, semi-supervised and reconstruction-based approaches, such as Autoencoders, have been widely employed in scenarios with scarce labeled data [10], modeling normal behavior to identify relevant statistical deviations [11].
Despite these advances, a recurring challenge in industrial applications is the variability between life cycles of different tools. Differences in wear rate and operating conditions may induce changes in the statistical distribution of data between training and testing sets, a phenomenon known as covariate shift [7]. This distributional mismatch directly affects the generalization capability of data-driven models when applied to unseen tools. Many studies report validation by random sampling or traditional k-fold procedures [6], which may introduce information leakage when data from the same tool appear simultaneously in training and testing, overestimating the real performance of the model [7]. As a result, reported performance may not reflect real industrial deployment conditions, where models must operate on previously unseen tools. Building on these limitations, the present work evaluates Autoencoder and XGBoost architectures to detect imminent drill jamming in rare-failure scenarios under a Leave-One-Drill-Out validation strategy. This approach explicitly enforces inter-tool separation and simulates covariate shift conditions, providing a more realistic assessment of model robustness for industrial deployment.
III. METHODOLOGY
This section details the experimental configuration used for data acquisition, acoustic signal processing, and the modeling strategy for early detection of jamming in small-diameter drills.
A. Experimental Setup and Data Acquisition
The experimental data was collected using a CNC machining center during the drilling of iron plates. Each 4 mm diameter carbide drill followed a programmed sequence of holes until critical failure. However, it is important to emphasize that tool life is inherently stochastic. As discussed by Teti et al. [2], the transition to tool failure is influenced by multiple factors such as tool-workpiece interaction, material heterogeneity, and process variability, leading to significant uncertainty in tool life.
This unpredictability is visually demonstrated in Fig. 1. While the new tool (Fig. 1a) presents intact cutting edges, Drill #10 (Fig. 1b) suffered a jamming event after only 22 holes. In contrast, Drill #2 (Fig. 1c) sustained 107 holes before reaching a similar state of critical failure. These observations suggest that tool jamming is not strictly correlated with cumulative wear, justifying the need for the real-time anomaly detection approach proposed in this work.
The instrumentation setup focused on the use of ultrasonic Micro-Electro-Mechanical Systems (MEMS) sensors positioned inside the machining area (see Fig. 2). This study focuses on internal ultrasonic data because it better captures high-frequency pre-failure signatures, such as friction and micro-cracking, which may be masked by lower-frequency industrial noise in the audible range. Comparisons with microphones in the audible range and fusion of multiple signals are left for future work.

Fig. 2: Experimental setup showing the drilling machine, the workpiece material, and the positioning of the acoustic sensors. Three standard-range microphones (96 kHz sampling rate) and three ultrasonic microphones (192 kHz sampling rate) are installed inside the CNC machine enclosure. Data from the highlighted ultrasonic microphone are used in the present study.
The resulting dataset consists of 17 industrial drills monitored throughout their life cycle. By isolating the ultrasonic signals, the proposed system aims to identify subtle spectral shifts and transient impulses above 20 kHz, which serve as deterministic indicators of the transition from stable operation

(a)

(b)

(c)
Fig. 1: Microscopic inspection showing tool life variability: (a) initial state, (b) premature failure, and (c) advanced wear.
to the critical wear phase. All scripts and datasets used in this study are publicly available .
B. Dataset and Experimental Configuration
To ensure statistical robustness and capture operational variability, 17 industrial drills were monitored. All tools were used in the training and evaluation stage of the models, allowing the capture of different degradation patterns and variability among physically distinct tools. Based on the total number of holes drilled until failure, the tools can be categorized into three distinct service life profiles:
• Short Life (18 ≤ n ≤ 30 holes): Drills 03, 05, 07, 08, 09, 10, 12, 15, and 16, representing premature failures or accelerated degradation.
• Medium Life (31 ≤ n ≤ 60 holes): Drills 01, 04, 06, 11, 13, 14 and 17.
• Long Life (107 holes): Drill 02, representing a tool with superior operational durability.
https://github.com/BeatrizSilva-Dev/projeto_brocas_AE
https://doi.org/10.26183/v7kh-b648
C. Signal Acquisition and Segmentation
The acquisition strategy prioritized the capture of high-frequency acoustic signals via an ultrasonic MEMS microphone, mounted inside the CNC machine enclosure, as shown in Figure 2. This sensor was selected for its sensitivity to incipient anomalies and transient impulses during the pre-failure stages, enabling the capture of signatures that are absent or attenuated in lower frequency bands.
The recordings were performed continuously and later segmented into individual holes. To ensure high temporal resolution, the signal was processed using a sliding window approach with a frame length of 1024 samples and a hop length of 512 samples, resulting in a 50% overlap. This configuration provided sufficient temporal resolution to identify the energy valleys associated with drill entry and exit, while preserving transient instabilities critical for anomaly detection.
D. Class Definition
This work adopted a labeling strategy based on the physical progress of the tool wear and its remaining useful life (RUL), prioritizing an objective criterion over subjective human perception. It was established that the critical wear phase, which precedes the drill jamming, corresponds to the final stage of the tool's operation, resulting in the following definition:
-
Normal Class (0): Comprises the first 50% of the drill's lifespan, representing the most stable operating condition. This window is used to define the healthy acoustic baseline.
-
Transition Zone (Unlabeled): Comprises the intermediate 30% of the tool's lifespan (between the 50% and 80% marks). These data points are excluded from the supervised training labels to ensure class purity and avoid training the models with ambiguous degradation patterns.
-
Anomalous/Pre-Failure Class (1): Defined as the final 20% of holes drilled before tool jamming or breakage, capturing the high-frequency instabilities.
Although the Transition Zone is not used for training the supervised models, it remains present during the validation phase to observe the evolution of the anomaly indicators throughout the entire tool life. It is also worth noting that while tool degradation is a continuous and stochastic process, using a fixed boundary enables consistent labeling across drills. This categorization ensures that the ground truth reflects the mechanical degradation leading to tool failure, providing a deterministic target for the monitoring models.
As illustrated in Figure 3, the normal condition (a) presents a stable energy distribution. In contrast, the critical wear phase represented by hole #24 (b) is characterized by intense high-frequency transient impulses. These bursts of energy, predominantly occurring above 20 kHz, indicate the severe friction and mechanical instability that precede the jamming event.

(a)
(b)
Fig. 3: Spectral comparison between (a) a stable drilling condition (first hole) and (b) hole #24 within the critical wear zone (Last 20% of tool life).
E. Feature Extraction
To represent the tool's acoustic signature, signals captured by the MEMS ultrasonic sensor, highly sensitive to microcracks and friction, were decomposed into a 46-dimensional feature vector. This multi-domain representation combines descriptors in both time and frequency domains to robustly capture the energy intensity and spectral shifts associated with tool degradation [12], [13]. The feature vector was constructed by calculating the mean and standard deviation for each of the following 23 metrics over the analyzed segments [14]:
-
MFCCs (Mel-Frequency Cepstral Coefficients, 20 coefficients): Employed to prioritize critical energy bands through a logarithmic Mel scale based on auditory perception, resulting in 40 features;
-
RMS Energy: Used to quantify variations in signal amplitude and average power, representing the intensity of the acoustic signal (2 features);
-
Spectral Centroid: Related to the center of gravity of the energy distribution across frequencies (2 features);
-
Spectral Bandwidth: Indicating the spectral dispersion and the range of frequencies present in the signal (2 features).
This 46-dimension descriptor (2 × 23) ensures that subtle signatures of mechanical instability, predominantly occurring in the ultrasonic range above 20 kHz, are effectively captured for the subsequent anomaly detection process.
F. Machine Learning Architectures
In this work, two complementary machine learning paradigms are evaluated and compared: a semi-supervised Autoencoder for novelty detection and a supervised XG-Boost classifier. This dual analysis aims to determine which approach, normality modeling or boundary-based supervised learning, provides more reliable detection of the spectral changes associated with tool degradation.
- Semi-Supervised Approach (Autoencoder with Dynamic Threshold): An Autoencoder is a neural network trained to learn a compact representation of input data. In this work, the model was trained exclusively with data from the stable operating regime.
-
Operation: The model is trained to reconstruct the 46-dimensional feature vector detailed in Section III-E. During testing, holes that present a reconstruction error (MSE) significantly higher than the learned healthy pattern are classified as anomalies based on the thresholding criteria described below.
-
Architecture: MLP Regressor with hidden layers of (32, 16, 32) neurons and ReLU activation.
-
Training Set Definition: Following the LODO strategy, for each test tool, the model is trained using only the first initial holes of 16 drills at a time, while keeping the last one for testing. This approach ensures the characterization of a general healthy state, avoiding contamination by wear signals.
-
Evaluation Logic: To evaluate performance, all holes of the unseen test drill are analyzed. For metric calculation, the performance is assessed by comparing the model's output against the defined Normal (first 50%) and Anomalous (last 20%) regions, ensuring a clear distinction between tool states. The model's success is determined by its ability to generate an MSE that exceeds the statistical threshold during the transition to the final phase.
-
Threshold Calibration: To ensure robust generalization and avoid data leakage, a statistical threshold is defined based on the reconstruction error distribution of the training set. We utilized the 99.5th percentile of the training MSE to establish a conservative limit that minimizes false alarms while maintaining maximum sensitivity to incipient failures.
- Supervised Approach (XGBoost): For the supervised approach, the Extreme Gradient Boosting (XGBoost) algorithm was used, a learning method based on decision-tree gradient boosting. In this model, a sequential set of trees is constructed, in which each new tree is trained to correct the errors of the previous ones. This strategy makes it possible to capture complex nonlinear relationships between the acoustic features extracted from the signal and the tool state.
The model receives the same 46-dimensional descriptor detailed in Section III-E as input and produces the probability of an anomaly associated with the critical wear phase. To ensure consistency with the established labeling logic, the model was trained to distinguish between the stable operating region (first 50% of life) and the critical wear phase (final 20% of life). To handle class imbalance, the scale_pos_weight parameter was calculated dynamically, considering the ratio between normal and anomalous samples. A standard decision threshold of 0.5 was adopted for final classification.
G. Evolutionary Hyperparameter Optimization of XGBoost
To ensure a fair comparison with the AE and maximize the performance of the XGBoost classifier, stochastic optimization was employed using the DEAP library [15]. Genetic Algorithms (GA) were chosen due to the nonlinear and multidimensional nature of the hyperparameter search space, where exhaustive methods like Grid Search would be computationally inefficient. A single-objective approach was adopted to maximize the F1-Score on a validation set composed of the established regions: the stable operating phase (first 50%) and the critical wear phase (final 20%). The configuration of the genetic operators followed the definitions detailed below:
-
Population: 20 individuals.
-
Generations: 10 (fixed stopping criterion).
-
Selection: tournament selection with size , chosen for its ability to maintain selection pressure and robustness against noise in the fitness function [16];
-
Crossover: Blend Crossover ().
-
Mutation: Gaussian ().
The fitness function employs cross-validation with 5 partitions, using GroupKFold to ensure that hyperparameter selection is robust to the variability between different drills. Once the optimal parameters were determined, they were fixed for the final performance evaluation using the LODO strategy.
The hyperparameter search space is defined as shown in Table I. The parameters , Estimators and Max Depth control the model complexity, balancing learning capacity and generalization. Furthermore, adjusting Subsample and Colsample Bytree between 0.6 and 1.0 introduces controlled stochasticity, making the classifier more resilient to transient instabilities and background noise inherent to the CNC machining environment.
TABLE I: Hyperparameter Search Space (XGBoost)
| Hyperparameter | Search Interval | Scale Type |
|---|---|---|
| N. Estimators | [50, 450] | Linear |
| Max Depth | [3, 15] | Linear |
| Learning Rate | [0.001, 0.1] | Logarithmic |
| Subsample | [0.6, 1.0] | Linear |
| Colsample Bytree | [0.6, 1.0] | Linear |
H. Evaluation Metrics
Because class imbalance makes accuracy unreliable, the F1-score was adopted as the primary evaluation metric:
This metric penalizes both false negatives (missed failures) and false positives (false alarms), and is complemented by analysis of the confusion matrix, calculated strictly over the defined Normal (50%) and Anomalous (20%) regions.
To evaluate the models' discriminative capacity independently of a fixed decision threshold, the Receiver Operating Characteristic (ROC) curve and its Area Under the Curve (AUC) were analyzed [17], [18]. The ROC curve describes the trade-off between the true positive rate and the false positive rate across different classification thresholds. The AUC summarizes this curve into a single threshold-independent measure, representing the probability that a randomly selected pre-failure sample receives a higher anomaly score than a randomly selected normal sample. This analysis complements the fixed-threshold metrics by assessing whether the models preserve class separation beyond a specific calibration choice.
IV. RESULTS AND DISCUSSION
The experiments were conducted under the LODO strategy, allowing evaluation of the actual generalization capability of the system in the presence of natural variability in tool life. In this configuration, each iteration uses one complete drill as the test set while the remaining drills are used for training, simulating a real industrial scenario in which the model must operate on unseen tools whose wear patterns have not been previously observed.
A. Global Performance Analysis
The global performance evaluation, conducted under the LODO strategy, demonstrates that both methods effectively capture the ultrasonic signatures associated with tool wear. Following the feature extraction and labeling criteria established in Section III, the system achieved consolidated average F1-Scores of 0.81 for the Autoencoder and 0.55 for XGBoost.
These results highlight the superior sensitivity of the semi-supervised approach. The Autoencoder, by strictly modeling the stable operating regime (first 50% of life), proved highly effective at identifying the onset of mechanical instability. In contrast, the supervised XGBoost showed lower performance, due to the difficulty of learning a fixed decision boundary across different tools in a high-dimensional feature space. Furthermore, the Autoencoder achieved a global Recall of 1.00, ensuring that all tool jamming events were preceded by an anomaly alert, which is critical for preventing damage to the CNC machinery and workpieces.
To complement these fixed-threshold metrics and assess the model's discriminative power independently of a single decision boundary, a consolidated AUC analysis was conducted across the 17 drills. Within the monitored ultrasonic spectrum, the semi-supervised Autoencoder achieved a consolidated AUC of 0.8294, significantly outperforming the supervised XGBoost classifier, which achieved an AUC of 0.7559. These fixed-threshold and threshold-independent results suggest that, in this experimental setting, modeling the normal acoustic baseline was more effective for detecting pre-failure behavior under inter-tool variability.
TABLE II: Consolidated Performance Metrics Under Ultrasonic Sensing
| Model Paradigm | F1-Score | Global Recall | Consolidated AUC |
|---|---|---|---|
| MLP Autoencoder | 0.81 | 1.00 | 0.8294 |
| XGBoost Classifier | 0.55 | 0.47 | 0.7559 |
B. Autoencoder Performance
Figure 4a presents the consolidated confusion matrix for the Autoencoder across the 17 analyzed drills. The results demonstrate the model's high reliability for industrial safety. Of the 17 drills that reached the critical wear stage (Anomaly Region), all 17 were correctly identified (True Positives), resulting in a Recall of 1.00. The matrix also shows that for the 17 drills in their stable phase (Normal Region), the model correctly classified 9 as "No Alert" (True Negatives) and generated 8 early warnings (False Positives). It should be noted that the statistical threshold (99.5th percentile) was deliberately calibrated to be conservative, prioritizing operational safety. This trade-off is often acceptable in predictive maintenance, where an early warning prompts a risk-free preventive verification rather than a machine breakdown.

(a) MLP Autoencoder
(b) XGBoost Classifier
Fig. 4: Consolidated confusion matrices across all test drills evaluated under the strict Leave-One-Drill-Out (LODO) validation paradigm.
C. XGBoost Model Performance
For comparison purposes, a supervised model was evaluated using the XGBoost algorithm. Unlike the Autoencoder, which learns only the healthy operating regime, XGBoost utilizes explicit labels to attempt to learn a decision boundary between the stable phase and the final critical wear phase.
Figure 4b presents the consolidated confusion matrix for the XGBoost model across the 17 drills. The results show that XGBoost correctly identified 13 normal cases (True Negatives) and only 8 anomalous cases (True Positives). Most critically, the model failed to detect 9 anomalous events (False Negatives), resulting in a significantly lower Recall compared to the semi-supervised approach.
From the perspective of industrial predictive maintenance, these results highlight a significant risk. The Autoencoder's null false negative rate is particularly significant for industrial maintenance. While XGBoost attempts to establish a precise classification boundary, its failure to generalize across different tools (Recall = 0.47) suggests that tool degradation is more accurately captured as a deviation from a known healthy state than as a fixed discrete class. This confirms that the semi-supervised approach provides a more reliable safety envelope for CNC operations.
D. Inter-Tool Generalization
Figure 5 presents the performance distribution across the 17 drills using a boxplot. Under the LODO strategy, this visualization highlights the robust generalization capability of the Autoencoder compared to the supervised approach. The Autoencoder exhibits a higher and more consistent performance, with several tools achieving an F1-score near 1.0, and a median significantly above the XGBoost results.

Fig. 5: F1-score consistency per model across all test drills.
In contrast, the XGBoost model presents a significantly higher variance and a lower median. A critical observation is the presence of several tools with an F1-score of zero in the XGBoost distribution, corresponding to the false negatives previously discussed. This instability suggests that the supervised approach struggles to establish a universal decision boundary that accounts for the individual wear dynamics of each drill.
The analysis confirms that the Autoencoder maintains superior performance regardless of tool durability. The statistical significance of this superiority was verified through a Wilcoxon signed-rank test, which yielded a p-value of , confirming that the semi-supervised approach provides a consistently more reliable detection envelope than the supervised model. Even tools with distinct profiles exhibit stable detection patterns, reinforcing the potential of ultrasonic monitoring without the need for tool-specific calibration.
E. Temporal Evolution Analysis
Figure 6 illustrates the detection dynamics for two unseen drills with distinct service life profiles under the LODO strategy: (a) Drill #03 (Short Life) and (b) Drill #02 (Long Life). The left y-axis represents the Autoencoder reconstruction error (MSE), while the right y-axis shows the XGBoost anomaly probability. The dashed horizontal lines indicate the decision thresholds: a statistically defined AE threshold (0.282 in (a) and 0.277 in (b)) and a fixed XGBoost classification threshold of 0.5.
-
Autoencoder Response (Green Line): In Fig. 6(a), the AE reconstruction error remains low and stable during the initial holes, followed by a gradual increase as the tool approaches failure. The threshold crossing occurs close to the critical region, indicating sensitivity to degradation even in short life cycles. In contrast, Fig. 6(b) shows a clearer temporal pattern: after approximately hole 60, the AE establishes a persistent alert regime, maintaining values consistently above the threshold well before the final 20% of tool life.
-
XGBoost Response (Orange Line): In Fig. 6(a), the XGBoost confidence remains close to zero for most of the tool life and only increases abruptly near the critical region, with strong oscillations around the 0.5 threshold. In Fig. 6(b), this instability becomes even more evident, with frequent fluctuations above and below the decision boundary, indicating low temporal consistency.
-
Sensitivity Analysis: In both cases (a) and (b), the AE threshold is crossed before the red shaded region (final 20%), indicating early detection of pre-failure behavior. These detections correspond to incipient mechanical instabilities captured in the ultrasonic spectrum, rather than false alarms, providing a useful anticipation window for predictive maintenance.

(a) Drill #03 (Short Life - 26 holes).

(b) Drill #02 (Long Life - 107 holes).
Fig. 6: Temporal evolution of anomaly indicators for unseen tools with different life cycles. The shaded red area represents the critical pre-failure zone (final 20% of life).
F. Discussion and Limitations
The experimental results confirm that high-frequency acoustic monitoring extends beyond the limits of human perception in machining environments. The superior performance of the semi-supervised Autoencoder () over the supervised XGBoost () represents a significant contribution to the field of tool condition monitoring. It suggests that tool degradation is more effectively characterized as a deviation from a known healthy state rather than a distinct, repeatable class. This is particularly relevant in the ultrasonic domain, where micro-fractures and friction create non-linear spectral shifts that vary significantly between different physical tools.
The main contribution of this work is the adaptation of anomaly detection models to a rigorous inter-tool validation framework. Unlike random data splitting, the LODO strategy evaluates whether the model can generalize to unseen tools. The zero false-negative rate achieved by the Autoencoder indicates a reliable safety envelope, which is particularly important in CNC drilling, where missing an impending failure can be far more costly than raising a false alarm.
Tool degradation is a continuous physical process, while the labeling strategy uses discrete thresholds as a necessary simplification. Furthermore, the thresholds used in this study are specific to 4 mm carbide drills, and applying the approach to other tool geometries or cutting conditions would likely require adaptive calibration to account for different acoustic baselines.
Although the dataset includes only 17 drills, each tool was monitored continuously throughout its operational life until failure. This produced a large dataset with segmented acoustic windows capturing the progression from stable operation to pre-failure. As a result, the dataset provides meaningful operational coverage for evaluating inter-tool generalization, despite the limited number of tools.
V. CONCLUSION
This work demonstrated the value of high-frequency acoustic monitoring for early drill-jamming detection. Under LODO validation, the semi-supervised Autoencoder achieved perfect Recall (1.00), an -Score of 0.81, and significantly outperformed XGBoost (). Its stronger threshold-independent performance, with an AUC of 0.8294 versus 0.7559 for XGBoost, further shows that learning the normal acoustic baseline is more robust under inter-tool variability. These results confirm that ultrasonic signals capture early pre-failure signatures and can provide a reliable anticipation window for predictive maintenance while avoiding tool-specific calibration.
As future work, we suggest the investigation of adaptive thresholding techniques to further refine model sensitivity under varying cutting parameters. Additionally, exploring deep learning architectures for time-series forecasting, such as long short-term memory networks or transformer models, could provide more precise estimates of the RUL, further enhancing decision-making in autonomous Industry 4.0 environments.
ACKNOWLEDGMENT
This work was supported by the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq), Brazil, under Grant No. 401147/2025-8. The authors also acknowledge CNPq for the financial support provided through a student scholarship.
REFERENCES
[1] E. M. Zaro and C. G. Webber, "Estudo de caso de desenvolvimento de sistema para manutenção preditiva 4.0," Revista Produção Online, vol. 22, no. 3, pp. 3418-3340, 2022. [2] R. Teti, K. Jemielniak, G. O'Donnell, and D. Dornfeld, "Advanced monitoring of machining operations," CIRP annals, vol. 59, no. 2, pp. 717-739, 2010. [3] T. Nakano, H. Koresawa, and H. Narahara, "Tool condition monitoring method by anomaly segmentation of time-frequency images using acoustic emission in small hole drilling," Journal of Advanced Mechanical Design, Systems, and Manufacturing, vol. 17, no. 3, 2023. [4] K. Jemielniak, "Commercial tool condition monitoring systems," The International Journal of Advanced Manufacturing Technology, vol. 15, no. 10, pp. 711-721, 1999. [5] S. F. Chevtschenko, E. D. S. Rocha, M. C. M. Dos Santos, R. L. Mota, D. M. Vieira, E. C. De Andrade, and D. R. B. De Araújo, "Anomaly detection in industrial machinery using iot devices and machine learning: A systematic mapping," IEEE Access, vol. 11, pp. 128 288-128 305, 2023. [6] T. Reeber, J. Henninger, N. Weingarz et al., "Tool condition monitoring in drilling processes using anomaly detection approaches based on control internal data," Procedia CIRP, 2024. [7] M. Sugiyama, M. Krauledat, and K.-R. Müller, "Covariate shift adaptation by importance weighted cross validation." Journal of Machine Learning Research, vol. 8, no. 5, 2007. [8] Y. Tagawa, R. Maskeliūnas, and R. Damaševičius, "Acoustic anomaly detection of mechanical failures in noisy real-life factory environments," Electronics, vol. 10, no. 19, p. 2329, 2021. [9] Z. Wu, M. Zhou, Z. Lin, X. Chen, and Y. Huang, "Improved genetic algorithm and xgboost classifier for power transformer fault diagnosis," Frontiers in Energy Research, vol. 9, p. 745744, 10 2021. [10] V. Chandola, A. Banerjee, and V. Kumar, "Anomaly detection: A survey," ACM computing surveys (CSUR), vol. 41, no. 3, pp. 1-58, 2009. [11] M. Sakurada and T. Yairi, "Anomaly detection using autoencoders with nonlinear dimensionality reduction," in Proceedings of the 2nd Workshop on Machine Learning for Sensory Data Analysis, ser. MLSDA '14. New York, NY, USA: ACM, 2014, pp. 4-11. [12] S. H. Chang, A. T. Purnomo, M. A. C. Bhakti et al., "Machine fault detection through sound analysis using MFCC and machine learning," Jurnal POLIMESIN, vol. 23, no. 3, pp. 270-276, 2025. [13] J. Yuan, L. Li, H. Shao, M. Han, and H. Huang, "Material recognition for fault diagnosis in machine tools using improved mel frequency cepstral coefficients," Journal of Manufacturing Processes, vol. 98, pp. 67-79, 2023. [14] H. Arslan, A. ER, S. Orhan, and E. Aslan, "Tool condition monitoring in turning using statistical parameters of vibration signal," International Journal of Acoustics and Vibrations, vol. 21, no. 4, 2016. [15] F.-A. Fortin, F.-M. De Rainville, M.-A. G. Gardner, M. Parizeau, and C. Gagné, "Deap: Evolutionary algorithms made easy," The Journal of Machine Learning Research, vol. 13, no. 1, pp. 2171-2175, 2012. [16] B. L. Miller and D. E. Goldberg, "Genetic algorithms, tournament selection, and the effects of noise," Complex systems, vol. 9, no. 3, pp. 193-212, 1995. [17] J. A. Hanley and B. J. McNeil, "The meaning and use of the area under a receiver operating characteristic (roc) curve." Radiology, vol. 143, no. 1, pp. 29-36, 1982. [18] T. Fawcett, "An introduction to roc analysis," Pattern recognition letters, vol. 27, no. 8, pp. 861-874, 2006.