Abstract

Tool state monitoring is a key technology in intelligent manufacturing. But it is still in a research stage and lacks general adaptability for different machining conditions. To overcome this limitation, this work systematically investigates an intelligent, real-time, and visible tool state monitoring through adopting integrated theories and technologies, i.e., (a) through distinctively designed experimental technique with comprehensive consideration of cutting parameters and tool wear values as variables, (b) through bisensor fusion for simultaneous measurements of low and high frequency signals, (c) through multitheory fusion of wavelet decomposition and the Relief-F algorithm for performing dual feature extraction and feature dimension reduction to achieve more accurate state identification using neural network, and (d) through an innovative programming technique of MATLAB-nested labVIEW. This tool monitoring system has neural network adaptive learning ability with the change of the experimental sample signals which are collected simultaneously by selected vibration and acoustic emission (AE) sensors in all factors turning experiments. Based on LabVIEW and MATLAB hybrid programming, the waveforms of signals are observed and the significant characteristics of signals are extracted through the time-frequency domain analysis and then the calculation of the energy proportion of each frequency band obtained using 4 levels of wavelet packet decompositions of the vibration signal as well as 8 levels of wavelet multiresolution decompositions of the AE signal; the ensuing Relief-F algorithm is used to further reextract the features that are most relevant to the tool state as input of neural network pattern recognition. Through the BP neural network adaptive learning, tool state recognition model is finally established. The results show that the correct recognition rate of BP network model after samples training is 92.59%, which can more accurately and intelligently monitor the tool wear state.

1. Introduction

Tool condition monitoring is an indispensable technology in manufacturing automation and intelligence. The real-time monitoring of cutting tools can not only improve the quality of products and reduce production costs, but also reduce the downtime of machining centers and increase productivity.

Over the years, researchers have done a lot of work on tool condition monitoring and put forward many monitoring methods, which can be classified into two major categories: direct and indirect methods.

Direct methods [1, 2] are measurements of the cutting tool wear using optical, radioactive, electrical resistance sensors, etc. This kind of method directly measures the actual geometric parameters of the cutting tool [3], and the results are intuitive and reliable, and the measuring accuracy is high. However, the cutting zone is generally inaccessible during the cutting processes due to the continuous contact between the cutting tool and the workpiece, so it is impossible to realize online monitoring; and the sudden breakage of the cutting edge is unable to be monitored; and it is not feasible in the case of coolant. Hence it has limitations in practical applications.

Indirect method is a new developed technology on the basis of modern sensors, signal analysis, and pattern recognition. It monitors tool wear through analyzing and processing measured physical signals in cutting processes. It is characterized by real-time performance, versatility, convenient installation, and low cost, so it is much easier to be employed in practice. In general, indirect tool condition monitoring system consists of sensors, the signal conditioner or amplifier, and the monitor. Sensors are very important elements which must monitor the target location (near the tip of the tool) as close as possible. Then the received signals by sensors are processed to get useful information. A monitor is a display unit for analyzing signals. The indirect state monitoring system usually consists of four parts: signal acquisition, signal processing, and feature extraction and pattern recognition. Figure 1 shows the framework of tool monitoring system.

Indirect methods have been investigated by many researchers. The commonly monitored parameters with the change of tool include the cutting force, feed and spindle motor currents, vibration signal, acoustic emission (AE) signal, temperature, and surface roughness.

Dimla and Lister [4] developed an online tool wear monitoring system. They used tool dynamometer to measure three vertical components of the cutting force and the tool wear state monitoring was studied through the analyses of time series and fast Fourier transform (FFT) of the signals. The results showed that the cutting force was mainly determined by the cutting conditions, especially the depth of cut and the feed rate; and the vertical component of cutting force and vibration characteristics (z direction) were most sensitive to tool wear. Ghasempoor et al. [5] experimentally verified the feasibility of the online tool state monitoring system by using different cutting force components. They correlated the cutting force components with the tool wear and observed that these parameters were very sensitive to the change of the cutting conditions. However, the prediction of the wear of the crescent tooth was not very accurate, and the possible reason was that the wear of the tool rake face had the counteraction on the component cutting forces. Sikdar and Chen [6] studied the relationship between the wear area of the tool flank and the cutting force in the cutting process. The experimental results showed that the cutting force gradually increased with the increase of the wear area of the tool flank. Nouri et al. [7] described a new method to monitor end milling tool wear in real-time by tracking force model coefficients during the cutting process. The behaviors of these coefficients were shown to be independent from the cutting conditions and correlated with the wear state of the cutting tool. Wang et al. [8] took milling force as the monitoring signal, and wavelet packet theory was used to analyze and extract the energy feature of the signal as a basis for diagnosis and then the Continuous Hidden Markov Model (CHMM) was used to diagnose tool wear state. The results indicated that CHMM tool condition monitoring required less training samples and produced results quickly. However, the diagnostic accuracy seemed obscure due to the lack of contrast between experimental and diagnostic results.

