
2.2 Bayesian Optimization
BO is an iterative strategy for the optimization of black-
box and expensive-to-evaluate functions, often under per-
formance constraints. In a general optimization problem,
the objective function f(x) and constraint function c(x)
are modeled by Gaussian process (GP) regression trained
with data. The GP models can produce predictions of
the functions (with the corresponding uncertainties) away
from the training data points. In BO, the GP model
predictions and uncertainty are used to select the input x∗
at which to conduct the next evaluation. The evaluation
results f(x∗) and c(x∗) are added to the available data set
and the next optimization iteration takes place. The func-
tion returning the most valuable xto test depending on the
already available data and models is called an acquisition
function. Numerous acquisition functions are presented in
the BO literature (Hern´andez-Lobato et al., 2016; Garrido-
Merch´an and Hern´andez-Lobato, 2019; Gardner et al.,
2014). BO has been successfully used in numerous applica-
tions, such as manufacturing (Maier et al., 2020; Guidetti
et al., 2021) or control under safety constraints (Khosravi
et al., 2022). In this work, we use the BO algorithm studied
in (Guidetti et al., 2022), that was specifically designed
for the configuration of advanced manufacturing processes
such as FFF.
2.3 Material
The feedstock material we use in this work is LCP,
which has been presented in (Gantenbein et al., 2018)
and is currently used for high-end applications by Ne-
matX AG 1. LCPs are composed of aromatic thermotropic
polyesters. When heated above their melting temperature,
these polyesters self-assemble into nematic domains (i.e.
the molecules have their long axes arranged in parallel).
In this spontaneous configuration, however, each coherent
domain is oriented in a different and random direction,
and no global molecular arrangement in the material is
present. Extruding the material through a heated nozzle –
the typical deposition method in FFF – has been shown to
produce global alignment: the deformations and forces cre-
ated by the extrusion process reorient the nematic domains
in the extrusion direction. Upon exit from the nozzle,
the aligned nematic domains are frozen in place by the
rapid cooling caused by exposure to ambient temperature.
After printing, the monomers are thus aligned in the axial
direction of the deposited filament.
3. PROBLEM STATEMENT
The monomer alignment achieved in LCP FFF produces
extraordinary mechanical properties, comparable to tradi-
tional but more complex fiber-reinforced materials. How-
ever, LCP is very sensitive to the parameters of the FFF
deposition process. Studying similar polymers, it has been
shown that, during the deposition of adjacent material
lines, contact between an existing line and the nozzle
printing the next line causes drag and subsequent mis-
alignment in the previously deposited monomers (Siqueira
et al., 2017). Clearly, reducing the fraction of aligned
1https://nematx.ch
monomers lowers the mechanical performance of manu-
factured components. This effect has been shown exper-
imentally to exist in LCP printing. For example, in the
case of over-extrusion, the excess of deposited material is
unable to achieve proper monomer alignment and disturbs
the alignment of existing lines in a similar fashion to nozzle
contact. Conversely, in the event of under-extrusion, the
monomer alignment is not impacted, but the amount of
deposited material is lower than what would be necessary
to solidly fill the part, making the mechanical properties
sub-optimal.
Thus, the print quality – which can be quantified by layer
inspection to detect over- or under-extrusion – affects
the performance of printed components. In this work,
we propose to optimize the FFF of LCPs while using
surface roughness as an easy-to-measure in situ proxy for
mechanical performance. The contributions of this work
are
(1) the validation of an in situ method for surface quality
evaluation using a laser distance sensor,
(2) a study on the correlation between in situ measured
print quality and mechanical properties assessed via
destructive testing, and
(3) the successful application of a sample-efficient opti-
mization algorithm to the FFF of LCPs.
4. METHODS
4.1 Surface Quality Evaluation
To evaluate the quality of the material deposition pro-
cess, we propose to analyze the surface of each deposited
layer while printing. We have modified a printer head to
accommodate a compact laser triangulation sensor. The
sensor returns the distance between the printer head and
the point directly below it. When moving the printer head
horizontally (i.e. in a plane parallel to the print bed), the
sensor readings can be used to reconstruct the entire profile
of the scanned surface (see e.g. Balta et al. (2021)). In Alg.
1 we detail the steps required to produce an in situ layer-
by-layer scan of a part made of Nlayers.
Algorithm 1: In Situ Layers Surface Scanning
for k←1to Ndo
Deposit layer k;
Lift the printer head;
Begin recording laser sensor measurements;
Move the printer head horizontally and
perpendicularly to the print lines, to pass over
one complete section of layer kat constant
traveling speed;
End recording and save data from layer k;
end
For each layer, we obtain a sequence of distance measure-
ments associated with the position of the printer head.
This data can be processed to draw an elevation profile of
the layer section (cf. Sec. 5.1) or to compute a quantitative
evaluation of the layer surface roughness.
We use the ISO 4287 profile parameter Ra to quantify the
roughness of a profile. This is a commonly used texture
parameter (Townsend et al., 2016) and is calculated as