Skip to main content

Advertisement

Log in

Autonomous self-healing mechanism for a CNC milling machine based on pattern recognition

  • Published:
Journal of Intelligent Manufacturing Aims and scope Submit manuscript

Abstract

A sustainable and reliable machining process is the main goal of seeking machine digitization. Artificial Intelligence (AI), and Cyber-Physical System (CPS) combined with Artificial Intelligence are used for process control. This has become more essential in the case of machining of high-cost aerospace materials and critical product specifications. In this paper, a novel self-healing mechanism was developed to recover a CNC machine from producing parts that do not conform, to surface roughness’s specifications. The machine settings are reconfigured autonomously and online to recover from the effect of tool wear and to keep the surface roughness within the design specifications. The proposed self-healing mechanism is based on a pattern recognition algorithm called Logical Analysis of Data (LAD). This algorithm generates patterns that characterize the out-of-specification state, and provides a corrective setting within the recovery patterns of the within-specification state by using various distance approaches. The developed self-healing mechanism is composed of three modules: CPS model of the CNC machine (module 1), classification into, out of, or within-specification states (module 2), and a self-healing controller (module 3) that is activated if the state of out-of-specification is found by module 2. The three modules are software. The current hardware system of the machine is not altered. The proposed self-healing is applicable and integrable to CNC machines with a wide range of machining parameters of feed rate from 20 mm/min to 750 mm/min and spindle speed from 15,000 RPM to 35,000 RPM. To validate the developed mechanism, a deep learning artificial model was developed on physical data to emulate the CNC milling machine in a CPS simulation environment, and test runs were executed. The proposed self-healing mechanism was evaluated under several simulation runs that covered the ranges of CNC machine settings. The measure of performance of the proposed mechanism is the out-of-specification clearing time. The test runs show that the proposed self-healing mechanism was able to clear the out-of- specification state and to recover the within-specification state in less than five seconds, with the best distance metric approach. The results of the time response for each test run are reported.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

References

Download references

Acknowledgements

This research was financed by the Mitacs research grant reference IT19389 that was awarded to the corresponding author in autumn 2020.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hussein A. Taha.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

A Appendix

A Appendix

While running the 20 sets sequentially that are labeled as out-of-specification, we compared the recovery time of the P2D and the P2P distance approaches. The P2D self-healing outperforms the P2P and recovers the out-of-specification state of the CNC machine faster than with P2P. This result was obtained when the initial settings were the \({2{nd}, 7{th}, 8{th}, and\; 9{th}}\) that are shown in Table 8 and Table 9. This behavior happened in 4-runs out of 20 runs, which led to out-of-specification as shown in Table 8. In 9 settings out of the 20, the recovery time was found to be the same for the P2D and the P2P approaches. In this case, the selection of a recovery pattern does not affect recovery time. Finally, seven settings led to a longer recovery time with the P2D than with the P2P.

Fig. 10
figure 10

Synchronized Self-healing (P2P & P2D) interacting with CNC milling fault in the 18th run

A.1 7th, 8th, and 9th initial settings

These initial sets are different in feed rate and are common in 4\({\times 10^4}\) RPM spindle speed and with a 32 mm non-variable depth of cut. The different feed rate settings led to different faulty forces and temperature measurements for each initial set, as indicated in Table 8. In these runs, P2D-Self-healing outperforms the P2P-Self-healing, and it recovers the CNC machine Ra fault in 3.5 seconds as shown in Figs. 6a, 7a, and 8a. The P2D approach calculates the distance to each recovery pattern by considering it as uniform distribution. The P2P distance was calculated to a recovery pattern mean as a single point regardless of the other corrective values inside the pattern. P2D-Self-healing selects the 3rd recovery pattern to be the nearest pattern in the first 5 cycles, which is the same as P2P. Then, it selects the 1st recovery pattern instead of the 3rd pattern at a time of 3 seconds, while the P2P-self-healing recovers the Ra out-of-specification in 18 seconds with the 1st recovery pattern, as given in Figs. 7b, 8b, and 9b. In these initial sets, the P2P-Self-healing cleared the detected fault with the corrective action of changing the initial settings to 499.3 mm/min feed rate and spindle speed to 3.56\({\times 10^4}\) RPM. Consequently, the fault detection symptoms of the force in the x-direction given in Figs. 7d, 8d, and 9d, \({F_x}\) were changed from the values that cause a fault in each run to a normal value of 18.3 N. P2D-self-healing corrective settings are 308.2 mm/min feed rate and 3.13\({\times 10^4}\) RPM spindle speed. As a result of changes to the settings, the faulty force in the x-direction for each initial set, \({F_x}\) was changed to 15 N as presented by Figs. 7d, 8d, and 9d, and the mean temperature decreased to 243.5 C\({^o}\), as given in Figs. 7f, 8f, and 9f.

A.2 P2D and P2P have the same recovery time

In the runs of this behavior, the distance approaches of P2D and P2P do not affect Self-healing performance, and it has the same fault recovery performance for the two approaches. The performance equalizations exist in 9 runs out of the 27 runs that are indexed \({[18{th} - 27{th}]}\) with excluding the conformed settings 25th initial set.

Fig. 11
figure 11

Synchronized Self-healing (P2P&P2D) interacting with the CNC milling Ra fault in sets 19 and 20

A.2.1 18th initial settings