Li et al. [9] presented that the feed cutting force estimation using the current from servo motor was applied to monitor the tool wear in turning. However, whether the feed force component could represent the influence of overall cutting physical parameters on tool wear still needs to be proved.

Many researchers studied the tool state monitoring by analyzing the generated vibration in machining operations. Teti et al. [10] classified the vibration during metal cutting process as free vibration and forced vibration. The two groups are not mutually exclusive. Free vibration independent of metal cutting contains forced vibration caused by other machines or machine components, for example, vibration transmitted through foundations, unbalance of rotating parts, inertia forces of reciprocating parts, and kinematic inaccuracies of drives.

Abouelatta and Madl [11] established the mapping relation between the surface roughness of the workpiece and the vibration by using the vibration signal. The surface roughness was measured using the Surtronic 3+ measuring instrument and the tool vibrations in radial and feed directions were measured by the FFT analyzer. It was found that the tool wear and the surface roughness could be predicted more accurately by the vibration model. Alonso and Salgado [12] developed a tool state monitoring system based on the tool vibration signal by using the singular spectrum analysis (SSA) and cluster analysis. SSA is a nonparametric technique of time series analysis. The sampled vibration signals can be decomposed into a group of time series, and the clustering analysis is used for grouping the time series of SSA decomposition to obtain several independent components in the frequency domain. The results showed that using SSA and clustering analysis to process signals could achieve more reliable results in the development of tool condition monitoring system.

During the metal cutting process, the plastic deformation occurs when the tool cuts into the workpiece. Due to the plastic deformation, transient elastic stress waves are generated inside the material, which quickly releases strain energy from one or more local sources. The released energy is usually called acoustic emission (AE). Li [13] described that AE was one of the most effective methods to monitor tool wear. The main advantage of using AE to monitor tool state is that the frequency range of AE signal is much higher than that of the machine vibrations and environmental noises, and it does not interfere with the cutting process. Kakade et al. [14] predicted the tool wear and chip shape in the milling process through the analysis of AE signal. The tool flank wear and AE signal parameters were measured at the fixed distance interval of the tool pass and the chips were collected at the same time. The results indicated that the AE signal clearly demarcated the cutting action between sharp and worn-out tool and that signal features including ring down counts, rising time, and event duration were capable of reflecting the tool wears.

It is normal and inevitable to generate heat in metal cutting process. The high temperature around the tip of the cutting tool will speed up the damage of the tool. To some extent, the tool temperature determines the tool wear rate. Korkut et al. [15] established the regression analysis (RA) and artificial neural network (ANN) model to predict the tool state by monitoring the chip interface temperature, and the results were verified by experiments. It was found that the proposed model had good accuracy and was suitable for predicting tool state.

Surface roughness is widely used in quality evaluation of machined products, which indirectly indicates tool condition. Cutting conditions have considerable influences on tool wear and surface roughness. Ozel and Karpat [16] used neural network modeling to predict surface roughness and tool flank wear in finish hard turning. The regression model was developed to obtain the specific parameters in the cutting process. The results showed that decrease of the feed rate resulted in better surface roughness but slightly faster tool wear, and the increase of cutting speed resulted in a significant increase of tool wear but better surface roughness; the increase of workpiece hardness resulted in better surface roughness but higher tool wear.

Artificial neural network (ANN) is a mathematical model for information processing by simulating the human brain. It consists of several processing units similar to neurons. It memorizes knowledge and stores it in the network by training and learning samples. Because of high fault tolerance and adaptability, noise suppression, and data driving, neural network classifier has been adopted by some researchers. Balazinski et al. [17] established three models: feedforward backpropagation neural network, fuzzy clustering analysis, and fuzzy reasoning based on neural network by collecting the cutting force signals during the cutting process. The results showed that the three models estimated tool wear with almost the same precision. But the fuzzy clustering analysis method was somewhat difficult to be applied in practice because it had to analyze the dependence of tool wear on the cutting force and the training time of the neural network method was long. Silva et al. [18] utilized two neural networks and an expert system using Taylor’s tool life equation to classify the tool wear state; the classification accuracy results, however, were puzzling because of the missing Figures 1618 and the simple linear regression analysis. The research of monitoring tool wear using classifier fusion by Kannatey-Asibu et al. [19] illustrated that the classifier fusion performance reached 99.7% when a penalty vote was applied on the weighting factor. However, whether the demonstrated technique using AE monitoring is suitable for low frequency signal monitoring or not, further research is still needed.

