SW North America, CNC Machines and Automation
Published

Applying Machine Learning for Milling to Prevent Chatter

Machine learning is used to predict system behavior based on process data. It can be used to model milling behavior and improve performance.

Share

Machining technology continues to advance in response to industry needs. Despite continuing increases in productivity, however, challenges remain. For example, while the digital transformation of part design and path planning for CNC machining is widespread, CAM software generally treats machining as a geometric activity. Provided the cylindrical tool follows the commanded path through the stock model, it is assumed that the machining process is acceptable and the desired geometry is obtained. This approach does not consider the inherent constraints imposed by machining dynamics.

It is known that some spindle speed-axial depth of cut combinations exhibit chatter, which produces large forces, large vibrations and poor surface finishes, while others do not. Machining dynamics models are therefore implemented to select spindle speed-axial depth combinations that avoid chatter, while meeting design tolerances. Milling stability maps, which separate stable spindle speed-axial depth combinations from those that produce chatter, can be produced using a measurement of the tool tip vibration response and a cutting force model. See Fig. 1.

Figure 1: Milling stability map. Spindle speed-axial depth combinations below the boundary are predicted to be stable. Those above the boundary are predicted to produce chatter. The blue line is the stability boundary. Source (all figures): Tony Schmitz

Stability maps demonstrate large stable zones at high spindle speeds. When tool wear constrains the maximum cutting speed, however, lower spindle speeds must be selected. At low spindle speeds, process damping can increase the stability limit. Because the inputs to the stability map are not perfectly known, the predicted stability boundary also has uncertainty.

Applying machine learning enables the uncertainty to be reduced as more data is collected. One machine learning algorithm is k-nearest neighbors, or KNN. It is applied here to model milling stability with process damping effects. A KNN classifier uses proximity to predict the behavior at selected data point based on the surrounding points. The assumption is that similar points are found near one another. For the milling stability classification problem, a label (stable or unstable) is assigned based on a majority vote. In other words, the label that is most frequently represented around a given spindle speed-axial depth combination is used to predict the behavior at that point.

The Fig. 1 stability map was produced using the vibration response for a selected tool-toolholder-spindle combination and 1018 steel workpiece. It was used to generate a training dataset for the KNN classifier, where each point in a grid was labeled as stable or unstable depending on whether it was above or below the stability boundary. See Fig. 2.

Figure 2: Dataset for KNN training produced using the Fig. 1 stability boundary. The blue circles in the grid are labeled as stable and the red crosses are labeled as unstable (chatter).

The process damping behavior was next established using a “stair step” approach with a minimum number of cutting tests. A low spindle speed of 800 rpm was selected for the first test. A conservative axial depth of 1 mm was chosen given the predicted stability map (with no process damping) shown in Fig. 1. Based on the test result, a progression was followed:

  • If the cut was stable, the spindle speed was maintained and the axial depth was increased by 0.5 mm (50% of the original axial depth). This was repeated until an unstable result was achieved.
  • When an unstable cut was obtained, the spindle speed was reduced by 200 rpm (25% of the original spindle speed) and the previous unstable cutting depth was selected.
  • The sequence was repeated.

The test results are shown in Fig. 3. Next, knowledge about process damping was included with the test results to update the grid of points in Fig. 2. For a stable cut at a selected spindle speed-axial depth, all points with an equal or smaller axial depth and equal or lower spindle speed were also labeled as stable. This provided many updating points from a single test and contributed to the “stair step” updating.

Figure 3: Process damping test results. The blue circles represent stable tests. Red crosses represent unstable (chatter) tests. The original analytical stability boundary is included (solid blue line).

The re-labeled low spindle speed points from Fig. 2 are shown in Fig. 4. The KNN classifier with process damping effects is displayed in Fig. 5. It is seen that the stability boundary is now increased at low spindle speeds. This demonstrates the value in combining machine learning and limited test data with physics-based milling models to increase prediction accuracy.

Figure 4: New data points with process damping effects. The test points from Fig. 3 are identified using the symbols with thicker lines.

Figure 5: KNN classifier for milling stability with process damping. The increased stability boundary at low spindle speeds is observed.

SW North America, CNC Machines and Automation
IMTS+
JTEKT
Hurco
SolidCAM
World Machine Tool Survey
KraussMaffei
TIMTOS
MMS Made in the USA
VERISURF
Paperless Parts
Techspex

Related Content

Automation

Automating Part Programming Cuts the Time to Engaging Work

CAM Assist cuts repetition from part programming — early users say it could be a useful tool for training new programmers.

Read More
Automation

Four-Axis Horizontal Machining Doubles Shop’s Productivity

Horizontal four-axis machining enabled McKenzie CNC to cut operations and cycle times for its high-mix, high-repeat work — more than doubling its throughput.

Read More
Automotive

4 Steps to a Cobot Culture: How Thyssenkrupp Bilstein Has Answered Staffing Shortages With Economical Automation

Safe, economical automation using collaborative robots can transform a manufacturing facility and overcome staffing shortfalls, but it takes additional investment and a systemized approach to automation in order to realize this change.

Read More
Basics

Made in the USA - Season 1 Episode 2: The Automation Puzzle

There is a fundamental question we need to answer when we talk about automation: To what extent is automation an answer to the skilled workforce shortage, and to what extent is automation vs. Skilled labor the wrong comparison to make in the first place?

Read More

Read Next

Sponsored

The Future of High Feed Milling in Modern Manufacturing

Achieve higher metal removal rates and enhanced predictability with ISCAR’s advanced high-feed milling tools — optimized for today’s competitive global market.

Read More

5 Rules of Thumb for Buying CNC Machine Tools

Use these tips to carefully plan your machine tool purchases and to avoid regretting your decision later.

Read More

Registration Now Open for the Precision Machining Technology Show (PMTS) 2025

The precision machining industry’s premier event returns to Cleveland, OH, April 1-3.   

Read More
SW North America, CNC Machines and Automation