Discovery of Spatter Constitutive Models in Additive Manufacturing Using Machine Learning

Olabode Ajenifujah, Amir Barati Farimani · DOI

Abstract

Additive manufacturing (AM) is a rapidly evolving technology that has attracted applications across a wide range of fields due to its ability to fabricate complex geometries. However, one of the key challenges in AM is achieving consistent print quality. This inconsistency is often attributed to uncontrolled melt pool dynamics, partly caused by spatter which can lead to defects. Therefore, capturing and controlling the evolution of the melt pool is crucial for enhancing process stability and part quality. In this study, we developed a framework to support decision-making towards efficient AM process operations, capable of facilitating quality control and minimizing defects via machine learning (ML) and polynomial symbolic regression models. We implemented experimentally validated computational tools, specifically for laser powder bed fusion (LPBF) processes as a cost-effective approach to collect large datasets. For a dataset consisting of 281 varying process conditions, parameters such as melt pool dimensions (length, width, depth), melt pool geometry (area, volume), and volume indicated as spatter were extracted. Using machine learning (ML) and polynomial symbolic regression models, a high R2 of over 95 % was achieved in predicting the melt pool dimensions and geometry features on both the training and testing datasets, with either process conditions (power and velocity) or melt pool dimensions as the model inputs. In the case of volume indicated as spatter the value of the R2 improved after logarithmic transforming the model inputs, which were either the process conditions or the melt pool dimensions. Among the investigated ML models, the ExtraTree model achieved the highest R2 values of 96.7 % and 87.5 %.

Introduction

Laser Powder Bed Fusion (LPBF) is a prominent additive manufacturing technique that utilizes a laser to melt metal powder layer by layer. Despite its versatility in creating complex geometries, LPBF often faces challenges with consistent print quality. A primary cause of inconsistency is uncontrolled melt pool dynamics, which can lead to the ejection of "spatter"—molten metal droplets violently expelled from the melt pool. Spatter can land on the powder bed, obstructing the laser and inducing defects such as porosity or cracking.

Optimizing laser power and scanning velocity to minimize spatter typically involves expensive and time-consuming experimental trials. While 3D numerical simulations offer an alternative, high-fidelity models (e.g., OpenFOAM) that accurately capture spatter physics are computationally intensive. Conversely, faster tools like FLOW-3D often rely on restrictive assumptions that limit spatter simulation accuracy. This study presents a framework to achieve high-fidelity spatter predictions at significantly reduced computational costs.

Methodology

To overcome the simulation bottleneck, the researchers employed a hybrid approach. First, a high-fidelity OpenFOAM model was used to generate realistic spatter data, which served as training material for a machine learning (ML) classification model designed to distinguish between standard melt pool fluid and spatter. Second, 281 high-throughput FLOW-3D simulations—operating approximately 18 times faster than OpenFOAM—were conducted. The resulting data was processed through the OpenFOAM-trained ML classifier to infer spatter volume for each simulation run.

Overview of the framework for predicting melt pool features and spatter counts using ML and polynomial regression.

The primary dataset comprised 281 simulated single-track bare plate experiments using SS316L stainless steel. The input variables included process conditions (laser power, scanning velocity) and melt pool dimensions (length, width, depth). The target outputs were melt pool geometry (cross-sectional area, volume) and the volume of material identified as spatter.

Predictive modeling utilized several ML regression algorithms, including Random Forest, Extra Trees, Bagging, K-Nearest Neighbors (KNN), and Gradient Boosting. To enhance interpretability beyond "black box" models, polynomial symbolic regression was applied to derive explicit mathematical equations. Logarithmic transformations were also applied to inputs to better capture the highly non-linear relationships inherent in spatter generation.

Results and Discussion

The ML models, particularly the Extra Trees model, demonstrated exceptional performance in predicting melt pool dimensions and geometry, achieving an $R^2$ value exceeding 95% on the test dataset. Predicting spatter volume was more complex due to its chaotic nature; however, applying logarithmic transformations to the inputs significantly improved performance. The Extra Trees model achieved $R^2$ values of 96.7% for training and 87.5% for testing data in spatter prediction.

Feature importance analysis revealed distinct physical drivers: melt pool length and depth are primarily influenced by laser power, whereas melt pool width is more sensitive to scanning velocity. The symbolic regression models provided interpretable equations, achieving $R^2 > 94\%$ for melt pool dimensions. For spatter volume, a 6th-degree polynomial with log-transformed inputs reached an $R^2$ of 90% on training and 79% on testing sets. These equations revealed critical interactions, such as the significant impact of the square of velocity ($Velocity^2$) on spatter volume.

Conclusion

This study demonstrates that combining high-fidelity simulation data with machine learning and symbolic regression can provide accurate and interpretable models for additive manufacturing. While currently based on single-track simulations, these fast-inference models are well-suited for integration into "digital twins." Such systems could enable real-time process control, allowing for on-the-fly adjustments to laser parameters to minimize spatter and ensure high-quality prints.

Summary updated

BibTeX
@misc{ajenifujah2025discovery,
  author = {Olabode Ajenifujah and Amir Barati Farimani},
  title = {{Discovery of Spatter Constitutive Models in Additive Manufacturing Using Machine Learning}},
  year = {2025},
  eprint = {2501.08922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.08922},
}
Figure