1 Introduction

In the aerospace, national defense, die making, and machinery industry, the determination of tool wear directly affects cost and competitiveness. Therefore, it has been of a pivotal position. At present, the main way of research is to use sensor to collect machine signals and analyze it with the processing parameters [1, 2]. Although this can produce a fairly high degree of accuracy, the measurement of the sensor needs to pass the force flow line. In terms of judging parameters, this is a more indirect way, so it is difficult to fully reflect the actual situation of cutting, let alone the problem of repeated signal values. When we use the same sensor to measure different manufacturing materials or differently designed tools and machines, the value of the signal will be completely different because of the force flow line transmission. In this way, each time a wear determination model is established, only one type of tool for one machine can be determine. When one needs a lot of modeling to deal with various tools and machines, this will lead to an increase in time and cost. How to improve the problem of the repetitiveness of sensor measurement signals or to find new alternatives is the current important topic for research [3,4,5].

Based on this problem, this study proposes to use the method of observing the surface color of metal chip [6] to predict tool wear value. Since the chip tool will directly contact the tool during cutting, this method is more reflective of the current situation of cutting than the method of measuring signals by using processing parameters and sensors. In the study, researcher(s) used an industrial camera to capture the surface color of the chip and obtained color information CIExy chromaticity coordinates through software application. Then, based on the three parameters of tool wear values, cutting time, and chip color, a set of wear determination model can be established. Finally, in the test and verification experiments, one can confirm that the prediction model of this study is accurate enough to complete the study of the impact of chip features on the tool life [7, 8].

Korkut et al. [9] published the findings regarding the study of the relationship between cutting parameters and chip surface temperatures during the AISI 1117 turning steel process. The three parameters of the chip surface temperature change for comparison in terms of different machining velocities, amount of feeds per revolution, and the depth of cutting. The experimental results show that the increase in machining velocity, feed rate, or depth of cutting will raise chip temperatures. The machining velocity and depth of cutting are significant factors causing the change in temperatures of the chip surface.

Tekiner and Yesilyurt [10] published the parameter study of cutting stainless steel AISI304 and found that under the condition of high machining velocity and low feed per revolution, the curl radius of the metal chip will increase, with the chip thickness becoming thinner. Thinner chip can reduce the power consumption of the processing machine, allowing the machined parts to have superior surface roughness. In addition, the study also found that the chip flow rate is slow at low machining velocity and high feed per revolution and the high temperature generated by the cutting will make the chip appear yellow.

Das et al. [11] have published a study on cost estimation by use of the parameters of surface roughness, tool wear, and chip type of cutting AISI 4340 steel. ANOVA analysis shows that the dominant parameter affecting surface roughness is mainly feed per revolution, followed by machining velocity. The surface roughness increases as the feed per revolution accelerates; the machining velocity is inversely proportional. The influence laid by the tool wear is the machining velocity, the feed per revolution, and the depth of chip. As for the chip type, the machining velocity will mainly produce three kinds of chip types, ranging from slow to fast: spiral curl, long strip shape, and short strip shape, with the thickness becoming gradually thinner with the increase in the machining speed and the decrease in feeds per revolution.

As Zhang and Guo [12] published the milling of AISHH13 tool steel, their research report addressed how the chip type, phase change, and oxidation reaction cause relevant effect. Their experiment found that the machining velocity and feed per tooth are the key factors affecting the chip type, with the maximum influence of per blade feed. In the X-ray photoelectron spectroscopy of the chip oxide layer for two different cutting conditions. The composition of the oxide layer element changes from Fe2O3 to Fe3O4 as the cutting temperature rises, in turn causing the chip to gradually become dark blue.

In the report published by Ning et al. [13], the high-speed end milling was performed by using the die steel AISI H13, with the cutting temperature was determining by analyzing the chip color. It use a ball cutter for high-speed end milling at 10,000–30,000 rpm. the relationship between the color and the temperature of the chip at different spindle speeds and depths of cutting. The result shows that as the spindle speed and depth of cut increase, all cutting temperatures consistently show an upward inclination.

