1. Introduction
Nowadays, machining remains the basic manufacturing technique in the industry. The possibilities it offers, in terms of versatility and availability, place machining in the first place, among other techniques. The rapid development of automation and digitalization in machining will ensure its leading position in the near and, probably, in the distant future. Current trends in the industry require maximum flexibility of the production from the manufacturers. Development of Industry 4.0 and many other factors proves that machining is and will be the main choice among other manufacturing techniques.
Wherever production appears, there is also a need to control its effects. Roughness, next to the waviness, is one of the most basic features of the surfaces obtained in the machining process. Roughness measurement allows us to assess the quality of the surface of a given object and classify it as a product needing further machining or as a finished product.
For most applications, linear measurement is perfectly sufficient. This refers especially to one-directional structures, whose surface topography is rather repetitive. However, in some cases, it becomes necessary to use 3D roughness measurement. This enables not only a better understanding of the nature of a surface itself, but it is generally needed when phenomena of contact between two elements are involved, and we cannot limit ourselves only to the analysis of a single profile [
1].
Measurement of the surface geometric structure in 3D provides us much important information about it. Modern measurement systems provide the user with enormous possibilities of analysis and facilitate it, for instance, through the implementation of tools for graphical presentation of the results. The obtained results are usually affected by errors resulting from the method itself or the measurement conditions [
2]. Many kinds of filters are used to screen out irregularities, of which Gaussian filter is most common. A standardized Gaussian filter is widely described in the literature, in terms of interpretation and calculations relatively easy in use, and most likely used by all devices for the analysis of the geometrical structure. It is calculated based on the Fourier transform, which is the basic tool for analysis and signal processing. The Fourier transform itself is a great tool in the case of stationary signals, and a Gaussian filter is a great tool for general filtering. However, in the case of non-stationary signals or when we want to filter specific parameters or analyze the results for specific properties, they lose their relevance. This is where the wavelet transform comes in handy. It is a transformation similar to Fourier’s transformation, but with the main difference being the so-called “kernel transformation”. When the Fourier transform is based on the kernel of the sinusoidal function, the wavelet transform uses wavelets, which are is an infinite number. This gives an enormous number of possibilities for signal analysis.
2. Wavelet Analysis
In order to analyze the results in a broad sense, various tools and methods are used to help the user obtain the desired information. The obtained measurement results are often burdened with measurement errors or disturbances, making it difficult to obtain a real picture of the situation. For this purpose, various types of filtration are used to separate the above-mentioned disturbance. In the case of signal analysis of devices used for roughness measurement, methods, such as Gaussian filtration or wavelet analysis, are used and have been briefly described in this chapter.
Both the Gaussian filter and the wavelet analysis are based on Fourier transform, although the Gaussian filter is being calculated on its basis; meanwhile, wavelet transform is, in a way, its extension. It is a transformation similar to the Fourier transform, relying just like it on the scalar product operation.
The Fourier transform is a linear operator defined on certain functional spaces. The elements of these spaces are functions of
n real number. In Fourier transform analysis, the harmonic sine wave and cosine harmonic wave are multiplied by a signal. The final integration provides guidance on the signal for a given frequency. A classic example of this is the signal spectrum, a signal’s energy in a given point in its frequency domain [
3].
By changing the time-value system for the frequency-value system, valuable information about the time is lost during the transformation when the event occurs (
Figure 1).
The analysis of the transformed signal shows that the tested signal consists of four harmonic frequencies; however, it cannot be deducted from it how each of the components changes in time.
The Fourier transform is reversible, so by having the same
F(u) transform, it is possible to determine the original signal before transformation [
3].
Intensive development of the methodology related to wavelet transform occurred at the beginning of the 20th century. Wavelet transform found broad applications across many branches of science, mainly due to the possibilities it offers. The wavelet transform, as previously mentioned, is similar to the Fourier transform, as it is based on the use of the scalar product of a given signal and a part called the transformation kernel. The main difference between these two is precisely the kernel. In the Fourier transform, the sinusoidal function is used as a kernel, which means that every function will be represented continuously by one selected frequency. Whereas, in the wavelet transform, the kernel is a function called wavelet, which fulfills the requirements of the time-frequency analysis [
5].
Unlike the wave, wavelet has continuous oscillatory waveforms, which have different durations and spectrum. It is finite energy that is concentrated around one point and has a mean value of zero. There is an infinite number of wavelets, so it is possible to perform an infinite number of wavelet transforms depending on the kernel used. The kernel of the wavelet transform is usually denoted by the symbol
Ψ, and it is simultaneously the time function
t, the scale parameter
a, and the translation parameter
b. The parameter
a shifts the wavelet spectrum in the frequency domain, while
b parameter shifts it in time. Therefore, when the standard Fourier transform gives us ideal localization possibilities in the frequency domain but does not allow localization in the time domain, the use of the wavelet transform complements these deficiencies and enables us to perform full time-frequency analysis. Additionally, the time resolution of the wavelet transform is variable and depends on the wavelet frequency.
where
a—scale parameter,
b—time translation parameter,
S(t)—analyzed signal,
Ψ((t-b)/a)—the kernel of the wavelet transform,
SΨ (a,
b)—wavelet transform.
The scale parameter decides what pseudo-frequency will be represented by the wavelet. It always has values greater than zero, and they are inversely proportional to the pseudo-frequency of the wavelet (
Figure 2). The
factor is responsible for wavelet normalization. This process is designed to keep the energy of the wavelet function constant in case of using different scale factors. The translation parameter (
Figure 3) is responsible for the shift of the function, along with the tested signal. Changing the translation parameter moves function along the time axis [
6].
Similarly to the method with Gaussian filtration, here also two complementary filters are used: high-pass (so-called wavelet) and low-pass (scaling function). The wavelet analysis should be initiated by selecting a proper type of wavelet, and its shape must be as similar as possible to the analyzed signal to obtain the best results possible.
A number of studies have shown the use of different types of wavelets for signal analysis, of which the oldest and the simplest one is the Haar wavelet (HW)—originally called the Haar expansion. A significant disadvantage of the Haar wavelet is its non–differentiability. It is discontinuous, and therefore it is impossible to approximate continuous, smoothed functions. Additionally, the possibility of frequency localization is low in its case. Despite the fact that over the years, many other and more advanced wavelets have been invented, the HW is still willingly used due to its simplicity. In the papers [
7,
8], the analysis of signals with these functions was proposed in case of monitoring of the tool failure in machines and for analysis and optimization of drive systems. The best known, however, is a tool for actions on images, such as decomposition or compression, which is a typical use of discrete wavelets [
9].
An extension of the Haar wavelet family is the Daubechies wavelet, whose characteristics are the compactness of the carrier with length 2N − 1 (N is a wavelet row), a relatively simple form and an exact approximation of the function. What is more, the Daubechies Db1 wavelet corresponds to the Haar wavelet. Besides, as the row of the wavelet increases, the number of coefficients describing it increases too, and the waveform becomes smoother; as a result, it is often used as a tool for signal analysis. In [
10], it was used to evaluate the chip formed during turning of S45C carbon steel, while in [
11], to evaluate the vibrations generated during turning.
Wavelet analysis has been used in many studies of very diverse physical phenomena and in technical applications. The wavelet that appears most frequently in research related to signal analysis is the Morlet wavelet. This wavelet is a continuous wavelet characterized by good frequency resolution. It cannot be used for multiresolution analysis as it does not have a scaling function. However, it is an overt wavelet, so it can be represented by means of mathematical dependencies in the time domain. An example of the use of this wavelet can be found in the research [
12] for the evaluation of the surface on the contact area between reinforcement and concrete. In [
13], for the assessment of the phenomena occurring in the construction of motor vehicles during a collision.
Another wavelet, well described in research papers about signal analysis, used to assess the damage of the bearings operating in an electric motor is the Mexican hat wavelet [
14]. Like the Morlet wavelet, it has no scaling function but has good frequency resolution. It comes from the Gaussian wavelet family—it is proportional to the function, which is the second derivative of the Gaussian probability density. Its name derives from a characteristic shape resembling a Mexican sombrero. Another example of the use of wavelet analysis as a tool to support the diagnosis of bearing damage and the assessment of its possibility of further use is the paper [
15].
Analyzing, evaluating, and forecasting surface roughness is a very difficult issue. It is described by a large number of parameters, and their values are influenced by a number of different factors and input sizes to the machining process. Mathematical modeling can be used to predict surface roughness. This method is particularly important in case of difficulty in obtaining the actual surface. An example of modeling, where the predominating phenomena, leading to the obtaining of the machined surface, are physical and mechanical phenomena, is publication [
16].
With a large number of factors affecting surface roughness, the optimal selection of machining parameters is very important. Such selection results in the appropriate, desired, and expected values of the roughness parameters. This is mainly the case in finishing machining, in particular, abrasive. In order to achieve the assumed surface roughness in the manufacturing process, optimization can be carried out using a number of different methods and models. An example may be the ANOVA analysis [
17] or the Monte Carlo method [
18]. The ANOVA method is also used for multi-criteria optimization of the manufacturing process, in which the machinability indicator is not only surface roughness but also, for example, the vibration of the machining system [
19]. Another example of optimization is the use of a hybrid WOA (Whale Optimization Algorithm) algorithm. Using this algorithm, a combination of machining parameters is obtained, which ensures maximum material removal speed and minimum surface roughness [
20]. Neural networks and genetic algorithms are also used to predict machining effects and optimize the input parameters of the process [
21].
Optimization methods give you the opportunity to select the input parameters for the process, which guarantees the surface roughness at a certain level. In many situations, especially in the case of surfaces with a special geometric structure, special application, or the surface of elements responsible, e.g., in aviation, a detailed analysis of these surfaces should be carried out. It can be assumed that a standard assessment using the roughness parameters obtained by Gaussian filtration is sufficient. On the other hand, since wavelength analysis is used to diagnose bearing damage, it can also be used to detect any deviations in the geometric structure of the machined surface.
That is why wavelet analysis, as an auxiliary tool for assessing surface roughness, has been studied by many scientists around the world. Such results can be found in, e.g., [
22,
23,
24]. In [
25], the Morlet wavelets and the Mexican hat were used to assess the condition of the turned surface of the C45 steel with a hardness of 55HRC. It was stated in this work that a Mexican hat wavelet gives information about the distribution of the roughness profile extremes and their values but does not allow for a precise evaluation of the wavelength. On the other hand, the Morlet wavelet allows the evaluation of the wavelengths of the profile components, but the information about their amplitudes is not accurate. In addition, it allows finding and assessing the intensity of disturbances occurring during machining, in particular disturbances in machining traces, and also to isolate major changes in line spacing along the entire length of the profile. In [
11], 40 wavelets were tested in order to select the appropriate roughness for monitoring roughness during CNC (Computer numerical control) turning. The signals of the sensor measuring the vibrations were correlated with the measured surface roughness. Only a small number of mother wavelets showed good and relevant results. This shows that the mother wavelets should be selected according to the typology of the signal and the monitored factor. Moreover, it was found that the level of decomposition is very important. Too little or too much decomposition makes the results incorrect.
Attempts are made to use wavelet analysis to describe surface roughness also after erosion treatments. An example can be the work [
26]. In the case of honed surfaces, the use of wavelet analysis to describe the surface condition was proposed in [
27].
Attempts are being made to combine wavelet and fractal analysis as tools to describe the condition of machined surfaces [
28]. In addition, advanced surface roughness analyses and geometric surface structures can be applied not only to the surfaces of machined components but also to cutting tools, more specifically, as analysis to support the assessment of tool wear. These can be very helpful tools, e.g., to assess the wear traces of tool coatings. The topic of a selection of suitable coatings for the machining of hard-to-machine materials and the assessment of their degree of wear is very important, and many scientific studies are raising this subject, e.g., in [
29,
30].
Despite a number of literature sources on the use of the wavelet transform to assess the surface condition of machined elements, this topic is still not fully understood and requires continuous research. Hence, the authors’ interest in this subject.
4. The Proposition of Selection of the Wavelet Type for the Assessment of the Flat-Top Structures with a Cross-Hatch Pattern
The compliance of the wavelet shape with the shape of the analyzed signal is an important factor of the wavelet analysis—the higher it is, the better results will be obtained as a result of the wavelet transform. In order to determine which wavelets will meet the above standards during the first phase of the analysis, a series of conversions of the measurements results of the liner number 1 (
Table 1) was performed with the Daubechies wavelet using three different scaling sequences, and, for each applied row, at different filtering levels, respectively. The obtained results were compared with the result of the roughness profile filtrated using a standardized Gaussian filter. Therefore, the correctness of the results can be assumed. The Gaussian filtration with
λc = 0.25 mm was used, and the results for filtration with Gauss filter for sample 1 are presented in
Figure 5.
First, the Daubechies wavelet Db1 with the filtration levels of 1 and 6 was used to analyze the surface with a flat-top character. However, the nature of this wavelet (largely resembling the Haar wavelet) and analysis of the surface images obtained after its application led to the conclusion that the Db1 wavelet was not suitable for the analysis of this type of signal. This was confirmed by the results presented in
Figure 6 and
Figure 7.
In the next step of wavelet selection, the Daubechies wavelets on the 3rd and 6th row were used to describe the surface geometrical feature after honing with filtration level, respectively, from 1 to 6 and from 1 to 5. The results obtained for both Db3 and Db6 at low levels of filtration were rejected due to the large discrepancy with the result obtained with Gaussian filtration. For both tested wavelets, the obtained results were compared with the results obtained for Db3 and Db6, with the filtration level 5th being identical. Therefore, for further analyses, it was decided to use only Daubechies 6th row wavelet on at least the 5th level of the filtration. According to the authors of the study, only this level of filtration ensured complete filtering of the characteristic cross-intersecting traces from the waviness structure and their location on the roughness side.
Figure 8,
Figure 9,
Figure 10,
Figure 11,
Figure 12 and
Figure 13 show the exemplary results of wavelet transformations with Db3 and Db6 wavelets on different levels of the filtration.
Based on subsequent analyses, two more wavelets were proposed for the assessment of the flat-top surfaces—the Morlet wavelet and the “Mexican hat” wavelet. Those wavelets had a similar shape, as previously selected Db6 wavelet. For these two wavelets, using at least the 5th level of the filtering was also proposed. However, during further research, it was found that for the Morlet wavelet, the highest possible setting of filtering was level 4th. Therefore, in this case, it was impossible to use the 5th level of filtration, which would correspond to the level of filtration used for the other wavelets.
6. Summary and Conclusions
The paper presents the results of research and analyses of the application of the wavelet transform to assess the surface condition of honed cylindrical sleeves. The advantage of the presented method is the possibility of quick analysis, which can be performed in one software, which is often available with a measuring device. In the course of the research, it is found that the application of various types of wavelets for the profile analysis allows us to identify and observe different properties, such as profile roughness or the fragments of the surfaces measured. The appropriate wavelet will emphasize the feature we want to highlight. The Daubechies wavelet allows for the observation of places with a high signal gradient and highlights the areas where the signal value changes significantly. While the Morlet wavelet shows the zones of local changes of a signal, and the Mexican hat wavelet exposes points of local extremes.
As seen above, it has many advantages. However, the findings in this report also show a number of disadvantages, which are shown when samples with a high degree of regularity and low roughness parameters are used. Therefore, the above recommendations for the use of individual types of wavelets best works for sample 1, which is characterized by a high degree of profile irregularity. Subsequent samples, especially sample 2, which is the most regular of all and whose roughness profile does not have many defects, shows that the use of wavelet analysis (in the scope of evaluated wavelets) is not applicable, or its application is limited due to the significant similarity of the surfaces obtained after filtration with standardized Gaussian filter and analyzed wavelets.
In conclusion, a wavelet transform is a useful tool, supporting the analyses of the roughness profile in terms of searching for signal properties other than the classical methods of its filtering. The major limitation of this method is the selection of the appropriate wavelet for the assessment and observation of individual groups of features occurring on the real surfaces. The second limitation is the fact that wavelet transforms, using each of the wavelets applied in this paper, do not meet the expectations when profiles or surfaces with a high degree of regularity and low values of peaks or valleys to the average surface are analyzed. Therefore, there is a selection of another wavelet of which properties and shape will be a better fit for the nature of the analyzed signal.
The next stage of the research will be the analysis of the possibility of using the wavelet transform to evaluate the geometrical structures of surfaces with different properties. The result of extensive research should be a set of recommendations on what types of wavelets should be used to describe a specific type of surface geometric structure. The development of such a set of recommendations will significantly speed up the entire analysis.