Modeling Melt Pool Features and Spatter Using Symbolic Regression and Machine Learning

Olabode Ajenifujah, Amir Barati Farimani

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 powerful metal additive manufacturing technique, but it frequently suffers from a "quality gap." The process involves a laser melting metal powder into a localized "melt pool." If the dynamics of this pool become unstable, it can eject "spatter"—tiny droplets of molten metal that land elsewhere on the build plate, causing structural defects and inconsistent mechanical properties in the final part.

While Computational Fluid Dynamics (CFD) can simulate these complex physical interactions, such simulations are computationally expensive, often taking days or weeks to run for even small segments. This latency makes them impractical for real-time monitoring or rapid process optimization. This study addresses this challenge by utilizing Machine Learning (ML) and symbolic regression to create "surrogate models" that provide near-simulation accuracy with millisecond execution times.

Methods

The researchers employed a multi-step approach to balance physical fidelity with computational speed. The workflow integrated high-fidelity simulations with advanced regression techniques to derive interpretable models.

Overview of the modeling framework including CFD simulation, feature extraction, and the application of ML and symbolic regression models.

The methodology consisted of four primary stages:

  1. Hybrid Simulation and Data Collection: A dataset of 281 different process conditions was generated for Stainless Steel 316L (SS316L). The team used OpenFOAM to resolve complex gas dynamics and surface tension, and FLOW-3D to scale up the dataset. The primary inputs were laser power ($P$) and scanning velocity ($V$).
  2. Feature Extraction: From the simulations, the team extracted critical metrics including melt pool length, width, depth, cross-sectional area, total volume, and the volume of ejected spatter.
  3. Ensemble Learning: Several ML algorithms were benchmarked, including Random Forests and Gradient Boosting. The ExtraTrees (Extremely Randomized Trees) model emerged as the most effective for capturing the complex relationships in the data.
  4. Symbolic Regression: To move beyond "black-box" models, the authors used polynomial symbolic regression to derive explicit mathematical equations. This approach provides engineers with readable formulas that describe the relationship between inputs (like laser power) and outputs (like spatter volume).

Key Results and Insights

The study yielded several significant findings regarding the predictability and control of the LPBF process:

  • High Predictive Accuracy: The models achieved an $R^2$ of over 95% for predicting melt pool dimensions and geometry on both training and testing datasets.
  • Spatter Prediction Breakthrough: Spatter formation is notoriously chaotic. The authors found that applying logarithmic transformations to input variables (e.g., $\log(\text{velocity})$) significantly improved the model's ability to handle data variance. The ExtraTree model reached an $R^2$ of 96.7% (train) and 87.5% (test) for spatter volume.
  • Parameter Sensitivity: The derived equations revealed that melt pool length and depth are primarily driven by laser power, while width is more sensitive to scanning velocity. This insight allows for targeted adjustments to avoid specific defects like "keyholing."
  • Interpretability: Even the simplified polynomial equations derived via symbolic regression maintained high accuracy ($R^2$ of 82-85% for spatter), offering a balance between simplicity and performance that is ideal for embedded systems.

Conclusion and Future Directions

This research provides a robust framework for real-time quality control in additive manufacturing. By converting slow, complex simulations into fast, interpretable equations, the work paves the way for "Digital Twin" systems that can detect and suppress spatter formation mid-print.

Future work will focus on expanding the model to account for multi-track and multi-layer thermal effects, as the current study was limited to single-track bare plate simulations. Additionally, while the framework is universal, the specific constitutive equations will need to be recalibrated for different materials, such as Titanium or Inconel alloys, to account for their unique thermophysical properties.

Summary updated

BibTeX
@misc{ajenifujah2025modeling,
  author = {Olabode Ajenifujah and Amir Barati Farimani},
  title = {{Modeling Melt Pool Features and Spatter Using Symbolic Regression and Machine Learning}},
  year = {2025},
  eprint = {2501.08922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.08922},
}
Figure