The chip color is rarely used in literature to judge tool life and machining status, but many engineers will use chip color to judge the cutting status; this study applies engineer’s experience to a digitization. Although much research has been carried out on tool wear, there have been few papers that focus on the cutting chip color to prediction tool wear [14, 15].

2 Machining principle and tool wear

2.1 Tool wear theory

The cutting tool continues to rub against the chip during cutting, so the contact surface generates high temperatures. At high temperatures, the tool and the chip will chemically diffuse, causing the tool and chip to combine into other compounds, thus reducing tool hardness and toughness. As the cutting continues, dents on the blades will occur, which is known as chemical wear or diffusion wear. However, during cutting, intermittent cutting, vibration, cold and heat changes, and impurities cause the edge to collapse, which is called mechanical wear. Generally, the normal wear process belongs to diffusion wear—in which mild breakage occurs first and then expands into disintegration. When the tool disintegrates, the cutting edge of the tool will be deformed, so the cutting resistance will become stronger, and the cutting temperature will also rise, which causes the tool to wear quickly, in turn causing the tool to lose its cutting ability [3, 4, 16].

When the cutting tool performs its duties, the contact surface parallel to the material is called the flank surface. Cutting friction will cause the surface to continue to wear. The flank surface wear area is adjacent to the tool edge, so expansion of wear will increase the cutting resistance and increase the cutting temperature. Eventually, the tool is damaged and loses its function. In order to confirm tool life, the International Standards Organization proposes that when the uniform wear of the flank surface reaches 0.3 mm, this study is based on the ISO-8688-1/1994 standard for testing and analysis, or if the surface is peeled off or severely grooved, or the uneven wear reaches 0.6 mm or more, the extent to which the tool can be used is exceeded, that is, the tool life is over and the tool needs to be replaced. If we use time to separate the tool wear, as shown in Fig. 1, the wear region can be divided into three periods: (1) initial wear rate, (2) uniform wear rate, and (3) accelerating wear rate.

Fig. 1
figure 1

Diagram of flank wear periods

In general, in the research and application of metal machining, in terms of the method of formulating tool life, the Taylor’s Cutting Tool Formula is often used to establish the model. In 1906, Taylor [17] proposed the relationship between tool life and machining velocity. The relationship between cutting velocity (V) and tool life (T) can be expressed by the following equation:

$$ \mathrm{V}{\mathrm{T}}^{\mathrm{n}}=\mathrm{C} $$
(1)

Where V is the cutting velocity (m/min); T is the tool life, i.e., the actual chip time (min); n is the exponent that depends on what materials for the tool and work pieces; and C is the constant.In the machining process, the machining parameters include the feed per tooth and depth of cutting in addition to the cutting velocity. If all the machining parameters are taken into account in the tool life formula, a more complete tool life formula can be obtained as follows [18, 19]:

$$ \mathrm{V}\ {\mathrm{T}}^{\mathrm{n}}\ {{\mathrm{f}}_{\mathrm{z}}}^{\mathrm{a}}{\mathrm{a}\mathrm{p}}^{\mathrm{b}}=\mathrm{C} $$
(2)

Where N is the exponent that depends on what materials for the tool and work pieces; fz is the feed per tooth (mm/tooth); a is the exponent that depends on what materials for the tool and work pieces; ap is the depth of cutting (mm), b is the exponent that depends on what materials for the tool and work pieces; and C is the constant.

2.2 Stainless steel 2316ISO-B MOD

Due to the high toughness, high thermal strength, low thermal conductivity, large plastic deformation during cutting, severe work hardening, high heat of cutting, and difficulty in heat dissipation, the stainless steel materials will cause high cutting temperature at its tip and be seriously as well as easily sticks on the cutting edge, thus producing accumulated scums, accelerating tool wear, and affecting the roughness of machining surface.