By and large, the tool state monitoring technology is not mature enough due to the complexity of the relationship between the measured physical quantities by sensors and the tool state, and thus the establishment of the accurate relationship between them is still a hard problem to be solved when we intend to develop a practical tool state monitoring system to meet various machining processes and environments. Specifically, there exist the following main problems. (1) First is the adaptability of monitoring models. Most of the existing monitoring models are suitable for narrow cutting conditions, and the reliability and effectiveness under variable cutting conditions cannot be guaranteed. The metal cutting process is very complex and has a lot of randomness, and different machine tools, cutting tools, workpiece materials and cutting parameters will make the monitored signal characteristics different. Thus it is of great significance to establish a tool state monitoring system that can adapt to the changeable cutting conditions. (2) Second is sample acquisition problem. Sample acquisition in cutting is difficult and costly in some cases. A large number of cutting experiments will cause high costs. Therefore, it is essential to establish a model with self-learning ability and little dependence on training samples. (3) Third is the difficulty of developing the monitoring system based on new sensor and signal analysis technology. Tool state monitoring involves a variety of sensors and signal analysis techniques, and the selection of the suitable sensors and signal analysis methods have not been systematically studied.

Hence, the aim of this study is to investigate a method of achieving a visual, intelligent, and real-time tool state monitoring that is universal and can be used in practice. The implementation of tool wear monitoring is divided into two major parts: experimental details, and design and implementation of tool monitoring functions. The contents include (1) using bisensor fusion to measure the signals (low frequency vibration signal and higher frequency AE signal) in the turning process; (2) being based on hybrid programming technique of LabVIEW and MATLAB, analyzing and processing the signals, and extracting the most relevant features that reflect the tool wear state by the use of dual methods, i.e., the combination of the wavelet theory with the Relief-F algorithm; (3) using the extracted features as training samples of the neural network and then establishing the recognition model of tool state, such that intelligent recognition of the tool state is accomplished.

The designed structure of lathe tool wear monitoring system is shown in Figure 2.

2. Experimental Details

Table 1 lists the instrumentation and specifications of the experiments in this work.

2.1. Selection of Experimental Parameters

In the turning process, there are many factors affecting the signals of the sensors, such as cutting parameters, tool parameters, the machine tools, degrees of the tool wear, and the machining environment. And so many factors will inevitably bring difficulties to the experimental design, so we need to analyze the specific machining environment and remove some minor factors.

On the premise of some fixed factors, such as the machine tools, the workpiece material, and the cutting tool, the machining parameters are changeable according to the machining requirements. The value of the tool wear is also a variable in the cutting process. Because the experimental objective is to obtain the mapping relations between the tool wear and the vibration plus AE signals characteristics, so the experimental factors include the cutting speed, the feed rate, the depth of cut, and tool wear.

According to the specifications of the machine tools, the experimental parameters are designed, as presented in Table 2, which also takes into account three VB values of the tool flank wear corresponding to the indices of tool wear criterions: sharp tool stage (initial wear), normal working stage (normal wear), and worn out stage (severe wear), as listed in Table 3. For each of the experimental cutting conditions, the observations of the vibration and AE signals are made and recorded corresponding to the three wear states of the tool flank.

2.2. All Factors Experimental Technique

The orthogonal test is a frequently used method in experimental design. It can greatly reduce the number of trials, the test time, and costs. But the orthogonal test is inappropriate for the modeling and recognition of the neural network since the amount of data is relatively small. Therefore, in this work, the experiments of all factors combinations are conducted for obtaining the data of tool state monitoring. According to the test factors and levels designed in Table 2, there are four factors and each factor has three levels. Therefore, the four factors-three levels comprise 34=81 groups of experiments.

2.3. Bisensors Installation and Tool Wear Measurement

The most common waveform data in condition monitoring are vibration signals and acoustic emissions [20]. In this work, two sensors, i.e. vibration acceleration sensor and AE sensor, are simultaneously selected for measuring the cutting tool signals. The advantages of selecting them lie in that both vibration and AE signals can sensitively reflect the tool state in real time and that they are suitable for monitoring different machining processes. Figure 3 illustrates the experimental installation of sensors in the turning process. Both the vibration and AE sensors have magnetic bases, which can be installed onto the tool shank magnetically. Two sensors are installed close to the cutting tool. The vibration and the AE sensors are placed in the vertical direction (Z axis) and the horizontal direction (Y axis) of the shank and used to measure vibration and AE signals, respectively.

Three prepared cutting tools for each wear state in the experiments, as shown in Figure 4, are used to cut the workpiece so that the signal data of each tool state can be correspondingly collected by sensors, respectively. Hence each tool wear state corresponds to its own signal data and three tool wear modes (initial, normal, and severe wear) will not mix together. A tool microscope (with five million pixels) that can magnify 100 times is used to measure the tool wear, as shown in Figure 5. It can be connected with the computer, and the tool wear can be observed and measured on the computer screen, and the measurement photos can also be taken.

2.4. Signal Acquisition Procedure

The data acquisition is a process of collecting and storing the experimentally measured sensor signals in the turning process, such that it provides reliable sample data for later state recognition.

