Submitted:
31 July 2024
Posted:
02 August 2024
You are already at the latest version
Abstract
Keywords:
1. State of Art
2. Materials and Methods
2.1. Data Acquisition and Prprocessing
2.1.1. Preprocessing
2.2. Encoding Data
- is the input data (preprocessed signals),
- is the latent representation,
- is the weight matrix of the encoder,
- is the bias vector of the encoder,
- is the activation function (e.g., ReLU, sigmoid).
- is the reconstructed input,
- is the weight matrix of the decoder,
- is the bias vector of the decoder,
- is the activation function.
- is the loss function,
- n is the number of samples,
- is the i-th input sample,
- is the i-th reconstructed sample.
2.3. Clustering with DBSCAN
Algorithm Steps
- Find the -neighborhood of p.
- If the -neighborhood of p contains at least minPts points, mark p as a core point and create a new cluster C.
- If p is a core point, recursively find all points density-reachable from p and add them to the cluster C.
- If p is not a core point and not yet visited, mark it as noise.
Mathematical Formulation
2.3.1. Evaluation and Validation
Silhouette Score
- is the mean intra-cluster distance for sample i.
- is the mean nearest-cluster distance for sample i.
Davies-Bouldin Index
- is the average distance of all points in cluster i to the centroid of cluster i.
- is the distance between the centroids of clusters i and j.
3. Experimental Setup and Procedure

| Parameter | Value |
|---|---|
| Tool Type | GM4ED10 |
| Number of Teeth | 4 |
| Workpiece Material | TC4 |
| Workpiece Dimensions | 100 mm × 100 mm × 50 mm |
| Parameter | Value |
|---|---|
| Spindle Speed (RPM) | Various |
| Feed Rate (mm/min) | Various |
| Depth of Cut (mm) | Various |
4. Results
4.1. Time Series Data Collection
- Current_x: Electrical current in the x-axis.
- Current_y: Electrical current in the y-axis.
- Current_s: Electrical current in the spindle.
- Abs_Position: Absolute position of the spindle.
- ServoSpindleSpeed: Speed of the spindle servo motor.
- ServoSpindleload: Load on the spindle servo motor.

4.2. Frequency Domain Analysis Using FFT
4.3. Encoding Data Utilizing Autoencoder
- Input Layer: Matching the number of features in the normalized signal data.
- Encoding Layers: Reducing the dimensionality to a 2D latent space.
- Decoding Layers: Reconstructing the signals back to their original dimensionality.
4.4. Hyperparameter Grid
- Learning Rate: A crucial factor in the convergence of the autoencoder during training. We tested values of 0.001, 0.01, and 0.1.
- Batch Size: Determines the number of samples processed before the model’s internal parameters are updated. We explored batch sizes of 16, 32, and 64.
4.5. Model Building and Training
- Model Definition: Constructed an autoencoder with an input layer, encoding layers, and decoding layers. The architecture remained consistent across different hyperparameter settings.
- Model Compilation: Compiled the model using the Adam optimizer, with the learning rate specified by the current hyperparameter combination. The loss function used was binary crossentropy.
- Model Training: Trained the autoencoder on the normalized signal dataset using the specified batch size and a fixed number of epochs (100). Training was performed with a validation split to monitor performance and avoid overfitting.

5. Error Analysis
- Sum of Squared Errors (SSE): This metric sums the squared differences between the original and reconstructed signals across all data points. A lower SSE indicates a closer fit of the reconstructed signal to the original signal.
- Mean Squared Error (MSE): MSE is the average of the squared differences between the original and reconstructed signals. It provides a normalized measure of the reconstruction error, facilitating comparison across different datasets and models.
- Root Mean Squared Error (RMSE): RMSE is the square root of MSE, offering an error metric that is in the same units as the original signals. It is particularly useful for interpreting the magnitude of the reconstruction errors.
- Standardization: This technique resulted in an SSE of 119034347.06, an MSE of 40570.6704, and an RMSE of 201.4216. Although standardization brought the features to a common scale, it did not achieve the lowest error metrics, indicating that the model might have struggled with the variations introduced by this technique.
- Normalization: Normalization to a range [0, 1] yielded the best results with an SSE of 98081855.83, an MSE of 33429.3987, and an RMSE of 182.8371. This suggests that scaling the data to a fixed range was most effective in preserving the relationships within the data and aiding the autoencoder in accurate reconstruction.
- Range Scaling: Using robust scaling, which reduces the impact of outliers, resulted in an SSE of 118718112.29, an MSE of 40462.8876, and an RMSE of 201.1539. While this technique performed comparably to standardization, it did not outperform normalization, highlighting that the autoencoder was more sensitive to the data scaling method.
6. Clustering the Encoded Dataset