Stainless steel must contain at least 11% chromium in terms of the standard definition. The chromium element has the function of forming a protective layer of chromium oxide on the surface of the steel. The chromium oxide layer can insulate metals from contact with the external environment, making the material less susceptible to oxidative deterioration. Stainless steel is mainly classified into different types based on the crystal structure and the strengthening mechanism, such as the ferrite iron system, the Ma Tian iron system, the Worthian iron system, the precipitation hardening system, and the two-way stainless steel [20, 21].

The stainless steel 2316ISO-B MOD used in this study belongs to the Ma Tian scattered iron series stainless steel in terms of structure. It is mainly used as the molding material for production of plastic products. It is widely used in injection molds, mold inserts, coaxial shells for blow molds, etc.. The material properties, physical properties, and heat treatment methods of 2316ISO-B MOD stainless steel are shown in Tables 1 to 2 and Figs. 2 and 3.

Table 1 The 2316ISO-B MOD composition of stainless steel element (%) [14]
Table 2 The 2316ISO-B MOD physical properties of stainless steel [22]
Fig. 2
figure 2

The 2316ISO-B MOD effect of tempering temperature of stainless steel on hardness and corrosion resistance [22]

Fig. 3
figure 3

The 2316ISO-B MOD TTT curves of stainless steel [22]

2.3 Machining chip colors and oxidative film model

When cutting steel materials, the high-speed friction between the tool and the cutting materials will generate a lot of cutting heat. The chips will be heated rapidly by the heat of cutting and will be rapidly cooled in the air after being cut away from the base. This phenomenon causes the chips to produce different colorings of oxidative films on the surface. The color of the oxidative film is affected by the thickness (d) of the oxidative film, the refractive index (n) of the oxidative film and the base material, and the absorption coefficient (k), as shown in Fig. 4. The machining color during the cutting process changes in the following order: yellow → yellow brown → brown → purple → deep purple or dark blue → blue → light blue → blue green → yellow green → dark red.

Fig. 4
figure 4

Machining chip oxidative film model [23]

Shown in Fig. 5, the relationship between the thickness of the chip oxidation film and the chromaticity coordinate point shows a solid continuous line. The lines extending radially from the center indicate the hues such as Y (yellow), R (red), P (purple), B (blue), and G (green).

Fig. 5
figure 5

Chromaticity diagram [23]

3 Measurement equipment development and create model

The machining chip color and the measurement equipment data are mainly created by calculation of the numerical conversion of RGB values, XYZ tristimulus values, xy chromaticity values, etc., and for the display, the system accepts the electronic signals, and according to the signal strength, color mixture can be obtained. The corresponding color will appear on the display screen, so the numerical conversion of the display color will be different from that of the mathematically calculated mode of the colorimetry. The process of color space conversion will be described in details as shown below. The process of color space transformation of the display system is shown in Fig. 6.

Fig. 6
figure 6

Color conversion process of the display system

The main process for establishing the machining color and measurement equipment data is shown as follows.

  • Step 1. Normalization

The color signals initially input on the display is [R8-bit G8-bit B8-bit] 8-bit RGB signal values, the numeric range of the three primary colors are all 0 ~ 255, and after conversion they become [R0 G0 B0], the normalized RGB signal values.

$$ {I}_0=\frac{I}{255} $$
(3)

where I0 = R0, G0, B0 are the normalized RGB signal values and I = R8-bit, G8-bit, B8-bit are the new 8-bit RGB signal values.

  • Step 2. TRC transformation

TRC means Tone Reproduction Cure, indicating the relationship between the signal value and brightness of the display input, while the normalized RGB signal values [R0 G0 B0] are converted into linear RGB values [R G B]; in general, the display will adopt the value γ to normalize the relationship between the RGB values and the linear RGB ones. The value γ will change due to different monitor specifications. Generally, it falls between 1.8 and 2.4.

$$ {\displaystyle \begin{array}{c}\mathrm{R}={\left({R}_0\right)}^{\gamma_R}\\ {}\mathrm{G}={\left({G}_0\right)}^{\gamma_G}\\ {}\mathrm{B}={\left({B}_0\right)}^{\gamma_B}\end{array}} $$

where R, G, and B indicate the values of linear RGB signal.

