1 Introduction

Precision and accuracy of machined workpieces are highly desirable in several manufacturing industries such as automotive, aerospace, medical, optical, electronics, communications, defense etc. [1]. Quality of machined components depends on several parameters of the machining process such as numerical control of machine tools, proper execution of manufacturing steps, durability of machine tools, geometric errors, and thermal effects of the machine etc. [2]. Direct interaction of machine tools such as drill, lathe, mill etc. with the workpiece makes them one of the important components to be regularly inspected for the occurrence of any wear or deformity during machining processes [3, 4]. Wear in machine tools can be defined as the gradual deterioration of their cutting edges due to constant and rigorous operation. These wear are commonly caused by extreme physical stress and temperature generated during the machining process [5]. Different types of tool wear are classified according to affected region of the tool, e.g. [6], flank wear, crater wear, notch wear, nose radius wear, thermal and mechanical cracking, edge buildup, plastic deformation, and edge chipping etc. Usually, machine tools are replaced after a fixed time duration provided by the manufacturer, even though certain useful lifetime may be left in them. Thus, to optimize productivity of the machine tools and to observe tool wear, non-contact inspection techniques are required. The on-machine inspection methods of tool wear can be categorized into direct methods and indirect methods [7]. The indirect methods predict tool wear by utilizing parameters such as motor current, cutting force, vibration, torque, acoustic emission etc. [8]. These methods lack in providing information of actual tool wear and are sensitive to environmental changes [9]. On the other hand, the direct methods are more reliable and flexible as they can directly measure the actual tool wear. An example of direct method is visual inspection. Due to subjective nature, visual inspection of machine tools is prone to certain human errors [10]. Methods based on machine vision [11, 12], laser projection [13, 14], laser scanning confocal microscope [15], white light interferometry [16], stereo vision system [17], finite element method [18], conoscopic holography [19], acoustic emission [20, 21], accelerometer [22] etc. are also reported in the literature. Digital holographic interferometry (DHI) [23] is another direct method which has the capability to simultaneously access latitudinal and longitudinal dimensions of a test object. DHI technique is used in several applications, including detection and measurement of surface non-uniformities like scratch, cracks, delamination etc. [24,25,26,27], study of thermal and mechanical stresses and strain distribution [28, 29], shape and thickness measurements [30, 31], inspection of printed circuit boards [32, 33], vibration analysis [34], observation of deformation of tooth model in real time [35], tableware and wood inspection [36, 37] etc. Although DHI suffers from small field of view, and high vibration sensitivity; the setup can be improved to overcome these shortcomings. In an effort to achieve it, we developed a compact and portable setup based on optical digital holography with extended field of view and high temporal stability [38, 39]. The developed setup has been successfully utilized for several non-contact inspection applications [36, 38].

Present work reports on-machine inspection of machine tools used on the milling machine, to detect the presence of wear incurred during the machining process, using a portable digital holographic camera [38]. Inspection is performed by applying optical digital holography [40] based non-destructive testing technique, which utilizes the principle of digital holographic interferometry (DHI) [41]. DHI is benefitted by the merits of digital holography, which could provide direct access to amplitude and phase of light modulated by the test surface [42]. In present study, two different types of milling machine tools viz. end mill and face mill are inspected for the presence of edge chipping and crack, respectively, using the digital holographic camera (DHC). Applicability of the camera for on-machine inspection is demonstrated by inspecting an end mill attached to a vertical milling machine.

2 Materials and methods

2.1 Wear inspection with digital holographic interferometry

Digital holography utilizes two basic principles, i.e., interference and diffraction of light for obtaining and displaying, respectively, complete information of the test object. Information of the test object is recorded optically using the principle of interference, where an object beam is superimposed with a reference beam to create an interference pattern. The resultant intensity I(x,y) of this interference pattern is represented as

$$I(x,y) = \left| {\psi_{{{\text{obj}}}} (x,y) + \psi_{{{\text{ref}}}} (x,y)} \right|^{2} ,$$
(1)
$$I(x,y) = \left| {\psi_{{{\text{obj}}}} (x,y)} \right|^{2} + \left| {\psi_{{{\text{ref}}}} (x,y)} \right|^{2} + \psi_{{{\text{obj}}}}^{*} (x,y)\psi_{{{\text{ref}}}} (x,y) + \psi_{{{\text{obj}}}} (x,y)\psi_{{{\text{ref}}}}^{*} (x,y).$$
(2)

