1. Introduction
The production of plastic parts by means of fused filament fabrication (FFF) is on its way to becoming established for mass production [
1]. The major advantage of mass-produced products from FFF over conventional manufacturing is the greater variability and individuality of the products as well as lower cost for smaller production quantities [
1,
2]. Furthermore, FFF is an inexpensive and widely used additive manufacturing process [
3]. In FFF, a polymer is heated until it reaches a semi-fluid state. Then it is squeezed out of a nozzle, cools down, and becomes solid shortly after. In this way, products are created layer by layer with a 3D printer. The process depends on print parameters that determine, among other things, the number and properties of the layers, speeds, and temperatures. In order to be able to use the FFF process economically in mass production, the machine costs and personnel costs must be reduced [
4] as well as the uncertainty in the product quality such as aesthetics, dimensional accuracy, and mechanical properties [
5]. Research is conducted to control the uncertainty by using simulations of the whole printing process [
6] and by optimizing the printing parameters [
7] among others [
5]. Three-dimensional printing is a complex process with a minimum of 75 printing parameters and more to be optimized simultaneously. Physically informed machine learning (PIML) combines machine learning using data and physical knowledge in the form of models or constraints to reduce errors of machine learning and physical models [
8,
9]. PIML has shown promising results in high-dimensional contexts [
9]. Through integration of mathematical physics models into machine learning fewer data are needed for the training of the neural network [
10].
The method developed in this paper differs from the literature mentioned above by deriving empirical models from domain knowledge (DK), which can be in the form of research results or other sources. These models are then combined with data collected from 3D printers. System reliability is ensured by individually optimizing the input parameters for each 3D printer, paying attention to the disturbance variables.
The summarized contributions of this paper are as follows:
Development of a new method using physics-informed machine learning to optimize system reliability in additive manufacturing.
Reliability optimization is implemented by using neural networks to predict the system responses and an optimization algorithm with respect to system specific boundary conditions.
System behavior of 3D printers is quantified by unsupervised machine learning and is used for predictions of system responses for the knowledge transfer.
The new method is designed to be used for a number of 3D printers in an industrial environment in continuous operation and to provide calculation proposals for input parameters in real time.
4. Method Transfer
The developed method is designed to ensure the system reliability in operating 3D printers used for mass production. In this case, disturbance variables, materials, and optimization targets are constantly changing, while in an industrial environment, high demands on quality are placed [
24]. In the context of this work, print defects in additive manufacturing mean that the printing process must be canceled, mechanical properties are not met, dimensional accuracy could not be kept, or optical defects are present in the 3D-printed product [
1]. Due to these print defects, the printed parts must be reprinted.
The influence of a single parameter on an outcome is called the total effect. The total effect consists of interaction effects and the main effect. The main effect is the influence of the parameter, which depends only on the parameter itself. Interaction effects are also dependent on other parameters. The order of an interaction effect indicates how many other parameters are involved.
In practice, there are guidelines (manufacturer´s instructions) to avoid print defects by changing printing parameters. One larger collection of print defects by Richter [
25] names more than 200 total effects of 18 input parameters on 40 print defects while mechanical properties as print defects are not considered. All of these total effects are documented to be monotonic, and the general direction of the changing outcomes of the effects is claimed to be applicable to all FFF 3D printers, regardless of the printing material and printer design. According to Richter, some geometric features seem to have effects on print defects.
Scientific literature also names interaction effects [
26] and non-monotonic effects [
27] for 3D printers. The summarized results of those studies show that the avoidance of print defects could lead to opposing goals, such as surface roughness and dimensional accuracy, i.e., [
26]. In consequence, the reliable operation of 3D printers is a complex task, as in the best case, all effects must be known in order to counteract print defects and to ensure high-quality parts.
As there are presumably more than 200 total effects on more than 40 print defects, an intelligent, automated process must be developed to adjust the print parameters just in time. This should enable the printing system to perform more efficiently concerning time and costs than is the case so far, and ultimately ensures the system reliability. The effects may be non-monotonic, so a simple linear regression is insufficient. Interaction effects make statistical investigation labor-intensive, as rapid screening methods are not sufficient, as they can only be used to determine total effects. The method developed and explained in the previous sections highly encourages knowledge transfer among systems, which is convenient given that the effects are comparable among 3D printers. By using an optimization algorithm, it is ensured that opposing goals could be weighted and individually adjusted to the printed part. The results of the method transfer to 3D-printing are shown in the following.
4.1. Application and Results
To apply the developed method on FFF 3D printers, the general system must be defined. Three-dimensional printers are considered individual systems, and with a substantial change of the 3D printer, a new system is formed. This can be a modification such as a changed print bed or print nozzle. Each system requires printing parameters, printer parameters, and disturbance variables to produce the outcomes . Print parameters are controllable parameters for the print, which can be optimized. Disturbance variables contain all parameters that can be measured or determined, such as ambient temperature or print time since the last maintenance, e.g., printer parameters are specific for the printer, such as, for example, the printer model or the nozzle diameter. Product parameters are, for example, geometric features of the printed product, such as the maximum overhang angle and the contact surface of the product on the print bed. The outcome contains all print defects and some other metrics, such as production time and used material for the final product. Overall, 75 printing parameters, 4 disturbance variables, 8 printer parameters, 9 product parameters, 40 print defects, and 4 print metrics are recorded for each observation of a print process.
The possible occurrence of certain printing defects related to geometry can be derived from the product parameters of the printed product. Combined with known customer requirements, the required outcome of a successful print and the optimization criterion can be created. This criterion is used for the optimization to find print parameters for a successful print and thus a reliable operation of the printer.
4.2. Use of Domain Knowledge (DK)
This paper addresses a well-known and crucial problem, i.e., the print bed adhesion [
21], to show the method transfer exemplarily. If the print bed adhesion could be controlled, the printed part can be easily detached from the print bed after the print. This is crucial in order to enable an automation of the printing process and to make this technology more available for mass production.
Following the general initialization process explained in
Section 2.4, DK must be defined based on scientific research on the subject. This is performed via various measurements and datasets of the print bed adhesion taken from scientific literature. Two publications suitable for this application are particularly noteworthy. The first publication is written by Kujawa [
28], who investigated the influence of the first layer print parameters on the print bed adhesion. The second publication is written by Spoerk et al. [
27], who optimized the print bed adhesion by varying print parameters. The problem with using literature data is that not all print parameters and disturbance variables are known for these measurements, so no complete observations (see
Figure 7) can be created. In the next paragraphs it will be explained how DK can still be taught to neural networks.
In the first publication, by Kujawa [
28], only total effects were measured in a one-factor-at-a-time design of experiments. Measurements were repeated, and usable data are given in the publication. To use the data in the developed method, synthetic observations are created from the data. This is achieved using linear interpolation between the measurements. See
Figure 8a for a graphical representation.
In the second publication, by Spoerk et al. [
27], linear main effects and interaction effects were calculated for three print parameters in a full-factorial design of experiment. In a second step, the printer bed temperature was singularly investigated from 20 °C to 80 °C in steps of 10 °Celsius. For the pretraining of the ANN used in the proposed method, these two designs of experiments are combined using superposition, as can be see in
Figure 8b.
The authors of both publications have chosen parameters that are expected to have the biggest effects on the printer bed adhesion. Not-investigated effects, which are to be expected, should be equal to or smaller than the investigated effects. ANNs learn about important effects with DK, resulting in fewer experimental data needed until ANNs are successfully trained [
29].
In order to train the first neuronal net
using DK, the behavioral vector
must be set, which is a binary representation of the system number. In this case, it is a vector of the length 1 with values 0 and 1. Synthetic data generation and initialization is carried out as described. Afterwards, FFF 3D printers are used and the observations should be documented in the format shown in
Figure 5 in
Section 4.1. The observations can then be used to update
based on DK to
. Suggestions for print parameters can be generated using a simple gradient-based optimization algorithm with the predictions from
, as described in
Section 3.1 and
Figure 4.
4.3. Critical Discussion
The aim of the proposed method is to ensure system reliability in operating 3D printers. Thus, systematic errors are avoided by suggesting optimal parameters. A reliable operation is strongly dependent on the suggested parameters and, as a result, strongly dependent on the accuracy of the underlying prediction. With this in mind, the accuracy of the prediction can be used as an indicator for system reliability.
There are also other approaches to ensure the reliable operation of 3D printers. These approaches are the intuitive and the statistical approach that are discussed in the following. In an intuitive or popular approach, which is widely used in the non-scientific literature, the print parameters are only changed when print defects occur. Working print parameters are stored for different materials, conditions, and 3D printers. In this approach, the total effects are used only qualitatively, although most parameters have effects on multiple defects. The result is a trial-and-error analysis that can lead to long setup times due to various print defects, since different print defects can occur after each step [
25].
With the newly developed method, setup times should be shortened, because if working as intended, all print defects should be predicted and avoided simultaneously. On the contrary, for the intuitive approach only the total effects are known qualitatively, which gives only an indication of how to adjust print parameters to avoid individual print defects. A reliable operation cannot be ensured, since the known global total effect could be locally incorrect. With the developed method, on the contrary, the print parameters can be adjusted before print defects occur.
In direct comparison of the proposed method with the widely used manual prevention of print defects, the proposed method has the potential to save setup time, to automatically avoid print defects, to ensure the reliability of the printing process, and thus improve the time and cost efficiency of the printing process.
Currently, one disadvantage of the newly developed method is certainly the initialization and updating process. However, since this initialization phase only needs to be performed once, the overall result could be a more efficient and reliable process that ensures the possibility of automating 3D printing in the future.
For example, a DNN can be combined with LHS to predict print defects using statistics. The statistical study of a 3D printer is lengthy but possible, even with more than 90 input parameters and more than 40 output parameters. In comparison, the proposed method uses previously published observations and further DK to predict print defects of a single 3D printer with fewer observations. In a statistical approach, a study is conducted at a particular time and under particular conditions. Any deviation from these conditions can lead to inaccurate predictions and thus a decrease in reliability. This can only be avoided by further investigation or by transferring knowledge from a single 3D printer to all other 3D printers and printing materials. Knowledge transfer could be an essential part of the proposed method and is achieved by creating a behavioral vector from the observations of one 3D printer. This vector is used to make predictions for all 3D printers using the same neural network. As conditions change, the behavior of the 3D printer changes and the behavioral vector could be adjusted by the neural network. Thus, compared to a statistical approach, the proposed method requires fewer observations and no manual statistical analysis is required to transfer knowledge. Another advantage is that no retraining is required to derive new predictions from new observations. As a result, the reliability of 3D printing is increased because real-time knowledge transfer allows real-time response to changing conditions. As it is summarized in
Table 1.
Other approaches of mitigating print defects exist as well, such as closed-loop control [
5] or ANN-based optimizing of process parameters [
8,
10]. These approaches have in common that they are supposed to eliminate certain or only a few defects at the same time. While these approaches might be better used to eliminate individual defects, it is unclear how these systems work together to eliminate all print defects. FFF 3D printers have a large number of parameters that influence numerous defects. The presented method aims to avoid all defects at the same time by only setting print parameters. Therefore, not all problems could be solved by the proposed method, such as mechanical problems, but it could be combined with other approaches as the 3D printers are not altered in any way.
4.4. Case Study
A case study is conducted to show the effectiveness of the proposed method. On four identical and unmodified Prusa i3 MK3s, 3D printers in a temperature- and humidity-controlled room without direct sunlight, 1273 print bed adhesion measurements are taken. Prior to printing, the print beds are cleaned using an alcohol-based solvent and a fresh paper towel every day, and each printer used one black PLA filament coil from Verbatim for all prints. For the measurements, a basic geometry is printed because our focus lies on print bed adhesion. The print bed is left to cool down to 35 °C after printing and the printed test cubes with an edge length of 10 mm are slowly pulled horizontally from the print bed using a pull arm with a worm gear driven by a stepper motor. The resulting force is recorded at 48 KHz and the maximum value is noted.
These measurements are part of an LHS experimental design, which includes 400 experiments; each comprises a minimum of three measurements, resulting in a total of 1273 print bed adhesion measurements. Within the design of experiments, 75 print parameters are varied and the print bed adhesion is recorded. Parameters which directly influence support structures, overhangs, or bridges are not chosen because of the focus on print bed adhesion. Temperature, relative humidity, prints since last print bed cleaning, and prints since last calibration are recorded as disturbance variables. The test data comprise 80 experiments with 210 measurements. The evaluation in the comparison is derived based on the prediction accuracy of the said test data with the loss-function .
A comparison with the intuitive approach is not conducted, since it strongly depends on the person choosing print parameters and the prognosis of the printing defects is not calculated. Therefore, the proposed method is compared with a possible statistical approach from the last subsection. A similar approach is used in the statistical approach as in the proposed method for better comparison. A DNN is trained with the same data and nearly the same architecture as the DNN in the proposed method and with this comparison, the influence of the PIML approach in the proposed method can be determined due to the similarities of the two methods.
In the proposed method, the training of the encoder–decoder failed, arguably because of the low number of 3D printers in the case study, which were also very similar. As a result, the redefinition of the behavioral vector, as described in
Section 3.3, was not carried out. In
Figure 9, a comparison of RMSE in prognosis of the print bed adhesion is illustrated.
Around 3000 physical experiments as training data are created for pretraining for the proposed PIML approach, which are used 50 times for training. In addition to the pretraining with the physical experiments of the proposed PIML approach, both approaches used the real measurements 50 times for training. For every set of values in the figure, each approach was carried out and evaluated 10 times. Data and results can be found in the supplementary materials [
30] linked below. High variance occurs in the evaluation of the statistical approach, when the number of measurements for training is low. The variance of the evaluated RMSE is mostly 50 to 100 times bigger in the statistical approach when compared to the proposed method. The variance as well as the prediction error is similar, with around 350 or more measurements available for training. The spike around 10 measurements in the proposed method is caused by some consecutive unexpectedly high measurements in the training data. In the case study, the proposed method has a lower RMSE for predicting unknown experiments while knowing only a limited amount of measurements. This indicates that transfer learning from domain knowledge is working, but with an increasing number of measurements, the effect disappears.
5. Conclusions
In this paper, a method for optimizing the system reliability of FFF 3D printers is presented. The developed method optimizes reliability by suggesting optimal print parameters using physics-informed machine learning. Print defects such as insufficient mechanical properties, dimensional accuracy, and aesthetics are avoided simultaneously by optimizing predictions from ANNs. Based on real-world experiments, a behavioral vector is determined for an individual 3D printer which is used to predict the system outcome of a 3D printer. Literature and first experiments on FFF 3D printers suggest that the total effects of the printing parameters on printing defects remain qualitatively the same for different materials and printers. This suggests that for accurate predictions, only a few observations are needed for each individual 3D printer when DK is used. In consequence, accurate predictions ensure the reliable operation of 3D printers by avoiding multiple print defects simultaneously.
For the initialization of the neural networks, DK is used. In the selected literature, effects of print parameters on print defects are investigated. The investigations are used to pretrain the neural network. This way, quantitative effects between print parameters and print defects are learned by the neural network without using real-world observations.
Different approaches for a reliable operation of multiple 3D printer are compared and discussed. The intuitive and popular approach is to use qualitative knowledge of effects to avoid print defects. This can cause the appearance of different print defects in the setup. Consequently, with slowly changing disturbance variables, print defects may occur. When the proposed method is compared to a general statistical approach, the main advantages of the new developed method are the integrated knowledge transfer among different printers and materials as well as less-needed observations by the use of DK. This is shown with the implementation of the proposed method in the form of a case study on the parameter print bed adhesion. Initial results indicate that the transferability of domain knowledge with the proposed method is given with a few experimental results, but with an increasing number of experimental results, this effect decreases.
Three-dimensional printers can behave in unforeseen ways, and to quantify such behavior, future research is investigating a synthetic data generation method using DK in neural networks. The presented approach is extended to all print defects. All significant parameters must be determined and investigated in terms of their influence on the final result. DK must be researched and models for PIML have to be derived for all print defects. It must be defined how those defects can be measured appropriately. Possible combinations with other conventional methods could be researched, such as reverse modelling of the print products and mitigating geometric inaccuracies in the product model. Further research on the effects of the parameters of the proposed approach on the prediction accuracy is needed and will be implemented. Investigations of the capabilities and limitations of the transfer of knowledge will be carried out.