γR, γG, γB, correspond to the value γ of R, G, B.

  • Step 3. Linear transformation

Linear transformation means a step that converts the RGB values [R G B] into three stimulus values, which process uses a computational 3 × 3 matrix, and the 3 × 3 transformation matrix will vary with different standard displays. The standard for different types of displays is described in the Eq. 4.

$$ \left[\begin{array}{c}X\\ {}Y\\ {}Z\end{array}\right]=M\left[\begin{array}{c}R\\ {}G\\ {}B\end{array}\right] $$
(4)

where X, Y, and Z are tristimulus values, while M is a 3 × 3 linear transformation matrix.

  • Step 4. Chromaticity transformation

The XYZ tristimulus value [XYZ] can be transformed into the x y chromaticity value [x y] based on Eq. 5 and be displayed in the CIExy chromaticity diagram or transformed into the L*a*b* chromaticity value. [L* a* b*] is displayed in the figure of the CIE LAB color space.

$$ {\displaystyle \begin{array}{c}{\mathrm{L}}^{\ast }=116\mathrm{f}\left(\frac{Y}{Y_n}\right)-16\\ {}{\mathrm{a}}^{\ast }=500\left[\mathrm{f}\left(\frac{X}{X_n}\right)-\mathrm{f}\left(\frac{Y}{Y_n}\right)\right]\\ {}{\mathrm{b}}^{\ast }=500\left[\mathrm{f}\left(\frac{Y}{Y_n}\right)-\mathrm{f}\left(\frac{Z}{Z_n}\right)\right]\end{array}} $$
(5)
$$ {\displaystyle \begin{array}{c}\mathrm{f}\left(\frac{I}{I_n}\right)={\left(\frac{I}{I_n}\right)}^{\frac{1}{3}},\mathrm{when}\ \left(\frac{I}{I_n}\right)>0.008856\\ {}\mathrm{f}\left(\frac{I}{I_n}\right)=7.787\left(\frac{I}{I_n}\right)+\frac{16}{116},\mathrm{when}\left(\frac{I}{I_n}\right)\le 0.008856\end{array}} $$
(6)

where I/In = X/Xn = Y / Yn = Z / Zn

X, Y, Z are the tristimulus value of an object.

Xn, Yn, Zn the benchmark-white tristimulus value, and the tristimulus value will be produced with different kinds of light sources.

  • Step 5. Color perception transformation

This step transforms the [L* a* b*] of the CIE LAB color space into the [L C h] of color perception. L, \( {C}_{{\mathrm{ab}}^{\ast }} \), and hab indicate the brightness, chrome, and hue, respectively.

$$ {C}_{{\mathrm{ab}}^{\ast }}=\sqrt{\left[{\left({a}^{\ast}\right)}^2+{\left({b}^{\ast}\right)}^2\right]} $$
(7)
$$ {h}_{\mathrm{ab}}={\tan}^{-1}\left(\mid \frac{b^{\ast }}{a^{\ast }}\mid \right) $$
(8)

where the calculation of hab produces different combinations of positive or negative values of a* and b*.

Take \( \left(\frac{b^{\ast }}{a^{\ast }}\right) \)as the absolute value, and then find the appropriate angle based on its quadrant coordinates.

4 Experimental process and equipment

The experimental process of this study is shown in Fig. 7. It is primarily divided into three phases: machining experiment, color information reading and correction, and tool wear determination and verification. Details are explained as follows.

Fig. 7
figure 7

Experimental research process

This study used a machining center for milling, where the experimental equipment as shown in Fig. 8. the 3 axes, X, Y, and Z, moved on travel of 1000 mm, 800 mm, and 700 mm, respectively. The feed velocity was from 1 to 20,000 mm/min, and the maximum revolution of the main spindle was 14,000 rpm. Figure 9 is a CCD industrial camera equipment.

Fig. 8
figure 8

Machining center equipment

Fig. 9
figure 9

CCD industrial camera equipment

The cutting tool used in the cutting experiment is tool holders and cutting inserts, as shown in Fig. 10 and Table 3.

