Keywords

1 Introduction

The new idea of Industry 4.0 aims to implement all technological advances in various fields to boost production capabilities, streamline production processes, and make it easier for operators to do their tasks. One of the existing technologies that represents great advantages in the automation of production processes is artificial vision based on artificial intelligence [1].

To achieve the highest quality material cutting during the machining process, tool integrity is essential [2]. Therefore, new manufacturing models require intelligent machining to cope with dynamics, process variations and complexity. In this field, studies related to machining tool wear are necessary to achieve high quality parts. Various recent studies have attempted to monitor the machining process by considering different information such as torque [3], vibration signals [1], acoustic signals [4] and process images [2] to estimate tool wear. However, some studies [1, 2] point out that there is still a lot of work to be done as estimating tool wear is a challenging task, frequently subjective and even more complex when the tool dimensions are in the order of micrometers, as is the case of broaching process. Broaching is a machining process used in the manufacture of complex shapes, both internal and external, required by many industrial sectors such as aeronautics, automotive and marine [3]. A common application of the broaching process is the manufacture of the aero-engine turbine discs fir trees, where both the level of surface and dimensional integrity and the cost of manufacture are critical. Therefore, the interest and requirement for reliable control of tool integrity is of great importance in the broaching process [2, 5, 6].

Direct measurement of flank wear in accordance with ISO 3685:1993 is a frequently used technique for evaluating the broaching tool wear [5]. Nevertheless, this method is laborious and subjective, as it depends on the experience of the operator performing the measurements. However, Machine Learning ML is the basis of many recent advances in artificial intelligence that have been developed in terms of improving evaluations of cutting tool wear. Machine learning is a subfield of artificial intelligence that allows machines to learn, improve and perform a specific task using process data. Thus, the main disadvantages of manual wear measurements can be overcome by ML techniques, which generate highly reproducible values, save technicians labor-intensive tasks and can obtain values with high accuracy. ML algorithms can be divided into three categories depending on the learning system and the type of input data (supervised learning, unsupervised learning, reinforcement learning). These algorithms attempt to perform two main tasks: clustering, in which data is separated into specific classes, and regression, looking for a trend within the data. The various methods used to achieve the different objectives will determine the type of algorithm used, for example Support Vector Machines SVM, Random Forest RF, k-nearest neighbors, etc. [1].

In this work, a machine vision system workflow to automatically estimate the broaching tool wear is proposed. The proposed method is established on in-process images of the tool and is based on the classification of pixels corresponding to the tool wear class. This classification is performed by supervised learning using one of the best performing algorithms in the field of digital image processing, Random Forest RF [1]. In the framework of this study, additional tests are carried out comparing the traditional measurement results using ISO 3685:1993 with the prediction results obtained by the RF algorithm.

2 Methodology

This section describes the broaching tests carried out, as well as the wear assessment by the traditional and the proposed ML-based machine vision method.

2.1 Broaching Test

Figure 1 shows the set-up of the method. The machined part was an Inconel 718 turbine disc of Ø500 mm diameter and a thickness of 34 mm. The experimental set-up was carried out on an EKIN vertical broaching machine working, Fmax = 70kN with an uncoated 18-tooth Tungsten Carbide (Co10%) tool of grade S10. The images of the tool were obtained in process every 5 broaching cycles with a telecentric lens camera, LED light source, and integrated commercial imaging software. The resolution of all images was 1280x1024 and recorded with (.jpg) extension.

Fig. 1.
figure 1

Data acquisitions system architecture, a) parts and b) Measurement of flank wear under the traditional process.

2.2 Flank Wear Measurement by ISO 3685 Method

Firstly, once all the images of each flank were captured at different slots, the flank wear was measured in the traditional way according to the ISO 3685:1993 ISO8688-1 and 2 standards [6, 7]. Based on several studies [3, 5, 8], when machining with flat-faced tools, flank wear (VB) or crater wear (KT) are considered as main tool wear measurement parameters. Therefore, the procedure described in ISO 3685 (Fig. 1b) is applicable to the broaching process for the measurement of wear on its cutting tool.

2.3 Flank Wear Prediction by Machine Vision

