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.
Related Content
Using the Toolchanger to Automate Production
Taking advantage of a feature that’s already on the machine tool, Lang’s Haubex system uses the toolchanger to move and store parts, making it an easy-to-use and cost-effective automation solution.
Read MoreInside the Premium Machine Shop Making Fasteners
AMPG can’t help but take risks — its management doesn’t know how to run machines. But these risks have enabled it to become a runaway success in its market.
Read MoreInvesting in Automation, Five-Axis to Increase Production Capacity
To meet an increase in demand, this shop invested heavily in automation solutions and five-axis machines to ramp up its production capabilities.
Read More4 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 MoreRead Next
Setting Up the Building Blocks for a Digital Factory
Woodward Inc. spent over a year developing an API to connect machines to its digital factory. Caron Engineering’s MiConnect has cut most of this process while also granting the shop greater access to machine information.
Read MoreBuilding Out a Foundation for Student Machinists
Autodesk and Haas have teamed up to produce an introductory course for students that covers the basics of CAD, CAM and CNC while providing them with a portfolio part.
Read MoreRegistration 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