Related Experiment Video
Updated: Jun 23, 2026

Experimental and Data Analysis Workflow for Soft Matter Nanoindentation
Published on: January 18, 2022
Selection of Network Parameters in Direct ANN Modeling of Roughness Obtained in FFF Processes
Irene Buj-Corral1, Maurici Sivatte-Adroer2, Lourdes Rodero-de-Lamo3
1Department of Mechanical Engineering, Barcelona School of Industrial Engineering (ETSEIB), Universitat Politècnica de Catalunya, Av. Diagonal, 647, 08028 Barcelona, Spain.
Abstract:
Artificial neural network (ANN) models have been used in the past to model surface roughness in manufacturing processes. Specifically, different parameters influence surface roughness in fused filament fabrication (FFF) processes. In addition, the characteristics of the networks have a direct impact on the performance of the models. In this work, a study about the use of ANN to model surface roughness in FFF processes is presented. The main objective of the paper is discovering how key ANN parameters (specifically, the number of neurons, the training algorithm, and the percentage of training and validation datasets) affect the accuracy of surface roughness predictions. To address this question, 125 3D printing experiments were conducted changing orientation angle, layer height and printing temperature, and measuring average roughness Ra as response. A multilayer perceptron neural network model with backpropagation algorithm was used. The study evaluates the effect of three ANN parameters: (1) number of neurons in the hidden layer (4, 5, 6 or 7), (2) training algorithm (Levenberg-Marquardt, Resilient Backpropagation or Scaled Conjugate Gradient), and (3) data splitting ratios (70%-15%-15% vs. 55%-15%-30%). Mean Absolute Error (MAE) was used as the performance metric. The Resilient Backpropagation algorithm, 7 neurons, and using 55% of training data yielded the best predictive performance, minimizing the MAE. Additionally, the impact of the dataset size on prediction accuracy was analysed. It was observed that the performance of the ANN gets worse as the number of datasets is reduced, emphasizing the importance of having sufficient data. This study will help to select appropriate values for the printing parameters in FFF processes, as well as to define the characteristics of the ANN to be used to model surface roughness.