The flow chart of the signal acquisition procedure is illustrated in Figure 6. In the machining process, the vibration sensor and AE sensor collect the original tool state signals, which are weak and need to be amplified, buffered, and filtered via the amplifiers and data acquisition cards, and then the signals are entered into the computer for storage.

3. Tool Monitoring Functions and Implementation Methods

This tool monitoring design includes three functions: signal acquisition or reading, signal processing and feature extraction, and state recognition.

3.1. Signal Acquisition Function

The signal acquisition module in this work has the functions of signal display and storage, which is developed using the LabVIEW software. LabVIEW is a graphical programming language. The LabVIEW program is called virtual instrument (VI), which provides lots of graphical controls and functions used in the data analysis and processing in engineering fields. We devise desirable functions and drag graphical controls into the program diagram and then connect the wires according to the needs of programming, and finally the instrument functions and the parameters settings can be realized. LabVIEW also provides the interface with MATLAB, i.e., MATLAB Script. Using MATLAB programming for numerical calculation and analysis can greatly shorten the time of the system development and finish a completely automated test system. LabVIEW software has two human-machine interaction interfaces: the front panel and the rear panel. The front panel provides many graphical controls that are similar to the appearance of actual instruments. Graphical controls on the front panel are manipulated by using icons and wires on the rear panel.

3.2. Signal Analysis and Method Fusion of Dual Feature Extraction

In the metal cutting process, the original signals collected by the sensors contain a lot of noises and useless information. They cannot be used directly to identify the tool state and only the extracted characteristics are useful for the state recognition. The collected vibration and AE signals are dynamic signals. The signal components are very complex and the background noise comes from many sources, such as cutting environment, machining conditions, and material properties. There exist both stationary and nonstationary signals. The time domain analysis of signal can only represent time history of the signal amplitude characteristic, but cannot clearly reveal the frequency compositions of the signal. And the frequency domain analysis can represent the frequency structure of the signal and the amplitude of the frequency components, but cannot provide time information and judge the change of local signal with the time. The time-frequency analysis method can reflect the signal characteristics both in time domain and in frequency domain; that is, it can satisfy the requirements of nonstationary signal analysis and processing. Thus the time-frequency domain analysis is used based on the initial time domain analysis and frequency domain analysis.

In this work, firstly, the time domain analysis mainly focuses on the time domain waveform display for observing the waveform change rules, and, secondly, some statistical eigenvalues (mean value , variance , and root mean square value Xrms) are calculated according to the sampling number of each signal through LabVIEW programming. The expressions of three statistical characteristics are presented in the following, respectively.

where xi is the collected signal data by the sensor; mean value indicates the constant component of a signal; variance describes the deviation from the mean value of a random signal; root mean square value describes the intensity of a random signal, i=1, 2,...N; and N is sample number.

Figures 7 and 8, respectively, show the typical time domain waveforms of the experimentally collected vibration and AE signals in different cutting tool wear stages (cutting speed 64.6m/min; feed rate 0.11mm/r; depth of cut 1.2mm). The abscissa is sampling time and the ordinate is the amplitude of the signal.

It can be seen from Figure 9 that the frequency components of the vibration signal are not very rich, mainly ranging from 2 to 4 kHz. The signal energy in this frequency band varies noticeably in different wear stages and in other frequency bands it has no observable change. As can be seen from Figure 10, the AE signal contains rich frequency components, which mainly exist between the frequency band 0-50kHz and 100-150 kHz. The signal energies in these two frequency bands change obviously in different tool wear stages, and the energies keep almost unchanged in other frequency bands.

We can see that, according to the time domain analysis and frequency domain analysis on Figures 710, it is difficult to describe the characteristics of the tool state and to do the quantitative analysis. Thus further analysis is necessary.

Due to the nature of manufacturing processes, the signals are usually nonstationary and the signal processing approaches that deal with nonstationary signals are more appropriate for process monitoring [3]. We have known that time-frequency analysis is usually used to analyze nonstationary signals which often have both high and low frequency components. And wavelet transform is one of the commonly used time-frequency analysis methods, because it has the zoom function and can adaptively adjust the time-frequency resolution of the signal according to the difference of decomposition scale. Wavelet analysis has good localization property in both time domain and frequency domain and permits adaptive time-frequency representation. Dividing the frequency band into multiple levels can improve frequency resolution of both high and low frequencies. Zhu et al. [3] reviewed that, due to the advantages of wavelet decomposition, wavelet methods have been studied in many aspects, such as signal denoising, feature extraction, and compression, or used as classifier in tool condition monitoring. Gong et al. [21] showed that the wavelet analysis was more sensitive and reliable than the Fourier analysis for recognizing the turning tool wear states. Yoon and Chin [22] verified the reliability of the wavelet transform compared with the spectra method of Fast Fourier transform (FFT).

Continuous wavelet transforms (CWT) are recognized as effective tools for both stationary and nonstationary signal processing. However, it involves much redundant information and takes long computational time. Mallat [23] developed discrete wavelet transform (DWT) which is an algorithm based on the conjugate quadratic filter (CQF) and preferable in the time-frequency analysis because of no redundancy and fast computation. Wavelet and scaling functions of different scales are generated from a scaling function with two-scale difference equations [24]:

where h(k) and are filter coefficients of low-pass and high-pass filters; and ψ(t) are scaling and wavelet functions at scale space j=1, respectively.

Assuming cj,k, dj,k are scaling coefficient and wavelet coefficient, respectively, they are derived from the projection of the signal onto the spaces of scaling function (t) and wavelet function ψj,k (t), and m is the filter length, then

Figure 11 shows a schematic diagram [25] of feature extractions for the signal representation with 3 levels of wavelet packet decompositions. The decomposition process is as follows: assuming that the frequency range of the signal S is [0, f], after the first level decomposition, S is decomposed into two parts, i.e., high frequency part D1 and low frequency part A1. Among them, the frequency range of high frequency signals is [f/2, f], and the low frequency range is [0, f/2]. Then, in the second level decomposition, A1 obtained from the first level is decomposed to get the low frequency part AA2 and the high frequency part DA2, and D1 is decomposed to obtain low frequency part AD2 and the high frequency part DD2. Their corresponding frequency ranges are [0, ƒ/4], [ƒ/4, ƒ/2], [ƒ/2, 3ƒ/4], and [3ƒ/4, ƒ], respectively. And likewise, the original signal is decomposed level by level. The decomposition relation of the signal S in Figure 11 can be expressed as the following:

S is initial signal; A1, A2, and A3 are the first, second, and third level of low frequency after decomposition, respectively; D1, D2, and D3 are the first, second, and third level of high frequency after decomposition, respectively.

Figure 12 shows 3 levels of tree structure of wavelet multiresolution decomposition. It can be clearly seen from Figure 12 that multiresolution analysis is actually equivalent to a bandpass filter, and only the low frequency component is decomposed at each level without considering the high frequency. This decomposition process is that the frequency range of the signal S is [0, ƒ], and S is divided into two parts after the first level decomposition, i.e., the high frequency part of D1 and the low frequency part A1. The frequency range of high frequency component is [ƒ/2, ƒ], and the low frequency part is [0, ƒ/2]. When the second level is decomposed, the high frequency part D1 obtained from the first level decomposition is no longer decomposed; only the low frequency part A1 is decomposed, and it is also decomposed into two parts: high frequency part D2 and low frequency part A2. The frequency range of the high frequency part D2 is [ƒ/4, ƒ/2], and the low frequency part A2 has a frequency range of [0, ƒ/4]. The third level of decomposition is the same as the second level and only the low frequency part A2 is decomposed into two parts, i.e., the high-frequency part D3 and the low frequency part A3. And likewise, the signal is decomposed level by level. After the signal S is decomposed by the three levels of multiresolution, the signals A3, D3, D2, and D1 are obtained, and the corresponding frequency ranges are [0, ƒ/8], [ƒ/8, ƒ/4], [ƒ/4, ƒ/2], and [ƒ/2, ƒ]. Therefore, we have the following formula:

When the signal is decomposed by wavelet packet, if the number of decomposed levels is too many, the calculation time of the computer will increase; if the number is too little, the resolution will reduce and many useful information may not be resolved. The number of decomposition levels depends on the signal itself and the requirements of the characteristic parameters. In this work, considering that the frequency of the vibration signal is relatively low and the frequency of AE signal is high, in order to achieve good frequency resolution effects, the vibration signal is decomposed by four levels of wavelet packet analysis, and the AE signal is decomposed by eight levels of multiresolution analysis. After this, the energy proportion of each frequency band is extracted. This process is realized by mixed programming of LabVIEW and MATLAB. Figure 13(a) shows the block diagram of the 4 levels of wavelet packet decompositions for vibration signal. Figure 13(b) is the front panel of the time-frequency analysis, which can observe the waveform of the frequency bands and the energy proportion of each frequency band after the signal is decomposed by wavelet analysis.

3.2.1. Wavelet Packet Analysis of Vibration Signal and Characteristic Extraction

The experimental sampling frequency of the vibration signal is 25.6 KHz. According to the Nyquist sampling theorem (the sampling frequency is two times more than the actual maximum frequency), the available frequency is 12.8 KHz. Therefore, the collected vibration signal is decomposed into four levels by the wavelet packet analysis, and the frequency resolution is 0.8 KHz. Finally, the vibration signal is decomposed into 16 frequency bands (A1-A16), and the frequency distribution of each frequency band is presented in Table 4.

Figure 14 shows the amplitudes and waveforms of the vibration signal with the change of the tool wear state, so the internal relationship of the amplitude with the tool state can be studied by further analysis of the change of each frequency band.