Fig. 10
figure 10

Tool holders and cutting inserts

Table 3 Tool holders and cutting inserts specification table

4.1 Machining experiment

The process and parameters at the phase in this study are shown in Fig. 11 and Table 4. Refer to the recommended chip parameters in the tool catalog, and enter the parameters into the Taylor’s formula for calculation of tool wear, and calculate the results based on the actual situation, and adjust the values to get the most appropriate cutting experimental parameters. The cutting velocity V recommended by the reference tool catalog is 105 ~ 130 (m/min), the feed rate per blade fz is 0.1 ~ 0.2 (mm/tooth), and the part cutting depth ap is made by Eq. 9 by calculation.

$$ {f}_{\mathrm{z}}=\frac{t_c\times 2{r}_{\varepsilon }}{2\times \sqrt{a_p\times 2{r}_{\upvarepsilon}-{a_p}^2}} $$
(9)

where fz means feed per tooth (mm/tooth), tc means chip thickness (mm) that is a fixed value 0.06 mm, rε means nose radius (mm) that is a fixed value 3.1 mm, and ap means cutting depth (mm). To get the cutting depth ap, first convert Eq. 9 into

$$ {a_{\mathrm{p}}}^2-2{r}_{\upvarepsilon}\times {a}_{\mathrm{p}}+{\left(\frac{t_{\mathrm{c}}\times {r}_{\upvarepsilon}}{f_{\mathrm{z}}}\right)}^2=0 $$
(10)
Fig. 11
figure 11

Machining experiment flow

Table 4 Parameter table of processing experiment

The chip thickness is 0.06 mm; refer to the stainless steel material of the tools catalog, substitute chip thickness, and condition into Eq. 11 to solve depth of cutting.

$$ {a}_{\mathrm{p}}=\frac{2{r}_{\upvarepsilon}\pm \sqrt{{\left(-2{r}_{\upvarepsilon}\right)}^2-4\left(\frac{t_{\mathrm{c}}\times {r}_{\upvarepsilon}}{f_{\mathrm{z}}}\right)}}{2} $$
(11)

Use Eq. 11 to calculate the depth of cutting ap: 0.15 ~ 0.63 mm.

4.2 Color information Reading and correction

This study established a set of color correction models to make the chip colors obtained by chip photographing be standardized. It can be used to evaluate the color reproduction ability and at the same time allows for the sharing of data with other photographing systems. The process shown in Fig. 12 below provides a detailed description.

Fig. 12
figure 12

Color information reading and correction process

In the calibration of the measuring device, apply the gray color block in the standard color checker passport of the standard color information to obtain the RGB shooting value, and set it as the x-axis, and the y-axis is set to the RGB standard value attached to the color checker. Establish a one-dimensional comparison table (1D LUT) model that converts RGB shot values to standard values, as shown in Fig. 13. And then input the color patch RGB shooting values into the one-dimensional comparison table (1D LUT) and converted into standard values R', G', B'. Use the color correction system established in the study, and we can improve the color difference of the camera from ∆E_ab^* = 18.6 to 2.9. According to the color difference specification of the National Bureau of Standards (NBS), the smaller color difference of the third level is within an acceptable range of the upper middle level.

Fig. 13
figure 13

One-dimensional comparison table (1D LUT)

Establish a regression equation for converting the standard value R'G'B' into the color space CIE LAB as exemplified by Eqs. 13, and then convert it into the matrix type of Eq. 4, and convert the previously obtained R'G'B' value with color checker. The CIE LAB standard value attached to the passport color card is applied by Eq. 4 to calculate the value of the color correction matrix M and thus establish the color correction model, which is evaluated by the color reproduction capability specification developed by the National Bureau of Standards (NBS) [10]. If the color correction ability is insufficient, please improve your photographing surroundings until the color difference level reaches the target level, and finally take the material chip to obtain the parameters of the tool wear.

