1. Introduction
The issue of chatter detection in machining has been a topic in practice for a long time. In practice, the boundary between stable and unstable machining in milling is often visualized by using the stability lobe diagram (SLD). Stability lobe diagrams (SLDs) are usually used to select stable cutting conditions. An experimental methodology for determining SLDs in milling operations is described in [
1]. The same main authors also provide a very comprehensive review of the chatter issues, which is presented in [
2]. Here, the state of research in the field of self-excited chatter is summarized, including strategies that can be used to achieve stable machining. The paper also includes a review of methods for in-process evaluation of chatter generation. A more recent paper [
3] summarizes the chatter issue with a focus on milling technology. It covers topics such as process damping, tool throw, gyroscopic effect, and the importance of these areas in predicting chatter. The article also includes an overview of chatter detection techniques. The most recent review article found that addresses chatter in milling is [
4]. According to this article, more than 100 research papers addressing the issue of online chatter detection have been published every year since 2011. The chatter detection topic is also one of the larger chapters covered in detail in [
4]. Feature extraction methods play an essential role in the field of real-time chatter detection. The authors of [
4] clearly summarize the features in the signal according to the predominant time, frequency, and time-frequency domains and list the features here. In the time domain, the main concern is the computation of statistical indices using raw measured signals.
In the frequency domain, enough data usually needs to be collected first to perform the necessary transformation. The evaluation of chatter can then be based on the knowledge that chatter alters the significant frequencies contained in the signal. The time-frequency domain is often used to extract features from the signal. For example, fast Fourier transform or methods based on wavelet techniques can be employed here. In practice, the idea is to decompose the signal into meaningful parts—components—so that the necessary information (features) can be evaluated from them.
In practice, chatter detection requires the use of signals measured directly on the machine. Usually these are signals from accelerometers. Cutting force signals from dynamometers or acoustic emission signals are less common in practice. This may be due, among other reasons, to the cost of these sensors and their lower versatility. In the research sphere, however, a relatively large number of scientific papers deal with force as an input signal, for example, [
5,
6,
7,
8]. The microphone signal is used even less frequently (e.g., in [
9]). Less frequent also are current signals from motors (e.g., [
10]), torque-force combinations (e.g., [
11]) and other types of signals. A very interesting approach is presented in [
12] wherein the authors work with cutting force estimation by using an observer based on a drive model where relevant signals from the machine axis drive are the input. The use of actuator signals can be complicated by the closed-loop nature of the control system or the problem of accessing fast high-frequency data. However, if available, signals from electric actuators can be an interesting alternative or complement to signals from accelerometers, which is addressed in papers such as [
10,
13]. The paper [
10] uses a stable/unstable milling support vector machine (SVM) to evaluate the states. It is a machine learning method that is based on the analysis of the electrical signal from the spindle and the use of neural networks. However, the current signal is not obtained directly from the machine system but using Hall sensors on all phases of the spindle. The paper [
13] relies on the information available in the CNC machine at high clock speed to utilize the spindle current signal. The signal is transmitted in real time via a digital interface to an external PC, where chatter evaluation is addressed by using frequency detection in the spectrum. Despite the use of an external PC, the described method has a certain potential for practical application. For any detection method to be used in practice, it needs to be deployed on a suitable platform, which can be, for example, the NI cRIO platform. Such a system can be similar to the one described in [
14].
However, the most commonly used sensors in chatter detection are probably accelerometers despite some inferior characteristics (noise etc.). These also seem to have the highest potential for application in practice. The installation of accelerometers is becoming increasingly common [
4]. These sensors are generally more affordable and reliable and their installation can be noninvasive. Accelerometers find applications in other areas such as machine tool quality improvement. This area is dealt with, for example, in [
15], where the authors describe various sensing technologies that are applicable to the area of predictive maintenance, which is dealt with by one of the world’s leading machine tool manufacturers (DMG MORI). The authors follow up this paper with [
16], where the accelerometer signal is used for multiple functions at the same time—both for evaluating chatter information and for machine tool condition monitoring for predictive maintenance. An overview of usable sensors is quite comprehensively covered in an article focusing on intelligent spindles [
17]. A summary of the possibilities of measurement, signal processing, and chatter evaluation in milling and turning is also summarized in [
18].
The processing and evaluation of chatter from the measured input signals can occur either online on the machine, or afterward with delay, or offline. The results can be used, for example, to achieve a stable cutting process by changing its parameters. The methods that have the greatest potential for practical application are those that can be deployed online on the machine in milling by using built-in acceleration sensors. These methods will be given more attention below.
An interesting method for real-time chatter detection in milling is presented in [
19]. It is based on the calculation of a chatter indicator based on cyclostationary theory. The calculation involves a signal from a three-axis accelerometer and additional information from an encoder about the spindle rotation. The presented approach is suitable for both constant speed machining (CSM) and spindle speed variation (SSV) machining. The results were verified on the machine under different cutting conditions. Another paper that focuses directly on online chatter detection in milling is [
20]. The authors first remove periodic components from the input signals and then work with an advanced spectral analysis technique called subspace-based spectral estimation, “which can obtain superhigh frequency resolution with a small number of data samples”. They also introduce a “Normalized cyclostationary Energy Ration chatter indicator” (NER) for the chatter evaluation. The authors measure both acceleration and force in their experiments. For the chatter detection alone, they only rely on the acceleration signal for better application in engineering practice. The appropriate chatter detection is not only important for process optimization but also for machine tool performance testing. The authors of [
21] presented a method for operational machine tool testing where chatter is identified by using a combined criterion of harmonic dominant frequency, vibration amplitude in the frequency spectrum, and workpiece surface quality.
Another series of papers use the empirical mode decomposition (EMD) method or its more advanced variant, ensemble empirical mode decomposition (EEMD) for signal processing. These methods are generally designed for chatter detection in the signal, but are not directly designed for online detection. For real-time use, some types of chatter indicator are then considered for computation. For example, the authors of [
22] use the EEMD method, but for real-time evaluation only the described “nonlinear dimensionless indicators” are considered. A very extensive work is presented in [
23]. The presented approach to chatter detection in milling uses energy aggregation-based Hilbert–Huang transform (HHT). In the described method, EMD (or EEMD) is performed first, followed by Hilbert spectral analysis (HSA). Chatter indicators are again introduced to evaluate the chatter online, here it is the “Normalized Energy Ratio of the Most Powerful IMF”, NER, and again the indicator CV—Coefficient of Variation of the energy-limited Hilbert–Huang spectrum. A similar approach was taken by the authors of [
24]. Another paper [
25] uses
p-leader multifractal features for online chatter detection. Interestingly, the paper compares it with other methods such as EEMD itself, but it cannot be directly used for real-time detection.
Another approach for chatter detection in milling is described in [
26]. The authors propose using a power spectral entropy (∆PSE) indicator. The variational mode decomposition (VMD) method is used to separate the signal components in which chatter is to be detected. The authors mention the small endpoint effect and less mode mixing as the main advantage of VMD over EMD/EEMD. A similar approach was previously taken by the authors of [
27], when they computed the “energy entropy” as an indicator from signals that were previously decomposed by VMD and wavelet packet decomposition (WPD) techniques. The authors describe the method as excellent performance, but also note that the choice of basis functions (wavelet) still requires some expertise to achieve good results. In this case, the authors do not explicitly mention the use of their results for online detection. Methods that are based on the calculation of signal entropy can generally have great potential for practical application. By using them, numerical indicators that can indicate chatter can apparently be calculated in real-time without large demands on computing power. Among the other methods found, mention can be made of the coarse-grained entropy rate (CER), which was presented in [
28] and further applied to the case of turning in [
29] and milling in [
30]. Another potentially interesting one is the numerical indicator calculated by the Rényi entropy method [
31], which works with data in the frequency domain. As the last of the list, the paper [
32] will be mentioned here, which uses the power spectral entropy (PSE) calculation, which is still combined with the standard deviation (SD) and fractal dimension (FD) criteria into one “multi-indicator” criterion.
A specific approach is presented by works that use machine learning-based methods for chatter detection. The paper [
9] works with hybrid machine learning techniques. “The custom machine learning architecture is deployed in parallel with a physics-based method to improve the robustness of online chatter detection”. The authors mention that it is possible to work with signals from microphones or accelerometers. They use the microphone signal in their tests. The chatter detection itself is based on energy. However, the authors of the paper [
33] make some improvements and declare very high reliability of chatter detection.
To conclude the review, it can be stated that methods that can be deployed online on the machine by using built-in acceleration sensors have probably the greatest potential for practical application. In particular, approaches that are based on a type of MRA (multiresolution analysis) method and then use a type of chatter indicator in real time can be considered promising.
The aim of this paper is to verify the applicability of selected methods for in-process detection of chatter during milling from a machine-mounted accelerometer. The selection of the methods considered the fact that the accelerometer position and the dynamics of the machine, tool, and workpiece affect the measured vibration amplitudes. Therefore, entropic methods were selected that evaluate the qualitative behavior (degree of disorder) of the signal rather than its amplitude. Due to the aforementioned effects of dynamics on the transmission of vibration from the cut to the accelerometer location, the robustness of the methods was tested by using different tool types—a compliant slender tool and a rigid tool. Because one of the methods also used fractal dimension and standard deviation as chatter indicators, these indicators were included in the comparison. The results presented in this paper allow a relative comparison of the selected chatter indicators in terms of their ability to detect unstable machining and in terms of their computational complexity for practical implementation on the machine tool.
The article is organized as follows. First, the selected methods for chatter identification will be presented and compared in
Section 2. For each method, its mathematical description and the specific conditions under which the method was applied by the authors of this paper will be given. In
Section 3, a description of the experiments that were performed with different tools and cutting conditions will be given. The aim is to distinguish whether there is sufficient transfer of vibration to a location where it is practical to place the accelerometer even if the vibration occurs dominantly on a compliant instrument. Therefore, measurements were made on both a compliant slender end mill as well as a rigid shoulder mill. In these experiments, accelerometer data was acquired for later offline processing and a classification of the machining stability was performed by the machine operator. This evaluation considered mainly the resulting surface quality. To complement this, a comparison was made with the stability predicted from the measured FRFs on the tool and the cutting coefficients for steel. In
Section 4, sample experimental data are selected for each type of experiment, from which individual chatter indicators are then computed. This way, the selected methods can be compared in an illustrative way. The results of the methods are confronted with the evaluation of the machine operator. The results of this comparison are discussed in detail in
Section 5.
4. Data Processing by Using Chatter Identification Methods
In this paper, matrix plots are used as a visual means of comparing methods. These allow multiple methods and records to be compared simultaneously. In the following paragraphs, the procedures for calculating and displaying each indicator in a matrix graph will be generally summarized. A comment on the content evaluation will fill the following subsections of the paper.
All analyzed signals have the same sampling frequency of 32.768 kHz. For each signal, the indicators are computed every 0.1 s from the previous 0.2 s signal interval. The length of this time interval affects the indicator value and it is chosen based on the discussion in the cited papers (see
Section 2). The choice of other parameters needed to be specified for each method is also explained there. All indicators are computed for offline measured acceleration signals in Matlab software (2021a).
For each of the experiment settings, described in
Section 3, one stable and one unstable signal is chosen for analysis. The decision whether a signal is stable or not is based on the operator’s evaluation and the surface quality. The whole milling process is recorded, including the start and the end of the cut, in some signals even with some of the noise after switching off the spindle. This allows us to distinguish the indicator values in three different states—for noise when the spindle is off, in air-cut, and in cut—and in the transitions between them. See
Figure 8 for an example of these parts of the signal S07 from a slot milling test (its cutting conditions are described in
Table A1 in
Appendix A).
As the main difference between stable and unstable machining lays in the signal energy and distribution of frequencies, complementary spectral characteristics are computed for each signal. The coarse view of both is acquired from the spectrum of the whole in-cut part of the signal. More detailed analysis of the energy evolution in time is made by computing the spectrum of 0.2 s time interval every 0.1 s and taking the maximum of its amplitudes (further denoted by MA).
The scale of the graphs of spectrum and MA is notably different in the case of chatter, which is caused by various factors. First, the spectrum is calculated from the whole part when the tool is in contact with the workpiece (parts 3–5 in
Figure 8), so it includes also the start and end of cut where the signal energy is generally lower. Furthermore, the most significant frequency varies in time, so the frequency with the highest amplitude in some time interval of 0.2 s might contain less energy during the rest of the cut. Lastly, the spectrum computed only from 0.2 s might be less precise than when computed from the whole in-cut part. However, as we are interested in the evolution in time, not in the exact values, the obtained results are sufficient for the given purpose.
The grey area in the graphs signifies the part of the signal when the tool was at least partially in cut. Peaks in the values of the indicators can be seen right after the beginning and before the end of cutting in several cases. These values are probably not very reliable as the process is changing very dynamically when only a part of the cutting tool is in contact with the material.
CER value below 0.2 is said to identify chatter, as discussed in [
29], so it is plotted in the graphs to allow a quick evaluation. For other indicators, no fixed threshold is set. Vaguely, chatter is indicated by a sharp decline in RE and PSE and by a sharp rise in FD and SD.
4.1. Experiment 1: Slender End Mill, D = 16 mm, Overhang 50 mm
Two tests with different cutting conditions were selected from Experiment 1, one stable (S02) according to the surface evaluation, and one unstable (S06). The surface quality of the respective slots can be seen in
Figure 9, and the signals are displayed in the first two columns of
Figure 10.
In the graph of the signal S02, there is almost no difference in amplitude between the air-cut and in-cut part. The spectrum of the in-cut part is rather evenly distributed, and no clusters at specific frequencies are visible. The surface is smooth and without any significant marks. This together confirms the stability of this machining process.
All considered methods accordingly identified the stability of S02. Three entropic indicators even slightly rise in the in-cut part in comparison with the air-cut and CER stays high above the proposed threshold. The SD has a low value throughout the whole time when the spindle is on and no significant change is visible at the start of cutting. FD oscillates around the same value throughout the whole signal, the only visible difference can be seen when the spindle is switched off.
Signal S06 was evaluated as unstable, which corresponds to its deteriorated surface, frequencies clusters in the spectrum of the in-cut signal part, and the graph of maximum amplitudes (MA) that are much higher in the cut than elsewhere.
The values of the entropic indicators CER, RE, and PSE drop significantly in the cut and thus correctly identify chatter. CER even decreases far below the proposed threshold. SD grows in cut, as the signal amplitudes do. Changes in FD are visible at the start and end of the cut, but otherwise it has a similar value in air-cut and in cut, so it fails at identifying chatter. However, it is worth noting that there is a qualitative difference in FD graphs. While it changes rapidly in S02 and in air-cut of S06, the indicator keeps a much more constant value in the cutting part of S06.
4.2. Experiment 2: Slender End Mill, D = 16 mm, Overhang 30 mm
Stable signal S07 and unstable signal S08 from Experiment 2 are shown in
Figure 10. The signal S07 is stable according to the surface quality (see
Figure 9), and to the spectral characteristics. The entropic indicators stay high in the cutting part. SD is low apart from a slight peak in the start and the end of cut. However, nothing can be concluded from FD, only that its value is changing rapidly as in S02.
The signal S08 was denoted as unstable; however, the chatter does not start immediately after the start of cut. The onset of chatter is visible from the surface in
Figure 9 approximately 1.5 cm from the edge. Accordingly, the signal graph and maximum amplitude show this delay, as well as SD indicator. The entropic criteria grow first in the cutting part and then drop in the appropriate moment. FD is slightly higher in cut than in air-cut and it oscillates more slowly in comparison with the stable signal S07.
4.3. Experiment 3: Shoulder Mill, D = 50 mm
Stable tests S14 and S21 and unstable S17 and S24 were chosen from Experiment 3, see
Figure 11 for the surface quality and
Figure 12 for the signals. Due to the diameter of the cutting tool of 50 mm, which is bigger than in Experiments 1 and 2, the graphs are quite different. The transition state between the air-cut and the cutting part takes longer, and so the discrepant values on the borders of the grey area of the graphs are more noticeable. Moreover, the chatter frequencies of unstable signals are lower and with smaller amplitudes. Nevertheless, there is still a significant difference between the spectral characteristics and the surface quality of stable S14 and S21 and unstable S17 and S24.
For the chosen signals, all indicators except FD more or less decisively state if the tests are stable or unstable, based on the comparison with the air-cut values. FD looks smoother for S17 and S24 as for previous unstable signals, but it is even slightly lower than for S14 and S21, which is the opposite of the indicator’s expected behavior in case of chatter. RE and PSE have similar values for all four signals, with PSE showing slightly greater differences. Nevertheless, for S17 and S24, they are lower than in stable cases, and moreover they both decrease in comparison with the air-cut values. This suggests that although the exact values depend on the cutting conditions, it might be reasonable to compare the in-cut and air-cut values of these indicators. SD increases significantly for chatter cases as supposed. Lastly, CER stays high above the threshold 0.2 for S14 and S21, and it decreases sharply for signals S17 and S24, even though it is less apparent than in Experiments 1 and 2, and in some parts its value rather oscillates around the threshold.
5. Discussion of Results and Methods Comparison
One of the main objectives was to select a suitable in-process chatter indicator and test its robustness with respect to different tools and their respective cutting force loadings. Although intuitively it was expected that the chatter detection efficiency would be higher for rigid roughing tools with higher force loads and low compliance between the tool tip and accelerometer position, on the contrary, higher sensitivity of the indicators was observed for the slender cutting tool. Below is a summary of the indicators used and their evaluation.
Coarse-grained entropy rate (CER) proved to be a robust method that identifies chatter for various cutting conditions. Its values in the transition parts of the signal during the start and end of the cut might be unreliable and falsely detect chatter even in stable cases (as in S14 and S21). However, once the cutting tool is fully in cut, CER value indicates whether the chatter appears or not. Therefore, it might be reasonable to use some combination with other criteria (e.g., spindle torque) to decide whether the tool is fully in cut or not. The threshold proposed in [
29], although identified for turning, worked well also for the milling experiments in this paper. For the chosen signals, CER value in the cut was always significantly above the threshold in stable cases and below for chatter, except for
S17 and S24 where it was comparable with the threshold value in a part of the cutting. See
Figure A1,
Figure A2,
Figure A3,
Figure A4 and
Figure A5 in
Appendix A for more examples.
Rényi entropy (RE) consistently identifies chatter in Experiments 1 and 2 performed with the slender end mill; however, the indicator is less decisive in Experiment 3 performed with the shoulder mill where the values are very similar for stable and unstable machining. It can be concluded that this method is more dependent on the tool dynamic properties. Presented experiments and the cited paper [
31] suggest that it works well in the case of a slender cutting tool (a cutting tool of diameter 16 mm was used in Experiments 1 and 2, and a cutting tool of diameter 10 mm was used in the cited paper), while it is less reliable for a massive cutting tool (the cutting tool in Experiment 3 had diameter 50 mm). Computation of RE is very fast (see
Table 2), but it requires information about the spindle speed and number of teeth which would need to be set for each machining operation when used in industry.
In the case of the multi-indicators method, the standard deviation (SD) appears sensitive at first sight, but its disadvantage is its dependence on the absolute magnitude of the vibration. Without a close knowledge of the dynamics of the machine, tool and process, it would be difficult to set a generally valid threshold for chatter.
The difference between power spectral entropy (PSE) values in stable and in unstable machining is very significant in the case of end mill measurements and less notable in shoulder mill measurements. Similarly, as CER, PSE does not give decisive results in S17 and S24. However, overall it is a consistent method, and it is less dependent on cutting conditions than RE.
Finally, fractal dimension (FD) was not found to be useful compared to other methods. It can be stated that it recognizes chatter in case S08, but it is less convincing than any other method. In other cases, it has similar values for both stable and unstable machining, or it is even lower for the unstable machining, which is the opposite of the expected behavior. Considering also that computing FD is incomparably more demanding than the other methods (see
Table 2), we cannot confirm this method as being applicable in industry.
The above experiments were performed with accelerometer data acquired at a sampling rate of 32.768 kHz. This value is high enough even for relatively slender tools with high eigenfrequencies. The time interval of each evaluation was 0.2 s.
In terms of real-time processing, all methods except FD can be used according to the comparison performed. For practical deployment, one of the available platforms of industrial PC manufacturers, e.g., Beckhoff Automation or the cRIO platform (National Instruments Corp.), is considered. These allow both the implementation of the necessary fast calculations and the connection of an accelerometer or other additional signals (e.g., spindle torque). At the same time, communication with the machine tool can be implemented to ensure the machine’s response to the chatter detection.
6. Conclusions
This paper deals with the study of methods for the online identification of chatter in milling, with the main aim of testing their robustness for practical applications. Each selected method uses a chatter indicator assessing signal entropy, energy, or fragmentation, and is suitable for processing acceleration signals. The novelty of the paper is the comparison of the performance of the methods for both rigid and slender cutting tools, which differ significantly in dynamic compliance. Furthermore, the computational complexity of the algorithms was evaluated with respect to the considered online application.
Specifically, the methods compared are coarse-grained entropy rate (CER), Rényi entropy (RE), standard deviation (SD), fractal dimension (FD) and power spectral entropy (PSE). Their assessment was performed post-process on a set of accelerometer measurements from three different experiments. In total, 24 different milling records at different cutting conditions were evaluated. A detailed overview of the conditions is given in
Table 2 and
Table A1.
Of the criteria tested, the CER criterion appears to be the most useful, showing the ability to reliably detect chatter at different cutting conditions and on both cutting tools, which represent systems with different dynamics. At the same time, this criterion allows relatively fast computation and is therefore suitable for deployment in online chatter detection. A certain problem in practical deployment is the possibility of false detection of instability during transients when the instrument enters and exits the cut. For this reason, it seems appropriate to combine the CER criterion with one of the other criteria. Such a criterion could be, for example, the variation of the milling spindle load.
The transmission of vibrations from the process to the location of the accelerometer in the spindle unit of the machine tool is significantly affected by the tool compliance. One of the main contributions of this study is the testing of the robustness and effectiveness of the presented algorithms for various cutting tools and cutting conditions.
Prospectively, similar measurements are planned on larger machines for which the peaks of dominant compliance may be at orders of magnitude lower frequencies and, conversely, on even more slender long cutting tools where the transmission of tool vibration to the spindle, where the accelerometer is located, could be an issue. For the slender end mills used in the experiments performed here, this negative effect was not observed to be significant for the chatter detection.