In order to find out the change rules of each frequency band, we quantify the amplitude of Figure 14 by summing up the squared wavelet coefficients of the decomposed 16 frequency bands and then by normalizing to obtain energy proportion of each frequency band. Table 5 lists the energy proportion of the signal for three different tool states under a given cutting condition (cutting speed 64.6m/min; feed rate 0.11mm/r; cutting depth 1.2mm).

The histogram for Table 5 is drawn to give a more direct view of the energy proportion change in each frequency band and the comparison of the energy proportion of three tool wear states in each frequency band, as shown in Figure 15. It can be seen from Figure 15 that the energy of the vibration signal is mainly distributed in several frequency bands (A1, A3, A7, A11, and A15). The energy proportion of frequency bands A2, A4, A7, and A8 decreases with the increase of tool wear, and the energy proportion of frequency bands A11, A12, and A15 increases with the tool wear. The change in other frequency bands is irregular or no obvious change.

3.2.2. Wavelet Multiresolution Analysis of AE Signals and Characteristic Extraction

The experimental sampling frequency of AE signal is 1MHz. According to Nyquist sampling theorem, we know that the available frequency of AE signal is 500 KHz. After 8 levels of wavelet multiresolution analysis, the frequency resolution of AE signal is 1.95 KHz. Finally, AE signal is decomposed into 9 bands (A1, D1-D8), and the distribution of each frequency band is listed in Table 6.

The multiresolution waveform diagram of the AE signal is shown in Figure 16. It can be seen that the amplitudes in some frequency bands vary with the change of the tool state. So we can study the internal relationship of the amplitude with the tool state by further analysis of the change of each frequency band.

The amplitude of each frequency band is quantized by the sum of the squared wavelet coefficients of the AE signal in nine bands obtained after the decompositions and by normalization to obtain the energy proportion of each frequency band. Table 7 lists the energy proportion of AE signal for three different tool states under a given cutting condition (cutting speed 64.6m/min; feed rate 0.11mm/r; depth of cut 1.2mm).

The histogram for Table 7 is shown in Figure 17. It can be seen from Figure 17 that the energy of the AE signal is mainly distributed in several frequency bands of D2, D3, D4, D5, and D6. The energy proportions in D2 and D3 bands decrease with the increase of tool wear, and the energy proportions in the D5 and D6 frequency bands increase with the tool wear.

By now, after the signal analyses of 81 groups of experimental sample data in three tool states (initial wear, normal wear, and severe wear), the mean value, variance, and root mean square value for each group of the vibration signal data and the energy proportions of 16 frequency bands after 4 levels of wavelet packet decompositions are extracted. Meanwhile, the mean value, variance and root mean square value for each group of the AE signal data and the energy proportions of 9 frequency bands by the 8 levels of wavelet multiresolution decompositions are also extracted. Therefore, these characteristics for each group of vibration and AE signal data can compose a 31-dimensional fusion characteristic vector, as listed in Table 8.

In Table 8, some characteristics are useless, which not only increase the computation, but also affect the classification effect. Therefore, further feature selection is necessary.

3.2.3. Feature Re-Extraction with Relief-F Algorithm

Feature reextraction is to select a few features that are the most relevant with the tool state to compose the feature vectors by calculating each feature in a group of multidimensional features so that feature extraction and dimension reduction are achieved. In this work, a well-known filtering feature selection method called Relief-F algorithm is adopted. The principle of Relief-F algorithm is that the weight of each feature is calculated and then these weights are contrasted, the greater the weight value is, the stronger the classification ability will be.

When dealing with multiclassification problems, Relief-F algorithm takes a sample R randomly from the training sample set each time and searches the nearest neighbor samples (near-hit) from the sample set of the same class as R and then finds out the nearest neighbor samples (near-miss) Mj(C) from the sample set of different class from R and then updates the weight W(A) of each feature A, as shown in

where diff (A, R1, R2) is the difference of sample R1 and R2 on feature A, p (C) is the proportion of this class; p (Class (R)) is the proportion of the class of a randomly selected sample; Mj(C) is the jth nearest neighbor sample in class Cclass(R); m is the sampling number; and k is the number of nearest samples.

The weight of each feature is calculated with MATLAB based on Relief-F algorithm. In Table 8, the characteristics are numbered for the convenience of feature selection. We specify that the intentionally selected number of features is 8, and then the corresponding sequence number of the feature level after 8 will be removed. So the most optimal feature vectors for the classification of cutting tool states can be selected.

Figure 18 is the histogram for the averaged 30 calculation results of each feature weight. The distribution of the classification ability of each feature can be seen from the diagram, and the weight of each feature is arranged in order of value and Table 9 is obtained, which clearly reflects the correlation between each feature and the tool wear. The bigger the weight value is, the greater the correlation between them is.

From Figure 18 and Table 9, we can see that the numbers of the feature vectors are 7, 28, 30, 3, 18, 9, 26, and 14 after the Relief-F algorithm calculations. Therefore, checking Table 8, we know that the eight features including frequency bands A4, A6, A11, A15 and the root mean square of the vibration signal, and frequency bands D2, D4, and D6 of AE signal can be selected as the input of the subsequent state recognition.