$$ {\mathrm{L}}^{\ast }={\mathrm{a}}_0+{\mathrm{a}}_1{\mathrm{R}}^{\prime }+{\mathrm{a}}_2{\mathrm{G}}^{\prime }+{\mathrm{a}}_3{\mathrm{B}}^{\prime }+{\mathrm{a}}_4{\mathrm{R}}^{\prime }{\mathrm{G}}^{\prime }+{\mathrm{a}}_5{\mathrm{R}}^{\prime }{\mathrm{B}}^{\prime }+{\mathrm{a}}_6{\mathrm{G}}^{\prime }{\mathrm{B}}^{\prime }+{\mathrm{a}}_7\mathrm{R}{\prime}^2+{\mathrm{a}}_8\mathrm{G}{\prime}^2+{\mathrm{a}}_9\mathrm{B}{\prime}^2+{\mathrm{a}}_{10}\mathrm{R}^{\prime}\mathrm{G}^{\prime}\mathrm{B}^{\prime }+{\mathrm{a}}_{11}\mathrm{R}{\prime}^3+{\mathrm{a}}_{12}\mathrm{G}{\prime}^3+{\mathrm{a}}_{13}\mathrm{B}{\prime}^3 $$
(12)
$$ {\mathrm{a}}^{\ast }={\mathrm{b}}_0+{\mathrm{b}}_1\mathrm{R}^{\prime }+{\mathrm{b}}_2\mathrm{G}^{\prime }+{\mathrm{b}}_3\mathrm{B}^{\prime }+{\mathrm{b}}_4\mathrm{R}^{\prime}\mathrm{G}^{\prime }+{\mathrm{b}}_5\mathrm{R}^{\prime}\mathrm{B}^{\prime }+{\mathrm{b}}_6\mathrm{G}^{\prime}\mathrm{B}^{\prime }+{\mathrm{b}}_7{{\mathrm{R}}^{\prime}}^2+{\mathrm{b}}_8{{\mathrm{G}}^{\prime}}^2+{\mathrm{b}}_9{{\mathrm{B}}^{\prime}}^2+{\mathrm{b}}_{10}\mathrm{R}^{\prime}\mathrm{G}^{\prime}\mathrm{B}^{\prime }+{\mathrm{b}}_{11}\mathrm{R}{\prime}^3+{\mathrm{b}}_{12}\mathrm{G}{\prime}^3+{\mathrm{b}}_{13}\mathrm{B}{\prime}^3 $$
(13)
$$ {\mathrm{b}}^{\ast }={\mathrm{c}}_0+{\mathrm{c}}_1\mathrm{R}^{\prime }+{\mathrm{c}}_2\mathrm{G}^{\prime }+{\mathrm{c}}_3\mathrm{B}^{\prime }+{\mathrm{c}}_4\mathrm{R}^{\prime}\mathrm{G}^{\prime }+{\mathrm{c}}_5\mathrm{R}^{\prime}\mathrm{B}^{\prime }+{\mathrm{c}}_6\mathrm{G}^{\prime}\mathrm{B}^{\prime }+{\mathrm{c}}_7{{\mathrm{R}}^{\prime}}^2+{\mathrm{c}}_8{{\mathrm{G}}^{\prime}}^2+{\mathrm{c}}_9{{\mathrm{B}}^{\prime}}^2+{\mathrm{c}}_{10}\mathrm{R}^{\prime}\mathrm{G}^{\prime}\mathrm{B}^{\prime }+{\mathrm{c}}_{11}\mathrm{R}{\prime}^3+{\mathrm{c}}_{12}\mathrm{G}{\prime}^3+{\mathrm{c}}_{13}\mathrm{B}{\prime}^3 $$
(14)
$$ \left[{\mathrm{L}}^{\ast}\kern0.5em {\mathrm{a}}^{\ast}\kern0.5em {\mathrm{b}}^{\ast}\right]=\left[\begin{array}{ccc}\begin{array}{cc}1& \mathrm{R}^{\prime}\end{array}& \begin{array}{cc}\mathrm{G}^{\prime }& \mathrm{B}^{\prime}\end{array}& \begin{array}{cc}\mathrm{R}^{\prime}\mathrm{G}^{\prime }& \mathrm{R}^{\prime}\mathrm{B}^{\prime}\end{array}\end{array}\kern0.5em \begin{array}{cc}\begin{array}{cc}\mathrm{G}^{\prime}\mathrm{B}^{\prime }& \mathrm{R}{\prime}^2\end{array}& \begin{array}{cc}\mathrm{G}{\prime}^2& \mathrm{B}{\prime}^2\end{array}\end{array}\kern0.5em \begin{array}{cc}\begin{array}{cc}\mathrm{R}^{\prime}\mathrm{G}^{\prime}\mathrm{B}^{\prime }& \mathrm{R}{\prime}^3\end{array}& \begin{array}{cc}\mathrm{G}{\prime}^3& \mathrm{B}{\prime}^3\end{array}\end{array}\right]\times \left[\begin{array}{ccc}{\mathrm{a}}_0& {\mathrm{b}}_0& {\mathrm{c}}_0\\ {}{\mathrm{a}}_1& {\mathrm{b}}_1& {\mathrm{c}}_1\\ {}\begin{array}{c}\vdots \\ {}{\mathrm{a}}_{13}\end{array}& \begin{array}{c}\vdots \\ {}{\mathrm{b}}_{13}\end{array}& \begin{array}{c}\vdots \\ {}{\mathrm{c}}_{13}\end{array}\end{array}\right] $$
(15)