- Density Reachability: A point p is density reachable from a point q if there exists a chain of points , where and , such that each point in the chain is within a distance of the next point and the number of points within this distance is at least MinPts.
- Density Connectivity: A point p is density connected to a point q if there exists a point o such that both p and q are density reachable from o.
7. Discussion
8. Conclusion
8.1. Future Directions
- -
- Real-time Chatter Detection: Further research could focus on real-time applications. This enables immediate corrective actions in response to chatter detection.
- -
- Integration with CNC Control Systems: Integrating our method with CNC control systems can lead to adaptive machining processes. It can enhance production efficiency.
- -
- Extension to Other Manufacturing Processes: Our approach can extend to other manufacturing processes beyond CNC machining such as turning, milling and drilling.
8.1.1. Final Remarks
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Dun, A. An unsupervised approach to detect chatter in milling. Journal of Manufacturing Processes 2021, 58, 345–358. [Google Scholar]
- Liu, A.; Chang, B.; Lee, C. Online chatter monitoring method combining FK with FBP. Journal of Manufacturing Science and Engineering 2021, 143, 071002. [Google Scholar]
- Smith, A.; Johnson, B.; Williams, C. Review of chatter detection methods in CNC machining. Journal of Machine Learning Research 2021, 22, 1–32. [Google Scholar]
- Liu, D.; Zhang, E.; Hu, F. Deep learning-based chatter detection in CNC milling. IEEE Transactions on Industrial Electronics 2020, 67, 7831–7840. [Google Scholar]
- Wang, G.; Chen, H.; Li, J. Unsupervised chatter detection in CNC turning using an autoencoder and K-means clustering. International Journal of Machine Tools and Manufacture 2019, 139, 19–31. [Google Scholar]
- Zhang, I.; Lin, J.; Wei, K. Chatter detection in face milling using stacked sparse autoencoder and support vector machine. Journal of Manufacturing Processes 2018, 35, 47–54. [Google Scholar]
- Chen, L.; Wang, M.; Yang, N. Unsupervised chatter detection based on spectral clustering and SVM. Journal of Manufacturing Science and Engineering 2017, 139, 101002. [Google Scholar]
- Wang, O.; Zhao, P.; Zhang, Q. Chatter detection in end milling using time-frequency analysis and neural networks. Journal of Sound and Vibration 2016, 366, 1–14. [Google Scholar]
- Li, R.; Xu, S.; Yu, T. Unsupervised chatter detection using wavelet packet transform and SVM. Journal of Manufacturing Processes 2015, 17, 32–40. [Google Scholar]
- Xu, Y.; Li, Z.; Fan, X. Chatter detection in milling using frequency wave number analysis and neural networks. Journal of Manufacturing Processes 2014, 16, 155–165. [Google Scholar]
- Zhang, H.; Wang, J.; Zheng, L. Wavelet transform and neural networks for chatter detection in end milling. Journal of Manufacturing Processes 2013, 15, 53–61. [Google Scholar]
- Huang, R.; Chen, S.; Zhao, T. Chatter detection in CNC turning using wavelet packet transform and SVM. Journal of Vibration and Control 2012, 18, 1517–1525. [Google Scholar]
- Wu, K.; Li, Y.; Chen, G. Chatter detection in end milling using time-frequency analysis and neural networks. Journal of Manufacturing Processes 2011, 13, 67–76. [Google Scholar]
- Johnson, R.; Smith, L.; Wang, Y. Adaptive filtering for enhanced chatter detection in high-speed milling. Journal of Manufacturing Science and Engineering 2021, 143, 041002. [Google Scholar]
- Garcia, J.; Lee, M.; Chen, R. Vibration-based chatter detection using machine learning. Mechanical Systems and Signal Processing 2020, 140, 106680. [Google Scholar]
- Yang, D.; Zhao, F.; Liu, T. Real-time chatter detection using sensor fusion and neural networks. Journal of Manufacturing Processes 2019, 42, 123–133. [Google Scholar]
- Chen, P.; Huang, X.; Zhang, Q. Online monitoring of chatter detection using wavelet packet transform and neural networks. Journal of Vibration and Control 2018, 24, 423–434. [Google Scholar]
- Li, W.; Zhou, X.; Chen, Y. Deep convolutional neural networks for chatter detection in CNC machining. IEEE Transactions on Industrial Electronics 2017, 64, 7971–7980. [Google Scholar]
- Zhao, Q.; Liu, H.; Chen, Z. Chatter detection based on empirical mode decomposition and machine learning. Journal of Manufacturing Processes 2016, 23, 40–47. [Google Scholar]
- Huang, L.; Li, X.; Zhang, J. Wavelet transform and hidden Markov models for chatter detection. Journal of Vibration and Control 2015, 21, 1985–1996. [Google Scholar]
- Xu, P.; Zhang, M.; Liu, Y. Hybrid method combining statistical process control and neural networks for chatter detection. Journal of Manufacturing Processes 2014, 16, 155–165. [Google Scholar]
- Wang, X.; Li, Q.; Yang, S. Multi-sensor approach for chatter detection using PCA and SVM. International Journal of Machine Tools and Manufacture 2013, 68, 52–60. [Google Scholar]
- Chen, J.; Wang, H.; Xu, L. Novel chatter detection algorithm using DWT and fuzzy logic. Journal of Manufacturing Science and Engineering 2012, 134, 051005. [Google Scholar]
- Zhang, K.; Tang, B.; Qin, Y.; Deng, L. Fault diagnosis of planetary gearbox using a novel semi-supervised method of multiple association layers networks. Mechanical Systems and Signal Processing 2019, 131, 243–260. [Google Scholar] [CrossRef]




| Normalization Technique | SSE | MSE | RMSE |
| Standardization | 119034347.06 | 40570.6704 | 201.4216 |
| Normalization | 98081855.83 | 33429.3987 | 182.8371 |
| Range Scaling | 118718112.29 | 40462.8876 | 201.1539 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).