3.3. State Recognition Using BP Neural Network

State recognition plays an important role in tool state monitoring. It is to classify the cutting tool state in the cutting process by inputting the extracted tool state features into the recognition model, enabling the mapping from the feature space to the state space. At present, the most commonly used state recognition methods in tool state monitoring are artificial neural network, fuzzy reasoning, etc.

In this work, the state recognition model is established by using BP neural network based on the analysis results of the signal processing and extraction with the hybrid programming of LabVIEW and MATLAB in Section 3.2.

The structure of BP artificial neural network is divided into input layer, hidden layer, and output layer, as shown in Figure 19. In the structure, the network is trained by the training sample set of the input. During the training process, the error is constantly propagated and corrected, and the network parameters, such as the weight and the threshold value (see Figure 20), are also adjusted to enable the network to approach the desired mapping relationship between the input and output.

3.3.1. The Establishment of Adaptive BP Neural Network Model

The establishment of adaptive BP neural network model mainly includes the determination of the number of nodes in the input, hidden and output layer, selection of the transfer function, the training algorithm, and the setting of the target error.

(1) The Number of Input Layer Nodes. The number of input layer nodes of the BP neural network is equal to the dimension of the input vector. Because 8 features are retained after the feature selection, so the number of the input layer nodes is 8.

(2) The Number of Output Layer Nodes. Since there are three kinds of tool wear: initial wear, normal wear, and severe wear, which are represented by binary numbers , , and , respectively, so the number of the output layer nodes is 3.

(3) The Number of Hidden Layer Nodes. The number of hidden layer nodes determines the performance of the network model. If the number is too small, then the division of the model space is rough, and the network fault tolerance performance and recognition ability are low; if the number is too large, then the model space division is too fine, and the network convergence speed is slow or not convergent, and the training time is long. Based on the empirical formula (13), preliminary calculations are carried out, and the number of hidden layer nodes is changed and tested repeatedly. Finally, the number of hidden layer nodes is determined to be 11.

where p is the number of hidden layer nodes; n is the number of input nodes; m is the number of output nodes; and a(1, 10).

Thus an adaptive BP neural network model of 8-11-3 structure is obtained, and Figure 20 shows the artificial neuron model. The S type tangent function (Tansig) is selected for the transfer function of the hidden layer neurons, and the S type logarithmic function (logsig) is selected for the output layer neuron transfer function. Levenberg-Marquart's improved algorithm is used as the learning algorithm. The maximum number of training steps is 1000, the target error is 1e-6, and the performance parameter is 0.001.

3.3.2. Determination of Samples

After the signal analysis and features selection in Section 3.2, 8 dimensional-81 groups of feature-sample set are formed. This work selects 54 groups of samples as a training set and 27 groups of samples as a test set.

The range of numerical values of different types of features in the samples is inconsistent, so we need to normalize the sample set with MATLAB and to limit the numerical values of different types of features in the range of (-1, 1) according to

where ymax=1, ymin= -1; x and y are feature values to be normalized and the corresponding value after normalization, respectively; xmax and xmin are the maximum and minimum values of the features to be normalized, respectively.

3.3.3. Training Results of Adaptive BP Neural Networks

Fifty-four groups of sample data in training set are input into adaptive BP neural network model for training and learning. Figure 21 shows the training state diagram of the BP neural network. It can be seen from Figure 21 that the model reaches the convergence precision at step 49.

4. Results Analysis

Twenty-seven groups of test sample data are input into the trained adaptive network model for testing, and the obtained test results are presented in Table 10. From Table 10, we can see that the recognition results of the network model contain two incorrect outputs; hence the correct recognition rate is u=25/27=92.59%. This indicates that the state recognition model established by adaptive BP algorithm can better accomplish the tool state recognition. If the first number of the actual output value of adaptive BP neural network is maximum, then the output shows , indicating that the tool is in the initial wear state; if the second number is maximum, the output is and the tool is in the normal wear state; and if the third number is maximum, the output is and the tool is in severe wear state.

5. Discussion

This work systematically investigates the approaches of realizing a visual, intelligent, and real-time tool state monitoring based on hybrid programming of LabVIEW and MATLAB. Both the multitheories used in the study and the experimental method can adapt to various machining processes and environments. The reasons are discussed as follows.

(1) Advantages of Experimental Scheme. The experimental objective is to obtain the mapping relations between the tool wear and the measured physical signals that are able to reflect the tool state in cutting processes. Therefore, the determination of experimental factors is one of the key issues. For this, the experimental scheme is designed according to the specifications of the machine tools used in this work. Except some fixed factors affecting the signals such as the machining environment and cutting tool parameters, other variable factors such as cutting parameters including the cutting speed, the feed rate, the depth of cut, and tool wear are determined, among which three VB values of the tool flank wear corresponding to the indices of general tool wear criterions, sharp tool stage (initial wear), normal working stage (normal wear), and worn out stage (severe wear), are taken into account, as presented in Tables 2 and 3. Based on this scheme, all-factors experiments are conducted, which is a very important aspect for obtaining the sufficient data of the later task on modeling and recognition of the neural network. Hence, there are four factors and each factor has three levels thereby 34=81 groups of experiments.