Here, \(\psi_{{{\text{obj}}}} (x,y)\) and \(\psi_{{{\text{ref}}}} (x,y)\) are complex amplitude distributions of object beam scattered from the object’s surface and reference beam, respectively, at any point (x,y) on the recording sensor plane. First two terms on the right-hand side in Eq. (2), i.e., \(\left| {\psi_{{{\text{obj}}}} (x,y)} \right|^{2}\) and \(\left| {\psi_{{{\text{ref}}}} (x,y)} \right|^{2}\) are constant terms, and \(\psi_{{{\text{obj}}}}^{*} (x,y)\) is the complex conjugate of the object beam. The equations for object and reference beams can be represented as

$$\psi_{{{\text{obj}}}} (x,y) = \Psi_{{\text{A}}} (x,y)\exp \left( { - j\varphi_{{\text{A}}} (x,y)} \right),$$
(3)
$$\psi_{{{\text{ref}}}} (x,y) = \Psi_{{\text{R}}} (x,y)\exp \left( { - j\varphi_{{\text{R}}} (x,y)} \right).$$
(4)

Here, \(\Psi_{{\text{A}}} (x,y)\) and \(\varphi_{{\text{A}}} (x,y)\) are amplitude and phase distributions of object beam; \(\Psi_{{\text{R}}} (x,y)\) and \(\varphi_{{\text{R}}} (x,y)\) are amplitude and phase distributions of reference beam. The resultant intensity governed by Eq. (2) can be represented as

$$I(x,y) = \Psi_{{\text{A}}}^{2} + \Psi_{{\text{R}}}^{2} + 2\Psi_{{\text{A}}} \Psi_{{\text{R}}} \cos \left( {\varphi_{{\text{R}}} (x,y) - \varphi_{{\text{A}}} (x,y)} \right).$$
(5)

Here, first two terms on right hand side \(\Psi_{{\text{A}}}^{2}\) and \(\Psi_{{\text{R}}}^{2}\) are constant terms and third term represent amplitude modulation \(\left( {\Psi_{{\text{A}}} \Psi_{{\text{R}}} } \right)\) and phase modulation \(\varphi_{{\text{R}}} (x,y) - \varphi_{{\text{A}}} (x,y)\) of light scattered from test object. This interference pattern is recorded using a digital sensor array such as charge-coupled device (CCD), and complementary metal oxide semiconductor (CMOS). The recorded interference pattern is known as digital hologram, which is stored in a personal computer for further numerical processing. The wavefront recorded in digital holograms, can be reconstructed numerically using different methods of wave propagation based on scalar diffraction theory, e.g., Rayleigh–Sommerfeld [43], angular spectrum [44], Fresnel diffraction [45], convolution [46] etc. In present work, Fresnel diffraction method (FDM) is used for numerical reconstruction of wavefront of test object stored in digital holograms, because FDM fulfils the Nyquist criterion [47, 48] for the given sizes of the objects (18 mm and 50 mm) and the recording distance (250 mm from recording sensor). The Fresnel diffraction equation for numerical computation of wavefront at propagation distance ‘z’ is represented as

$$\psi (\eta ,\xi ,z) = \frac{\exp ( - jkz)}{{j\lambda z}}\exp \left( {\frac{{j\pi (\eta^{2} + \xi^{2} )}}{\lambda z}} \right) \times {\text{FT}}\left[ {I\left( {x,y} \right)\exp \left( {\frac{{j\pi (x^{2} + y^{2} )}}{\lambda z}} \right)} \right].$$
(6)

Here, \(\psi (\eta ,\xi ,z)\) represents the complex amplitude distribution of wavefront of object at any point (η,ξ) on reconstruction plane, obtained by propagating the recorded field I(x,y) from recording sensor plane to distance z; k is the wave number; λ is the source wavelength; and \(j = \sqrt { - 1}\). In the DHI process, two digital holograms of the test object are recorded corresponding to its two different states obtained through the process of external loading. The path length of the object beam changes due to applied external load. Complex amplitude of object wavefront is computed numerically from recorded digital hologram using Fresnel diffraction Eq. (6). Two separately computed complex amplitudes \(\psi_{1} (x,y,z)\) and \(\psi_{2} (x,y,z)\), corresponding to two different states of the object, are numerically subtracted to give DHI results as