The process of predicting flank wear by machine vision is shown in Fig. 2. First, after preliminary tests using a calibrated standard, the angle of image acquisition that was most representative of the actual magnitude of flank wear was determined. Then, a software tool was developed to delimit the Region of Interest (ROI), in which the tool wear occurs, thus avoiding undesiring effects that may lead to errors in prediction. This automated approach, which is based on morphological procedures, was successful with all of the test images (Fig. 2a). As the broaching tool comprises cutting-edge, 18 images were obtained in each slot. The labelling was performed on 5% of the pixels for only three out of the eighteen images in each pass. The pixels where classified into 5 classes (for a multi-class classification), including wear, background, tool, drill, and chip. Thereafter, the attributes of the model were obtained. In this study, more than 150 digital filters were assigned as attributes (Fig. 2a). After the attributes were obtained, the RF classification algorithm implemented in the Scikit-learn python library, version 1.0.2 was used for multi-classification [9]. The number of trees used in each prediction was 100. Finally, once the RF classifier was trained, the model can be used to predict tool wear in new images.

Fig. 2.
figure 2

ML- based Image processing technique for estimating tool wear

2.4 Predictive Performance

Through the comparison of a set of experimental data with the prediction results, it is possible to estimate the performances of various types of AI algorithms, such as shallow neural networks (SNN), deep neural networks (DNN), and Random-Forest (RF) algorithms. Mean Absolute Error (MAE) and Mean Squared Error (MSE) are two commonly used comparative metrics. Thus, in the present work, both MAE and MSE metrics were used to evaluate the accuracy of the proposed model. Equations (1) and (2) indicate the determination of the above metrics:

$$MAE=\frac{1}{n}{\sum }_{i=1}^{n}\left|\left({y}_{exp}-{\widehat{y}}_{pred}\right)\right|$$
(1)
$$MSE=\frac{1}{n}{\sum }_{i=1}^{n}{\left({y}_{exp}-{\widehat{y}}_{pred}\right)}^{2}$$
(2)

where, yexp represents the experimental values obtained by the traditional method based on ISO 3685:1993 and ypred the values predicted by the model.

3 Results

Figure 3 shows the results of flank wear measurements using the traditional method (Fig. 3a) and the proposed (Fig. 3b). Progressive wear is observed as the number of machined grooves increases. The result is consistent with the nature of the process, as each edge is theoretically designed to cut through more and more matter. However, adhesion may occur at the cutting edge, increasing the cutting cross-section and thus leading to increased flank wear (case of the cutting-edge number 9).

Fig. 3.
figure 3

Evolution of slot wear measurement by a) ISO method, b) Machine Learning.

By comparing both methods prediction results, an MSE of 0.17% and MSA of 2.88% were achieved (Fig. 4a). Although noise was present in certain sets of acquired images, the algorithm was able to classify the flank wear accurately (results in line with the ones obtained by the traditional method (Fig. 4b), in much less time and in an automatic way. In addition, it is observed that the flank wear and the wear area obtained by the RF algorithm have a direct relationship which is reflected in the trend of wear progress. Consequently, these two metrics are considered useful for assessing wear growth.

Fig. 4.
figure 4

Wear metrics obtained from the applied methods.

4 Conclusions

In this paper, flank wear on tool edges in broaching operation was evaluated using two methods: a traditional method under ISO 3685:1993 and by means of a Random Forest (RF) machine learning algorithm. The performance of the algorithm was evaluated on images acquired in process. The performance was determined using the MSE and MSA indicators, resulting in 0.17% and 2.88% respectively. It is therefore concluded that the Random Forest algorithm has potential utility for assessing flank wear development.

It is known that labelling improves the accuracy and indicators of the model. This study concludes that with the labelling of 3 mages of the 18 that confirm the broaching tool, a high density of labelling (5% of the pixels of the image), and with 4 different classes is sufficient to obtain repeatable and reliable results of tool wear.

Although not demonstrated in this study, the proposed ML-based method could be transferred to industrial environments and implemented in collaborative robots, increasing the level of automation and monitoring of tool wear in production processes.

In the future, a comparison of the performance of the Random Forest algorithm with other ML-based image processing algorithms will be carried out. Learning will also be extended to other weathering phenomena, such as cratering.