Physics-Informed and Hybrid Machine Learning in Additive Manufacturing: Application to Fused Filament Fabrication

arXiv cs.LG Papers

Summary

This paper investigates physics-informed and hybrid machine learning strategies to predict bond quality and porosity in fused filament fabrication, showing accurate models even with limited experimental data.

arXiv:2608.17246v1 Announce Type: new Abstract: This article investigates several physics-informed and hybrid machine learning strategies that incorporate physics knowledge in experimental data-driven deep-learning models for predicting the bond quality and porosity of fused filament fabrication (FFF) parts. Three types of strategies are explored to incorporate physics constraints and multi-physics FFF simulation results into a deep neural network (DNN), thus ensuring consistency with physical laws: (1) incorporate physics constraints within the loss function of the DNN, (2) use physics model outputs as additional inputs to the DNN model, and (3) pre-train a DNN model with physics model input-output and then update it with experimental data. These strategies help to enforce a physically consistent relationship between bond quality and tensile strength, thus making porosity predictions physically meaningful. Eight different combinations of the above strategies are investigated. The results show how the combination of multiple strategies produces accurate machine learning models even with limited experimental data.
Original Article
View Cached Full Text

Cached at: 08/19/26, 10:25 AM

# Physics-Informed and Hybrid Machine Learning in Additive Manufacturing: Application to Fused Filament Fabrication
Source: [https://arxiv.org/html/2608.17246](https://arxiv.org/html/2608.17246)
## Physics\-Informed and Hybrid Machine Learning in Additive Manufacturing: Application to Fused Filament FabricationThanks:Citation:Kapusuzoglu, B\., Mahadevan, S\. Physics\-Informed and Hybrid Machine Learning in Additive Manufacturing: Application to Fused Filament Fabrication\.JOM72, 4695–4705 \(2020\)\. DOI:[10\.1007/s11837\-020\-04438\-4](https://doi.org/10.1007/s11837-020-04438-4)

Berkcan KapusuzogluAffiliation:Department of Civil and Environmental EngineeringAffiliation:Vanderbilt UniversityAffiliation:Nashville, TN 37235, USAEmail:[berkcan\.kapusuzoglu@vanderbilt\.edu](mailto:)Sankaran MahadevanAffiliation:Department of Civil and Environmental EngineeringAffiliation:Vanderbilt UniversityAffiliation:Nashville, TN 37235, USAEmail:[sankaran\.mahadevan@vanderbilt\.edu](mailto:)

###### Abstract

This paper investigates several physics\-informed and hybrid machine learning strategies that incorporate physics knowledge in experimental data\-driven deep learning models for predicting the bond quality and porosity of fused filament fabrication \(FFF\) parts\. Three types of strategies are explored to incorporate physics constraints and multi\-physics FFF simulation results into a deep neural network \(DNN\), thus ensuring consistency with physical laws: \(1\) incorporate physics constraints within the loss function of the DNN, \(2\) use physics model outputs as additional inputs to the DNN model, and \(3\) pre\-train a DNN model with physics model input\-output and then update it with experimental data\. These strategies help to enforce a physically consistent relationship between bond quality and tensile strength, thus making porosity predictions physically meaningful\. Eight different combinations of the above strategies are investigated\. The results show how the combination of multiple strategies produces accurate machine learning models even with limited experimental data\.

*K*eywordsAdditive manufacturing⋅\\cdotFused filament fabrication⋅\\cdotDeep learning⋅\\cdotPhysics\-informed machine learning⋅\\cdotPorosity

## 1Introduction

Achieving the desired material properties and product quality in additive manufacturing \(AM\) processes has been studied using trial\-and\-error experiments as well as process models \(either physics\-based or machine learning \(ML\) models\)\. In a trial\-and\-error approach, the AM process is repeated multiple times with different process parameter combinations to achieve the desired microstructure and properties of the manufactured parts; this is expensive and time\-consuming\. Moreover, this trial\-and\-error approach needs to be implemented every time a new design needs to be manufactured\. Therefore, in recent years, research efforts have focused on model\-based methods for optimizing the AM process parameters\.

Several physics\-based models have been developed depending on the AM process category and the quantity of interest \(QoI\)\[[4](https://arxiv.org/html/2608.17246#bib.bib4)\]\. Costa et al\.\[[3](https://arxiv.org/html/2608.17246#bib.bib10)\]proposed an analytical solution for transient heat transfer during the printing process in fused filament fabrication \(FFF\)\. Different models have been proposed in the literature to study polymer sintering\[[17](https://arxiv.org/html/2608.17246#bib.bib11),[6](https://arxiv.org/html/2608.17246#bib.bib12),[9](https://arxiv.org/html/2608.17246#bib.bib13),[7](https://arxiv.org/html/2608.17246#bib.bib14)\]\. Many of these models are parametric representations of complex physical processes based on various approximations\. The parameters of such physics\-based models, as well as the model errors need to be calibrated for each AM process using available observation data to reduce the uncertainty in the model predictions\[[15](https://arxiv.org/html/2608.17246#bib.bib2),[16](https://arxiv.org/html/2608.17246#bib.bib3),[11](https://arxiv.org/html/2608.17246#bib.bib1)\]\. Due to the complex physics of the AM process, a different model is needed for each sub\-stage or phenomenon in the manufacturing process in order to accurately predict the QoI\. Further, physics models with reasonable fidelity and accuracy require tremendous computational effort; as a result, the use of physics\-based modeling in AM of realistic products has been challenging and limited\.

Recently, several studies have used the available AM experimental data to build*black\-box*ML models\. In addition, with increased computing power, deep learning has become a prominent tool for solving classification and regression problems\. In the context of AM, Khanzadeh et al\.\[[13](https://arxiv.org/html/2608.17246#bib.bib5)\]compared supervised machine learning approaches to classify melt pools to predict porosity\. Artificial neural network has been used to predict the geometry of a single bead in wire and arc additive manufacturing from the wire\-feed rate and travel speed\[[5](https://arxiv.org/html/2608.17246#bib.bib6)\]\. Kwon et al\.\[[14](https://arxiv.org/html/2608.17246#bib.bib7)\]investigated the convolutional neural network \(CNN\) to predict laser power from melt pool images\. Zhang et al\.\[[20](https://arxiv.org/html/2608.17246#bib.bib9)\]used a CNN model to perform in\-process porosity monitoring of laser\-based AM processes\.

Physics\-based models do not require large amounts of data, but are generally limited by their computational complexity or incomplete physics\. In contrast, ML models appear promising for complex systems that are not fully understood or represented with simplified relationships, given adequate quality and quantity of data\. However, ML models represent the complex physics without taking into account any physical laws and thus can produce results that are inconsistent with physical laws\. Karpatne et al\.\[[12](https://arxiv.org/html/2608.17246#bib.bib8)\]proposed the combined use of physics\-based and ML models to achieve more accurate and physically consistent predictions by leveraging the advantages of each method\. In order to make ML models consistent with physical laws, Karpatne et al\.\[[12](https://arxiv.org/html/2608.17246#bib.bib8)\]incorporated physical constraints into the loss function of ML models\. Another method that is also implemented by Karpatne et al\.\[[12](https://arxiv.org/html/2608.17246#bib.bib8)\]to combine physics\-based and ML models is to use the physics\-based model outputs as additional inputs in an ML model along with other inputs\. Jia et al\.\[[10](https://arxiv.org/html/2608.17246#bib.bib18)\]used synthetic data generated by executing physics\-based models for multiple input combinations to pre\-train the ML model in order to leverage the knowledge embedded in physics\-based models\. These general ideas have been explored in multiple engineering applications, such as geoscience, fluid dynamics, and thermodynamics, and this paper investigates these ideas for additive manufacturing\.

The goal of this paper is to enhance the experimental data\-driven ML models for AM by incorporating the physics knowledge, thus helping the ML model to produce more accurate and physically meaningful results\. Three different strategies are explored for this purpose: \(1\) incorporate physics constraints within the loss function of the deep neural network \(DNN\), \(2\) use physics model outputs as additional inputs to the DNN model, and \(3\) pre\-train a DNN model with physics model input\-output and then update it with experimental data\. Eight different combinations of the above three strategies are explored, and their performance in porosity and bond quality prediction of the FFF\-produced parts is examined\.

The strategies investigated in this paper help to better capture the physics of the AM process by leveraging physical laws while improving the generalization performance of data\-driven AM models\. Compared to previous studies, the proposed strategies address two different physical QoIs \(neck diameter and porosity\) and use multiple physics\-based loss functions to enhance the ML model\. The main contributions of this work are as follows:

1. 1\.Several physics\-informed and hybrid machine learning models are developed for porosity prediction of FFF parts using physics constraints, physics\-based model, and experimental data, using the three strategies mentioned above\.
2. 2\.An enhanced physics\-based model is developed to account for realistic filament geometry and the change of geometry during the printing process\.
3. 3\.The proposed models are trained and evaluated using laboratory experiments where FFF parts are printed with varying input conditions, and data is collected to measure the quality characteristics \(bond quality, porosity\) of the parts\.

The remainder of the paper is organized as follows\. The proposed methodology is presented in Section[2](https://arxiv.org/html/2608.17246#S2), followed by the implementation of the methodology for a FFF process in Section[3](https://arxiv.org/html/2608.17246#S3)\. Concluding remarks are provided in Section[4](https://arxiv.org/html/2608.17246#S4)\.

## 2Methodology

This section develops the proposed physics\-informed machine learning \(PIML\) approaches to predict the bond formation and mesostructure in FFF\-produced parts\. The methodology is applicable to any AM process with corresponding data and physical laws for the prediction QoI\. The three components of the methodology are: \(a\) Physics\-based models, \(b\) Experiments, and \(c\) Construction of PIML models\.

### 2\.1Physics\-based models

This subsection describes the two coupled multi\-physics models \(thermal model and polymer sintering model\) that predict the bond formation between adjacent filaments and the mesostructure of the printed part\. The porosity and bond quality of an FFF part is dependent on the temperature history of filaments\. Thus, it is important to predict the temperature evolution of filaments to estimate the final mesostructure of the printed part\. The thermal model, based on the work by Costa et al\.\[[3](https://arxiv.org/html/2608.17246#bib.bib10)\], is used to predict the temperature evolution of filaments considering the material properties, part geometry, and process parameters\. The output of the heat transfer model \(temperature\) is input to the sintering model to predict the porosity and bond quality\. A new method is then developed, which considers realistic filament geometry, and allows the filament geometry to change during the printing process, to compute the rate of polymer sintering and the final mesostructure of the printed part using the predicted temperature evolution of each filaments\. Thus the mapping from input to output is a multi\-physics model, i\.e\., models of two physical phenomena \(heat transfer and sintering\) are combined to predict the porosity and bond quality\.

#### 2\.1\.1FFF temperature modeling

Fused filament fabrication \(FFF\) \(also known as fused deposition modeling or FDM®\) is an AM technology based on material extrusion for manufacturing polymer and plastic parts\. The continuous strand of material is pushed through a heated nozzle and deposited as a molten extruded thin filament onto the build plate in a predefined path to form the part in the desired shape\. The schematic of the FFF process is shown in Fig\.[1](https://arxiv.org/html/2608.17246#S2.F1)\.

Figure 1:Schematic of FFF\.In FFF, each filament is subjected to the same heat transfer mechanism with different boundary conditions depending on thermal conditions such as environment, build plate and extrusion temperature, as well as the part geometry, material properties and deposition sequence\. Recently, Costa et al\.\[[3](https://arxiv.org/html/2608.17246#bib.bib10)\]developed an analytical solution for the transient heat transfer during the print process in FFF\. The temperature prediction model considers conduction heat transfer with the build plate and adjacent filaments based on the fractionλi\\lambda\_\{i\}of filament perimeter that is in contact, and convection heat transfer with the environment\. The details of this heat transfer model are provided in the*online supplementary material*\(refer to online supplementary material\)\.

#### 2\.1\.2Bond formation modeling

This subsection develops a new method to compute the rate of polymer sintering and the final mesostructure of the printed part\. The sintering process is defined as the coalescence of particles, in which two particles of molten polymer form a homogeneous melt, under the action of surface tension\[[17](https://arxiv.org/html/2608.17246#bib.bib11)\]\. The sintering process for amorphous polymers is driven by the surface tension force since the mechanism is considered a Newtonian viscous flow\[[18](https://arxiv.org/html/2608.17246#bib.bib15)\]\.

A Newtonian sintering model for polymers was initially developed by Frenkel et al\.\[[6](https://arxiv.org/html/2608.17246#bib.bib12)\]to predict the rate of polymer sintering\. Pokluda et al\.\[[17](https://arxiv.org/html/2608.17246#bib.bib11)\]developed a closed\-form equation to predict the bond formation between two spherical particles based on the work balance of viscous dissipation and surface tension\. Bellehumeur et al\.\[[1](https://arxiv.org/html/2608.17246#bib.bib16)\]applied the model proposed by Pokluda et al\.\[[17](https://arxiv.org/html/2608.17246#bib.bib11)\]to FFF for predicting the sintering between adjacent filaments as a nonlinear function of time, temperature\-dependent surface tensionΓ⁡\(T\)\\Gamma\(T\)and viscosityη⁡\(T\)\\eta\(T\), and an initial particle radius\. The model has limitations related to the mesostructure of the filaments; specifically, the geometry of the filaments is assumed constant during the printing process\. Based on the above discussion, in this paper we propose a new sintering model, which considers realistic filament geometry \(similar to the one proposed by Garzon et al\.\[[7](https://arxiv.org/html/2608.17246#bib.bib14)\]\) and also accounts for the change in the mesostructure of the filaments during the printing process\.

Figure 2:Evolution of neck diameter during sintering process\.The sintering process is simulated by considering two symmetrical adjacent filaments\. In this work, all filaments are assumed to undergo the same sintering process by neglecting the effect of location\. The cross\-section geometry of a filament is composed of a rectangle with an initial widtha0a\_\{0\}and two half circles with a radius ofh0/2h\_\{0\}/2at initial timet=0t=0as proposed by Garzon et al\.\[[7](https://arxiv.org/html/2608.17246#bib.bib14)\]\. Att=0t=0, adjacent filaments have one contact point between them \(see Fig\.[2](https://arxiv.org/html/2608.17246#S2.F2)\)\. The width of the rectanglea⁡\(t\)a\(t\)evolves in time, together withh⁡\(t\)h\(t\)such that width of each filamentw=a0\+h0=a⁡\(t\)\+h⁡\(t\)​cos⁡\(θ⁡\(t\)\)w=a\_\{0\}\+h\_\{0\}=a\(t\)\+h\(t\)\\cos\(\\theta\(t\)\)stays constant\. The layer heighth⁡\(t\)h\(t\)is assumed to evolve in time based on the experimental observations, in which the average layer height for FFF parts has decreased more than the average width of filaments \(see Fig\.[3](https://arxiv.org/html/2608.17246#S2.F3)\)\. During the sintering process, the width and length of each filament \(wwandLL\) are assumed to be constant\. The coalescence between these two half circles forms the sintering angleθ⁡\(t\)\\theta\(t\)and neck diameterd⁡\(t\)d\(t\)\.

![Refer to caption](https://arxiv.org/html/2608.17246v1/Fig3.png)Figure 3:Cross\-sectional geometry of an FFF part printed with an extrusion temperature 240∘C, speed 42 mm/s, initial layer height 0\.7 mm, filament width 0\.8 mm, filament length 35 mm, 6 number of layers and 15 filaments per layer\.In order to calculate the change in the filament geometry during the sintering process, the law of conservation of mass is expressed for two adjacent filaments that are assumed to have constant density:

2​L​\(π​\(h02\)2\+h0​a0\)=2​L​\(π​\(h⁡\(t\)2\)2\+h⁡\(t\)​a​\(t\)−2​δ​A\),\\displaystyle 2L\\Bigg\(\\pi\\bigg\(\\frac\{h\_\{0\}\}\{2\}\\bigg\)^\{2\}\+h\_\{0\}a\_\{0\}\\Bigg\)=2L\\Bigg\(\\pi\\bigg\(\\frac\{h\(t\)\}\{2\}\\bigg\)^\{2\}\+h\(t\)a\(t\)\-2\\delta A\\Bigg\),\(1\)where2​δ​A=2​\(h⁡\(t\)/2\)2​\(θ⁡\(t\)−sin⁡\(2​θ​\(t\)\)\)2\\delta A=2\(h\(t\)/2\)^\{2\}\(\\theta\(t\)\-\\sin\(2\\theta\(t\)\)\)is the area of intersection between two filaments as shown in Fig\.[2](https://arxiv.org/html/2608.17246#S2.F2)\.

Thus, the evolution of layer height is obtained as

h⁡\(t\)=−2​w\+Qπ−2​θ\+sin⁡\(2​θ\)−4​cos⁡\(θ\),h\(t\)=\\frac\{\-2w\+\\sqrt\{Q\}\}\{\\pi\-2\\theta\+\\sin\{\\left\(2\\theta\\right\)\}\-4\\cos\{\\left\(\\theta\\right\)\}\},\(2\)where

Q\\displaystyle Q=h02​π2−2​h02​π​θ\+h02​π​sin⁡\(2​θ\)−4​h02​π​cos⁡\(θ\)−4​h02​π\\displaystyle=h\_\{0\}^\{2\}\\pi^\{2\}\-2h\_\{0\}^\{2\}\\pi\\theta\+h\_\{0\}^\{2\}\\pi\\sin\{\\left\(2\\theta\\right\)\}\-4h\_\{0\}^\{2\}\\pi\\cos\{\\left\(\\theta\\right\)\}\-4h\_\{0\}^\{2\}\\pi\+8​h02​θ−4​h02​sin⁡\(2​θ\)\+16​h02​cos⁡\(θ\)\+4​h0​π​w\\displaystyle\\ \\ \+8h\_\{0\}^\{2\}\\theta\-4h\_\{0\}^\{2\}\\sin\{\\left\(2\\theta\\right\)\}\+16h\_\{0\}^\{2\}\\cos\{\\left\(\\theta\\right\)\}\+4h\_\{0\}\\pi w−8​h0​θ​w\+4​h0​w​sin⁡\(2​θ\)−16​h0​w​cos⁡\(θ\)\+4​w2\.\\displaystyle\\ \\ \-8h\_\{0\}\\theta w\+4h\_\{0\}w\\sin\{\\left\(2\\theta\\right\)\}\-16h\_\{0\}w\\cos\{\\left\(\\theta\\right\)\}\+4w^\{2\}\.\(3\)
The work done by surface tension is defined as

WS=−Γ⁡\(T\)​d​Sd​t,W\_\{S\}=\-\\Gamma\(T\)\\frac\{dS\}\{dt\},\(4\)whereSSis the total surface of the filaments that undergo sintering process and is given as

S⁡\(t\)\\displaystyle S\(t\)=h​\(t\)4​\(−θ\+sin⁡\(2​θ\)2\)\+h​\(t\)2​π\+2​h​\(t\)​L​π\\displaystyle=h\(t\)^\{4\}\\left\(\-\\theta\+\\frac\{\\sin\{\\left\(2\\theta\\right\)\}\}\{2\}\\right\)\+h\(t\)^\{2\}\\pi\+2h\(t\)L\\pi−4​h​\(t\)​L​θ\+4​h​\(t\)​a​\(t\)\+4​L​a​\(t\)\.\\displaystyle\\ \\ \-4h\(t\)L\\theta\+4h\(t\)a\(t\)\+4La\(t\)\.\(5\)
Thus, applying the chain rule on Eq\. \([2\.1\.2](https://arxiv.org/html/2608.17246#S2.Ex3)\), the work done by surface tension is obtained as

WS=Γ⁡\(T\)​h​\(t\)​\(2​h​\(t\)3​sin2⁡\(θ\)\+4​L\)​θ′\.W\_\{S\}=\\Gamma\(T\)h\(t\)\\left\(2h\(t\)^\{3\}\\sin^\{2\}\{\\left\(\\theta\\right\)\}\+4L\\right\)\\theta^\{\\prime\}\.\(6\)
The work done by the viscous forces for a Newtonian fluid can be expressed as

Wν=∫∫∫Vη\(T\)∇u:\(∇u\+∇uT\)dV,W\_\{\\nu\}=\\int\\int\\int\_\{V\}\\eta\(T\)\\nabla u:\(\\nabla u\+\\nabla u^\{T\}\)dV,\(7\)VVbeing the volume of the sintering system, and∇u\\nabla uthe gradient of velocity and is expressed as

∇u=\[ϵ1˙000ϵ2˙000ϵ3˙\]\.\\nabla u=\\begin\{bmatrix\}\\dot\{\\epsilon\_\{1\}\}&0&0\\\\ 0&\\dot\{\\epsilon\_\{2\}\}&0\\\\ 0&0&\\dot\{\\epsilon\_\{3\}\}\\\\ \\end\{bmatrix\}\.\(8\)whereϵi˙\\dot\{\\epsilon\_\{i\}\}is the strain rate iniith direction\.

Assuming the deformations in width and length are negligible w\.r\.t\. deformations in height,ϵ2˙=ϵ˙\\dot\{\\epsilon\_\{2\}\}=\\dot\{\\epsilon\}is approximated by

ϵ˙=∂ux​\(A\)∂x≈ux​\(A\)−ux​\(O\)O​A¯0=dd​t​h​\(t\)h0\.\\dot\{\\epsilon\}=\\frac\{\\partial u\_\{x\}\(A\)\}\{\\partial x\}\\approx\\frac\{u\_\{x\}\(A\)\-u\_\{x\}\(O\)\}\{\\overline\{OA\}\_\{0\}\}=\\frac\{\\frac\{d\}\{dt\}h\(t\)\}\{h\_\{0\}\}\.\(9\)Consequently, the work done by the viscous forces can be defined as follows

Wν\\displaystyle W\_\{\\nu\}=∫∫∫V2​η​\(T\)​ϵ˙2​𝑑V\\displaystyle=\\int\\int\\int\_\{V\}2\\eta\(T\)\\dot\{\\epsilon\}^\{2\}dV\(10\)=2​L​η​\(T\)​h​\(t\)2​\(h0​π−4​h0\+4​w\)​sin2⁡\(θ\)h0​cos2⁡\(θ\)​θ′′\.\\displaystyle\\quad=\\frac\{2L\\eta\(T\)h\(t\)^\{2\}\\left\(h\_\{0\}\\pi\-4h\_\{0\}\+4w\\right\)\\sin^\{2\}\{\\left\(\\theta\\right\)\}\}\{h\_\{0\}\\cos^\{2\}\{\\left\(\\theta\\right\)\}\}\\theta^\{\\prime\\prime\}\.\(11\)
The evolution of the sintering angleθ⁡\(t\)\\theta\(t\)is then obtained by equating the work done by surface tension and the viscous forces under the assumption thatθ′\\theta^\{\\prime\}is always positive\[[17](https://arxiv.org/html/2608.17246#bib.bib11)\]:

d​θ​\(t\)d​t=Γ⁡\(T\)​h0​\(h​\(t\)3\+2​Lsin2⁡\(θ⁡\(t\)\)\)​cos2⁡\(θ\)L​h​\(t\)​η​\(T\)​\(h0​π−4​h0\+4​w\)\.\\frac\{d\\theta\(t\)\}\{dt\}=\\frac\{\\Gamma\(T\)h\_\{0\}\\left\(h\(t\)^\{3\}\+\\frac\{2L\}\{\\sin^\{2\}\{\\left\(\\theta\(t\)\\right\)\}\}\\right\)\\cos^\{2\}\{\\left\(\\theta\\right\)\}\}\{Lh\(t\)\\eta\(T\)\\left\(h\_\{0\}\\pi\-4h\_\{0\}\+4w\\right\)\}\.\(12\)The evolution of neck diameterd⁡\(t\)d\(t\)with time is then computed as

d⁡\(t\)=h⁡\(t\)​sin⁡\(θ⁡\(t\)\),d\(t\)=h\(t\)\\sin\(\\theta\(t\)\),\(13\)
The porosity can be expressed using the geometry of the mesostructure shown in Fig\.[2](https://arxiv.org/html/2608.17246#S2.F2), where the shaded grey region is the filled area and blue region is the void area\. Thus, the evolution of porosityϕ⁡\(t\)\\phi\(t\)is calculated as

ϕ⁡\(t\)=h2​cos⁡\(θ\)−\(h2\)2​\[π−\(2​θ−sin⁡\(2​θ\)\)\]h2​cos⁡\(θ\)\+h​a\.\\phi\(t\)=\\frac\{h^\{2\}\\cos\{\\left\(\\theta\\right\)\}\-\\left\(\\frac\{h\}\{2\}\\right\)^\{2\}\\big\[\\pi\-\\left\(2\\theta\-\\sin\{\\left\(2\\theta\\right\)\}\\right\)\\big\]\}\{h^\{2\}\\cos\{\\left\(\\theta\\right\)\}\+ha\}\.\(14\)
The proposed methodology is an improvement upon the previous work on sintering models by Pokluda et al\.\[[17](https://arxiv.org/html/2608.17246#bib.bib11)\]and Gurrala et al\.\[[8](https://arxiv.org/html/2608.17246#bib.bib20)\], because \(i\) it considers a realistic filament geometry based on our experiments, and \(ii\) it accounts for changes in the filament geometry during the printing process\. This proposed methodology is compared against experimental data in Section[3](https://arxiv.org/html/2608.17246#S3), and is found to give a smaller error than Gurrala et al\.’s model\. However, it still makes assumptions about the bonding process and sintering is not the only physical phenomenon that takes place during the bond formation\. Thus, deep learning is studied to further enhance the prediction accuracy\.

### 2\.2PIML for additive manufacturing

Although physics\-based models predicting the temperature evolution, bond formation and mesostructure evolution of FFF parts are based on physical laws, they introduce bias due to incomplete representation of the complex physical process by approximating the reality\. In addition, these models contain a significant number of model parameters that need to be calibrated using experimental data\[[11](https://arxiv.org/html/2608.17246#bib.bib1)\]\. On the other hand, ML models are not aware of physical laws, which may result in physically inconsistent model predictions\. However, they can extract complex physical relationships from available data\. Thus, physics\-based models and ML models can be integrated in an innovative manner to better capture the dynamics of the AM process\.

In PIML models, physics knowledge and data are sought to be integrated in a synergistic manner by leveraging the complementary strengths of both models\[[12](https://arxiv.org/html/2608.17246#bib.bib8)\]\. Thus, the goal is to improve the predictions beyond that of physics\-based models or ML models alone by coupling physics\-based models with ML models\. In the following, three different strategies to combine physics knowledge and ML models are pursued: \(1\) incorporate physics constraints within the loss function of the DNN, \(2\) use physics model outputs as additional inputs to the DNN model, and \(3\) pre\-train a DNN model with physics model input\-output and then update it with experimental data\.

#### 2\.2\.1Physics\-informed loss functions

A direct strategy to improve ML model predictions is by including physics\-based loss functions\[[12](https://arxiv.org/html/2608.17246#bib.bib8)\]\. Consider a PIML model with inputs𝑿\\boldsymbol\{X\}and outputs𝒀^\\boldsymbol\{\\hat\{Y\}\}trained using physical laws that are incorporated as constraints into the loss function:

ℒ=ℒDNN​\(𝒀,𝒀^\)\+∑k=1Mλphy,k​ℒphy,k​\(𝒀^\),\\displaystyle\\mathcal\{L\}=\\mathcal\{L\}\_\{\\rm DNN\}\(\\boldsymbol\{Y\},\\boldsymbol\{\\hat\{Y\}\}\)\+\\sum\_\{k=1\}^\{M\}\\lambda\_\{\\rm phy,k\}\\mathcal\{L\}\_\{\{\\rm phy\},k\}\(\\boldsymbol\{\\hat\{Y\}\}\),\(15\)whereℒDNN\\mathcal\{L\}\_\{\\rm DNN\}is the regular training loss of a DNN that evaluates a supervised error \(e\.g\., root mean squared error \(RMSE\);ℒDNN​\(𝒀,𝒀^\)=∑i=1n\(Yi−Y^i\)2/n\\mathcal\{L\}\_\{\\rm DNN\}\(\\boldsymbol\{Y\},\\boldsymbol\{\\hat\{Y\}\}\)=\\sqrt\{\\sum\_\{i=1\}^\{n\}\(Y\_\{i\}\-\\hat\{Y\}\_\{i\}\)^\{2\}/n\}\), which measures how far off the predictions𝒀^\\boldsymbol\{\\hat\{Y\}\}are from the observations𝒀\\boldsymbol\{Y\}for thenntraining samples, andℒphy,k\\mathcal\{L\}\_\{\\rm phy,k\}is thekk\-th physics\-based loss function, whose contribution is controlled by a hyperparameterλphy,k\\lambda\_\{\\rm phy,k\}andMMis the total number of physics\-based loss functions\. The inclusion ofℒphy,k\\mathcal\{L\}\_\{\\rm phy,k\}ensures physically consistent model predictions \(the second term of Eq\. \([15](https://arxiv.org/html/2608.17246#S2.E15)\) means*physical inconsistency*\) and can decrease the generalization error even when there is a small amount of training data\[[12](https://arxiv.org/html/2608.17246#bib.bib8)\]\. In addition,ℒphy,k\\mathcal\{L\}\_\{\\rm phy,k\}does not require experimental observations; the data obtained from the physics model is used to evaluate physics\-based loss functions\.

In this work, we enforce five different physics\-based loss functions \(i\.e\., five separate physical relationships,ℒphy,k​\(𝒀^\)\\mathcal\{L\}\_\{\{\\rm phy\},k\}\(\\boldsymbol\{\\hat\{Y\}\}\), wherek=\{1,2,3,4,5\}k=\\\{1,2,3,4,5\\\}and𝒀^=\(Y^1,Y^2\)\\boldsymbol\{\\hat\{Y\}\}=\(\\hat\{Y\}\_\{1\},\\hat\{Y\}\_\{2\}\)are the overall dimensionless neck diameter \(i\.e\., overall bond quality\) and porosity predictions of FFF parts, respectively\)\. These loss functions are defined as follows:

ℒphy,1​\(𝒀^\)=1N​∑i=1NReLU⁡\(−Y^1,i\),\\displaystyle\{\}\\mathcal\{L\}\_\{\{\\rm phy\},1\}\(\\boldsymbol\{\\hat\{Y\}\}\)=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\rm\{ReLU\}\(\-\\mathnormal\{\\hat\{Y\}\}\_\{1,i\}\),ℒphy,2​\(𝒀^\)=1N​∑i=1NReLU⁡\(Y^1,i−dm​a​x\),\\displaystyle\{\}\\mathcal\{L\}\_\{\{\\rm\{phy\}\},2\}\(\\boldsymbol\{\\hat\{Y\}\}\)=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\rm\{ReLU\}\(\\mathnormal\{\\hat\{Y\}\}\_\{1,i\}\-\\mathnormal\{d\_\{max\}\}\),ℒphy,3​\(𝒀^\)=1N​∑i=1NReLU⁡\(−Y^2,i\),\\displaystyle\{\}\\mathcal\{L\}\_\{\{\\rm phy\},3\}\(\\boldsymbol\{\\hat\{Y\}\}\)=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\rm\{ReLU\}\(\-\\mathnormal\{\\hat\{Y\}\}\_\{2,i\}\),ℒphy,4​\(𝒀^\)=1N​∑i=1NReLU⁡\(Y^2,i−ϕ0,i\),\\displaystyle\{\}\\mathcal\{L\}\_\{\{\\rm phy\},4\}\(\\boldsymbol\{\\hat\{Y\}\}\)=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\rm\{ReLU\}\(\\mathnormal\{\\hat\{Y\}\}\_\{2,i\}\-\\phi\_\{0,i\}\),ℒphy,5​\(𝒀^\)=1N​∑i=1NReLU⁡\(Δi\),\\displaystyle\{\}\\mathcal\{L\}\_\{\{\\rm phy\},5\}\(\\boldsymbol\{\\hat\{Y\}\}\)=\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}\\rm\{ReLU\}\(\\Delta\_\{i\}\),\(16\)where the first four loss functions consider the physical violations related to the overall dimensionless neck diameter and porosity acrossNNsamples and the fifth loss function represents the physical relationship between the mechanical properties and neck diameter\. The physical inconsistencies in the model predictions are evaluated using these physics\-based loss functions\. In the first and third loss functions, negative values of neck diameter and porosity are treated as physical violations\. The second loss function evaluates physically inconsistent dimensionless neck diameter predictions which are greater than the maximum dimensionless neck diameterdm​a​x=1d\_\{max\}=1\. The fourth loss function penalizes the model when porosity predictionsY^2,i\\mathnormal\{\\hat\{Y\}\}\_\{2,i\}are greater than the initial porosityϕ0,i\\phi\_\{0,i\}ofiith part\. This is based on the physics knowledge that the total void area decreases as the sintering process takes place\. The fifth physics\-based loss function exploits the monotonic relationship between bond quality and tensile strength of FFF\-produced parts\. This loss function is constructed by computing the difference in the sorted dimensionless neck diameter predictions,Y^1,sorted\\mathnormal\{\\hat\{Y\}\}\_\{1,\\rm\{sorted\}\}, and dimensionless neck diameter predictions corresponding to sorted tensile strength estimates \(σT​S​\(Y^2,sorted,𝝃\)\\sigma\_\{TS\}\(\\mathnormal\{\\hat\{Y\}\}\_\{2,\\rm\{sorted\}\},\\boldsymbol\{\\xi\}\)\),Y^′1,i\\mathnormal\{\\hat\{Y\}^\{\{\}^\{\\prime\}\}\}\_\{1,i\}, i\.e\.,Δi=Y^1,sorted,i−Y^′1,i\\Delta\_\{i\}=\\mathnormal\{\\hat\{Y\}\}\_\{1,\\rm\{sorted\},i\}\-\\mathnormal\{\\hat\{Y\}^\{\{\}^\{\\prime\}\}\}\_\{1,i\}\. The maximum stress for longitudinal raster orientation,σT​S​\(Y^2,𝝃\)\\sigma\_\{TS\}\(\\mathnormal\{\\hat\{Y\}\}\_\{2\},\\boldsymbol\{\\xi\}\)with𝝃=\{σ01,σ02,Cσ\}\\boldsymbol\{\\xi\}=\\\{\\sigma\_\{01\},\\sigma\_\{02\},C\_\{\\sigma\}\\\}being the material parameters, is computed according to the analytical expression proposed in Garzon et al\.\[[7](https://arxiv.org/html/2608.17246#bib.bib14)\]using the porosity predictions:

σT​S=σ01​\[exp⁡\(\(1−Y^2\)Cσ​nl\)−Y^2\]\+σ02​\(1−Y^2\),\\displaystyle\\sigma\_\{TS\}=\\sigma\_\{01\}\\bigg\[\\rm\{exp\}\\Big\(\(1\-\\mathnormal\{\\hat\{Y\}\}\_\{2\}\)^\{C\_\{\\sigma\}n\_\{l\}\}\\Big\)\-\\mathnormal\{\\hat\{Y\}\}\_\{2\}\\bigg\]\+\\sigma\_\{02\}\(1\-\\mathnormal\{\\hat\{Y\}\}\_\{2\}\),\(17\)wherenln\_\{l\}is the number of layers of FFF parts\. The tensile strength is constrained when porosity is equal to 0, i\.e\.,σT​S=σ01​e\+σ02\\sigma\_\{TS\}=\\sigma\_\{01\}e\+\\sigma\_\{02\}\. The overall average neck diameter and tensile strength are positively correlated, and tensile strength increases monotonically with neck diameter\. Whereas, porosity and tensile strength are negatively correlated \(as are porosity and neck diameter\)\. More specifically, the model predictions\(Y^1,i,Y^2,i\)\(\\hat\{Y\}\_\{1,i\},\\hat\{Y\}\_\{2,i\}\)and\(Y^1,i\+1,Y^2,i\+1\)\(\\hat\{Y\}\_\{1,i\+1\},\\hat\{Y\}\_\{2,i\+1\}\)corresponding toiith and\(i\+1\)\(i\+1\)th FFF parts can be used to estimateσT​S,i\\sigma\_\{TS,i\}andσT​S,i\+1\\sigma\_\{TS,i\+1\}\. IfσT​S,i\+1\\sigma\_\{TS,i\+1\}is greater thanσT​S,i\\sigma\_\{TS,i\}— meaning\(i\+1\)\(i\+1\)th part has less voids thaniith part \(Y^2,i\+1<Y^2,i\\hat\{Y\}\_\{2,i\+1\}<\\hat\{Y\}\_\{2,i\}\)—thenY^1,i\+1\\hat\{Y\}\_\{1,i\+1\}should be greater thanY^1,i\\hat\{Y\}\_\{1,i\}as well by exploiting a key monotonic physical relationship between porosity and tensile strength of FFF\-produced parts\. Thus, with the inclusion of these physics\-based penalty functions, the neck diameter and porosity predictions are ensured to be physically meaningful\.

#### 2\.2\.2Physics model output as additional ML model input

A physics\-based modelfphy:𝑿→𝒀^phyf^\{\\rm phy\}:\\boldsymbol\{X\}\\rightarrow\\boldsymbol\{\\hat\{Y\}\}^\{\\rm phy\}can be used to predict the QoI, where𝒀^phy\\boldsymbol\{\\hat\{Y\}\}^\{\\rm phy\}are predicted estimates of the true response of the system𝒀\\boldsymbol\{Y\}\. A straightforward approach to combine physics\-based and ML models is to use physics model output𝒀^phy\\boldsymbol\{\\hat\{Y\}\}^\{\\rm phy\}\(at the experimental inputs\) as additional input along with inputs𝑿\\boldsymbol\{X\}; i\.e\.,fhyb:𝑿hyb=\[𝑿,𝒀^phy\]→𝒀^hybf^\{\\rm hyb\}:\\boldsymbol\{X\}^\{\\rm hyb\}=\[\\boldsymbol\{X\},\\boldsymbol\{\\hat\{Y\}\}^\{\\rm phy\}\]\\rightarrow\\boldsymbol\{\\hat\{Y\}\}^\{\\rm hyb\}\.

Adding the physics output as an extra input to the DNN model \(which is trained using experimental data\) is information fusion, where the physics model is an additional source of information that is consistent with physics \(i\.e\., when the physics model satisfies the constraints mentioned in the previous subsection\)\. The resulting DNN model can be thought of as a hybrid model that uses the experimental data to correct the output of the physics model which is an incomplete representation of the actual physics\.

#### 2\.2\.3Pre\-trained PIML model

In AM, especially in the FFF process with not a high\-quality printer, parts have significant variability in quality\. There is also uncertainty in measurement and lack of data due to the high cost associated with conducting experiments\. Thus, data of adequate quality and quantity is important for good quality model predictions in AM\.

In order to leverage the complex physical knowledge inherent in the physics\-based models, synthetic data can be generated for multiple input combinations using physics\-based models\. The synthetic data can be used to train a ML model, which is used as the initial model to be updated with experimental data\. The transfer of physical knowledge using a pre\-trained ML model can prevent poor initialization due to lack of knowledge of initial choice of ML model parameters prior to training\. This allows the pre\-trained ML model to be fine\-tuned even with limited observed data\. In addition, it has been shown that using synthetic data from even imperfect physics models with uncalibrated model parameters can still reduce the amount of experimental training data needed\[[10](https://arxiv.org/html/2608.17246#bib.bib18)\]\.

More importantly, the pre\-training can use a large amount of training data \(with multiple input parameter combinations\) over a wide range of values, which is not possible in experiments that could be expensive; as a result, the pre\-training may help the eventual ML model to have wider generalization beyond experimental data\. This is also an important distinction of the pre\-training strategy from the second strategy\. Both strategies use the physics model, but in the second strategy, the physics model is only used to provide outputs corresponding to the experimental inputs, whereas in the current pre\-training strategy, the physics model is used to provide outputs corresponding to a much larger set of inputs\. In the numerical example in Section[3](https://arxiv.org/html/2608.17246#S3), the pre\-training strategy exercises the physics model over 1525 input combinations, whereas the second strategy above only employs the physics model over 39 experimental input combinations\. However, the advantage of the pre\-training strategy in using a larger input data set \(for physics model runs\) compared to the experiments becomes limited if the physics model is computationally expensive\.

In this work, the ML model is pre\-trained using the outputs of an uncalibrated coupled multi\-physics model \(i\.e\., neck diameter and porosity\)\. Further, the transfer of learned physical knowledge is shown to be valuable even when the input parameters of the synthetic data generated are quite different than the experimental observations\. Once the ML model is pre\-trained, it is fine\-tuned using limited experimental observations\. This helps to learn a 3D printer\-specific physical process faster and with less samples\.

The three proposed strategies to predict the QoIs are shown in Fig\.[4](https://arxiv.org/html/2608.17246#S2.F4)\. Figure[4](https://arxiv.org/html/2608.17246#S2.F4)\(a\) shows the first method, where the physical knowledge is included through constraints within the loss function of a DNN trained with experimental data\. Figure[4](https://arxiv.org/html/2608.17246#S2.F4)\(b\) shows the second method, where the outputs of the physics model are additional inputs to the DNN model\. Figure[4](https://arxiv.org/html/2608.17246#S2.F4)\(c\) shows the third method, where a DNN model is pre\-trained with data generated using the physics\-based model and then updated using experimental data\. The proposed PIML strategies can be applied to any AM process by leveraging the physical constraints or physics\-based models\.

Figure 4:PIML strategies: \(a\) incorporate physics constraints within the loss function of the DNN, \(b\) use physics model outputs as additional inputs to the DNN model, and \(c\) pre\-training a DNN model with physics model input\-output and updating it with experimental data\.
#### 2\.2\.4Combination of PIML strategies

Based on the proposed three strategies to incorporate physics knowledge into the ML model, eight separate ML models can be constructed:

1. 1\.DNN\\mathbf\{\\rm DNN\}
2. 2\.DNNℒphy\\mathbf\{\\rm DNN^\{\\mathcal\{L\}\_\{\\rm phy\}\}\}
3. 3\.DNNhyb\\mathbf\{\\rm DNN^\{\\rm hyb\}\}
4. 4\.DNNupd\\mathbf\{\\rm DNN^\{\\rm upd\}\}
5. 5\.DNNhyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\}
6. 6\.DNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}
7. 7\.DNNupd,ℒphy\\mathbf\{\\rm DNN^\{\\rm upd,\\mathcal\{L\}\_\{\\rm phy\}\}\}
8. 8\.DNNupd,hyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm upd,hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\}

In model 1, a deep neural networkDNN\\mathbf\{\\rm DNN\}is trained using only experimental data\. The inputs𝑿\\boldsymbol\{X\}for this basic DNN model are the process parameters, printer extrusion temperature, speed, layer height, filament width, length, number of layers, and number of filaments per layer; and the outputs are overall dimensionless neck diameter and porosity\. These inputs and outputs are the same as those used in the physics\-based modelfphyf^\{\\rm phy\}\. Model 2 \(DNNℒphy\\mathbf\{\\rm DNN^\{\\mathcal\{L\}\_\{\\rm phy\}\}\}\) pursues the first strategy: physical knowledge related to the FFF process is included through constraints within the loss function of the DNN as shown in Eq\. \([15](https://arxiv.org/html/2608.17246#S2.E15)\)\. Model 3 pursues the second strategy: a hybrid physics\-based neural networkDNNhyb\\mathbf\{\\rm DNN^\{\\rm hyb\}\}is trained using the outputs𝒀^phy\\boldsymbol\{\\hat\{Y\}\}^\{\\rm phy\}offphyf^\{\\rm phy\}as extra inputs in addition to𝑿\\boldsymbol\{X\}, i\.e\.,𝑿hyb=\[𝑿,𝒀^phy\]\\boldsymbol\{X\}^\{\\rm hyb\}=\[\\boldsymbol\{X\},\\boldsymbol\{\\hat\{Y\}\}^\{\\rm phy\}\]\. Model 4 \(DNNupd\\mathbf\{\\rm DNN^\{\\rm upd\}\}\) pursues the third strategy, where the weights and biases \(model parameters\) of all the layers*excluding*the input layer of the pre\-trained networkfpref^\{\\rm pre\}\(which is trained with the coupled multi\-physics model input\-output described in Section[2\.2\.3](https://arxiv.org/html/2608.17246#S2.SS2.SSS3)\) are used as initial parameters for the DNN model and these parameters are updated with experimental data\.

The architecture of the pre\-trained model and the updated models \(Model 4, 6, 7, and 8\) is the same \(except the input layer which changes with different numbers of inputs\)\. The rest of the models \(5\-8\) represent the combinations of the three strategies\. Models 5, 6, and 7 each combine any two of the three strategies, whereas model 8 combines all three strategies\. Model 5 \(DNNhyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\}\) combines the use of physics model outputs as additional inputs and the incorporation of physics constraintsℒphy\\mathcal\{L\}\_\{\\rm phy\}within the loss function of the DNN\. Model 6 \(DNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}\) combines second and third strategies, where the optimized model parameters offpref^\{\\rm pre\}are used as the initial values and the outputs𝒀^phy\\boldsymbol\{\\hat\{Y\}\}^\{\\rm phy\}offphyf^\{\\rm phy\}are included as additional inputs\.DNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}has the same number of inputs asDNNhyb\\mathbf\{\\rm DNN^\{\\rm hyb\}\}\(i\.e\., both include the physics model output as additional input\) and uses the optimized model parameters of all the layers excluding the input layer offpref^\{\\rm pre\}as initial parameters before updating with experimental data\. Model 7 \(DNNupd,ℒphy\\mathbf\{\\rm DNN^\{\\rm upd,\\mathcal\{L\}\_\{\\rm phy\}\}\}\) combines first and third strategies\. The model parameters obtained fromfpref^\{\\rm pre\}are updated using the experimental data by minimizing the augmented loss function shown in Eq\.[15](https://arxiv.org/html/2608.17246#S2.E15)\. Model 8 \(DNNupd,hyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm upd,hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\}\) combines the use of physics model outputs as additional inputs to the updated DNN modelDNNupd\\mathbf\{\\rm DNN^\{\\rm upd\}\}\(which results inDNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}\) and the physics constraintsℒphy\\mathcal\{L\}\_\{\\rm phy\}are incorporated within the loss function ofDNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}\.

## 3Implementation of PIML to FFF

In this section we demonstrate the implementation of the proposed methodology to FFF\-produced parts, and investigate the performance of eight PIML models described in Section[2\.2\.4](https://arxiv.org/html/2608.17246#S2.SS2.SSS4)\. The results show that the proposed PIML models are capable of achieving physically meaningful and accurate model predictions, and require a smaller number of experiments\.

### 3\.1Problem setup

First, data is collected from laboratory experiments in order to build the prediction models for the QoI using ML techniques\. The shape of the part is conceptualized, a CAD model is visualized, and then sliced in a slicing software using the defined FFF process parameters and printing path\.

The print quality depends on the adhesion of the first layer with the build plate\[[11](https://arxiv.org/html/2608.17246#bib.bib1)\]\. Thus, several measures are needed to ensure proper adhesion\. For example, the printing environment is modified by adding an enclosure to the 3D printer to isolate the printing environment from external effects\. Kapton tape is used on the glass build plate to enhance the adhesion of Acrylonitrile butadiene styrene \(ABS\) with the build plate\. After these modifications, the part is printed and then measured with appropriate monitoring techniques\.

A commercial material Ultimaker Black ABS was extruded from an Ultimaker 2 Extended\+ 3D printer to manufacture parts with unidirectionally aligned filaments\. Using Latin hypercube sampling, 20 sets of process parameters are generated\. The ranges considered for the variables are printer extrusion temperatureTeT\_\{e\}: \(210∘C \-260∘260^\{\\circ\}C\), and extrusion speedSeS\_\{e\}: \(15 mm/s \- 46 mm/s\)\. Since the values of material properties𝝃\\boldsymbol\{\\xi\}do not affect the outcome ofℒphy,5​\(𝒀^\)\\mathcal\{L\}\_\{\{\\rm phy\},5\}\(\\boldsymbol\{\\hat\{Y\}\}\), the values calibrated by Garzon et al\.\[[7](https://arxiv.org/html/2608.17246#bib.bib14)\]are used\. All specimens were sectioned at the midpointzcut=L/2z\_\{\\rm cut\}=L/2\(since the statistical properties of QoIs along the length of the specimens were constant\) to analyze the mesostructural feature of interest with the use of microscopy images processed through the ImageJ software\[[19](https://arxiv.org/html/2608.17246#bib.bib17)\]\. The collected experimental data is subsequently used to create DNN prediction models\.

### 3\.2Model training and prediction

The eight DNN models were implemented using the Keras package\[[2](https://arxiv.org/html/2608.17246#bib.bib19)\]with Tensorflow backend\. The pre\-trained model,fpref^\{\\rm pre\}, is first trained with physics model input\-output data consisting of 1525 input parameter combinations over a range of experimental values, i\.e\., \(210∘C\{\}^\{\\circ\}C≤Te≤\\leq T\_\{e\}\\leq260∘​C260^\{\\circ\}C, 15 mm/s≤Se≤\\leq S\_\{e\}\\leq46 mm/s \), and then updated for different combinations of the proposed strategies using observed data\. \(Note that in contrast only 39 physical experiments with 20 unique input parameter combinations are available, see Fig\.[5](https://arxiv.org/html/2608.17246#S3.F5)\)\. The input data of the training and test sets are normalized prior to the training of the DNN models \(the output quantities are dimensionless and between 0 and 1\), and the hyperparameters of these models are tuned with grid search \(λphy=0\.3,0\.3,0\.15,0\.15,0\.008\\lambda\_\{\\rm phy\}=0\.3,0\.3,0\.15,0\.15,0\.008\)\. Fully\-connected DNN models with 2 hidden layers and 10 neurons in each hidden layer are constructed and the weights of all neurons in these models are uniformly randomly initialized between 0 and 1\. L1 and L2 regularizers are used as a penalty term to avoid overfitting\. The Rectified Linear Unit \(ReLU\) activation function and Adam optimizer are used to perform stochastic gradient descent in learning the model parameters\.

Figure 5:Design of experiments for physics\-based simulations and experiments\.The number of epochs for the convergence of training is approximately the same for each model exceptfpref^\{\\rm pre\}, which converges in 40 epochs\. The computation time for training of each model is on average 15 sec using a desktop computer \(Intel®Xeon®CPU E5\-1660 v4@@3\.20GHz with 32 GB RAM and GPU NVIDIA Quadro K620 with 2 GB\)\.

### 3\.3Model performance

In order to measure the accuracy of the trained DNN models, the model predictions of the test data are compared with the observed overall neck diameters and porosity\. Each model is trained 30 times and compared against the FFF experimental data not used for training \(i\.e\., data from 19 parts\) to evaluate the mean and standard deviation of RMSE and physical inconsistency\. The effect of the training data size on the RMSE of different models is shown in Table[I](https://arxiv.org/html/2608.17246#S3.T1)\. Here, the models are trained with 4, 6, 8, 10, and 20 experimental data points \(i\.e\., 20%, 30%, 40%, 50%, and 100% of the available training data\)\. The RMSE values of the coupled\-physics model based on the sintering model developed by Gurrala et al\.\[[8](https://arxiv.org/html/2608.17246#bib.bib20)\]and the new proposed one are 0\.173 and 0\.112, respectively, which are larger than the ML models due to the approximations used to represent the FFF process and bias in the model\. The mean RMSE value offpref^\{\\rm pre\}, which is trained with physics model input\-output data consisting of 1525 input parameter combinations is 0\.362\. The RMSE value offpref^\{\\rm pre\}is greater than the RMSE offphyf^\{\\rm phy\}because the pre\-trained model is an approximation of the physics model, which causes uncertainty and bias\. The RMSE of the basic DNN model is about 0\.025 when we use all the parts in the training set\. The RMSE of the basic DNN model is better thanfpref^\{\\rm pre\}andfphyf^\{\\rm phy\}because experimental data is directly used as the training data for the basic DNN model, whereasfpref^\{\\rm pre\}andfphyf^\{\\rm phy\}use the approximate physics model to generate either pre\-training data or additional input to the ML model\.

The physics\-based loss functions allowDNNℒphy\\mathbf\{\\rm DNN^\{\\mathcal\{L\}\_\{\\rm phy\}\}\}andDNNhyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\}to achieve physically meaningful results with a lower value of average RMSE thanDNNhyb\\mathbf\{\\rm DNN^\{\\rm hyb\}\}and improve the generalization performance\. TheDNNhyb\\mathbf\{\\rm DNN^\{\\rm hyb\}\}model performs similar toDNN\\mathbf\{\\rm DNN\}, which shows that the physics model outputs do not improve the learning process significantly\. TheDNNupd\\mathbf\{\\rm DNN^\{\\rm upd\}\}andDNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}models achieve a similar performance improvement as the DNN models that include physics\-based loss functions\. However, the models without physics constraints produce physically inconsistent results as shown in Table[I](https://arxiv.org/html/2608.17246#S3.T1)\. The results show that pre\-training the PIML model improves the performance, and the improvement is relatively larger as the amount of observed data gets smaller\. Additionally, the models that are pre\-trained \(DNNupd\\mathbf\{\\rm DNN^\{\\rm upd\}\}andDNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}\) reach a physically more consistent initialization when they are updated with experimental data even without using physics constraints, compared to models that are not pre\-trained,DNN\\mathbf\{\\rm DNN\}andDNNhyb\\mathbf\{\\rm DNN^\{\\rm hyb\}\}\. The combination of all strategies \(DNNupd,hyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm upd,hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\}\) allows the model to get closest to the ground truth\.

Table I:Effect of different amounts of training data on the RMSE of different ML modelsThe prediction accuracy \(w\.r\.t\. neck diameter and porosity\) of different models trained with 100% of the experimental data is shown in Fig\.[6](https://arxiv.org/html/2608.17246#S3.F6)\. The x and y\-axis represent the physical inconsistency and the mean and standard deviation of RMSE, respectively\. Figure[6](https://arxiv.org/html/2608.17246#S3.F6)shows that models with physics\-based loss functions produce physically consistent results\. The incorporation of the physics knowledge using either the first or third strategy enables the models 2, 4\-8 to generalize to configurations unseen in the training set\.

Figure 6:Performance and physical inconsistency of proposed models\.In order to further analyze the improvement in model predictions, the predicted dimensionless overall neck diameter and porosity for the test set that comprises 19 FFF parts are visualized in Fig\.[7](https://arxiv.org/html/2608.17246#S3.F7)\. Porosity predictions of model 1 \(DNN\\mathbf\{\\rm DNN\}\) have large physical inconsistency \(Fig\.[7](https://arxiv.org/html/2608.17246#S3.F7)\(a\)\)\. For instance, the blue triangle with the lowest porosity prediction has a negative value \(i\.e\.,\(Y^1,Y^2\)=\(0\.52,−0\.025\)\(\\hat\{Y\}\_\{1\},\\hat\{Y\}\_\{2\}\)=\(0\.52,\-0\.025\)\)\. Model 2 \(DNNℒphy\\mathbf\{\\rm DNN^\{\\mathcal\{L\}\_\{\\rm phy\}\}\}\) predictions are physically consistent due to enforced physics constraints, but model 3 \(DNNhyb\\mathbf\{\\rm DNN^\{\\rm hyb\}\}\) predictions also do not follow a monotonic decreasing relationship\. Model 4 and 6 \(DNNupd\\mathbf\{\\rm DNN^\{\\rm upd\}\}andDNNupd,hyb\\mathbf\{\\rm DNN^\{\\rm upd,hyb\}\}\) have some physically inconsistent predictions\. Figure[7](https://arxiv.org/html/2608.17246#S3.F7)\(b\) shows thatDNNhyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\},DNNupd,ℒphy\\mathbf\{\\rm DNN^\{\\rm upd,\\mathcal\{L\}\_\{\\rm phy\}\}\}andDNNupd,hyb,ℒphy\\mathbf\{\\rm DNN^\{\\rm upd,hyb,\\mathcal\{L\}\_\{\\rm phy\}\}\}produce physically consistent model predictions, i\.e\., porosity and neck diameter predictions follow a monotonically decreasing relationship\.

Figure 7:Comparison of model prediction with test data: \(a\) for the first 4 models, and \(b\) for the last 4 models\.

## 4Conclusion

In this work, three strategies for physics\-informed machine learning \(PIML\) are investigated for predicting the quality\-related metrics of FFF\-produced parts\. First, a physics\-based sintering model is developed to predict the overall average neck diameter and porosity of FFF parts, using the temperature evolution of filaments, material properties, part geometry, and process parameters as inputs\. The developed sintering model offers two improvements over existing models: \(i\) consideration of realistic filament geometry, and \(ii\) allowing the filament geometry to change during the printing process\. Next, several PIML models are developed to predict the bond quality and porosity of FFF parts by leveraging three strategies for incorporating physics knowledge into the DNN model: \(1\) physics\-based loss functions, \(2\) using the outputs of the coupled multi\-physics model as additional inputs to the DNN, and \(3\) pre\-training a DNN with data generated using physics\-based model and then updating it with experimental data\. The physics\-based loss functions exploit the relationship between bond quality and tensile strength of the FFF parts\.

The numerical results show that the incorporation of physics knowledge not only improves the prediction accuracy while producing physically meaningful results, but also allows accurate model predictions even with smaller amounts of experimental data\. Thus, the proposed approach helps to fill the physics knowledge gap in the ML model while leveraging the capability of ML to extract complex process\-material\-geometry relationships in AM, and correcting for the approximation in the physics\-based model\.

Future work can include experimental data that consists of higher dimensional input, with multiple combinations, in order to further evaluate the performance of the proposed PIML strategies\. Future work can also explore the generalization capabilities of the proposed strategies to parts of different geometry, as well as transfer learning to parts manufactured with different 3D printers and materials\. Also, in the context of the third strategy, the data produced by experiments and physics models have different levels of credibility; thus the weighting of the two sources of data needs to be investigated in the future\.

## Conflict of Interest

On behalf of all authors, the corresponding author states that there is no conflict of interest\.

## References

- \[1\]\(2004\)Modeling of Bond Formation Between Polymer Filaments in the Fused Deposition Modeling Process\.Journal of Manufacturing Processes6\(2\),pp\. 170 – 178\.External Links:ISSN 1526\-6125,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/S1526-6125%2804%2970071-7),[Link](http://www.sciencedirect.com/science/article/pii/S1526612504700717)Cited by:[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p2.1)\.
- \[2\]F\. Cholletet al\.\(2015\)Keras\.GitHub\.External Links:[Link](https://github.com/fchollet/keras)Cited by:[§3\.2](https://arxiv.org/html/2608.17246#S3.SS2.p1.1)\.
- \[3\]S\.F\. Costa, F\.M\. Duarte, and J\.A\. Covas\(2017\)Estimation of filament temperature and adhesion development in fused deposition techniques\.Journal of Materials Processing Technology245,pp\. 167 – 179\.External Links:ISSN 0924\-0136,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.jmatprotec.2017.02.026),[Link](http://www.sciencedirect.com/science/article/pii/S0924013617300791)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1),[§2\.1\.1](https://arxiv.org/html/2608.17246#S2.SS1.SSS1.p2.1),[§2\.1](https://arxiv.org/html/2608.17246#S2.SS1.p1.1)\.
- \[4\]T\. DebRoy, W\. Zhang, J\. Turner, and S\.S\. Babu\(2017\)Building digital twins of 3D printing machines\.Scripta Materialia135,pp\. 119 – 124\.External Links:ISSN 1359\-6462,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.scriptamat.2016.12.005),[Link](http://www.sciencedirect.com/science/article/pii/S1359646216305991)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1)\.
- \[5\]D\. Ding, Z\. Pan, D\. Cuiuri, H\. Li, S\. van Duin, and N\. Larkin\(2016\)Bead modelling and implementation of adaptive mat path in wire and arc additive manufacturing\.Robotics and Computer\-Integrated Manufacturing39,pp\. 32 – 42\.External Links:ISSN 0736\-5845,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.rcim.2015.12.004),[Link](http://www.sciencedirect.com/science/article/pii/S0736584515301629)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p3.1)\.
- \[6\]J\. Frenkel\(1945\)Viscous flow of crystalline bodies under the action of surface tension\.J\. phys\.9,pp\. 385\.Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1),[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p2.1)\.
- \[7\]S\. Garzon\-Hernandez, D\. Garcia\-Gonzalez, A\. Jérusalem, and A\. Arias\(2020\)Design of FDM 3D printed polymers: An experimental\-modelling methodology for the prediction of mechanical properties\.Materials & Design188,pp\. 108414\.External Links:ISSN 0264\-1275,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.matdes.2019.108414),[Link](http://www.sciencedirect.com/science/article/pii/S0264127519308524)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1),[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p2.1),[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p3.1),[§2\.2\.1](https://arxiv.org/html/2608.17246#S2.SS2.SSS1.p2.2),[§3\.1](https://arxiv.org/html/2608.17246#S3.SS1.p3.1)\.
- \[8\]P\. K\. Gurrala and S\. P\. Regalla\(2014\)Part strength evolution with bonding between filaments in fused deposition modelling\.Virtual and Physical Prototyping9\(3\),pp\. 141–149\.External Links:[Document](https://dx.doi.org/10.1080/17452759.2014.913400),[Link](https://doi.org/10.1080/17452759.2014.913400),https://doi\.org/10\.1080/17452759\.2014\.913400Cited by:[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p12.1),[§3\.3](https://arxiv.org/html/2608.17246#S3.SS3.p1.1)\.
- \[9\]R\. W\. Hopper\(1984\)Coalescence of two equal cylinders: exact results for creeping viscous plane flow driven by capillarity\.J\. Am\. Ceram\. Soc\.; \(United States\)67:12\.External Links:[Document](https://dx.doi.org/10.1111/j.1151-2916.1984.tb19692.x)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1)\.
- \[10\]X\. Jia, J\. Willard, A\. Karpatne, J\. S\. Read, J\. A\. Zwart, M\. Steinbach, and V\. Kumar\(2020\)Physics\-Guided Machine Learning for Scientific Discovery: An Application in Simulating Lake Temperature Profiles\.arXiv e\-prints,pp\. arXiv:2001\.11086\.External Links:2001\.11086Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p4.1),[§2\.2\.3](https://arxiv.org/html/2608.17246#S2.SS2.SSS3.p2.1)\.
- \[11\]B\. Kapusuzoglu, M\. Sato, S\. Mahadevan, and P\. Witherell\(2020\)Process Optimization under Uncertainty for Improving the Bond Quality of Polymer Filaments in Fused Filament Fabrication\.Journal of Manufacturing Science and Engineering,pp\. 1–46\.External Links:ISSN 1087\-1357,[Document](https://dx.doi.org/10.1115/1.4048073),[Link](https://doi.org/10.1115/1.4048073),https://asmedigitalcollection\.asme\.org/manufacturingscience/article\-pdf/doi/10\.1115/1\.4048073/6558242/manu\-19\-1657\.pdfCited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1),[§2\.2](https://arxiv.org/html/2608.17246#S2.SS2.p1.1),[§3\.1](https://arxiv.org/html/2608.17246#S3.SS1.p2.1)\.
- \[12\]A\. Karpatne, W\. Watkins, J\. Read, and V\. Kumar\(2017\)Physics\-guided Neural Networks \(PGNN\): An Application in Lake Temperature Modeling\.arXiv e\-prints,pp\. arXiv:1710\.11431\.External Links:1710\.11431Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p4.1),[§2\.2\.1](https://arxiv.org/html/2608.17246#S2.SS2.SSS1.p1.1),[§2\.2\.1](https://arxiv.org/html/2608.17246#S2.SS2.SSS1.p1.2),[§2\.2](https://arxiv.org/html/2608.17246#S2.SS2.p2.1)\.
- \[13\]M\. Khanzadeh, S\. Chowdhury, M\. Marufuzzaman, M\. A\. Tschopp, and L\. Bian\(2018\)Porosity prediction: supervised\-learning of thermal history for direct laser deposition\.Journal of Manufacturing Systems47,pp\. 69 – 82\.External Links:ISSN 0278\-6125,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.jmsy.2018.04.001),[Link](http://www.sciencedirect.com/science/article/pii/S0278612518300402)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p3.1)\.
- \[14\]O\. Kwon, H\. G\. Kim, W\. Kim, G\. Kim, and K\. Kim\(2020\)A convolutional neural network for prediction of laser power using melt\-pool images in laser powder bed fusion\.IEEE Access\.Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p3.1)\.
- \[15\]Y\. Ling, J\. Mullins, and S\. Mahadevan\(2014\)Selection of model discrepancy priors in Bayesian calibration\.Journal of Computational Physics276,pp\. 665 – 680\.External Links:ISSN 0021\-9991,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.jcp.2014.08.005),[Link](http://www.sciencedirect.com/science/article/pii/S0021999114005518)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1)\.
- \[16\]P\. Nath, Z\. Hu, and S\. Mahadevan\(2019\)Uncertainty quantification of grain morphology in laser direct metal deposition\.Modelling and Simulation in Materials Science and Engineering27\(4\),pp\. 044003\.External Links:[Document](https://dx.doi.org/10.1088/1361-651x/ab1676),[Link](https://doi.org/10.1088%2F1361-651x%2Fab1676)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1)\.
- \[17\]O\. Pokluda, C\. T\. Bellehumeur, and J\. Vlachopoulos\(1997\)Modification of Frenkel’s model for sintering\.AIChE Journal43\(12\),pp\. 3253–3256\.External Links:[Document](https://dx.doi.org/10.1002/aic.690431213),[Link](https://aiche.onlinelibrary.wiley.com/doi/abs/10.1002/aic.690431213),https://aiche\.onlinelibrary\.wiley\.com/doi/pdf/10\.1002/aic\.690431213Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p2.1),[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p1.1),[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p10.1),[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p12.1),[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p2.1)\.
- \[18\]N\. Rosenzweig and M\. Narkis\(1981\)Sintering rheology of amorphous polymers\.Polymer Engineering & Science21\(17\),pp\. 1167–1170\.External Links:[Document](https://dx.doi.org/10.1002/pen.760211709),[Link](https://onlinelibrary.wiley.com/doi/abs/10.1002/pen.760211709),https://onlinelibrary\.wiley\.com/doi/pdf/10\.1002/pen\.760211709Cited by:[§2\.1\.2](https://arxiv.org/html/2608.17246#S2.SS1.SSS2.p1.1)\.
- \[19\]C\. A\. Schneider, W\. S\. Rasband, and K\. W\. Eliceiri\(2012\)NIH Image to ImageJ: 25 years of image analysis\.Nature methods9\(7\),pp\. 671–675\.Cited by:[§3\.1](https://arxiv.org/html/2608.17246#S3.SS1.p3.1)\.
- \[20\]B\. Zhang, S\. Liu, and Y\. C\. Shin\(2019\)In\-process monitoring of porosity during laser additive manufacturing process\.Additive Manufacturing28,pp\. 497 – 505\.External Links:ISSN 2214\-8604,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.addma.2019.05.030),[Link](http://www.sciencedirect.com/science/article/pii/S2214860419303653)Cited by:[§1](https://arxiv.org/html/2608.17246#S1.p3.1)\.

Similar Articles

A better way to model the behavior of metal alloys

MIT News — Artificial Intelligence

MIT researchers have developed a machine-learning-based approach to accurately model the behavior of metal alloys, regardless of chemical complexity, enabling faster and cheaper materials innovation.