$$\psi_{{\text{s}}} (x,y,z) = \psi_{2} (x,y,z) - \psi_{1} (x,y,z).$$
(7)

Here, \(\psi_{{\text{s}}} (x,y,z)\) is the complex amplitude obtained after subtraction. The amplitude distribution is obtained by calculating the absolute (abs) value of \(\psi_{{\text{s}}} (x,y,z)\) as

$$A_{\psi } = abs\left( {\psi_{{\text{s}}} (x,y,z)} \right).$$
(8)

The amplitude distribution Aψ is useful for qualitative analysis, because any wear present on the test object may result in abrupt discontinuity in the interferometric fringes obtained after subtraction. These fringes represent change in test object’s state caused by external loading. The discontinuity in fringes also helps in visually locating the position of wear or crack on the test object. Apart from qualitative analysis, quantification of lateral dimensions and location of wear is also one of the merits of DHI. For quantitative analysis, modulo-2π phase map is computed by numerically subtracting the arguments (arg) of the complex amplitudes \(\psi_{1} (x,y,z)\) and \(\psi_{2} (x,y,z)\) as represented in Eq. (9):

$$\Delta \phi_{\psi } = \arg \left\{ {\psi_{2} (x,y,z)} \right\} - \arg \left\{ {\psi_{1} (x,y,z)} \right\},$$
(9)

where \(\arg \left( X \right) = \tan^{ - 1} \left\{ {{{{\text{Im}} \left( X \right)} \mathord{\left/ {\vphantom {{{\text{Im}} \left( X \right)} {{\text{Re}} \left( X \right)}}} \right. \kern-\nulldelimiterspace} {{\text{Re}} \left( X \right)}}} \right\}\); and \(\Delta \phi_{\psi }\) is the modulo-2π phase, which represents change in phase of object beam occurred due to applied external load. \(\Delta \phi_{\psi }\) is also known as wrapped phase as it is limited in the interval − π to π. This restriction results in artificial jump of phase at interval of 2π [49]. Phase unwrapping is required to remove the 2π phase ambiguity imparted by two-dimensional arctangent function used to calculate the phase from a complex valued intensity. The two-dimensional phase unwrapping algorithm used in the present work is based on Goldstein’s branch-cut method [50] to obtain continuous phase map for quantitative analysis. In this method, the algorithm identifies residues (local phase errors caused by noise) and removes them by connecting the positive and negative residues using branch-cuts. Thus, this method avoids the inconsistency during phase estimation.Three dimensional surface map can be obtained from unwrapped phase using the following equation [38]:

$$d(x,y) = \frac{\lambda }{{2\pi \left( {1 + \cos \theta } \right)}}\Delta \phi_{{\text{u}}} (x,y).$$
(10)

Here, d(x,y) is the out-of-plane displacement caused by external load and is made explicit through unwrapped phase difference \(\Delta \phi_{{\text{u}}} (x,y)\) at any point (x,y) on object’s surface; and θ is the angle between the direction of source (illumination) and direction of recording sensor (observation). Lateral dimensions of the wear are obtained by generating a 2D profile across surface map obtained using Eq. (10), at the position of wear. Number of pixels covered by the wear along the profile is multiplied by the pixel pitch at reconstruction plane. The change in pixel pitch, given by Eq. (11), during propagation of object wavefront using Fresnel diffraction method (Eq. 6), is accounted for calculation of lateral dimensions of machine tools and wear [51]:

$$\Delta_{x} = \frac{\lambda z}{{N\Delta \xi }};\quad\Delta_{y} = \frac{\lambda z}{{M\Delta \eta }}.$$
(11)

Here, x and y are values of pixel pitch on image reconstruction plane corresponding to recording sensor’s pixel pitch ∆ξ and ∆η; N and M represent number of pixels of recording sensor array along x- and y-directions, respectively; λ is the source wavelength, and z is the propagation distance.

2.2 Experimental setup

An indigenously developed portable digital holographic camera (DHC) is employed to record digital holograms of machine tools. A schematic representation of the optical arrangement of the DHC [38] is shown in Fig. 1a. The machine tools tested using DHC include square shoulder face mill and cylindrical shank solid end mill tools, as shown in Fig. 1b, c, respectively.