Secondly, tool state monitoring involves a variety of sensors and signal analysis techniques, and the selection of the suitable sensors is the second key issue. Due to the nature of manufacturing processes, the signals are usually nonstationary, which often contain both high and low frequency components. Therefore, bisensors, i.e., vibration acceleration sensor and AE sensor, are simultaneously selected for measuring the low frequency vibration signal and higher frequency AE signal in this work. Therefore, the advantages of bisensors lie in that they can sensitively and entirely reflect the tool state in real time and are suitable for monitoring different machining processes.

(2) Significance of Dual Feature Extraction of Signals. This work extracts the signal features that are most relevant with the tool state by the use of the method fusion of wavelet theory and Relief-F algorithm. The reason is that dual feature extraction of signals can achieve the dual effects of finding out the most relevant features and feature dimension reduction. Wavelet analysis has good localization property in both time domain and frequency domain and permits adaptive time-frequency representation. Dividing the frequency band into multiple levels can improve frequency resolution of both high and low frequencies. Through the signal analyses of 81 groups of experimental sample data in three tool states (initial wear, normal wear, and severe wear), 4 levels of wavelet packet decompositions of the vibration signal and the 8 levels of wavelet multiresolution decompositions of the AE signals can satisfy the requirement of the frequency resolution and 31 characteristics for each group of signal data are extracted, as listed in Table 8. However, some characteristics are useless in Table 8, which not only increase the computation, but also affect the state recognition effect. Therefore, feature reextraction using Relief-F algorithm is carried out to select a few features that are the most correlated with the tool state. Figure 18 shows the histogram for the averaged 30 calculation results of each feature weight. From Figure 18 and Table 9, we can see that the sequence numbers of the feature vectors are 7, 28, 30, 3, 18, 9, 26, and 14 after the Relief-F algorithm calculations. Therefore, by the inspection of Table 8, they are 8 corresponding features including frequency bands A4, A6, A11, A15, the root mean square of the vibration signal, and frequency bands D2, D4, and D6 of AE signal. That is, the number of features is reduced from 31 to 8.

(3) Success Rate of State Recognition Using BP Neural Network. In this investigation, it is found that the number of hidden layer nodes is one of BP network training conditions determining the success of network recognition. The number of hidden nodes is changed and tested repeatedly after the initial calculation using the empirical formula (13). The network is trained by the training sample set of the input. During the training process, the network parameters, such as the weight and the threshold value, also need to be adjusted to enable the network to approach the desired mapping relationship between the input and output. This work selects 54 groups of samples as a training set and 27 groups of samples as a test set. It can be seen from Figure 21 that the adaptive BP neural network model for training and learning reaches the convergence precision at step 49. Test results show that the correct recognition rate can reach 92.59%.

6. Conclusions

A tool wear monitoring through hybrid programming technique of LabVIEW and MATLAB is accomplished, which can more accurately complete the intelligent and real-time recognition of the tool state with the correct recognition rate of 92.59%.

Vibration and AE signals are ideal signals for tool monitoring. Bisensor fusion can collect both the relatively low frequency of the vibration signal and the high frequency of AE signal and thus can sensitively and entirely reflect the tool state in real time.

The method fusion of wavelet decompositions and relief-F algorithm can achieve dual extraction of signal features and feature dimension reduction, such that computation is fast and real-time performance is good. The results show that the number of features that are relevant with the tool wear state is reduced from 31 of each group of signal data to 8, which are of the frequency bands most relevant to tool wear states including A4 (2.4-3.2 KHz), A6 (4-4.8 KHz), A11 (8-8.8 KHz), A15 (11.2-12 KHz) of vibration signal and D2 (125-250 KHz), D4 (31.25-62.5 KHz), and D6 (7.8-15.6 KHz) of AE signal. Obviously vibration signal and AE signal can complement each other in tool wear monitoring.

The tool wear monitoring method shows the generality. This is because the experimental scheme, hybrid programming technique, the dual feature extraction, and BP network recognition model in this work have generality, which can be applied to any other different machining operations such as milling, drilling, boring, forming, and shaping, combined with different cutting tools including single point tool (shaping) and multipoint tool (milling, drilling) in machining any kinds of workpiece materials. This can be accomplished only through changing the installation locations of the vibration and AE sensors. If necessary, the sampling parameters can easily be set in the system and can reextract the different features by implementing the Relief-F algorithm and can also reset the parameters of the BP neural network.

Data Availability

The data used to support the findings of this study are included in the article.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (Grant no. 61562055).