In this run, we set the CNC machine initially with faulty settings of a non-variable 64 mm cutting depth, a feed rate of 700 mm/min, and 4\({\times 10^4}\) RPM spindle speed. P2P and P2D Self-healing select the 2nd recovery pattern to be the nearest pattern to the 18th initial settings, as identified by Fig. 10b. The self-healing module achieves the same fault recovery time of 1 second for the two distance approaches, as given in Fig. 10a. The self-healing corrective actions are 358.5 mm/min, 3.9\({\times 10^4}\) RPM with P2P self-healing, while P2D self-healing generates 367.2 mm/min and 3.7\({\times 10^4}\) RPM for the feed rate and speed, respectively. The fault cause was the \({F_x}\) sensor that has a high value of 26.8 N at the incident of the fault, and with the self-healing action, it was reduced to normal values of 20.2 N, as depicted by Fig. 10d. The mean temperature decreased from 355.3 \({C^{o}}\) to 297.4 \({C^{o}}\) with P2P, and to 290 \({C^{o}}\) with P2D, as presented in Fig. 10f.

Fig. 12
figure 12

Synchronized Self-healing interaction with Ra fault in the 21st, 22nd, 23rd, 24th, 26th, and 27th runs

Fig. 13
figure 13

Synchronized Self-healing (P2P & P2D) interacting with the CNC milling fault in the 3rd, 4th, and 6th runs

Fig. 14
figure 14

Synchronized Self-healing (P2P&P2D) interacting with the CNC milling fault in the 2nd, 5th, 8th, and 17th runs

A.2.2 19th, and 20th initial sets

The CNC machine’s initial faulty settings are 96 mm non-variable depth of cut, 1\({\times 10^4}\) RPM spindle speed, and the feed rate is 100 mm/min for the 19th set and 400 mm/min for the 20th initial set. According to the depth of cut, the nearest possible recovery pattern to be selected is the 4th pattern out of the recovery patterns in Table 6. Therefore, in these runs, the distance approaches do not influence the self-healing module performance, and it has the same self-healing corrective actions of 200.3 mm/min feed rate and 2.94\({\times 10^4}\) RPM spindle speed with P2P and P2D self-healing, as recorded by Fig. 11c and e. The Self-healing module clears the detected out-of-specification fault within 1.5 seconds, as given in Fig. 11a. As the initial feed rate is different in the 19th and 20th initial sets, the faulty measurements of forces and temperature are different for each initial set, as indicated in Fig. 11d and e. CNC milling x-access force was the main fault indicator in the 19th and 20th runs, and it decreased with self-healing actions to 24.0 N; while the mean temperature changed to 294.4 \({C^{o}}\), as exhibited in Fig. 11d and e.

Fig. 15
figure 15

Self-healing algorithm execution time with the3rd, 4th, 6th, 10th, 11th, 12th, and 15th Initial Sets

In the 21st, 22nd, 23rd, 24th, 26th, and 27th runs, the self-healing with either P2P or P2D has the same fault recovery time, and it clears the CNC machine fault in 1.5 seconds, as mentioned in Fig. 12a. The depth of cut is the common setting in all these runs, and it is 96 mm; therefore, the 4th recovery pattern is the nearest possible pattern as in the 20th run. The self-healing actions to recover the Ra fault are the same values of 200.3 mm/min for the feed rate and 2.94\({\times 10^4}\) RPM for the spindle speed, as mentioned in Fig. 12c and e. For all these 6 runs, the \({F_x}\) is the main cause of the Ra fault and it activated the 1st IF-THEN detection rule in “Out of specification detection modeling” section. The faulty \({F_x}\) sensor values were 69.9 N, 55.3 N, 41.8 N, 41.8 N, 40.7 N, 29.7N, and 28.1 N for the 21st, 22nd, 23rd, 24th, 26th, and 27th Runs respectively, and it changed with a self-healing module to 24 N, as shown by Fig. 12d.

A.3 P2P is better than P2D in recovery time

This is the last kind of Self-healing performance, and it was in 7 runs out of the 27 runs. However, P2D and P2P approaches select the same nearest recovery pattern in each run of these 7 runs; Self-healing P2P outperforms P2D self-healing, and it recovers the CNC machine Ra fault in fewer time steps than with P2D distance. In the 3rd, 4th, and 6th runs, P2P and P2D Self-healing selects the 6th recovery pattern to recover the out-of-specification fault, as presented in Figs. 13.3.b, 13.4.b, and 13.6.b, respectively. The P2D self-healing recovers the Ra fault within 2.5 seconds, while the recovery time was 2 seconds with P2P self-healing, as indicated in Fig. 13.6. In the remaining 4 initial sets out of the 27, the 5th recovery pattern is selected to be the nearest to clear the Ra faults in the 10th, 11th, 12th, and 15th runs, according to the P2P and P2D distance calculations. P2P Self-healing clears the CNC machine fault within 1 second, while it is cleared in 1.5 seconds with P2D, as given in Fig. 14.

The P2D Self-healing minimum execution time was 1.9 mseconds and it is achieved at the 12th run, while the maximum P2P execution time was 2 \(\mu \)seconds at the 15th run, as stated in Fig. 15. Hence, the P2D self-healing recovers the fault within the next fault detection cycle of 0.5 seconds later than P2P-self-healing.

The execution time of Self-healing with P2D distance depends on the number of corrective sample points inside the recovery pattern, which are sampled from the pattern range to calculate the covariance matrix (Cov). While, P2D-self-healing would be more accurate with a higher number of samples, its exclusion time would increase. The number of recovery samples used in all 27 runs was 1000 samples. When we decrease the number of samples to 10 samples per recovery pattern, a P2D Self-healing execution becomes small and almost equal to the P2P-Self-healing execution time. Moreover, the fault recovery time gets faster, the same as with P2P self-healing, in these 7 runs as given in Fig. 15.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Taha, H.A., Yacout, S. & Shaban, Y. Autonomous self-healing mechanism for a CNC milling machine based on pattern recognition. J Intell Manuf 34, 2185–2205 (2023). https://doi.org/10.1007/s10845-022-01913-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10845-022-01913-4

Keywords

Navigation