Fig. 1
figure 1

a Schematic representation of the optical arrangement of digital holographic camera, where DL diode laser, MO microscope objective, BS beam splitter, OB object beam, IB illumination beam, RB reference beam, NDF neutral density filter, L1 concave lens, L2 convex lens, CCD charge-coupled device, b square shoulder face mill, and c cylindrical shank solid end mill machine tools used for inspection.

These machine tools having diameters of 18 mm (end mill tool) and 50 mm (face mill tool), are made of high-speed steel material. DHC employs an off-axis digital holographic experimental setup in which a diode laser (wavelength—660 nm, power—30 mW) is used as coherent source. A 60× microscope objective expands the beam from laser source. The expanded laser beam is divided into two parts by a 50:50 cube beam splitter. The transmitted beam illuminates the test object’s surface and gets scattered from it to form the object beam. The reflected beam from beam splitter forms the reference beam, which is combined with the object beam by another 50:50 cube beam splitter. A neutral density filter placed in the path of reference beam controls its intensity. DHC utilizes combination of a concave lens (f/2) and convex lens (f/3.2) in the path of object beam. This lens combination serves the purpose of making the DHC compact and portable and also to record larger area at smaller object-to-sensor distances as compared to traditional digital holographic setups. The object beam and reference beam are superimposed to create an interference pattern which is recorded by a charge-coupled device (CCD) image sensor (resolution: 3376 × 2704; pixel pitch: 3.1 µm × 3.1 µm). The size of the constructed DHC is 243 mm × 103 mm × 115 mm (l × b × h). The DHC contains all the optical and optomechanical components including laser source and CCD inside a mechanical housing.

3 Results and discussion

3.1 Wear inspection of end mill tool

The end mill tool, photograph shown in Fig. 1c, is tested for presence of wear, i.e., chipping of edges, using the DHC. Thermal load is applied using an incandescent lamp in the process of DHI. The results obtained with DHI process are shown in Fig. 2.

Fig. 2
figure 2

DHI results of end mill tool: a amplitude distribution, b enlarged image of edges encircled 1 and 2 in a, c unwrapped phase map, d enlarged image of wear (chipping of edge) corresponding to the rectangle indicated in c, and e 3D surface map obtained using Eq. (10)

The amplitude distribution calculated using Eq. (8) is shown in Fig. 2a, where localized intensity variation can be observed around the damaged edges of the tool, as encircled 1 and 2 in Fig. 2a and enlarged in Fig. 2b. The unwrapped phase map shown in Fig. 2c, is obtained by applying Goldstein’s unwrapping method on modulo-2π phase calculated using Eq. (9). Wear on the edge at one of the flutes of the end mill tool, indicated by rectangle in Fig. 2c, is shown in enlarged image in Fig. 2d. Furthermore, 3D surface map of the end mill tool, depicted in Fig. 2e, is generated using Eq. (10). Parameters along x- and y-axes show the lateral dimensions of the edges and parameter along z-axis represents the displacement caused by thermal loading of the tool during DHI process. The colormap in Fig. 2e represents the variation in displacement of tool’s surface due to thermal load. The size of the edge of the flute of end mill tool shown in Fig. 2d, is measured along dashed lines c1 and c2. 2D profiles generated along c1 and c2 are shown in Fig. 3.

Fig. 3
figure 3

2D profiles of wear occurred in the solid end mill tool, generated along dashed lines c1 and c2 indicated in Fig. 2d

The profiles are created by multiplying number of pixels N′ and N″ covered by c1 and c2, respectively, with pixel pitch at reconstruction plane (x and y). Since, the pixel pitch changes with reconstruction distance in FDM according to Eq. (11), the values of pixel pitch at reconstruction plane in this experiment are 29.6 µm × 37 µm. The pixels are counted along y-axis as indicated by dashed lines in Fig. 2d. Therefore, widths corresponding to c1 and c2 becomes N′∆y and N″∆y, respectively. The width along c1 is 1.45 mm and along c2 is 0.89 mm. Reduction in width of edge along c2 as compared to c1 is clearly noticed in Fig. 3. As per ISO standard ISO8688-2(1989) [52], the failure criteria for the end mill tool corresponds to the chipping width of 0.5 mm, which represents the critical value of wear. This means that if the change in flute’s width of solid end mill is more than 0.5 mm, the tool becomes unusable. In present case, the tool wear is 1.45–0.89 mm = 0.56 mm, which is higher than critical value of wear and thus the tool can be categorised as unusable.

