# AgentAM: An AI Agent for Spatter- and Defect-Aware Process Optimization in Laser Powder Bed Fusion

DevFeed: [AgentAM: An AI Agent for Spatter- and Defect-Aware Process Optimization in Laser Powder Bed Fusion](<https://devfeed.tech/articles/agentam-an-ai-agent-for-spatter-and-defect-aware-process-optimization-in-laser-powder-bed-fusion-117574.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.05171>)

Author: Olabode T. Ajenifujah, Amir Barati Farimani

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [cfd](<https://devfeed.tech/tags/cfd.md>), [constraint](<https://devfeed.tech/tags/constraint.md>), [cross-validation](<https://devfeed.tech/tags/cross-validation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [large](<https://devfeed.tech/tags/large.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [laser](<https://devfeed.tech/tags/laser.md>), [llm](<https://devfeed.tech/tags/llm.md>), [margin](<https://devfeed.tech/tags/margin.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [model-context-protocol](<https://devfeed.tech/tags/model-context-protocol.md>), [model-context-protocol-mcp](<https://devfeed.tech/tags/model-context-protocol-mcp.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [power](<https://devfeed.tech/tags/power.md>), [prediction](<https://devfeed.tech/tags/prediction.md>), [process](<https://devfeed.tech/tags/process.md>), [simulations](<https://devfeed.tech/tags/simulations.md>)

## AI overview

AgentAM gives process engineers natural-language access, through MCP, to CFD-trained surrogates for SS316L laser powder bed fusion. Trained on 279 single-track simulations, the polynomial models predict melt pool dimensions (R² >= 0.95) and spatter volume (R² = 0.83); geometry-based defect classes matched simulated regimes in 93.4% of tracks under cross-validation. The agent supports predictions, process-window scans and constrained optimization. Because minimum-spatter settings often lay within 10 μm of the lack-of-fusion boundary, a margin-aware optimizer moved settings away from thresholds and improved estimated Good-classification probabilities under modeled drift and geometry residuals. In 725 benchmark runs, parsing passed in 98.5% of prompts; all 65 feasible optimization runs met stated constraints, with a median result 1.0% from the brute-force optimum. These are surrogate and benchmark results, not reported shop-floor deployment outcomes.

## Source excerpt

arXiv:2611.05171v1 Announce Type: new Abstract: Predictive models for laser powder bed fusion (LPBF) are rarely used on the shop floor because querying them requires programming and model-specific knowledge. We present AgentAM, a large language model (LLM) agent that gives process engineers natural-language access to CFD-trained surrogates of spatter and melt pool geometry for SS316L through the Model Context Protocol (MCP). Polynomial surrogates trained on 279 single-track simulations predict melt pool dimensions ($R^2 \geq 0.95$) and spatter volume ($R^2 = 0.83$ on test data) at any power-velocity point in the trained range, and geometric criteria assign each point a geometry-derived defect regime (keyhole, lack of fusion, balling or stable) that matches the regime obtained from the simulated geometry in 93.4% of tracks under cross-validation. The agent selects and parameterizes tools for prediction, process-window scans and constrained optimization. Minimum-spatter optima often sat within 10 $\mu$m of the lack-of-fusion boundary; a margin-aware optimizer moved them away from all thresholds and raised the estimated probability of remaining classified Good from 0.94 to 1.00 under an assumed 2% process drift, and from 0.72 to 0.91 when jointly sampled cross-validated geometry residuals were added. About 40-50 well-spread simulations sufficed to reproduce the defect map. To evaluate the agent layer, we introduce a 145-prompt benchmark scored against direct tool calls, plus eight prompts (40 runs) on margin-aware requests. Over the 725 runs of the main benchmark the agent passed the intended inputs in 98.5% of parsing prompts, reported the scored spatter values and defect classes faithfully and met every stated constraint in the 65 feasible optimization runs, within a median 1.0% of the brute-force optimum.