4.3 Tool wear determination and verification

Figure 14 shows the experimental process of this phase. Apply the tool wear, cutting time, and chip color information CIExy chromaticity coordinates to establish the wear determination model by the use of the inverse transfer neural network. The data distribution is 70% for model training, 15% for testing, and 15% for verifying [11]; if the model error is too large, adjust the number of neurons, transfer functions, or increase the number of modeling parameters to improve the accuracy of the prediction model.

Fig. 14
figure 14

Test and verification process of tool wear model

4.4 Human-machine interface of tool wear determination system

In order to facilitate the user to observe the wear of the cutting tool, this study establishes a human-machine interface, and by the use of industrial cameras, the user can shoot the chips. The user only needs to input the image of the cutting chip and the cutting time to get the tool immediately. The predicted value of wear is shown in Fig. 15.

Fig. 15
figure 15

Human-machine interface of tool wear determination system

5 Results and discussion

5.1 Repeated test for cutting tool wear

The tool life test was performed three times; the fundamental purpose was to confirm the repeatability of experimental data; the three groups of cutting tool wear curves were compared, as shown in Fig. 16. The cutting tool wear has the same curvilinear trend; the average error value is shown in Table 4. The largest difference in the wear value of cutting test occurs in No. 7 cutting test for final wear loss, the tool flank wear has reached VB = 0.3 mm, the value difference percentage is 6.66%, and the minimum difference is the 2.83% of No. 4 cutting. After repeated tests and experimental analysis, the average error of repeatability is 4.5%, meaning the parameters of this cutting test have enough accuracy for create the prediction model of this study.

Fig. 16
figure 16

Cutting tool wear curve

5.2 The relationship between tool wear and Taylor’s tool life

The same parameters are used for three tests to observe the repeatability of three tests. Figures 17, 18, and 19 show the relationship between the cutting tool wear loss and chip morphology obtained in the cutting tests, which is established according to Taylor’s lifetime curve. This study performs three groups of cutting, cutting 7 times each group, resulting in 21 wear values and material chips. According to experimental observation, the shape of chips in the first five cuttings is basically consistent, mainly because of the even wear of cutting tool. In the sixth cutting, the cutting tool has entered the quick wear region; the cutting edge and tool flank are worn quickly; the chips are influenced, leading to different shapes and colors during cutting.

Fig. 17
figure 17

Cutting tool wear and chips of group 1

Fig. 18
figure 18

Cutting tool wear and chips of group 2

Fig. 19
figure 19

Cutting tool wear and chips of group 3

5.3 The relationship between chip color and tool wear