3.2 Crack and wear inspection in face mill tools

In another experiment, a different machine tool, i.e., a square shoulder face mill tool, photograph shown in Fig. 1b, is tested for the presence of deformity, using digital holographic camera. The results of DHI process using thermal load are shown in Fig. 4. The interferometric amplitude fringes (see in Fig. 4a) and modulo-2π phase map (see in Fig. 4b) clearly show the flow of thermal gradient along the surface of the tool. These fringes are mostly continuous along the surface, except at the position of a crack. The discontinuity in fringes is clearly visible in modulo-2π phase map (see in Fig. 4b) at the region of crack, as indicated by a rectangle, which is enlarged in Fig. 4c. For quantification of the crack, the phase map in Fig. 4c is unwrapped using Goldstein’s method. The unwrapped phase map is shown in Fig. 4d.

Fig. 4
figure 4

DHI results of square shoulder face mill tool: a amplitude distribution, b modulo-2π phase (wrapped phase) map, c enlarged image of wrapped phase indicated by rectangle in b, d unwrapped phase map corresponding to c, e 2D line profile corresponding to dashed line indicated in d, f 3D surface map corresponding to d

The lateral size of the crack is obtained from 2D line profile, shown in Fig. 4e, generated along the dashed line shown in Fig. 4d. Here also, the 2D profile is obtained by multiplying number of pixels covered by dashed line with pixel pitch at reconstruction plane (i.e., 29.7 µm × 37 µm). The size of the crack obtained using DHC is 0.35 mm. The crack is also measured using a standard mechanical profiler (Taylor Hobson, PGI-120) for validation. A 2D plot of the measurements obtained using mechanical profiler is shown in Fig. 5. The measured value of size of the crack using the mechanical profiler is 0.32 mm.

Fig. 5
figure 5

2D profile along the crack region generated by standard mechanical profiler (Taylor Hobson, PGI-120)

Thus, the measurement error in results obtained with the DHC is approximately 9% as compared to the results obtained with the mechanical profiler. The 3D surface map generated by applying Eq. (10) on the unwrapped phase map is shown in Fig. 4f. The presence of crack is analogues to the sudden change in colormap (blue colour) at the position of the crack. One of reasons for development of crack in these face mill tools is their fixed and irreplaceable cutting edges. In current industrial manufacturing machines, most of the face mill tools have replaceable inserts made of materials like carbide [53] due to their higher durability. Therefore, an indexable square shoulder face mill tool with carbide insert is also inspected for wear using the DHC, as shown in Fig. 6.

Fig. 6
figure 6

a Photograph of indexable square shoulder face mill tool, b amplitude distribution, c unwrapped phase map, and d 3D surface map obtained in DHI process.

The face mill tool shown in Fig. 6a is thermally loaded by an incandescent lamp. Two digital holograms acquired using DHC at different temperatures are numerically reconstructed by FDM. Figure 6b shows the amplitude distribution obtained by numerical subtraction of absolute values of complex fields obtained from the recorded digital holograms. The unwrapped phase map shown in Fig. 6c is obtained by applying Goldstein’s unwrapping method on modulo 2π phase distribution resulted from subtraction of the phases of the two reconstructed complex fields. From unwrapped phase map, a 3D surface map is generated using Eq. (10). The position of wear in the insert of the tool is indicated by rectangular boxes in unwrapped phase map and 3D surface map shown in Fig. 6c, d, respectively.

3.3 On-machine inspection of machine tool

In the current fast-paced industrial scenario, an important requirement for precision machining is on-machine monitoring of wear and tear in machine tools. Due to DHC’s portability and capability to provide almost real time analysis, a potential application of DHC is on-machine inspection of machine tools, which is demonstrated in Fig. 7.

Fig. 7
figure 7

a Photograph of on-machine inspection of end mill tool fixed on a vertical milling machine using DHC, b amplitude distribution of end mill tool indicated in rectangular box in a, c unwrapped phase map of end mill tool under test, d phase map of one of the flutes indicated in rectangular box in c, e 3D surface map of the edge of the end mill tool shown in d.

