3D printing using fused deposition modeling (FDM) includes a multitude of control parameters. It is difficult to predict a priori what surface finish will be achieved when certain values are set for these parameters. The objective of this work is to compare the models generated by decision tree algorithms (C4.5, random forest, and random tree) and to analyze which makes the best prediction of the surface roughness in polyethylene terephthalate glycol (PETG) parts printed in 3D using the FDM technique. The models have been created using a dataset of 27 instances with the following attributes: layer height, extrusion temperature, print speed, print acceleration, and flow rate. In addition, a dataset has been created to evaluate the models, consisting of 15 additional instances. The models generated by the random tree algorithm achieve the best results for predicting the surface roughness in FDM parts.
The fused deposition modeling (FDM) technique is used today by companies engaged in the fabrication of traffic signs for the manufacture of light-emitting diode LED spotlights. In this sector, the surface properties of the elements used (surface finish, hydrophobic features) are decisive because surfaces that retain little dirt and favor self–cleaning behavior are needed. A design of experiments (L27) with five factors and three levels has been carried out. The factors studied were: Layer height (LH), print temperature (T), print speed (PS), print acceleration (PA), and flow rate (F). Polyethylene terephthalate glycol (PETG) specimens of 25.0 × 25.0 × 2.4 mm have been printed and, in each of them, the surface roughness (Ra,0, Ra,90), sliding angle (SA0, SA90), and contact angle (CA0, CA90) in both perpendicular directions have been measured. Taguchi and ANOVA analysis shows that the most influential variables in this case are printing acceleration for Ra, 0 (p–value = 0.052) and for SA0 (p–value = 0.051) and flow rate for Ra, 90 (p–value = 0.001) and for SA90 (p–value = 0.012). Although the ANOVA results for the contact angle are not significant, specimen 8 (PA = 1500 mm/s2 and flow rate F = 110%) and specimen 10 (PA =1500 mm/s2 and F = 100%) have reached contact angle values above or near the limit value for hydrophobia, respectively.