<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>An impulse response formulation for small-sample learning and control of additive manufacturing quality</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>09/02/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10464763</idno>
					<idno type="doi">10.1080/24725854.2022.2113186</idno>
					<title level='j'>IISE Transactions</title>
<idno>2472-5854</idno>
<biblScope unit="volume">55</biblScope>
<biblScope unit="issue">9</biblScope>					

					<author>Qiang Huang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Machine learning for additive manufacturing (ML4AM) has emerged as a viable strategy in recent years to enhance 3D printing performance. However, the amount of data required for model training and the lack of ability to infer AM process insights can be serious barriers for black-box learning methods. Due to the nature of low-volume fabrication of infinite product variety in AM, ML4AM also faces "small data, big tasks" challenges to learn heterogeneous point cloud data and control the quality of new designs. To address these challenges, this work establishes an impulse response formulation of layer-wise AM processes to relate design inputs with the deformed final products. To enable prescriptive learning from a small sample of printed parts with different 3D shapes, we develop a fabrication-aware input-output representation, where each product is constructed by a large amount of basic shap primitives. The impulse response model depicts how the 2D shape primitives (circular sectors, line segments, and corner segments) in each layer are stacked up to become final 3D shape primitives. A geometric quality of a new design can therefore be predicted through the construction of learned shape primitives. Essentially, the small-sample learning of printed products is transformed into a large-sample learning of printed shape primitives under the impulse response formulation of AM. This fabrication-aware formulation builds the foundation for applying well-established control theory to the intelligent quality control in AM. It not only provides theoretical underpinning and justification of our previous work, but also enable new opportunities in ML4AM. As an example, it leads to transfer function characterization of AM processes to uncover process insights. It also provides block-diagram representation of AM processes to design and optimize the control of AM quality.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Geometric and dimensional quality has long been essential to ensure product functionality and correct mechanical assemblies in complex engineering systems <ref type="bibr">(Walker and Srinivasan, 1994;</ref><ref type="bibr">Srinivasan, 1999)</ref>. As 3D printing (aka Additive Manufacturing: AM) technologies rapidly advance with broader applications in aerospace, automotive, medical industries, and beyond, intelligent Quality Control (QC) has become increasingly critical for cost-effective precision printing <ref type="bibr">(Huang et al., 2015;</ref><ref type="bibr">Colosimo et al., 2018;</ref><ref type="bibr">Huang et al., 2020)</ref>.</p><p>However, AM poses unique challenges to QC <ref type="bibr">(Colosimo et al., 2018)</ref>. Although it enables direct fabrication of products with complex geometries in a single production phase without tooling and fixturing, each phase actually consists of thousands of correlated steps forming and accumulating materials layer by layer. During printing, a multitude of factors such as materials, processing techniques, settings, and inter-layer interactions may cause printing defects. Physical modeling and simulation of complete layer-wise fabrication is still computationally prohibitive for timely prediction and QC operations <ref type="bibr">(Bourell et al., 2009;</ref><ref type="bibr">King et al., 2015)</ref>. Multiple iterations or trial builds drive up printing costs significantly.</p><p>Quality verification of AM-built products is also a highly non-trivial procedure. Established primarily for multi-stage subtractive manufacturing, standard quality verification methods often depend on features fabricated in the previous stages as datum references to verify the quality of those made later (e.g., distance or parallelism of plane feature relative to a datum). Since AM builds complex geometries in a layer-wise fashion, representation and verification of complex freeform surfaces demand AM-specific specification standards and tolerancing methods. This has been widely recognized by various international organizations and engineering communities as one of the top priorities to reduce the risk and cost of adopting rapid-growing AM technologies <ref type="bibr">(Ameta et al., 2015;</ref><ref type="bibr">Morse et al., 2018;</ref><ref type="bibr">Leach et al., 2019)</ref>.</p><p>Unlike scale-driven manufacturing, where operation expertise can be built up around a limited number of product families, AM aims at a versatile capability of making a theoretically infinite variety of products. Learning from similar cases or past experience finds difficulty in defining similarity, particularly for low-volume AM with frequent design changes and heterogeneous AM processes. Current QC operations are heavily dependent on human expertise and intervention.</p><p>Lately, Machine Learning for AM (ML4AM) has emerged as a viable strategy to enhance 3D printing performance <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Luan and Huang, 2017;</ref><ref type="bibr">Samie Tootooni et al., 2017;</ref><ref type="bibr">Khanzadeh et al., 2018;</ref><ref type="bibr">Sabbaghi and Huang, 2018;</ref><ref type="bibr">Sabbaghi et al., 2018;</ref><ref type="bibr">Tsung et al., 2018;</ref><ref type="bibr">de Souza Borges Ferreira et al., 2020;</ref><ref type="bibr">Huang et al., 2020;</ref><ref type="bibr">Wang et al., 2022)</ref>. General-purpose machine learning and analysis of 3D shapes have been extensively studied in computer vision for shape analysis. It focuses on shape classification, matching, deformation (e.g., facial expression change), and correspondence <ref type="bibr">(Montagnat et al., 2001;</ref><ref type="bibr">Zhang and Lu, 2004;</ref><ref type="bibr">Van Kaick et al., 2011)</ref>. However, purely geometric analysis without consideration of engineering mechanisms of shape generation limits the scope of applying general-purpose Machine Learning (ML) techniques to manufacturing. For example, deformation patterns of 3D printed products not only vary with shape, but also object size, due to thousands of correlated steps of layer formation and accumulation <ref type="bibr">(Huang et al., 2015;</ref><ref type="bibr">Jin et al., 2016;</ref><ref type="bibr">Huang et al., 2020)</ref>. Currently, establishing fabrication-aware representation and learning of manifold-valued shape data are open issues <ref type="bibr">(Bermano et al., 2017)</ref>. Progress in ML4AM has been made for specific tasks such as empirical and statistical modeling of AM processes <ref type="bibr">(Zhou et al., 2000;</ref><ref type="bibr">Tong et al., 2003;</ref><ref type="bibr">Campanelli et al., 2007;</ref><ref type="bibr">Tong et al., 2008)</ref>, sensing and inspection <ref type="bibr">(Tapia and Elwany, 2014;</ref><ref type="bibr">Everton et al., 2016;</ref><ref type="bibr">Samie Tootooni et al., 2017;</ref><ref type="bibr">Khanzadeh et al., 2018)</ref>, statistical shape analysis <ref type="bibr">(Colosimo et al., 2008;</ref><ref type="bibr">del Castillo and Colosimo, 2011;</ref><ref type="bibr">del Castillo et al., 2015)</ref>, monitoring and detection <ref type="bibr">(Grasso et al., 2018)</ref>.</p><p>Despite these advances in ML4AM, the large amount of data required for model training and the lack of model interpretability and scalability are serious barriers to the application of black-box learning methods to manufacturing. Product shape complexity, process complexity, and data heterogeneity in AM further complicate the QC efforts in AM.</p><p>Recent exciting interactions between model-driven control theory and data-driven ML are motivated both by methodological development and practical applications such as selfdriving cars and advanced robotics <ref type="bibr">(Pillonetto et al., 2014;</ref><ref type="bibr">Bensoussan et al., 2020)</ref>. Although this line of research provides a promising direction to achieve interpretability and principled design of ML methods, there is a lack of engineering-informed formulation of AM processes to enable model-driven ML4AM.</p><p>The current article reports on work to fill this gap by establishing an impulse response formulation of layer-wise AM processes. To enable prescriptive learning from a small sample of printed parts with different 3D shapes, we develop a fabrication-aware input-output representation, where each product is constructed by a large amount of basic shape primitives. The impulse response model depicts how the 2D shape primitives (circular sectors, line segments, and corner segments) in each layer are stacked up to become the final 3D shape primitives. The geometric quality of a new design can therefore be predicted through the construction of learned shape primitives. Essentially, the small-sample learning of printed products is transformed into a large-sample learning of printed shape primitives under the impulse response formulation of AM.</p><p>This impulse response formulation of AM processes provides a control-theoretic justification of our convolution modeling framework for AM <ref type="bibr">(Huang et al., 2020)</ref>, due to the convolution form being the solution of the impulse response system. By extending our prescriptive 2D freeform shape modeling approaches <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Luan and Huang, 2017)</ref>, this work provides, for the first time, a methodological framework suitable for 3D freeform shape quality prediction based on shape primitives generated under the impulse response formulation. Furthermore, this new control-theoretic formulation of AM builds the foundation for applying control theory to the intelligent QC. As an example, it leads to transfer function characterization of AM processes to uncover process insights. It also provides block-diagram representation of AM processes to design and optimize the control of AM quality.</p><p>Following the Introduction, Section 2 defines a set of open ML4AM problems for intelligent QC in AM. Section 3 establishes an impulse response formulation of layer-wise AM processes. Based on fabrication-aware representation of process input and output, impulse response functions are derived to characterize AM processes. Transfer functions and block diagrams are readily obtained to describe, design, and analyze AM process. Examples are presented to demonstrate the developed theories. Summary and conclusions are given in Section 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Problem definition for fabrication-aware ML and control in AM</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Problem definition</head><p>To achieve intelligent QC for precision 3D printing, we define three key categories of open problems where controltheoretic formulation and learning has the potential to significantly advance both fundamental understanding and computational AM research. Note that the problem definition below is far from being comprehensive. Other critical categories of problems are discussed in the end.</p><p>Let input u to a 3D printing process be the designed shape of a 3D object. The set of design shapes is denoted as U. The output y represents the shape quality or the surface deformation/deviation of the actual printed product from its intended design u. The set of shape deviations of u 2 U is denoted as Y U :</p><p>Learning Problem (LP): The learning objective is to establish functional mapping f : U ! Y U , that is, to generate a model f(u) to predict y by learning from a small set of training data D S &#188; f&#240;u, y u &#222;j&#240;u i , y u i &#222;, i &#188; 1, 2, ::, ng:</p><p>The function f is a curve for a 2D shape or a surface for a 3D shape. A product u to be predicted belongs to either source data D S or a validation set D V, i.e., u 2 D S [ D V and D S \ D V &#188; ;: Control Problem (CP): The control objective is to find input adjustment d u for design u 2 D S [ D V so that the modified design input u &#254; d&#240;u&#222; is expected to minimize the shape deformation y u&#254;d&#240;u&#222; in reference to the intended design u. Generalization Problem (GP): The generalization objective is to discover the structures of f(u) and d&#240;u&#222; and physical underpinnings so that the generation of f(u) and d&#240;u&#222;, that is, solving LP and CP problems for new product designs under new AM processes can be guided by principles.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Sub-problem definition with AM-specific constraints</head><p>The descriptions for LP, CP, and GP problems are relatively generic. As discussed in the Introduction, QC for AM faces issues of shape complexity, process complexity, data heterogeneity, and small data. To tackle LP, CP, and GP problems, we further define a set of sub-problems to accommodate AM-specific constraints:</p><p>Input and output representation (LP.1): A proper representation of &#240;u, y u &#222; should enable small-sample learning. Training data D S contains n products (e.g., n &lt; 10) in different shapes and sizes. In general, the 3D shape u of AM built products has infinite variety and the shape space is a manifold without natural linear structure. The output y u is a deviation of a product shape, not the shape itself. The pattern of y u depends both on u and specific AM processes.</p><p>Model f(u) generation and "1-to-1" learning (LP.2): Model f(u) is expected to predict product quality of infinite varieties by learning from small data D S . This "1to-1" learning problem prefers f(u) to be constructed with a limited number of building blocks, primitives or basis functions for robustness and flexibility. Model interpretability is another key consideration to ensure better understanding of physical systems. Optimal design compensation and optimality definition (CP.1): Optimal criteria for minimizing the shape deformation have to be defined with consideration of tolerance design and verification in AM. Optimal design compensation is to derive d &#195; u such that y u&#254;d &#195; u is minimized in reference to the nominal design u for a given criterion. Transfer function and system dynamics identification through learning (GP.1): Deriving the transfer function from f(u) will provide a compact description of AM processes and facilitate the understanding of physical process insights. Note that obtaining transfer functions independently for individual products will only result in a projected view of transfer functions in subspaces.</p><p>In the next section, we present a theoretical framework to address some critical issues related to these problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Impulse response formulation and learning for geometric quality prediction and control in AM</head><p>To enable model-driven learning and control for AM, we propose a control-theoretic framework which consists of: (i) fabrication-aware input and output representation; (ii) impulse response formulation and modeling of AM; (iii) ML for impulse response estimation; (iv) transfer function characterization of AM process dynamics; and (v) block diagram algebra for principled design and analysis of AM.</p><p>The schematic diagram of this new control-theoretic foundation is illustrated in Figure <ref type="figure">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Input and output representation (LP.1)</head><p>3.1.1. Review of shape and shape quality representation methods Representation of design input u involves mathematical description of 3D shapes. Depending on applications, various methods have been developed to describe 3D objects, for example, parametric surfaces, solids, or constructive solid geometry representations <ref type="bibr">(Bloomenthal, 1988;</ref><ref type="bibr">Snyder, 1992;</ref><ref type="bibr">Alliez et al., 2005;</ref><ref type="bibr">Bermano et al., 2017;</ref><ref type="bibr">Achlioptas et al., 2018)</ref> finite element meshes <ref type="bibr">(Ho-Le, 1988;</ref><ref type="bibr">Mori et al., 1996;</ref><ref type="bibr">Pal et al., 2014;</ref><ref type="bibr">King et al., 2015)</ref> for multi-physics analysis, slices in STL format and landmarks (del Castillo and <ref type="bibr">Colosimo, 2011;</ref><ref type="bibr">Alshraideh and Del Castillo, 2013;</ref><ref type="bibr">Dryden and Mardia, 2016;</ref><ref type="bibr">Khanzadeh et al., 2018)</ref>, point clouds <ref type="bibr">(Besl and McKay, 1992;</ref><ref type="bibr">Tam et al., 2013;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Yang et al., 2016;</ref><ref type="bibr">Samie Tootooni et al., 2017;</ref><ref type="bibr">Wang et al., 2017;</ref><ref type="bibr">Xu et al., 2017;</ref><ref type="bibr">Huang et al., 2020;</ref><ref type="bibr">McConaha and Anand, 2020)</ref>, or meshes <ref type="bibr">(Besl and McKay, 1992;</ref><ref type="bibr">Tam et al., 2013;</ref><ref type="bibr">Decker et al., 2021)</ref> for shape registration, inspection, and distortion control.</p><p>Representation of shape quality y u involves the description and measure of the deviations between a build product and its nominal design. Generally there are two strategies to represent output quality y u :</p><p>Extracting characteristic features or descriptors from a shape and measuring their deviations: The common features or descriptors include geometric and dimensional measures related to angular or distance metrics (e.g., parallelism, Euclidean, Hausdorff or geodesic distances) <ref type="bibr">(Ameta et al., 2015)</ref>; differential measures such as curvatures and surface roughness <ref type="bibr">(Savio et al., 2007)</ref>; and integral descriptors such as areas and volumes (e.g., volume shrinkage factor <ref type="bibr">(Hilton and Jacobs, 2000)</ref>. Describing full shape deviations/deformation for complex freeform surfaces: A finite number of descriptors is mathematically inadequate to represent complex shapes obtained by topological optimization in AM. Complete description of local surface deviations everywhere along product boundaries not only provides a comprehensive representation solution, but also enables full control access to any region on a product surface <ref type="bibr">(Huang et al., 2015;</ref><ref type="bibr">Huang, 2016;</ref><ref type="bibr">Huang et al., 2020)</ref>. Naturally this study adopts this strategy to represent complete shape deviations. Note that this strategy also facilitates comprehensive feature extraction and evaluation afterwards.</p><p>Though each representation method is powerful in its own right, little work has concurrently considered the proper representation of design input u and quality output y u for the purpose of small-sample learning, prediction, and control. Some limited attempts have been made towards this direction <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Jin et al., 2016;</ref><ref type="bibr">Luan and Huang, 2017;</ref><ref type="bibr">Wang et al., 2017;</ref><ref type="bibr">Cheng et al., 2018;</ref><ref type="bibr">Sabbaghi et al., 2018;</ref><ref type="bibr">Sabbaghi and Huang, 2018;</ref><ref type="bibr">Jin et al., 2019;</ref><ref type="bibr">de Souza Borges Ferreira et al., 2020;</ref><ref type="bibr">Huang et al., 2020)</ref>. Using input u, materials and process information, finite element representation and modeling in theory is able to predict quality y u with small sample data for parameter tuning and model validation. However, it is computationally costly <ref type="bibr">(Bugeda Miguel Cervera and Lombera, 1999;</ref><ref type="bibr">King et al., 2015)</ref> and it has been difficult to generalize the knowledge to new part geometries without extensive rounds of new simulations or new test builds.</p><p>To meet the goals defined in Section 2, we present input and output representation methods in the following two sub-sections.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.2.">Fabrication-aware input representation based on</head><p>constructive shape primitives To enable engineering-informed small-sample learning, we propose an input representation method based on the shape primitive concept, and establish a fabrication-aware formulation. Essentially, the small-sample learning of printed products is transformed into a large-sample learning of printed shape primitives.</p><p>Geometric (shape) primitives have been developed in computer graphics and CAD systems to construct 3D-shaped objects <ref type="bibr">(Bermano et al., 2017)</ref>. Geometric primitives are simple shaped such as sphere, cube, cylinder, or surface patches. In 2D computer graphics, primitives include segments of straight lines, circles and more complicated curves. The true input u to the AM processes, however, is not the smooth shape defined analytically, for example, a dome in dash line illustrated in Figure <ref type="figure">2</ref>(a), but rather discretized or sliced layers (Figure <ref type="figure">2</ref>(a)) and piecewise linear approximation of layer boundaries (Figure <ref type="figure">2(b)</ref>). Accuracy of the approximation is not only determined by computational modeling, but also by materials and processes. For example, resolution along the build direction (z) is determined by the layer thickness in Figure <ref type="figure">2(a)</ref>, whereas the resolution in the build plane (xy plane in Figure <ref type="figure">2(b)</ref>) or the minimum feature size is limited by materials properties and technologies such as the laser spot size or the pixel size of a digital light projector.</p><p>The input representation therefore entails the representation of individual layers and layer stackup. Borrowing geometric primitive concepts from computer graphics, we propose to use line segments, circular sectors, and corners as primitive shapes to construct individual layer boundaries or 2D shapes (Figure <ref type="figure">3(a)</ref>). Notice that the three 2D shape primitives have curvatures of zero, constant, and infinity, respectively. Comparing to line segments on the grids in Figure <ref type="figure">2</ref>(b), the choice of primitives will reduce computational load of approximation and assist in the interpretation of the deviation patterns. We therefore state the following accepted truth as the basis for the subsequent derivation:</p><p>Definition 1 (Primitive manufacturing input). A 3D object built in AM is based on primitive manufacturing inputs, that is, sliced layers to be stacked up and individual layers with boundaries composed by 2D shape primitives.</p><p>Essentially, the design input to AM machines is the sliced and discretized model (e.g., in STL format defined by the unit normal and vertices), as opposed to smooth CAD models. Also note that even though the sliced layers can be geometrically stacked up in the design input, the final print outcome is nonlinear, due to physical layer interactions and accumulation. Considering layer stackup in input/output representation is therefore critical to capture underlying physical mechanisms.</p><p>To conveniently represent shape deformation <ref type="bibr">(Huang et al., 2015;</ref><ref type="bibr">Huang, 2016)</ref>, we represent layers or 2D shapes in the Polar Coordinate System (PCS) and 3D shapes in the Spherical Coordinate System (SCS). The layer boundary is represented as piecewise segments through a circular approximation with selective cornering strategy developed in <ref type="bibr">Luan and Huang (2017)</ref>:</p><p>where in the interval &#189;h i , h i&#254;1 &#222;, r i &#240;h&#222; is either a line segment, circular sector, or a corner segment. Each segment consists of a set of points describing the primitive. When considering a layer indexed by j with height z j , input u is represented as</p><p>Purely from the geometric point of view, it is more convenient to adopt plane surface patches, spherical patches, and surface edges as 3D shape primitives to represent and construct 3D shapes. However, it is still an open issue to segment a 3D shape into 3D shape primitives for AM <ref type="bibr">(Wang et al., 2022)</ref>. In particular, prediction of the shape deformation in AM relies on a description of how products are fabricated. Since 3D shape primitives are constituents of a 3D shape, they are the results of primitive manufacturing inputs. We hence define 3D shape primitives for AM with the schematic plot shown in Figure <ref type="figure">3(b)</ref>.</p><p>Definition 2 (3D shape primitive). The 3D shape primitives, that is, plane surface patches, spherical patches, and surface edge, are the result of layer stackup with layer boundaries composed by 2D shape primitives.</p><p>In essence the definitions of primitive manufacturing input and 3D shape primitive intends to establish a fabrication-aware formulation that enables understanding of the deformation of 3D shape primitives. As such, deformation prediction of a freeform shape product can be achieved by predicting the deformation of the shape constructed by 3D shape primitives. A freeform 3D shape can be constructed as:</p><p>where r ij &#240;h, /&#222; is either a plane surface patch, spherical patch, or a surface edges.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.3.">Output representation based on transformation of point cloud data</head><p>By representing design shapes in the SCS <ref type="bibr">(Huang et al., 2015;</ref><ref type="bibr">Huang, 2016)</ref>, the output y u is the difference between the actual printed product r&#240;h, /&#222; and its intended design r 0 &#240;h, /&#222; :</p><p>And for individual layers or 2D shapes, y u is simply Dr&#240;h&#222;: Also note that quality y u is benchmarked by the nominal design, not the input u&#240;h, /&#222; to the fabrication process, though u&#240;h, /&#222; is a close approximation of design r 0 &#240;h, /&#222;: Representation of y u in the SCS or the PCS intends to decouple the shape complexity from deviation modeling and to identify systematic shape deformation patterns. Figure <ref type="figure">4</ref> illustrate the deviation curves of four flat disks with different sizes (left) <ref type="bibr">(Huang et al., 2015)</ref> and a deviation surface of a dome shape (right) <ref type="bibr">(Huang et al., 2020)</ref>. Figure <ref type="figure">5</ref> shows deviation curves of three square plates, two pentagon plates with different sizes (top panel) <ref type="bibr">(Huang et al., 2014)</ref>, and four thin walls in half-disk shapes. All products were printed in a stereolithography process (SLA) (similar patterns have been observed in other AM processes <ref type="bibr">(Wang et al., 2017;</ref><ref type="bibr">Cheng et al., 2018;</ref><ref type="bibr">Luan et al., 2019)</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Remark. The proposed input-output representation approaches reveal the following information:</head><p>Comparing with the scanned data in point cloud format, the output representation in the SCS and PCS uncovers deformation patterns for both 2D and 3D shapes. Deformation patterns vary with shapes and sizes (pls refer to additional example in <ref type="bibr">(Jin et al., 2016</ref><ref type="bibr">(Jin et al., , 2020))</ref>). Learning deformation patterns based on shapes is not suitable and efficient for small-sample learning. Being as constructive as shape primitives to shapes, the deformation of the proposed three shape primitives are distinctive, and can be utilized to learn and construct the deformation patterns of many different shapes with small training data. The deformation pattern of a 3D shape is not a simple linear summation or extension of the deformation patterns of its constructive layers. For example, the pattern of the dome in Figure <ref type="figure">4</ref> is not composed by simply stacking up the patterns of disks along the z-direction. But the deviation profile of a 3D shape at a given height / (i.e., a horizontal section) partially resembles the one of its 2D counterpart. It is particularly remarkable to see in Figure <ref type="figure">5</ref> that the horizontal section of the thin walls in half-disk shapes has a rectangular shape. At a given / (Figure <ref type="figure">5</ref>(c), right panel), the deformation pattern resembles the ones for square plates to a large degree (Figure <ref type="figure">5(a)</ref>). The connection between 2D and 3D shape deformation patterns implies that deformation models for 2D shapes should be special cases of those for 3D shapes. The 2D deviation models can be viewed as a projection of its 3D counterpart onto a subspace. The physical underpinning of projection relation is the nonlinear stackup of 2D layers into 3D shapes.</p><p>For complicated geometries, shape segmentation may be necessary to accurately represent shape deviations with deviation primitives. Shape segmentation has long been applied in 3D object recognition <ref type="bibr">(Besl and Jain, 1985;</ref><ref type="bibr">Besl and Jain, 1988)</ref>, engineering (V arady et al., 1997), and freeform surface metrology <ref type="bibr">(Savio et al., 2007)</ref>. It involves the process of dividing the original point set into subsets corresponding to natural surfaces. Segmentation for the purpose of deformation identification and modeling is worthy of further investigation. Little research has been reported.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Model f(u) generation and "1-to-'" learning (LP.2)</head><p>an impulse response formulation and modeling approach</p><p>The proposed input-output representation enables the modeling of a model primitive, that is, to construct f(u) with a small set of basis functions that characterize deformation patterns of shape primitives. Small-sample "1-to-1" learning therefore becomes feasible.</p><p>Definition 3 (2D model primitive). A 2D model primitive is defined as a functional model that predicts the deviation of a 2D shape primitive, which is either a circular sector, a line segment, or a corner.</p><p>Remark. Since a line segment can be viewed as a special case of a corner with one edge being zero, we only need two types of 2D model primitives for circular sectors and corners, denoted as function g 1 &#240;&#193;&#222; and g 2 &#240;&#193;&#222;, respectively.</p><p>Definition 4 (3D model primitive). A 3D model primitive is defined as a functional model that predicts the deviation of a 3D shape primitive, which is either spherical patch or a surface edge with the plane surface patches being a special case of the surface edge.</p><p>2D model primitives are connected with 3D model primitives through the definition of 3D shape primitives. The strategy to establish 3D model primitives is to model primitive manufacturing inputs, that is, 2D shape primitives that form the boundaries of layers and layer stackup. Therefore, 2D model primitives have to be established first.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1.">Impulse response modeling for 2D model primitives</head><p>Our previous work <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Luan and Huang, 2017)</ref> innovated the shape deviation primitive concept for data-driven modeling of 2D shape deviation. The input representation, particularly, primitive inputs to the fabrication process shown in Figure <ref type="figure">2</ref> inspires the impulse response modeling developed in this work.</p><p>Theorem 1 (Impulse response characterization of 2D model primitives). The 2D model primitive g f1, 2g &#240;h&#222; for a 2D primitive shape u&#240;h&#222; can be characterized by an impulse response function h f1, 2g &#240;h&#222; through a convolution formulation:</p><p>Proof. As shown in Figure <ref type="figure">3</ref>(a), a 2D shape primitive is a piecewise constant input, which can be represented as a sum of 1D step signals represented in the PCS with h being equivalent to the time variable t. Once this critical connection is established, the proof follows an excellent control reference along Figure <ref type="figure">6</ref> [in chapter 6 of &#197;str&#8364; om and Murray (2021)].</p><p>Let the input u(t) in Figure <ref type="figure">6</ref> represent a primitive angular input with t &#188; h: The model primitive g f1, 2g &#240;h&#222; represents the output or the deviation of the primitive shape. Let H f1, 2g &#240;h&#222; be the response to a unit step applied at h &#188; 0 and assume H f1, 2g &#240;0&#222; &#188; 0: The responses to a series of step inputs are , the derivative of the step response, is commonly known as the Impulse Response Function (IRF) in control theory.</p><p>w Based on the definition of 2D model primitives, we have IRFs h 1 &#240;h&#222; and h 2 &#240;h&#222; corresponding to g 1 &#240;h&#222; and g 2 &#240;h&#222; for circular sectors and corners, respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.2.">Impulse response modeling for 3D model primitives</head><p>We first postulated a convolution formulation of 3D shape generation in AM without proof <ref type="bibr">(Huang et al., 2020)</ref>. Based on the definition of the 3D shape primitive and Theorem 1, this work provides a theoretical justification of the shape deviation generator model established in <ref type="bibr">Huang et al., (2020)</ref>.</p><p>Theorem 2 (Impulse response characterization of 3D model primitives). The 3D model primitive for a 3D primitive shape u&#240;h, /&#222; can be characterized by a 2D impulse response function g&#240;h, /&#222; through a 2D convolution formulation:</p><p>Proof. As shown in Figure <ref type="figure">3</ref>(b) and Figure <ref type="figure">2</ref>(a), a 3D shape primitive can be viewed as an extension of a 1D piecewise constant input to the 2D case. In addition to the time variable s 1 &#188; h in the xy plan for 2D shape primitives, there is an additional time variable z or equivalently s 2 &#188; / along the z-direction to stack up 2D shape primitives at time s 2 . Since a 3D shape primitive is the result or output of stacking up 2D shape primitives, the true step input to a 3D primitive at time s 2 is therefore g f1, 2g &#240;h, s 2 &#222;, that is, the deviation of a 2D shape primitive (here we remove the nominal input of 2D shape primitives for simplification of notation). Let G f1, 2g &#240;h, s 2 &#222; be the response to the 2D unit step applied at s 2 &#188; 0 and further assume G f1, 2g &#240;h, 0&#222; &#188; 0: The responses to a series of 2D step inputs are G f1, 2g &#240;h &#192; h 0 , / &#192; / 0 &#222;g f1, 2g &#240;h 0 , / 0 &#222;, G f1, 2g &#240;h &#192; h 1 , / &#192; / 1 &#222;&#240;g f1, 2g &#240;h 1 , / 1 &#222; &#192; g f1, 2g &#240;h 0 , / 0 &#222;&#222;, and so on. Following the same procedure, but working in the 2D time space s 1 , s 2 , we will have the output or the 3D model primitive as</p><p>@h, @/ , the partial derivative of the 2D step response, or the 2D IRF. Denoting this 2D convolution integral as &#240;g f1, 2g &#195; g f1, 2g &#222;&#240;h, /&#222;, we have the proof for Theorem 2.</p><p>w Remark. As we pointed out in <ref type="bibr">Huang et al. (2020)</ref>, if we only print a single layer of the 3D primitive shape, the IRF g f1, 2g &#240;h, /&#222; is degenerated to a Dirac's delta function d&#240;h, z % 0&#222;: Then</p><p>which is the 2D model primitive in (5). Clearly, Theorem 2 is an extension of Theorem 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.3.">Model construction and "1-to-1" learning based on</head><p>model primitives Theorems 1 and 2 establish a fabrication-aware, control-theoretic formulation of model building blocks that can be learned from a small training sample D S . Furthermore, the two theorems enable model construction to predict the quality of freeform shapes in theory. In this work we use simple examples to show the feasibility and potential of applying the two theorems. Certainly, significant efforts are needed to achieve ultimate "1-to-1" learning for complex 3D freeform shapes.</p><p>a. "1-to-1" learning to predict deformation of 2D freeform shapes: We have achieved data-driven "1-to-1" learning to predict deformation of 2D freeform shapes <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Luan and Huang, 2017;</ref><ref type="bibr">Wang et al., 2017;</ref><ref type="bibr">de Souza Borges Ferreira et al., 2020)</ref>. By taking a fresh look under the control-theoretic formulation, we intend to discover not only the process dynamics, but also principles for generalization.</p><p>Corollary 2.1 (Deformation model for 2D freeform shapes).</p><p>Based on Theorem 1, (5), and (1), the deformation of a freeform 2D shape or layer can be derived as y&#240;u&#240;h&#222;&#222; &#188; f &#240;u&#240;h&#222;&#222; &#254; with f &#240;u&#240;h&#222;&#222;:</p><p>where 1 c &#240;r i &#240;h&#222;&#222; &#188; 1 if r i &#240;h&#222; is a circular sector and zero otherwise. Notation g f1, 2g &#240;h, r i &#240;h&#222;&#222; specifies that the model primitive g f1, 2g &#240;h&#222; has shape primitive r i &#240;h&#222; as input. The error term can be noise or can impose a correlation structure to capture the interaction among neighboring shape primitives, depending on AM processes.</p><p>However, modeling and computation can be complicated and inefficient when the number of shape primitives I is large. One improvement of model ( <ref type="formula">7</ref>) is provided.  Corollary 2.2 (Cookie-cutter modeling for 2D freeform shapes). The deformation model f &#240;u&#240;h&#222;&#222; for 2D freeform shapes in (7) can be well approximated as f &#240;u&#240;h&#222;&#222; &#188;</p><p>where ri &#240;h&#222; is the smallest circular sector that covers a line segment or a corner (Figure <ref type="figure">7</ref>(a)).</p><p>Proof. We can find a smallest circular sector ri &#240;h&#222; to approximate each shape primitive r i &#240;h&#222;: Apparently, r i &#240;h&#222; &#192; ri &#240;h&#222; &#188; 0 if r i &#240;h&#222;&#222; is a circular sector. Then (7) can be rewritten as:</p><p>g 2 &#240;h, r i &#240;h&#222;&#222; &#192; g 1 &#240;h, ri &#240;h&#222;&#222; &#189; When r i &#240;h&#222;&#222; &#192; ri &#240;h&#222; 6 &#188; 0, as shown in Figure <ref type="figure">7</ref>(b), the shape of r i &#240;h&#222;&#222; &#192; ri &#240;h&#222; can still be approximated by a corner or a line segment with a higher-order approximation error. Therefore, g 2 &#240;h, r i &#240;h&#222;&#222; &#192; g 1 &#240;h, ri &#240;h&#222;&#222; % g 2 &#240;h, r i &#240;h&#222; &#192; ri &#240;h&#222;&#222;: When r i &#240;h&#222; &#192; ri &#240;h&#222; &#188; 0, clearly g 2 &#240;h, r i &#240;h&#222; &#192; ri &#240;h&#222;&#222; &#188; 0, so we can drop the indicator &#240;1 &#192; 1 c &#240;r i &#240;h&#222;&#222;&#222; and obtain (8). w</p><p>Remark. This revised model ( <ref type="formula">8</ref>) essentially treats a 2D shape as being carved out from a circular disk or segments of circular disks using cookie-cutters. In <ref type="bibr">Huang et al. (2014)</ref> we empirically established the so-called "cookie-cutter" modeling framework. Corollary 2.2 provides a theoretical justification and opportunity to further enhance the model identification.</p><p>Learning 2D model primitives can now be achieved by a small training sample consisting of disks and polygon shapes with different sizes. From our study of different AM processes <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Wang et al., 2017;</ref><ref type="bibr">Cheng et al., 2018;</ref><ref type="bibr">Luan et al., 2019)</ref>), g 1 &#240;h, ri &#240;h&#222;&#222; for a circular sector can be well approximated by low-order Fourier bases:</p><p>For example, four disks (Figure <ref type="figure">4</ref>, left panel) printed in a SLA process can be well modeled by g 1 &#240;h, r&#222; &#188; &#192;0:0134&#240;r &#254; 0:0088&#222; 0:86 &#254; 0:0057&#240;r &#254; 0:0088&#222; 1:13 cos &#240;2h&#222; with r being the disk radius <ref type="bibr">(Huang et al., 2015)</ref>. This datadriven model provides a complete description of circular sectors at different location h. Candidate choice of g 2 &#240;h, r i &#240;h&#222; &#192; ri &#240;h&#222;&#222; is proposed in <ref type="bibr">Huang et al. (2014)</ref>, for example, for three square plates (Figure <ref type="figure">5</ref>(a)), which can be a square wave function: g 2 &#240;h, r&#240;h&#222;&#222; &#188; b&#240;r&#240;h&#222;&#222; sign cos &#240;n&#240;h &#192; / 0 &#222;=2&#222; &#189; or a sawtooth wave function:</p><p>where n represents the number of polygon sides, the MOD function obtains remainders, and / 0 is the phase variable. Apparently if a segment of a 2D shape boundary can be approximated by a circular sector, or a corner of an n-sided polygon (including a line segment), the corresponding model primitive can be utilized for prediction. This deviation primitive concept was first postulated in <ref type="bibr">Luan and Huang (2017)</ref> through a unified data-driven model to predict deformation of 2D freeform shapes. Now model ( <ref type="formula">8</ref>) essentially provides a theoretical justification and modeldriven formulation.</p><p>a. "1-to-1" learning to predict deformation of 3D shapes: "1-to-1" learning for 3D freeform shapes remains an open issue, due to the lack of fabricationaware modeling and learning theories <ref type="bibr">(Huang et al., 2020)</ref>. Theorem 2 has shown that the deviation of a spherical patch on a 3D shape can be modeled as &#240;g 1 &#195; g 1 &#222;&#240;h, /&#222; and the deviation of a surface edge (including the plane surface patch) can be modeled as &#240;g 2 &#195; g 2 &#222;&#240;h, /&#222;: With a 3D shape defined in (3), the deformation of a freeform 3D shape is provided by the following corollary.</p><p>Corollary 2.3 (Cookie-cutter modeling for 3D freeform shapes).</p><p>y&#240;u&#240;h, /&#222;&#222; &#188; </p><p>where ri &#240;h, /&#222; is the smallest spherical patch that covers a plane surface patch or a surface edge.</p><p>The proof of this corollary is omitted because it is extension from the 2D case presented in Corollary 2.1 and 2.2.</p><p>In <ref type="bibr">Huang et al. (2020)</ref> we studied the dome shapes (Figure <ref type="figure">4</ref>, right panel) and first proposed a convolution formulation of AM processes. The model takes the form of: y&#240;h, /, r&#222; &#188; a&#240;r&#222;</p><p>where</p><p>are found suitable for the studied SLA process (pls refer to <ref type="bibr">Huang et al. (2020)</ref> for detailed modeling and model estimation).</p><p>Apparently the model for dome shapes in ( <ref type="formula">12</ref>) is a special case of the model in <ref type="bibr">(11)</ref>. It provides meaningful understanding of the deformation of spherical patches. Further modeling and "1-to-1" learning based on the generalized model (11) will make the quality prediction of 3D freeform shapes feasible with small training data and cost-effective experimentation.</p><p>Remark. Our initial data-driven "1-to-1" modeling and learning <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Luan and Huang, 2017;</ref><ref type="bibr">Wang et al., 2017;</ref><ref type="bibr">de Souza Borges Ferreira et al., 2020;</ref><ref type="bibr">Huang et al., 2020)</ref> is consistent with the theoretic framework established in this study. The control-theoretic framework enables the exciting and more powerful model-based ML for example, impulse response estimation through kernel methods in system identification and machine learning <ref type="bibr">(Pillonetto et al., 2014)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">AM process representation and dynamics analysis</head><p>using transfer functions and block diagrams (GP.1)</p><p>Transfer functions and block diagrams are powerful tools in control theory to design, learn, identify, and analyze system dynamics. Comparing with data-driven models <ref type="bibr">(Huang et al., 2014;</ref><ref type="bibr">Huang et al., 2015;</ref><ref type="bibr">Luan and Huang, 2017;</ref><ref type="bibr">Wang et al., 2017;</ref><ref type="bibr">de Souza Borges Ferreira et al., 2020;</ref><ref type="bibr">Huang et al., 2020)</ref>, the control-theoretic framework established in the study allows the utilization of transfer functions to find new interpretation of AM processes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.1.">Transfer function characterization of AM process dynamics</head><p>The double Laplace transform of a 2D f is denoted as L 2 &#189;f : By the property of the Laplace transform of a convolution, i.e., L&#189;f &#195; g &#188; F&#240;s&#222;G&#240;s&#222;, the prediction model in (8) for 2D shapes and prediction model in (11) for 3D shapes can be transformed as</p><p>where &#374; represents the prediction without considering the error terms.</p><p>Remark. Clearly, the input/output dynamics of the AM processes can be captured by transfer functions H 1 &#240;s&#222; and H 2 &#240;s&#222; for printing 2D shapes (plates), and by transfer functions <ref type="figure"/>and<ref type="figure">G</ref> 2 &#240;s 1 , s 2 &#222; for printing 3D shapes. Identification of transfer functions for AM processes and systems is therefore a critical area that can enable principled design, control, and generalization of process knowledge.</p><p>There are generally two strategies to identify transfer functions. Data-driven system identification and modelbased machine learning <ref type="bibr">(Pillonetto et al., 2014)</ref>. There is no reported research for AM quality control in this regard.</p><p>Here we present an example of a data-driven method to identify transfer functions when printing 2D shapes. For the SLA process that printed the four disks (Figure <ref type="figure">4</ref>, left panel) we obtained g 1 &#240;h, r&#222; &#188; &#192;0:0134&#240;r &#254; 0:0088&#222; 0:86 &#254; 0:0057&#240;r&#254; 0:0088&#222; 1:13 cos &#240;2h&#222; <ref type="bibr">(Huang et al., 2015)</ref>. By the Laplace transform of (5), we have L 1 &#189;g f1, 2g &#188; H f1, 2g &#240;s&#222;U&#240;s&#222;: As to the true input u&#240;h&#222; to the SLA process of study, as we pointed out in <ref type="bibr">Huang et al. (2015)</ref>, it is not the nominal design r, but rather u&#240;h&#222; &#188; &#240;r &#254; 0:0088&#222; due to the effect of over-exposure.</p><p>Since the input to printing disks is r, then H 1 &#240;s&#222; can be obtained as</p><p>Apparently, the radius/size of the disk has an impact on the process dynamics that causes the deformation of the disk. The transfer function also indicates that the SLA process needs improvement in two aspects: tuning the process to be independent of size (dimensionless), and to be close to zero gain.</p><p>Following the same procedure, we can also obtain H 2 &#240;s&#222; by Laplace transform of the square wave function or sawtooth function. For example, by expressing the square wave function in term of Heaviside's function, the H 2 &#240;s&#222; for the SLA process of study is</p><p>and H 2 &#240;s&#222; is</p><p>for the sawtooth wave function.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.2.">Block diagram representation of AM processes</head><p>The transfer function expression of AM processes in ( <ref type="formula">13</ref>) and ( <ref type="formula">14</ref>) can be conveniently represented in block diagrams. Figure <ref type="figure">8</ref>(a) and (b) shows the block diagrams for AM processes to print 2D and 3D shapes, respectively. With the obtained transfer functions, the system dynamics can be analyzed and simulated with, e.g., Matlab Simulink.</p><p>Another important application of the block diagram algebra for AM is to represent, design, and analyze feedback control systems (Figure <ref type="figure">8</ref>(c) and (d)). Since most AM machines adopt standard settings for different materials and designs, a common feedback control strategy is to change the design if errors occur in the manufacturing <ref type="bibr">(Huang et al., 2015;</ref><ref type="bibr">Huang, 2016)</ref>, as opposed to changing process settings. Following the block diagram algebra for feedback control, we first define the equivalent transfer functions for 2D and 3D printing in Figure <ref type="figure">8</ref>(a) and (b) as:</p><p>Let d&#240;s&#222; represent the feedback adjustment. From the block diagram algebra, we know d&#240;s&#222; &#188; &#192;Y&#240;s&#222;B f1, 2g &#240;s&#222;: Our previous work <ref type="bibr">(Huang, 2016)</ref> has shown that</p><p>where f(u) is given in either (8) or ( <ref type="formula">11</ref>). (Examples of d &#195; &#240;u&#222; can be found in <ref type="bibr">Huang (2016)</ref>.</p><p>Through the Laplace transform, we have d &#195; &#240;s&#222; &#188; L&#189;d &#195; &#240;u&#222;: For system robustness, we replace Y(s) with F(s). Then the transfer function for feedback adjustment is</p><p>With this design, the transfer function of the feedback control system is</p><p>The predicted process response after feedback control is L &#192;1 &#189;G fb u: System robustness and stability can be analyzed through powerful tools in control theory (e.g., Nyquist's criterion).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Summary and conclusion</head><p>By establishing a fabrication-aware, impulse response formulation and modeling framework, this work attempts to bridge exciting research at the intersection of ML, control theory, and 3D printing. Though data-driven ML models have achieved notable progress in AM, this establish theoretical foundation enables model-driven machine learning which provides not only guided model formulation, but also new perspectives and insights into process dynamics. The well-established control theory can thus be readily applied to AM and advance intelligent QC in AM.</p><p>This control-theoretic framework is built upon the primitives AM inputs, that is, sliced layers to be stacked up and individual layers with boundaries composed by 2D shape primitives. Two theorems are developed to characterize AM processes using impulse response functions. AM process models in convolution formulation are then derived based on the theorems. Transfer function theory and block diagram algebra are then applied to AM process representation, design, and analysis. Examples from SLA processes are given to demonstrate the proposed control-theoretic framework, including design and analysis of feedback control of AM processes.</p><p>There are many other critical categories of ML4AM problems. These open problems include, but not limited to verification problem (VP) that aims to to define, measure, characterize, evaluate, and verify the quality of 3D printed products; detection and diagnosis problem (DDP) with goals to detect process changes and identify root causes in AM; model adaptation and transfer learning (DTL) problem that aims to quickly generate new models for new AM processes or process conditions; and optimal design for system identification (ODSI) that aims to design an optimal set of training data set that maximize the system identification, etc.</p><p>Further research is imperative to advance the control-theoretic foundation and computational research for intelligent AM.</p></div></body>
		</text>
</TEI>