A solid end mill tool fixed on a vertical milling machine (HMT, FN2U) is inspected using the DHC mounted on a commercial tripod, as shown in Fig. 7a. The results of DHI are shown in Fig. 7b–e. Figure 7b, c represents amplitude distribution and unwrapped phase map of the end mill tool under test, as indicated inside rectangular box in Fig. 7a. The phase distribution of flutes numbered 1 and 2 is not uniform, as observed in Fig. 7c, and thus, their complete information cannot be obtained. This may have happened due to a small angle between the object plane and the hologram plane, due to which information of these two flutes are distributed in more than one plane. Therefore, parallelism between object and hologram planes is important for performing metrology using DHI, as it displays information of only one plane in numerical reconstruction process. The other two properly reconstructed flutes numbered 3 and 4 in Fig. 7b are used for further inspection. Figure 7d, e shows phase maps of flute numbered 4 indicated in rectangular box and its 3D displacement map, respectively. The 3D map shown in Fig. 7e also depicts shape of the flute 4 of the end mill tool. No wear in the flutes 3 and 4 are observed in DHI process.

The quality and accuracy of DHI results in on-machine inspection depends greatly on machine vibrations. Therefore, during DHI process, the machine tool under test as well as the machine itself has to be in non-operational condition. Also, steadiness of tripod and so the DHC is an important factor to be considered during the DHI process. To study the stability of the DHC during interferometric measurements, a holographic video (1.04 min duration) of the end mill tool fixed on the milling machine is recorded using the DHC in the experimental condition shown in Fig. 7a. Here, DHC was mounted on a commercial tripod. All the 1931 frames recorded in the video are extracted. Each frame represents a digital hologram. These digital holograms are utilised to perform DHI. The first frame is considered the reference frame and all other frames are compared with it. For comparison, the phase map is obtained from the complex amplitude obtained from each digital hologram after applying Fresnel diffraction method. The path length computed from the phase map of the reference frame is compared from path lengths of other 1930 frames by subtraction and unwrapping of phases. In the present case, the stability of the DHC during the measurement can be determined by variation in values of the path lengths.

Large variation in the path length over recording time would imply an unstable DHC and inaccurate measurement. Figure 8 shows a histogram of standard deviation of path length values. The variation in path values is highest in the range 0–17.7 nm and the mean is 11.86 nm, which shows very little variation in path length values. The mean value of standard deviation is obtained by calculating the mean of histogram as expressed in the following equation:

$${\text{Mean}}\,{\text{of}}\,{\text{histogram = }}\frac{{{\text{Bin}}\,{\text{count}} \times {\text{Bin}}\,{\text{center}}}}{{{\text{Total}}\,{\text{number}}\,{\text{of}}\,{\text{bins}}}}.$$
(12)
Fig. 8
figure 8

Histogram of standard deviation of path length variations

Here, bin represents value of path length. Thus, the stability of the DHC employed for on-machine inspection can be determined by evaluating the path lengths from the unwrapped interferometric phase obtained in the DHI process. The results obtained in this work demonstrate capability of DHI for qualitative and quantitative inspection of machine tools using the portable DHC. The 3D surface maps provide access to the lateral dimensions of the machine tool under test. Thus, apart from signifying the wear and tear in machine tools, DHC is also capable for metrology purposes due to generation of 3D surface maps in DHI process.

4 Conclusions

In summary, the presented work experimentally demonstrates a non-invasive, on-machine scheme for inspection of machine tools using optical digital holographic interferometry (DHI). An indigenously developed portable digital holographic camera was employed on the machine to record digital holograms in-situ required in the process of DHI. End mill and face mill machine tools are inspected for presence of wear and cracks. The wear and tear are analysed qualitatively as well as quantitatively using 2D profiles and 3D surface maps generated in DHI process. The measured results of the crack present in face mill machine tool are validated by a standard mechanical profiler. Capability of the DHC to perform on-machine qualitative as well as quantitative analysis of the test object demonstrates its uniqueness in the field of non-destructive testing and metrology of machine tools. Future interests may include utilization of developed digital holographic camera for on-site inspection of different types of tools in machines like bore, grinder, drill, power saw etc.