The chips can be collected and analyzed immediately in the experimental process; 10 pieces are sampled from each group and shot; there are 210 CIExy chromaticity coordinate values of chips; the relationship between the wear loss of cutting tool and chip color information is shown in Figs. 20, 21, and 22; the findings are given below.

Fig. 20
figure 20

Cutting wear and chromaticity coordinate points of group 1

Fig. 21
figure 21

Cutting wear and chromaticity coordinate points of group 2

Fig. 22
figure 22

Cutting wear and chromaticity coordinate points of group 3

1. The x and y coordinate values in the CIExy chromaticity coordinate graph increase gradually with cutting tool wear loss.

2. The range of chromaticity coordinate points of chips resulted from initial cutting is smaller, and the range of chromaticity coordinate points of chips expands as the wear loss increases.

Some elementary conclusions are summed up: The increase of tool wear will cause increasing chromaticity coordinate point area and vice versa.

5.4 Test and verification results of prediction model of cutting tool wear

The prediction was made using the back-propagation of the Artificial Neural Networks for this experiment. The basic architecture of the network consisted of an input layer, a hidden layer, and an output layer, which were connected with neurons, the experiment produces 21 material chips, and 2 pieces of each chip were picked for shooting, and each piece generated 42 chips as the parameters for test and verification. The shooting results are shown in Fig. 23 [24, 25].

Fig. 23
figure 23

Machining wear of model test and chromaticity coordinates

1. The xy coordinate value of the CIExy chromaticity diagram is the same as that of the cutting experiment result, showing an inclination in gradual increase.

2. In the experiment, the range of CIExy chromaticity coordinates is different from those in Figs. 20, 21, and 22. The larger the chromaticity coordinate range is, the larger range of prediction model of wear, and that’s because this segment tests and verifies the wear, not the measurement. The experimental values are modeled due to the fact that it is more difficult for the range of fewer chromaticity points of the samplings to exhibit themselves [26].

This study inputs the parameters obtained during the test and verification experiments into the wear determination model to obtain the results, as shown in Tables 5 and 6.

Table 5 Predicted model errors before the experimental wear reaching the upper limit
Table 6 Predicted model errors before the experimental wear reaching the upper limit

In this work, observing the results of the two groups shown in Figs. 24 and 25, we saw that when the amount of wear increases, the amount of error increases, and the maximum cutting before the tool wear reaches the upper limit of 0.3 mm, with the maximum error range being 0.0120 mm and 0.0097 mm, respectively. The calculated averaged error percentage is only 1.73% and 1.66%, respectively, indicating that the tool wear prediction model established in this study is usable.

Fig. 24
figure 24

Results of the tool wear prediction model test

Fig. 25
figure 25

Errors in tool wear prediction model test

6 Conclusion

With the proposed this system, we only need to shoot chips and input cutting times to provide the industry with a simple and fast tool wear judgment method. The following conclusions can be listed through experiments:

  1. 1.

    If color correction is not carried out, it would be impossible to share with other photographic systems or to evaluate the color reproduction ability because this system is not standardized. The color correction model in this study can reduce the color difference value from ∆E_ab^* = 18.6 to 2.94, with an improvement rate of 84.19%.

  2. 2.

    According to Figs. 20, 21, and 22, the increase of tool wear also increases the X and Y values of CIExy chromaticity coordinates, and the chips would gradually change from light yellow to yellowish brown.

  3. 3.

    As shown in Fig. 24, most serious wear results in greater difference between the predicted and actual values. This is due to the fact that the shape of the edge of the tool is in an unstable status and changes rapidly at this time, plus the phenomenon caused by the accumulation of wear errors as the number of cuts increases. The increase of tool wear will cause increasing chromaticity coordinate point area and vice versa.

  4. 4.

    In this study, Taylor’s tool life model and chip colors are used for analysis. After repeated testing and experimental analysis, the average error of repeatability is 4.5%.

  5. 5.

    In prediction experiment and analysis, the back neural network is used for test, the maximum error ranges are 0.0012 mm and 0.0097 mm, and the mean error percentages are only 1.73% and 1.66%, meaning the cutting tool wear prediction model created in this study is usable.