Next Article in Journal
Tool Wear Monitoring with Artificial Intelligence Methods: A Review
Previous Article in Journal
Fracture Characterisation and Modelling of AHSS Using Acoustic Emission Analysis for Deep Drawing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modeling of Energy Consumption and Print Time for FDM 3D Printing Using Multilayer Perceptron Network

1
LISAC Laboratory, Faculty of Sciences Dhar EL Mehraz, Sidi Mohamed Ben Abdellah University, Fez 30000, Morocco
2
LISA Laboratory, National School of Applied Science, Sidi Mohamed Ben Abdellah University, Fez 30000, Morocco
3
LISAC Laboratory, National School of Applied Science, Sidi Mohamed Ben Abdellah University, Fez 30000, Morocco
*
Author to whom correspondence should be addressed.
J. Manuf. Mater. Process. 2023, 7(4), 128; https://doi.org/10.3390/jmmp7040128
Submission received: 26 May 2023 / Revised: 2 July 2023 / Accepted: 4 July 2023 / Published: 7 July 2023

Abstract

:
Given the recognized advantages of additive manufacturing (AM) printing systems in comparison with conventional subtractive manufacturing systems, AM technology has become increasingly adopted in 3D manufacturing, with usage rates increasing dramatically. This strong growth has had a significant and direct impact not only on energy consumption but also on manufacturing time, which in turn has generated significant costs. As a result, this problem has attracted the attention of industry actors and the research community, and several studies have focused on predicting and reducing energy consumption and additive manufacturing time, which has become one of the main objectives of research in this field. However, there is no effective model yet for predicting and optimizing energy consumption and printing time in a fused deposition modeling (FDM) process while taking into account the correct part orientation that minimizes both of these costs. In this paper, a neural-network-based model has been proposed to solve this problem using experimental data from isovolumetrically shaped mechanical parts. The data will serve as the basis for proposing the appropriate model using a specific methodology based on five performance criteria with the following statistical values: R2-squared > 99%, explained variance > 99%, MAE < 0.99%, MSE < 0.02% and RMSE < 1.36%. These values show just how effective the proposed model will be in estimating energy consumption and FDM printing time, taking into account the best choice of part orientation for the lowest cost. This model provides a global understanding of the primary energy and time requirements for manufacturing while also improving the system’s cost efficiency. The results of this work can be extended and applied to other additive manufacturing processes in future work.

1. Introduction

According to the Wohlers 2023 report, global growth in additive manufacturing products and services is estimated at 18.3%, with double-digit growth recorded over the past 34 years. The statistics from the same report confirm that there is a remarkable growth in materials, software, 3D printing services and hardware, with this growth rate being estimated at 23% in 2022 [1]. However, due to the large number of machines and production efficiency, the AM process has a low energy efficiency. In particular, for a short grinding process with long pauses, the energy consumption is higher, and the running time is more considerable [2]. This is why it has become crucial to design solutions that lead to optimized energy consumption for AM systems. Moreover, AM systems have a negative impact on the environment, and their effects can even have detrimental potential [3,4]. The study of energy consumption is useful for selecting the appropriate strategy and choosing the parameters to be adopted in 3D manufacturing. These parameters may be related to product design or shape accuracy but also to physical, mechanical, electrical, or thermal parameters [5].
In an additive manufacturing process, parts are formed by creating consecutive layers, with each layer representing a cross-section of the part. This process is based on CAD data transmitted to the additive manufacturing printing system [3,6,7,8]. On the other hand, there are seven types of additive manufacturing processes, classified on the basis of machine architecture. In addition, a number of standards are recommended for additive manufacturing, and to this end, an ASTM F42 committee meets twice a year to publish AM standards while also presenting work in progress. These standards help manufacturing specialists and machine manufacturers [9,10]. The seven processes of AM include the following: The vat photopolymerization (VPP) process uses liquid polymers that react to radiation by solidifying and ultraviolet light, which solidifies the liquid into layers. Powder bed fusion (PBF) is considered one of the most versatile manufacturing processes, as it can be applied to metals and polymers to a lesser extent. This process uses a container filled with powder that is selectively treated with an energy source, typically a scanning laser or electron beam. The material jetting process (MJT) generally uses materials in a viscous state. It consists of selectively placing droplets of raw material on a platform, after which UV light is applied to create the first layer. This process continues with the creation of other consecutive layers and stops when the final part is formed. In the binder jetting (BJT) process, a bed with a layer of fine particles in powder form is used by selectively depositing a liquid binder to build up the high-value parts. This process is carried out by creating one layer after another, and at each stage, a cross-section of the part is formed. Sheet lamination is a process that joins sheets of material together to form a part, and the manufacturing process is performed by ultrasonic welding. Directed energy deposition (DED) is a directed process, since the melting of materials is performed by applying thermal energy. This melting is performed once the material is deposited in the system. Material extrusion is a technology that typically uses a polymer as the thermoplastic material and a heated nozzle to build the layers. Material extrusion is a technology that generally uses a polymer as the thermoplastic material and a heated nozzle to build up the layers. In this class of extrusion technology, the most popular process is FDM, in which the polymer is deposited in the system as a filament, and this polymer is liquefied via a reservoir in a heated state. The filament is deposited by pushing it into the reservoir via a “pinch roller”, whose role is to generate the pressure that extrudes the material [10,11,12,13]. Among the seven additive manufacturing processes, FDM is commonly used in 3D printing due to its excellent mechanical properties and a wide choice of materials, including thermoplastic polymers, ceramics and low-melting metals [10,14].
AM technology has a number of advantages in industry, including being a provider of sustainability, offering the possibility of creating customized prototypes, producing less waste and carbon monoxide gas and promoting a circular economy [15]. In comparison with subtractive manufacturing and bulk forming, a number of studies have been carried out in this field. Yoon, Lee et al. [16] examined three types of manufacturing: additive manufacturing, subtractive processes and bulk forming. The comparison showed that additive manufacturing is 100 times more expensive than bulk forming. This study showed that subtractive manufacturing processes have intermediate costs between the other two categories, which vary over a wide range, but the processes also vary in terms of scale. The authors prove that the specific energy consumption of AM has a negative logarithmic correlation with productivity and concluded their study by pointing out that AM processes require more extensive evaluation of the environmental effect. David Rejeski [17] highlighted the potential environmental impacts of additive manufacturing, including waste generation, energy consumption, health risks, and life cycle impacts. In addition, the authors provided evidence that additive manufacturing technologies consume more energy than conventional manufacturing technologies. Other research comparing the energy consumption between AM processes and conventional printing methods has shown that the specific energy consumption (SEC) of AM is one to two times higher than that of conventional methods. Moreover, only part of the environmentally oriented taxonomy has been documented with regard to AM processes, and most work focuses on energy consumption [8]. In this sense, the issue of energy consumption in AM has attracted the attention of many researchers [18,19,20].
The technologies of AM could support intellectualization and industrialization; moreover, AM systems are more complex, with multiple factors (structure, materials with physical and chemical considerations, cost, etc.); therefore, it is essential to study these systems based on artificial intelligence and big-data techniques [21]. In this context, several studies have been carried out to model energy consumption using machine learning [22,23,24]. However, it should be noted that for an FDM manufacturing process, there is not yet a model for predicting energy consumption and printing time that provides good results for optimizing these two costs while taking into account correct part orientation.
In this study, modeling of the experimental results of the energy consumption and printing time of isovolumetric 3D mechanical parts was carried out by an artificial neural network (ANN)-based approach. The developed network estimates the FDM energy consumption and printing time with high accuracy, having an MSE value of 0.018%, an R2 Square value of 99.59%, an MAE value of 0.989%, an explained variance value of 99.60% and an RMSE value of 1.355%. In this context, this paper is organized as follows. It comprises several sections that collectively present a comprehensive study on the prediction of energy consumption and printing time in additive manufacturing. The Section 2 describes 4D FDM printing, and the Section 3 provides an overview of the existing research conducted in this field, offering insights into the work carried out thus far. Following that, the Section 4 delves into the description of the experimental data [25] and materials utilized, elucidating its relevance to the study at hand. Moving on to the Section 5, the paper outlines the methodology employed in this study, accompanied by a brief exposition on the algorithms utilized. In the subsequent Section 6, a comparison of the results of the models used in this study is presented. In the Section 7, the adopted modeling approach is detailed, shedding light on the techniques and strategies employed. The Section 8 engages in a comprehensive discussion of the results obtained from the study, analyzing and interpreting the findings. Finally, the Section 9 encapsulates the main conclusions derived from the research, along with highlighting potential avenues for future exploration.

2. FDM 4D Printing

With the progress recorded in the development of 4D printing, 4D additive manufacturing looks promising for future work [26,27]. This technology can be successfully applied to expand several composite structures with shape memory, as in the case of 4D printing with “bi-stable” structures featuring intelligent responses [28]. Shape-memory polymer materials have additional functional capabilities that enable fourth-dimensional production, since these polymer-based materials are stimuli-responsive and have the advantage of modifying their shapes after printing has been complete [29]. In this context, several studies have investigated the use of these polymers in 4D manufacturing.
Bodaghi et al. [26] used double-layer encapsulated polycaprolactone (PCL) and thermoplastic (TPU) shape-memory composite structures 4D-printed for the first time. SME performance is studied by examining “fixity”, “shape recovery”, “stress recovery” and “stress relaxation” under flexural and compressive loading modes. On the other hand, the melting temperature of the PCL material, PCL and TPU influence the transition temperature, switching and net point, respectively. Taking into account the destruction of PCL, the dripping of this molten material and its contact with water, TPU encapsulates PCL, and this encapsulation offers a solution to the interlayer “bond/interface” while surpassing in the SME performance the bilayer printing of PCL-TPU. Subsequent experiments have shown that composites manufactured in 4D have a maximum stress recovery that does not change over time. The modulus of elasticity of TPU at the melting temperature of PCL is 16.5 times higher than that of PCL, because the latter has not been adapted to resist the release of TPU force, since the material has a behavior that is elastic in loading and recovery. Moreover, in the three bilayer and encapsulated structures, we find that the shape recovery values are 100%. In the compressive stress shape memory test, the highest temperature yielded a maximum stress value that did not decrease with time. Compared with extrusion-based SMP structures, the result of this work solves the problem of poor stress relaxation of previous SMPs. In [30], an adaptive metamaterial design with performance directly integrated into materials was investigated using FDM technology. The idea is to understand the thermomechanics of shape-memory polymers and the advantages offered by FDM for programming metamaterials that are self-folding. In this sense, five parameters that can influence material adaptation have been studied: “material”, “platform surface”, “relay-time” for printing each layer, “temperature”, “printing speed” and “liquefier temperature”. Given that the self-folding characteristic affects the change in shape and programming layer by layer, experiments have been carried out to determine how printing speed and liquefier temperature can affect this characteristic. In addition, a finite element (FE) formulation was used to provide a customized description of the materials in both the manufacturing and deformation phases. In this context, the combination of FE and FDM solutions was used to create straight or curved beams as structural primitives with the characteristics of being self-bending and self-winding. This 4D printing study demonstrated that adaptive metamaterials can be used to create prototypes capable of transformation in 2D or 3D and in several fields. This gives the advantage of designing and developing functional structures that feature “self-folding”, “self-coiling”, “self-conforming” and “self-deploying features in a controllable manner”. In [31], the parameters influencing 4D printing were studied, and these parameters mainly concern the design of the structure, the material, programming during printing and activation. In this context, FDM technology has been used with thermoplastic polymers as shape-memory materials (SMPs). These SMPs are printed in temporary shapes and then transformed into permanent forms under the effect of heat. In addition, material selection depends mainly on the shape-memory behavior of the filaments, while design is complex because of the freedom of design, and print programming depends directly on the printing parameters. For polymer activation, there are various methods, such as Joule or infrared activation, and these depends on the “amplitude”, “duration”, “support of the stimulus” and “stimulus environment”. In addition, it has been shown that activation parameters influence the transformation process, so a longer exposure time generates a greater amount of transformation, which reaches its maximum as the stress relaxes. For the activation temperature, the higher the temperature, the higher the velocity and the greater the transformation. Finally, the authors confirm that planning, comparison and presentation of the structured design of experiments offer the presented 4D FDM model advantages in terms of long-term time savings.
The 4D FDM printing method is a futuristic technology that offers many advantages to the manufacturing industry. This type of manufacturing relies primarily on FDM and the ability of parts to transform their shape using advanced programmable materials. As a result, this technology needs to be studied closely, particularly in terms of resource consumption, which necessarily involves understanding the factors that influence the cost of manufacturing, in particular time and energy. The following section provides an overview of existing research on energy consumption and manufacturing time in the AM field.

3. Related Works

As research and industry focus on sustainable manufacturing increases, energy consumption in additive manufacturing processes is becoming an intriguing topic in the research community. In this sense, several studies have focused on modeling and optimizing the amount of energy consumed in additive manufacturing [18,19,20,32,33,34,35]. In the literature, studies of energy consumption have been carried out either using specific methods or based on machine learning techniques. In the following, several studies will be proposed on this subject.
Harding et al. [35] used six approaches to reduce energy and material consumption in filament fusion manufacturing (FFF). These approaches were studied using commercial printers, and the results show that energy consumption can be significantly reduced by insulating the hot end (33.8% to 30.63% reduction) and the sealed enclosure (18% power reduction). In contrast, 51% of the material was saved by using a type of “lightning infill”. Vidakis et al. [5] examined the parameters that influence three types of energy in 3D ABS-FFF manufacturing: specific printing energy (SPE), the energy printing consumption (EPC), and specific printing power (SPP). The authors studied the effect of six parameters on energy consumption: the infill raster density (ID), raster deposition angle (RDA), nozzle temperature (NT), fused filament printing speed (PS), layer deposition thickness (LT), and bed temperature (BT). As a result, PS and LT significantly influence EPC and SPE energy types. The density (ID), on the other hand, mainly influences SPP energy. In addition, an increase in layer thickness and printing speed can reduce EPC and SPE energies. This study uses quadratic regression models (QRM) and six-parameter ANOVA on the three energy types; however, these models are effective and sufficient for the two energy types SPE and EPC but not for the SPP energy type. Yang et Liu [36] presented an approach for predicting the energy consumption with material usage and print time of 3D-printed parts while relying on the path planning code and intrinsic characteristics of the machine. The authors proposed a method for predicting and reducing energy consumption in the prefabrication phase. The model developed in this study is suitable for several machines and other computer-aided manufacturing processes. Markos Petousis et al. [37] examined the impact of seven parameters (orientation angle, screen deposition angle, fill density, layer thickness, nozzle temperature, printing speed and bed temperature) on compression and energy consumption in a material extrusion process (MEX) using acrylonitrile butadiene styrene (ABS) as the material. In terms of energy consumption, the results of this study show that layer thickness and printing speed have the greatest impact. However, printing time was not included in this study. Helena Monteiro et al. [38] focused their study by undertaking a systematic literature review of metal additive manufacturing (MAM) processes in the aerospace and aeronautics sector. This analysis was based on literature classified according to four life cycle stages to identify efficiency strategies related to MAM resources. These stages concern “product design”, “materials development and sourcing”, “process development, control and optimization” and “end-of-life extension and circular economy”. The authors identify the key factors influencing the energy and material efficiency of this type of manufacturing. Zhiqiang Yan et al. [34] proposed a model to predict power consumption and printing time as a function of process parameters and machine component operating states. This model takes into account “the power of each component” and “the duration of each process”; however, this model has some limitations. The prediction of empty travel time, deceleration and acceleration of the nozzle movement are not supported by the model. Baumers, Tuck et al. [39] proposed a tool capable of predicting the energy flows that will occur in direct laser sintering of metals. This tool also estimates the costs of the process. It has been shown that minimizing costs in additive manufacturing can minimize the energy consumption of the process, thus motivating improvements in sustainability. Meteyer, Xu et al. [40] developed a model to evaluate the energy and material consumption for the binder jetting process. Mathematical studies determined the energy consumption depending on the printing parameters and the geometry of the part. To validate their model, test printing was performed. The resulting energy consumption model provides a tool for optimizing the geometric design of parts. Verma et Rai [41] developed an approach to optimize selective laser sintering (SLS) in stages to minimize energy consumption. In this study, the energy consumption and waste related to the materials used are reduced both in parts and in layers. The models developed in SLS can be applied to other AM processes; however, these models do not consider printing time and part orientation. Ajay et al. [23] proposed a unified FDM approach to optimization of “power between layers”, “instructions”, “hardware”, “compilers” and “firmware”. In addition, using the energy profiler, a solution called 3DGates was proposed to optimize interlayer energy, combining the instruction set, compiler and firmware. This solution was evaluated on 338 benchmarks, resulting in an energy reduction of 25%. Yiran Yang in [42] developed a mathematical model to predict energy consumption in stereolithography processes. The obtained results have been verified experimentally. In addition, an assessment of the impact of different parameters on the total energy consumption was conducted, and a method to reduce energy consumption was suggested based on an optimal combination of parameters. Simon et al. [43] conducted their study on the effect of certain printing parameters on particulate emissions and energy consumption. An energy profile study shows that maintaining temperature and heating the print bed consumes significant energy in FDM manufacturing. Luo et al. [44] proposed a method based on free solid forms (FSS) to evaluate the environmental performance of two manufacturing processes: the first process is rapid prototyping, while the second process is rapid tooling. In this study, each of the two processes is divided into several life phases, and each phase is analyzed and evaluated on the basis of eco-indicators provided by PreConsultants of the Netherlands while using an “environmental assessment index”. The performance of each process is determined by combining the effects of each step. Jackson, Arik Van Asten et al. [45] investigated the benefits of combined additive and subtractive manufacturing processes with respect to the geometric tolerance of small steel-based volumes. The authors compared the relative energy consumption of additive and subtractive manufacturing using two materials: wire and powder. In this context, they proposed a model to study energy consumption and found that processes using either wire or powder as materials have nearly identical energy consumption. However, the energy consumption of the wire-based additive process is 85% higher than that of the powder-based deposition component. In concluding their study, the authors confirm that the combination of additive and subtractive processes has added value in manufacturing.
Machine learning techniques offer an effective means to solve problems encountered in additive manufacturing, such as process optimization, quality control, manufacturing system modeling and energy cost management [46]. These ML techniques use data to reveal information that is not being exploited to provide a means of decision support that is also aimed at improving environmental performance, significant cost savings and operational opportunities [47]. In this context, several research projects have been carried out for energy prediction and optimization based on machine learning algorithms. Fu Hu et al. [48] proposed a CNN-LSTM data fusion method based on the long-term memory model (LSTM) and a convolutional neural network (CNN) with the aim of estimating the energy consumption of the AM process. The results obtained in this study show that the model introduced based on the CNN-LSTM did not provide an accurate estimate of the SLS system (RMSE of 8.143 Watt/g in prediction tested on 3129 samples), which can be explained by a considerable loss of information associated with convolutional feature extraction. Jian Qin et al. [22] developed a hybrid approach based on neural networks and clustering techniques to enable the integration of multi-source data extracted from the Internet of Things (IoT). The aim of this study is to propose a model for predicting and estimating the energy consumed by an SLS process. To this effect, the authors studied the performance of the proposed model on 20 clusters. To validate their work, a comparison was made, and the best performance was found using four clusters with MCC = 0.694 and low RMSE = 32.306 W h/g. Rishi Kumar et al. [47] proposed an algorithm based on long-term memory (LSTM) to characterize and predict energy consumption throughout the various stages of 3D manufacturing (standby, preheating and printing). The study involved three types of material (PLA, PETG and ABS), and each measurement of energy consumption relative to each stage was carried out on the basis of Simpson’s rule. However, the results of this research show that the error in predicting energy consumption is considerable and varies according to the type of material and each of the three manufacturing stages: PLA (standby: 11.31%; preheating: 8.11%; printing: 5.51%), PETG (standby: 7.50%; preheating: 2.31%; printing: 2.31%) and ABS (standby: 13.37%; preheating: 18.88%; printing: 9.37%). Yiran Yang et al. [23] studied the geometric parameters that influence the energy cost at each printing layer in a stereolithography process with mask image projection. To this end, the authors used three machine learning models (progressive regression, shallow neural network (SNN) and stacked autoencoders (SAE)). These models provide an estimate of energy consumption, taking into account the geometries of each printed layer. Based on a comparison of the models’ overall performance, the shallow neural network proved to be the best model, with a root mean square error value of 0.75% for test and training evaluations, while the SAE showed good test accuracy, with a root mean square error value of 0.85%. However, printing time was not studied in this study.
Murphy et al. [49] proposed an approach for designers and AM users to create complex geometries by leveraging voxelized object files. An autoencoder was used to represent parts with low dimensionality and attributes related to design for additive manufacturing (DfAM). The developed model has a limited accuracy, with coefficients of determination of 46.8%, 30.1% and 22.5% for part mass, support material mass and construction time, respectively. El youbi El idrissi et al. [50] proposed a prediction of the energy consumed in the FDM manufacturing process while using twelve machine learning algorithms. This study qualifies the Gaussian Process Regressor (GPR) as the algorithm giving the best result. However, this study did not take into account print time estimation and optimization.
Based on the aforementioned work, it is clear that many studies have been conducted to estimate and optimize the energy consumption of 3D printing processes. However, no research could be found on the prediction of energy consumption and printing time in the FDM process based on part orientation. In this paper, an efficient neural-network-based model has been developed for the prediction and minimization of these two costs while taking into account the correct and optimal orientation of the part.

4. Design of Experiment

The benchmark r3DiM dataset was collected using a setup with four types of hardware: “a Raspberry Pi 4 Model B board with touch screen”, “a Prusa i3 MK3S 3D printer”, “an Arduino wifi MKR 1010” and “four Adafruit INA260 sensors”. This device is used to capture the energy in the electric current per layer during the FDM process while using Adafruit’s four sensors, with which the output electric current is measured at four points, two of which measure consumption in relation to the heating current of the extruder and print bed, while the other two record the total energy consumption in the current. Data from these sensors are collected using the Arduino WiFi and read by the Raspberry Pi running Linux [51]. The material used in the experiment was polyethylene terephthalate glycol (PET-G), which is increasingly used in 3D printing, given its strength and ability to accommodate most layers in addition to its low shrinkage [52]. In experiment [51], the parameters incorporated during the experiment were as follows: 20% fill, layer height 0.15 mm, seven solid layers on top and five solid layers underneath. The temperature of the printing bed was 80 degrees for the first layer and 90 degrees for the other layers, and the filament had a diameter of 1.75 mm ± 0.02 mm. Several studies have examined the effect of nozzle temperature on the PETG-based manufacturing process, with the results revealing that PETG yarn must be printed at a temperature above 230 °C; otherwise, the material will not bond to the platform [53,54]. The nozzle temperature was fixed at 250 °C throughout the printing process.
The data used in this article were obtained from [51], in which the authors printed 68 separate isovolumetric mechanical components from the Mechanical Components Benchmark (MCB) using a Prusa i3 MK3S 3D printer. The MCB classification covered isovolumetric parts of various types, such as articulations, eyelets and other articulated joints, bearing accessories, bushes, cap nuts and castle nuts. The MCB contained almost 58,000 components divided into 68 classes, and 1 component from each class was selected to build the “r3Dim” dataset. This classification took into account the representability of the model in the MCB classification, the diversity of shapes included in the dataset, and the ability to adapt the file representing the 3D part in a readable format by “Solidworks 2020” to have unique volumes of 5 cm3. Each file in the 68-sheet class was scaled to 5 cm3 using a scaling function included in Solidworks, and then, each model was printed by rotating it twice 90 degrees along the Y axis. The authors used several sensors to collect information on energy consumption and printing time. In this study, twelve input parameters were used for modeling FDM printing energy and time using the experiment [51] and dataset [25]. These data are described in the following table, in which several machine learning algorithms were used to model energy consumption and FDM printing time.
In this study, the dataset of experiment [51] includes 184 instances of the isovolumetric parts, of which each piece of recorded data has intrinsic attributes according to each part. The set of features includes 12 entries that are described below with the correlations that exist between them:
  • INP1: the view taken into consideration for printing according to the vertical axis.
  • INP2: the surface of the object according to the orientation.
  • INP3: the calculation of the facets of the object according to the orientation.
  • INP4: length of the maximum segment of the object cut along the horizontal axis.
  • INP5: length of the maximum segment of the object cut along the vertical axis.
  • INP6: length of the maximum segment of the object cut along the Z-axis.
  • INP7: The calculated volume of the object that is sliced regardless of the support material.
  • INP8: the volume of the sliced object, taking into account the support material.
  • INP9: the weight of the filament consumed from the sliced object printing, taking into account the support material.
  • INP10: the weight associated with the support filament consumed in printing the cut object.
  • INP11: the expected printing time of the STL object.
  • INP12: the number referring to the layers of the STL object.
As shown in Figure 1 and Figure 2 of the two correlation matrices, the total energy and print time have a very significant relationship with the “Sliced volume including support”, “Total Filament”, “Support Filament”, “Expected print time” and “Number of layers”. The other parameters have more or less moderate relationships with total energy and print time. In this study, all input parameters were kept, as they may have an impact on the FDM manufacturing process.
In this study, several machine learning algorithms were used to model energy consumption and FDM printing time. These algorithms were chosen not only for their performance and importance in prediction but also for their ability to train data.

5. Methodology

In this section, the algorithms used are briefly introduced, including Multilayer Perceptron (MLP), EXtreme Gradient Boosting (XGBoost), Random Forest (RF) and Support Vector Machines (SVM). These algorithms use data from the experiment cited in article [51] to create each model. Prior to this, several processing operations were carried out on the database to prepare the data for training. This processing mainly concerns the elimination of information that was not relevant to this study (in particular, constant values that had no influence on the modeling result or the appropriateness of values that had to be in a format acceptable to the machine). As a result, 12 inputs in the first column of Table 1 were taken into account in this study. Next, the training to be carried out by each algorithm was based on the distribution applied to the database, with 70% allocated to training data and 30% to test data.
For each algorithm, the best model was chosen by selecting the optimal parameters intrinsic to it (Figure 3). Then, the best approach was chosen by making a statistical comparison of the models selected. These statistical measures concern the MSE, MAE, RMSE, R2 squared and variance explained.

5.1. Multilayer Perceptron (MLP)

This type of network belongs to the “feed-forward” class of networks [55,56,57]. The perceptron is increasingly used in many fields of application, such as engineering, medicine, industry and, in particular, additive manufacturing, which has become an increasingly popular technology [23,55,56].
The first mathematical and computer model of the biological neuron was introduced in 1943 by McCulloch and Pitts, who remain the pioneers of modeling and design of neurons [57,58]. Their studies were based on the neuronal properties of the human brain, but they found an analogy between these characteristics and those of computing machines. A multilayer perceptron network is a feed-forward network [59] that consists of three main components: the first element is a layer containing the input features of the network, the second component wraps one or more interconnected hidden layers, and another layer is used for the network output. The constituents of a multilayer perceptron network are the input layer, one or more hidden layers and an output layer with several interconnections that can exist between the neurons of each layer, each interconnection having a synaptic weight carried by a value and the neurons being activated by a differentiable function [60].
The structure of an artificial neuron j is mainly characterized first by a summation function  S j  of the signals  X i i = 1 , , m  of the input layer, weighted by the values of the synaptic weights linked to the connections  w j i i = 1 , , m  according to Equation (1), and second by the activation function  f , yielding the output value  y j .
  • The formula for the weighted sum of neuron j is
    S j = i = 1 m w j i × x i  
  • The output  y j   is obtained by applying the activation function  f  according to the following formula:
    y j = f i = 1 m ( w j i x i ) + b j  
    b j  refers to the bias of neuron j.
The activation function  f (   )  is a transfer function that can be a “linear function”, “hyperbolic tangent”, “sigmoid”, “radial basis function”, “hyperbolic tangent function” or “ReLU function” [61].
Frequently in a training process, the MLP model uses the backpropagation algorithm to adjust the values of the weights to form the network architecture [60]. The principle of backpropagation is to define an error function and apply gradient descent to calculate the weights that optimize the performance of the model. This training process passes through two essential stages, the forward stage and the backward stage, which are described as follows:
Forward stage: In this stage, the input signal passes through the layers while fixing the values of the synaptic weights until the signal arrives in the output layer [58,62]. The values of the weights are modified by the activation functions and depend closely on the network outputs.
Backward stage: After executing the previous step, an error signal is generated, and then, the required output is compared with the model output. The propagation of this error is directed this time in the opposite direction, and several adjustments are made successively to adapt the values obtained to the weights of the network. This adjustment process is difficult in the hidden layers, but it is simple in the output layer [59,62,63,64].
Backpropagation algorithms are of several types, and the most commonly used are the “Levenberg-Marquardt algorithm”, “gradient descent algorithm”, “scaled conjugate gradient” and “resilient back-propagation one one-step secant algorithm” [58,65,66].

5.2. XGBoost

Chen and Guestrin were the first creators of the XGBoost algorithm [67]. XGBoost is based on tree boosting, an improved machine learning method with a high learning capacity [68]. This algorithm is based on GBDT decision trees with a boosted gradient, and its distinguishing trait is the use of second-order derivatives, unlike conventional decision trees, which only use first-order derivatives. At this stage, XGBoost is more efficient while having a fast calculation, and its formula is expressed by
y ^ i = k = 1 K f k x i w i t h :   f k F ,   D = x i , y i i = 1 n   | D | = n , x i R m , y i     R
where  y ^ i  is the prediction of the sample,  y i  is the actual value,  F  is the whole constituting the K trees, and  f k x i  is the function associated with the k-th tree. The function “objective” of XGBoost is expressed as
Obj = i = 1 n l y i ,   y ^ i + i = 1 K Ω f i
where  i = 1 n   l y i , y ^ i  is the loss function, allowing us to have the capacity that the prediction model represents.  i = 1 K Ω f i  is the function with the advantage of regularizing the XGBoost model. The principle of the algorithm is to have a minimized loss function; in other words, the idea of the algorithm is to start from an initial model and to improve it by steps starting from  y ^ i   ( 0 )  with a null value, which looks like
y ^ i ( 1 ) = f 1 x i = y ^ i ( 0 ) + f 1 x i y ^ i ( 2 ) = f 1 x i + f 2 x i = y ^ i ( 1 ) + f 2 x i y ^ i ( t ) = k = 1 t f k x i = y ^ i ( t 1 ) + f t x i
where  f t ( x i )  represents the function that gives us the new prediction and  y ^ i t 1  and  y ^ i t  represent the respective values of the prediction of the data by the model in iteration (t − 1) and in iteration t. Therefore, the function Obj() can be represented with the following formula:
Obj ( t ) = i = 1 n l y i , y ^ i ( t ) + i = 1 t Ω f i = i = 1 n l y i ,   y ^ i ( t 1 ) + f t x i + i = 1 t 1 Ω f i + Ω f t
where  l ( y i , y ^ i t 1 )  and  y ^ i t 1  are two constant values. Then, the Taylor expansion of order 2 is used to obtain an equivalence of the function Obj(). For this, given the two values  h i = y ^ i t 1 2 l ( y i , y ^ i t 1 )  and  g i = y ^ i t 1 l ( y i , y ^ i t 1 ) , eliminating the contiguous ones, the objective function becomes
Obj t = i = 1 n ( g i × f t x i ) + ( 1 2 × h i × f t 2 x i ) +   Ω f t  
With  I j = {   i | q ( x i ) = j   }  is the sample on the jth leaf node, and  w j  is the weight of the jth node, given that  H j = i I j h i G j = i I j g i , and  T  reflects the number of leaf nodes, the objective function represents:
Obj t = j = 1 T G j w j + 1 2 H j + λ w j 2 + γ T  
The optimization of the function  Obj t  gives us
Obj optimal = 1 2   j = 1 T   G j 2 H j + λ + γ T  
The XGBoost algorithm calculates the gain according to the following expression:
Gain = 1 2 × ( G R 2 H R + λ ) + ( G L 2 H L + λ ) ( G L + G R 2 H L + H R + λ ) γ  
where  ( G R 2 H R + λ ) ( G L 2 H L + λ )  and    ( G L + G R 2 H L + H R + λ )  correspond to the scores of the right and left subtrees and of the node that is not split, respectively.

5.3. Random Forest Regression

This type of algorithm is a combination of statistical learning theory and decision trees. It was first introduced by Breiman (2001) [69]. The RF algorithm has been widely used in regression because of the precision it brings in terms of performance. Random Forest uses decision trees, and an original bootstrap sample of data is associated with each tree. The vote prediction is calculated based on the calculated predictions of each tree. In other words, the algorithm aims to determine the regression result while combining the decision trees that are weak in a strong tree with more precision. RFR has several advantages compared to other algorithms, including that it is stable and that there is no overfitting problem [70]. In addition, this algorithm does not require several configuration parameters and is easy to use. The formula for the RFR regression predictor is:
F ^ r f K ( x ) = 1 k × u = 1 K T u ( x )  
where k is the number of decision trees and  T u  is the prediction of the u th decision tree.

5.4. Support Vector Machines (SVM)

On a training space  X  of size N, where  X R n ,  let  x 1 , y 1 , , x N , y N  be input elements, with  x i X , y i R . The desired objective is to find an SVM function for the regression of the data, whose mathematical form usually takes the form of the following equation [71,72]:
f ( x ) = ( w × φ ( x ) ) + b  
ϕ : X Ω  is a function whose output is the feature space, and  b R .
The objective is to find  w  and  b  while minimizing the following function:
R ( f ) = C j = 1 N Γ f x j y j + 1 2 ( w × w )
Γ ( f ( x ) y ) =   0 , if   val < ε val ε ,   otherwise    
where  C  is a predefined value,  Γ  is the cost function measuring the empirical risk,  ε  is a cost-insensitive function and  val = | y f ( x ) | .

6. Model Comparison and Validation

In this study, the MLP, XGBoost, RF Regressor and SVM Regressor algorithms were used to build predictive models of energy consumption and time used in the FDM process, based on the dataset cited in Table 1 and following the methodology described in the Section 5. A statistical comparison of the algorithms used, based on the five performance criteria (MAE, MSE, RMSE, R2 squared and variance explained), clearly shows that the MLP-based model has higher performance measures than the other models. The following table illustrates the statistical values obtained:
Figure 4 and Figure 5 illustrate the relative representations of the energy consumption and printing time of the models used. The neural algorithm developed corresponds well to the experimental values, which is also justified by the statistical performance values.
From the statistical measurements recorded in Table 2 and the representations of the two figures of energy consumption and FDM printing time, it is clear that the proposed neural model outperforms the other models. In these figures, it can be seen that the experimental values for 184 parts (x-axis) and the predicted values of the proposed model (y-axis) are closer together than in the other models. In the following section, details of the strategy followed to obtain the adopted model will be presented.

7. Adopted Model

In the case of this study, there are twelve inputs and two outputs, so automatically, the input layer must have twelve neurons, and two neurons must be assigned to the output layer. To prove the structure of the hidden layers, 156 networks were developed with the following architectures using the Keras library:
One hidden layer: 12-i-2, such as 2 ≤ i ≤ 13.
Two hidden layers: 12-i-j-2, such as 2 ≤ i,j ≤ 13.
For each architecture, to find the best model, different activation functions were used, such as exponential, elu, selu, tanh, softsing, softplus, softmax, sigmoid and ReLU.
As a first step, before proceeding with the training of each architecture, the dataset was divided into two parts, 30% for testing and 70% for training, and then normalized using the MinMaxScaler function.
Five performance criteria were calculated for each architecture: R2 Square, Ex-plained-Variance, MAE, MSE and RMSE. According to the results, using the sigmoid activation function to activate the hidden layers and activating the output layer using the ReLU function yielded good performance; however, using the other activation functions yielded less accuracy. Table 3 shows some of the architectures that performed well.
According to the results reported in Table 3, the optimal architecture corresponds to two hidden layers. The first two hidden layers are activated by the sigmoid function, and they have four neurons and two neurons. The output layer is activated by the ReLU function, and two neurons are used in this layer (Figure 6). This architecture provides the following performance: R2 = 99.59%, explained variance = 99.60%, MAE = 0.989%, MSE = 0.018% and RMSE = 1.355%.
At epoch 1523, successful training was achieved with an MSE value equal to 0.018% (Figure 7). The weights and biases of the optimized model are shown in Table 4, Table 5 and Table 6.
To demonstrate the effectiveness of the model obtained, the predicted values and the experimental values are compared in Figure 8 and Figure 9, thus representing the trend between the actual values and those given by the proposed model according to energy consumption and FDM printing time.

8. Discussion

The current investigation aims to simultaneously predict energy consumption and printing time by providing the correct orientation that optimizes both costs. To validate this model, Figure 10 and Figure 11 illustrate the trends in experimental values compared with the predicted values of the proposed model. Thus, the “part number” designating the parts according to their order in the database are shown on the x-axis, while the predicted values (energy in Figure 10 and printing time in Figure 11) are marked on the y-axis.
According to both representations, there is harmony between the experimental and predicted values. Moreover, both curves behave in a similar way to the actual values, which is justified by the quasi-juxtaposition of each curve with the experimental values. The result clearly shows the effectiveness of the proposed model.
From the dataset [25], four parts were randomly selected to evaluate the effectiveness of the proposed approach. Table 7 shows the experimental and predicted values of FDM printing energy and time for each of the four parts.
This test takes into account the three orientations (0, 90 and 180) and then calculates the prediction error for each orientation (15):
Error   of   prediction =   Predict   value     Experimental   value     Experimental   value  
  • Part 1 must be printed in direction 90; if printing is done in another direction, a loss of 0 h 20 min in terms of time and 25 Watt in terms of energy will occur.
  • Part 2 should be printed in direction 90; if printing is done in another direction, a loss of 0 h 20 min in terms of time and 40 Watt in terms of energy will occur.
  • Part 3 should be printed in direction 0; if printing is done in another direction, a loss of 1 h 30 min in terms of time and 250 Watt in terms of energy will occur.
  • Part 4 should be printed in direction 0; if printing is done in another direction, a loss of 0 h 15 min in terms of time and 23 Watt in terms of energy will occur.
On the basis of the results presented in Table 7, it is clear that the proposed model can be used effectively to select the correct part orientation, while energy consumption and printing time can be achieved at optimum cost.

9. Conclusions

In this research, a model was proposed to predict energy consumption and FDM printing time based on experience extracted from [25]. In this sense, four machine learning algorithms were used, given their performance in prediction and training. A comparative study was carried out, clearly showing that the proposed neural network model performed significantly better than the other models used. Calculation of the model’s overall performance yielded the following statistical values: 0.018% for the MSE value, 99.60% for the explained variance value, 0.989% for the MAE value, 99.59% for the R-squared value and 1.355% for the RMSE value.
Using this model, the energy consumption and printing time for different part orientations were estimated efficiently. In addition, the proposed approach offers the possibility of choosing the optimal orientation that minimizes both the energy and time costs in FDM printing.
This study remains useful for understanding the energy and time consumption of 3D manufacturing, which could provide a decision support tool for practicians to improve energy and time inefficiency factors. This can be extended to other computer-aided manufacturing processes that could benefit from the applicability of the current research results.
For future work, a study of additive manufacturing is envisaged to predict and optimize other resources related to the manufacture of 3D-printed parts, taking into account the effect of other parameters that influence this process. In addition, this paper could provide a basis for studying the energy consumption and print time of parts manufactured in 4D, while taking advantage of the benefits provided by this technology. Finally, this work will represent a benchmark that could be improved by taking into account the environmental aspect while studying possible disciplines related to additive manufacturing.

Author Contributions

Conceptualization, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; methodology, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; software, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; validation, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; formal analysis, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; investigation, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; resources, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; data curation, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; writing—original draft preparation, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; writing—review and editing, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; visualization, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z. supervision, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; project administration, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z.; funding acquisition, M.A.E.y.E.i., L.L., A.J., H.T. and M.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank the researchers Gergo Szemeti and Devarajan Ramanujan from Aarhus University for providing us with the r3DIM reference database, which allowed us to collect data regarding the energy consumption and printing time of parts printed in an FDM process and helped us to develop the proposed approach to predict and optimize these two outputs.

Conflicts of Interest

The authors have no conflict of interest in the publication of this work.

References

  1. Wohlers Report 2023–Wohlers Associates. Available online: https://wohlersassociates.com/product/wr2023/ (accessed on 16 June 2023).
  2. Han, Q.; Setchi, R.; Evans, S.L. Synthesis and characterisation of advanced ball-milled Al-Al2O3 nanocomposites for selective laser melting. Powder Technol. 2016, 297, 183–192. [Google Scholar] [CrossRef] [Green Version]
  3. Huang, R.; Riddle, M.; Graziano, D.; Warren, J.; Das, S.; Nimbalkar, S.; Cresko, J.; Masanet, E. Energy and emissions saving potential of additive manufacturing: The case of lightweight aircraft components. J. Clean. Prod. 2016, 135, 1559–1570. [Google Scholar] [CrossRef] [Green Version]
  4. Arifin, N.A.M.; Saman, M.Z.M.; Sharif, S.; Ngadiman, N.H.A. Sustainability Implications of Additive Manufacturing. In Human-Centered Technology for a Better Tomorrow; Hassan, M.H.A., Ahmad Manap, Z., Baharom, M.Z., Johari, N.H., Jamaludin, U.K., Jalil, M.H., Mat Sahat, I., Omar, M.N., Eds.; Lecture Notes in Mechanical Engineering; Springer: Singapore, 2022; pp. 441–452. ISBN 9789811641145. [Google Scholar]
  5. Vidakis, N.; Kechagias, J.D.; Petousis, M.; Vakouftsi, F.; Mountakis, N. The effects of FFF 3D printing parameters on energy consumption. Mater. Manuf. Process. 2023, 38, 915–932. [Google Scholar] [CrossRef]
  6. Chaudhary, R.; Fabbri, P.; Leoni, E.; Mazzanti, F.; Akbari, R.; Antonini, C. Additive manufacturing by digital light processing: A review. Prog. Addit. Manuf. 2023, 8, 331–351. [Google Scholar] [CrossRef]
  7. F42 Committee. Terminology for Additive Manufacturing Technologies; ASTM International: West Conshohocken, PA, USA, 2013. [Google Scholar]
  8. Kellens, K.; Baumers, M.; Gutowski, T.G.; Flanagan, W.; Lifset, R.; Duflou, J.R. Environmental Dimensions of Additive Manufacturing: Mapping Application Domains and Their Environmental Implications. J. Ind. Ecol. 2017, 21, S49–S68. [Google Scholar] [CrossRef] [Green Version]
  9. ISO/ASTM 52900:2021; Additive Manufacturing—General Principles—Fundamentals and Vocabulary. Available online: https://www.iso.org/standard/74514.html (accessed on 1 July 2023).
  10. Gibson, I.; Rosen, D.; Stucker, B.; Khorasani, M. Additive Manufacturing Technologies; Springer International Publishing: Berlin/Heidelberg, Germany, 2021; ISBN 978-3-030-56126-0. [Google Scholar]
  11. Godec, D.; Pilipović, A.; Breški, T.; Ureña, J.; Jordá, O.; Martínez, M.; Gonzalez-Gutierrez, J.; Schuschnigg, S.; Blasco, J.R.; Portolés, L. Introduction to Additive Manufacturing. In A Guide to Additive Manufacturing; Godec, D., Gonzalez-Gutierrez, J., Nordin, A., Pei, E., Ureña Alcázar, J., Eds.; Springer Tracts in Additive Manufacturing; Springer International Publishing: Berlin/Heidelberg, Germany, 2022; pp. 1–44. ISBN 978-3-031-05862-2. [Google Scholar]
  12. Verhoef, L.A.; Budde, B.W.; Chockalingam, C.; García Nodar, B.; Van Wijk, A.J.M. The effect of additive manufacturing on global energy demand: An assessment using a bottom-up approach. Energy Policy 2018, 112, 349–360. [Google Scholar] [CrossRef]
  13. Song, R.; Telenko, C. Material and energy loss due to human and machine error in commercial FDM printers. J. Clean. Prod. 2017, 148, 895–904. [Google Scholar] [CrossRef]
  14. Lalegani Dezaki, M.; Mohd Ariffin, M.K.A.; Hatami, S. An overview of fused deposition modelling (FDM): Research, development and process optimisation. Rapid Prototyp. J. 2021, 27, 562–582. [Google Scholar] [CrossRef]
  15. Hegab, H.; Khanna, N.; Monib, N.; Salem, A. Design for sustainable additive manufacturing: A review. Sustain. Mater. Technol. 2023, 35, e00576. [Google Scholar] [CrossRef]
  16. Yoon, H.-S.; Lee, J.-Y.; Kim, H.-S.; Kim, M.-S.; Kim, E.-S.; Shin, Y.-J.; Chu, W.-S.; Ahn, S.-H. A comparison of energy consumption in bulk forming, subtractive, and additive processes: Review and case study. Int. J. Precis. Eng. Manuf.-Green Technol. 2014, 1, 261–279. [Google Scholar] [CrossRef]
  17. Rejeski, D.; Zhao, F.; Huang, Y. Research Needs and Recommendations on Environmental Implications of Additive Manufacturing. Addit. Manuf. 2017, 19, 21–28. [Google Scholar] [CrossRef] [Green Version]
  18. Hopkins, N.; Jiang, L.; Brooks, H. Energy consumption of common desktop additive manufacturing technologies. Clean. Eng. Technol. 2021, 2, 100068. [Google Scholar] [CrossRef]
  19. Ajay, J.; Song, C.; Rathore, A.S.; Zhou, C.; Xu, W. 3DGates: An Instruction-Level Energy Analysis and Optimization of 3D Printers. In Proceedings of the Twenty-Second International Conference on Architectural Support for Programming Languages and Operating Systems, Xi’an, China, 4 April 2017; pp. 419–433. [Google Scholar]
  20. Weissman, A.; Gupta, S.K. Selecting a Design-Stage Energy Estimation Approach for Manufacturing Processes. In Proceedings of the 23rd International Conference on Design Theory and Methodology, Washington, DC, USA, 28–31 August 2011; Volume 9, pp. 1075–1086. [Google Scholar]
  21. Tian, X.; Wu, L.; Gu, D.; Yuan, S.; Zhao, Y.; Li, X.; Ouyang, L.; Song, B.; Gao, T.; He, J.; et al. Roadmap for Additive Manufacturing: Toward Intellectualization and Industrialization. Chin. J. Mech. Eng. Addit. Manuf. Front. 2022, 1, 100014. [Google Scholar] [CrossRef]
  22. Qin, J.; Liu, Y.; Grosvenor, R. Multi-source data analytics for AM energy consumption prediction. Adv. Eng. Inform. 2018, 38, 840–850. [Google Scholar] [CrossRef]
  23. Yang, Y.; He, M.; Li, L. Power consumption estimation for mask image projection stereolithography additive manufacturing using machine learning based approach. J. Clean. Prod. 2020, 251, 119710. [Google Scholar] [CrossRef]
  24. Jia, S.; Yuan, Q.; Cai, W.; Li, M.; Li, Z. Energy modeling method of machine-operator system for sustainable machining. Energy Convers. Manag. 2018, 172, 265–276. [Google Scholar] [CrossRef]
  25. r3DiM Benchmark. Available online: https://www.kaggle.com/dataset/c22f9996866156344599fd5baf48aaa8ac8ccce9a849b050ceeea36ba4e9c8f9 (accessed on 25 June 2022).
  26. Rahmatabadi, D.; Aberoumand, M.; Soltanmohammadi, K.; Soleyman, E.; Ghasemi, I.; Baniassadi, M.; Abrinia, K.; Bodaghi, M.; Baghani, M. 4D Printing-Encapsulated Polycaprolactone–Thermoplastic Polyurethane with High Shape Memory Performances. Adv. Eng. Mater. 2023, 25, 2201309. [Google Scholar] [CrossRef]
  27. Rahmatabadi, D.; Aberoumand, M.; Soltanmohammadi, K.; Soleyman, E.; Ghasemi, I.; Baniassadi, M.; Abrinia, K.; Zolfagharian, A.; Bodaghi, M.; Baghani, M. A New Strategy for Achieving Shape Memory Effects in 4D Printed Two-Layer Composite Structures. Polymers 2022, 14, 5446. [Google Scholar] [CrossRef]
  28. Aberoumand, M.; Soltanmohammadi, K.; Soleyman, E.; Rahmatabadi, D.; Ghasemi, I.; Baniassadi, M.; Abrinia, K.; Baghani, M. A comprehensive experimental investigation on 4D printing of PET-G under bending. J. Mater. Res. Technol. 2022, 18, 2552–2569. [Google Scholar] [CrossRef]
  29. Monzón, M.D.; Paz, R.; Pei, E.; Ortega, F.; Suárez, L.A.; Ortega, Z.; Alemán, M.E.; Plucinski, T.; Clow, N. 4D printing: Processability and measurement of recovery force in shape memory polymers. Int. J. Adv. Manuf. Technol. 2017, 89, 1827–1836. [Google Scholar] [CrossRef] [Green Version]
  30. Bodaghi, M.; Damanpack, A.R.; Liao, W.H. Adaptive metamaterials by functionally graded 4D printing. Mater. Des. 2017, 135, 26–36. [Google Scholar] [CrossRef]
  31. Cerbe, F.; Sinapius, M.; Böl, M. Methodology for FDM 4D printing with thermo-responsive SMPs. Mater. Today Proc. 2022, in press. [Google Scholar] [CrossRef]
  32. Peng, T. Analysis of Energy Utilization in 3D Printing Processes. Procedia CIRP 2016, 40, 62–67. [Google Scholar] [CrossRef] [Green Version]
  33. Quantifying the Overall Impact of Additive Manufacturing on Energy Demand: The Case of Selective Laser-Sintering Processes for Automotive and Aircraft Components. Available online: https://www.eceee.org/library/conference_proceedings/eceee_Industrial_Summer_Study/2016/2-sustainable-production-design-and-supply-chain-initiatives/quantifying-the-overall-impact-of-additive-manufacturing-on-energy-demand-the-case-of-selective-laser-sintering-processes-for-automotive-and-aircraft-components/ (accessed on 8 August 2022).
  34. Yan, Z.; Huang, J.; Lv, J.; Hui, J.; Liu, Y.; Zhang, H.; Yin, E.; Liu, Q. A New Method of Predicting the Energy Consumption of Additive Manufacturing considering the Component Working State. Sustainability 2022, 14, 3757. [Google Scholar] [CrossRef]
  35. Harding, O.J.; Griffiths, C.A.; Rees, A.; Pletsas, D. Methods to Reduce Energy and Polymer Consumption for Fused Filament Fabrication 3D Printing. Polymers 2023, 15, 1874. [Google Scholar] [CrossRef]
  36. Yang, J.; Liu, Y. Energy, time and material consumption modelling for fused deposition modelling process. Procedia CIRP 2020, 90, 510–515. [Google Scholar] [CrossRef]
  37. Petousis, M.; Vidakis, N.; Mountakis, N.; Karapidakis, E.; Moutsopoulou, A. Compressive response versus power consumption of acrylonitrile butadiene styrene in material extrusion additive manufacturing: The impact of seven critical control parameters. Int. J. Adv. Manuf. Technol. 2023, 126, 1233–1245. [Google Scholar] [CrossRef]
  38. Monteiro, H.; Carmona-Aparicio, G.; Lei, I.; Despeisse, M. Energy and material efficiency strategies enabled by metal additive manufacturing–A review for the aeronautic and aerospace sectors. Energy Rep. 2022, 8, 298–305. [Google Scholar] [CrossRef]
  39. Baumers, M.; Tuck, C.; Wildman, R.; Ashcroft, I.; Rosamond, E.; Hague, R. Transparency Built-in. J. Ind. Ecol. 2013, 17, 418–431. [Google Scholar] [CrossRef]
  40. Meteyer, S.; Xu, X.; Perry, N.; Zhao, Y.F. Energy and Material Flow Analysis of Binder-jetting Additive Manufacturing Processes. Procedia CIRP 2014, 15, 19–25. [Google Scholar] [CrossRef] [Green Version]
  41. Verma, A.; Rai, R.; Lab, D. Energy Efficient Modeling and Optimization of Additive Manufacturing Processes. In Proceedings of the 24th International SFF Symposium—An Additive Manufacturing Conference, SFF, Austin, TX, USA, 12–14 August 2013; Available online: https://hdl.handle.net/2152/88493 (accessed on 25 June 2022).
  42. Yang, Y.; Li, L.; Pan, Y.; Sun, Z. Energy Consumption Modeling of Stereolithography-Based Additive Manufacturing Toward Environmental Sustainability. J. Ind. Ecol. 2017, 21, S168–S178. [Google Scholar] [CrossRef] [Green Version]
  43. Simon, T.R.; Lee, W.J.; Spurgeon, B.E.; Boor, B.E.; Zhao, F. An Experimental Study on the Energy Consumption and Emission Profile of Fused Deposition Modeling Process. Procedia Manuf. 2018, 26, 920–928. [Google Scholar] [CrossRef]
  44. Luo, Y.; Leu, M.C.; Ji, Z. Assessment of Environmental Performance of Rapid Prototyping and Rapid Tooling Processes. In Proceedings of the 10th Annual Solid Freeform Fabrication Symposium, Austin, TX, USA, 9–11 August 1999; pp. 783–791. [Google Scholar]
  45. Jackson, M.; Asten, A.; Morrow, J.; Min, S.; Pfefferkorn, F. Comparison of Energy Consumption in Wire-based and Powder-based Additive-subtractive Manufacturing. Procedia Manuf. 2016, 5, 989–1005. [Google Scholar] [CrossRef] [Green Version]
  46. Qin, J.; Hu, F.; Liu, Y.; Witherell, P.; Wang, C.C.L.; Rosen, D.W.; Simpson, T.W.; Lu, Y.; Tang, Q. Research and application of machine learning for additive manufacturing. Addit. Manuf. 2022, 52, 102691. [Google Scholar] [CrossRef]
  47. Kumar, R.; Ghosh, R.; Malik, R.; Sangwan, K.S.; Herrmann, C. Development of Machine Learning Algorithm for Characterization and Estimation of Energy Consumption of Various Stages during 3D Printing. Procedia CIRP 2022, 107, 65–70. [Google Scholar] [CrossRef]
  48. Hu, F.; Qin, J.; Li, Y.; Liu, Y.; Sun, X. Deep Fusion for Energy Consumption Prediction in Additive Manufacturing. Procedia CIRP 2021, 104, 1878–1883. [Google Scholar] [CrossRef]
  49. McComb, C.; Meisel, N.; Simpson, T.W.; Murphy, C. Predicting Part Mass, Required Support Material, and Build Time via Autoencoded Voxel Patterns; Pennsylvania State University: State College, PA, USA, 2018; Available online: https://engrxiv.org/preprint/view/247 (accessed on 25 June 2022). [CrossRef] [Green Version]
  50. El youbi El idrissi, M.A.; Laaouina, L.; Jeghal, A.; Tairi, H.; Zaki, M. Energy Consumption Prediction for Fused Deposition Modelling 3D Printing Using Machine Learning. Appl. Syst. Innov. 2022, 5, 86. [Google Scholar] [CrossRef]
  51. Szemeti, G.; Ramanujan, D. An Empirical Benchmark for Resource Use in Fused Deposition Modelling 3D Printing of Isovolumetric Mechanical Components. Procedia CIRP 2022, 105, 183–191. [Google Scholar] [CrossRef]
  52. Durgashyam, K.; Indra Reddy, M.; Balakrishna, A.; Satyanarayana, K. Experimental investigation on mechanical properties of PETG material processed by fused deposition modeling method. Mater. Today Proc. 2019, 18, 2052–2059. [Google Scholar] [CrossRef]
  53. Guessasma, S.; Belhabib, S.; Nouri, H. Printability and Tensile Performance of 3D Printed Polyethylene Terephthalate Glycol Using Fused Deposition Modelling. Polymers 2019, 11, 1220. [Google Scholar] [CrossRef] [Green Version]
  54. Pernica, J.; Sustr, M.; Dostal, P.; Brabec, M.; Dobrocky, D. Tensile Testing of 3D Printed Materials Made by Different Temperature. Manuf. Technol. 2021, 21, 398–404. [Google Scholar] [CrossRef]
  55. Qi, X.; Chen, G.; Li, Y.; Cheng, X.; Li, C. Applying Neural-Network-Based Machine Learning to Additive Manufacturing: Current Applications, Challenges, and Future Perspectives. Engineering 2019, 5, 721–729. [Google Scholar] [CrossRef]
  56. Kwon, O.; Kim, H.G.; Ham, M.J.; Kim, W.; Kim, G.-H.; Cho, J.-H.; Kim, N.I.; Kim, K. A deep neural network for classification of melt-pool images in metal additive manufacturing. J. Intell. Manuf. 2020, 31, 375–386. [Google Scholar] [CrossRef]
  57. Dreyfus, G.; Martinez, J.-M.; Samuelides, M.; Gordon, M.B.; Badran, F.; Thiria, S.; Hérault, L. Réseaux de Neurones. Librairie Eyrolles. Available online: https://www.eyrolles.com/Informatique/Livre/reseaux-de-neurones-9782212110197 (accessed on 25 June 2022).
  58. McCulloch, W.S.; Pitts, W. A logical calculus of the ideas immanent in nervous activity. Bull. Math. Biophys. 1943, 5, 115–133. [Google Scholar] [CrossRef]
  59. Huang, Y. Advances in Artificial Neural Networks–Methodological Development and Application. Algorithms 2009, 2, 973–1007. [Google Scholar] [CrossRef] [Green Version]
  60. Haykin, S.S. Neural Networks and Learning Machines; Pearson International Edition; Pearson: London, UK, 2009; Available online: https://books.google.co.ma/books?id=KCwWOAAACAAJ (accessed on 25 June 2022).
  61. Ramachandran, P.; Zoph, B.; Le, Q.V. Searching for Activation Functions. arXiv 2017, arXiv:1710.05941. [Google Scholar]
  62. Rosenblatt, F. Perceptron Simulation Experiments. Proc. IRE 1960, 48, 301–309. [Google Scholar] [CrossRef]
  63. Chauvin, Y.; Rumelhart, D.E. (Eds.) Backpropagation: Theory, Architectures, and Applications; Lawrence Erlbaum Associates, Inc.: Hillsdale, NJ, USA, 1995; p. 561. ISBN 978-0-8058-1258-9. [Google Scholar]
  64. Hopfield, J.J. Neural networks and physical systems with emergent collective computational abilities. Proc. Natl. Acad. Sci. USA 1982, 79, 2554–2558. [Google Scholar] [CrossRef]
  65. Haykin, S.S.; Haykin, S.S. Neural Networks and Learning Machines, 3rd ed.; Prentice Hall: New York, NY, USA, 2009; ISBN 978-0-13-147139-9. [Google Scholar]
  66. Corriou, J.-P.; Société de Chimie Industrielle; Société Française de Génie des Procédés. Journée D’étude Modélisation, Conduite et Diagnostic de Procédés Industriels à l’aide de Réseaux de Neurones; Organisée Conjointement par le GFGP et la Société de Chimie Industrielle, 29 Mars 1995; Coordonnateur Jean Pierre Corriou; Lavoisier Technique et Documentation: Paris, France, 1995; ISBN 2-910239-11-X. [Google Scholar]
  67. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13 August 2016; pp. 785–794. [Google Scholar] [CrossRef] [Green Version]
  68. Zhang, Z.; Zhang, Y.; Wen, Y.; Ren, Y. Data-driven XGBoost model for maximum stress prediction of additive manufactured lattice structures. Complex Intell. Syst. 2023, 1–12. [Google Scholar] [CrossRef]
  69. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Green Version]
  70. Liu, D.; Fan, Z.; Fu, Q.; Li, M.; Faiz, M.A.; Ali, S.; Li, T.; Zhang, L.; Khan, M.I. Random forest regression evaluation model of regional flood disaster resilience based on the whale optimization algorithm. J. Clean. Prod. 2020, 250, 119468. [Google Scholar] [CrossRef]
  71. Smola, A.J.; Schölkopf, B. A tutorial on support vector regression. Stat. Comput. 2004, 14, 199–222. [Google Scholar] [CrossRef] [Green Version]
  72. Vapnik, V.N. The Nature of Statistical Learning Theory; Springer: New York, NY, USA, 1995; ISBN 978-1-4757-2440-0. [Google Scholar]
Figure 1. Correlation plot between total energy and other features.
Figure 1. Correlation plot between total energy and other features.
Jmmp 07 00128 g001
Figure 2. Correlation plot between print time and other features.
Figure 2. Correlation plot between print time and other features.
Jmmp 07 00128 g002
Figure 3. Parameter optimization approach.
Figure 3. Parameter optimization approach.
Jmmp 07 00128 g003
Figure 4. Actual and predicted energy values for each part.
Figure 4. Actual and predicted energy values for each part.
Jmmp 07 00128 g004
Figure 5. Actual and predicted print time values for each part.
Figure 5. Actual and predicted print time values for each part.
Jmmp 07 00128 g005
Figure 6. MLP architecture of the selected network.
Figure 6. MLP architecture of the selected network.
Jmmp 07 00128 g006
Figure 7. MSE variations vs. epoch during training of the optimal network.
Figure 7. MSE variations vs. epoch during training of the optimal network.
Jmmp 07 00128 g007
Figure 8. Trend line of actual and predicted values for energy consumption.
Figure 8. Trend line of actual and predicted values for energy consumption.
Jmmp 07 00128 g008
Figure 9. Trend line of actual and predicted values for print time.
Figure 9. Trend line of actual and predicted values for print time.
Jmmp 07 00128 g009
Figure 10. Actual and predicted values of energy for the 184 experiments.
Figure 10. Actual and predicted values of energy for the 184 experiments.
Jmmp 07 00128 g010
Figure 11. Actual and predicted values of the printing time for 184 experiments.
Figure 11. Actual and predicted values of the printing time for 184 experiments.
Jmmp 07 00128 g011
Table 1. The values of the input parameters according to their ranges.
Table 1. The values of the input parameters according to their ranges.
Input OrderInput Parameters FDMIntervals of Values
INP1“Orientation” [degree]0; 90; 180
INP2“Stl surface area” [mm2][1533.85–10,850.92]
INP3“Number of facets”[40–9368]
INP4“Sliced X” [mm][3.23–153.87]
INP5“Sliced Y” [mm][8.45–67.27]
INP6“Sliced Z” [mm][3.23–153.87]
INP7“Sliced volume” [mm3][2142.39–5852.08]
INP8“Sliced volume including support” [mm3][2171.28–11,376.59]
INP9“Total Filament” [g][2.76–14.45]
INP10“Support Filament” [g][0–8.13]
INP11“Expected print time” [h][0.4166–4.033]
INP12“Number of layers” [integer][21–1629]
Table 2. Performance of the used models.
Table 2. Performance of the used models.
Model.MAEMSERMSER-SquaredExplained Variance
XGBoost2.5716708531.74603215.6343617398.441580798.4661312
Random Forest2.4667563435.13116365.9271547697.977319997.9841714
Support Vector Regression1.422522087.394176522.7192235199.068706499.0862437
Proposed model (MLP)0.9890.0181.35599.5999.6
Table 3. Performance of the selected networks.
Table 3. Performance of the selected networks.
MLP NetworkR2 SquareExplained-VarianceMAEMSERMSE
12-2-299.34%99.56%1.248%0.03%1.72%
12-6-297.55%97.73%2.004%0.11%3.314%
12-8-297.81%97.95%1.88%0.098%3.131%
12-12-297.94%98.11%1.908%0.092%3.036%
12-2-4-299.59%99.6%0.989%0.018%1.355%
12-2-11-299.4%99.44%1.133%0.027%1.638%
12-2-12-298.83%98.84%1.377%0.052%2.289%
12-3-2-299.51%99.51%0.973%0.022%1.479%
12-3-6-298.25%98.25%1.466%0.079%2.802%
12-3-8-296.96%96.99%1.595%0.136%3.691%
12-4-4-297.21%97.41%1.765%0.125%3.535%
12-6-13-298.25%98.38%1.887%0.078%2.801%
12-9-6-298.17%98.3%1.706%0.082%2.864%
Table 4. Weights and biases for the first hidden layer.
Table 4. Weights and biases for the first hidden layer.
Neurons of First Hidden Layer
12
Neurons of input layer1−0.018603960.01651467
2−0.398695560.02904175
30.06080785−0.15600291
40.00827086−0.07250348
5−0.089581010.08917017
60.24706206−0.14367856
70.06262470.09804111
80.06498940.09762235
9−0.023167190.12844889
10−0.12178944−0.03211394
114.5988172.9437175
120.014804560.01575648
biases−0.42479023−3.8425364
Table 5. Weights and bias of the second hidden layer.
Table 5. Weights and bias of the second hidden layer.
Neurons of Second Hidden Layer
1234
Neurons of first hidden layer11.74873051.1139799−0.81829741.1671507
20.98937582.1798441−2.7809447.2701535
biases−0.72620803−1.22995421.136458−0.7672453
Table 6. Weights and biases for the output layer.
Table 6. Weights and biases for the output layer.
Neurons of Output Layer
12
Neurons of second hidden layer10.131262871.0074766
20.210241540.90955585
3−0.7737203−1.1061413
41.2714580.0429178
biases−0.1821677−0.05179993
Table 7. Some use cases, with comparison between the two real and predicted values.
Table 7. Some use cases, with comparison between the two real and predicted values.
PartOrientation (Degree)Predicted Energy (Watt)Actual Energy (Watt)Error of Prediction
(Energy)
Predicted Print Time (Hour)Actual Print Time (Hour)Error of Prediction
(Print Time)
Jmmp 07 00128 i0010150.23254143.8640.044267781.39217721.3750.01249251
90127.927956124.4460.027979651.1872281.1880.00064983
180154.8057150.9820.025325541.4416311.4230.01309276
Jmmp 07 00128 i0020150.10175152.630.016564571.37289741.360.00948338
90117.2996111.8170.04903191.0891921.0710.01698599
180151.03885150.1670.005805871.38920091.3670.0162406
Jmmp 07 00128 i0030124.42141122.1710.018420171.16802871.1860.01515287
90282.67624285.9510.011452172.79016572.7670.00837214
180170.33725164.240.037124031.60793721.5870.01319294
Jmmp 07 00128 i004095.0873397.3910.023653830.87632520.8730.00380893
90102.01913102.1750.001525520.93686670.930.00738355
180118.05182120.4060.019552021.08215511.0840.00170194
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

El youbi El idrissi, M.A.; Laaouina, L.; Jeghal, A.; Tairi, H.; Zaki, M. Modeling of Energy Consumption and Print Time for FDM 3D Printing Using Multilayer Perceptron Network. J. Manuf. Mater. Process. 2023, 7, 128. https://doi.org/10.3390/jmmp7040128

AMA Style

El youbi El idrissi MA, Laaouina L, Jeghal A, Tairi H, Zaki M. Modeling of Energy Consumption and Print Time for FDM 3D Printing Using Multilayer Perceptron Network. Journal of Manufacturing and Materials Processing. 2023; 7(4):128. https://doi.org/10.3390/jmmp7040128

Chicago/Turabian Style

El youbi El idrissi, Mohamed Achraf, Loubna Laaouina, Adil Jeghal, Hamid Tairi, and Moncef Zaki. 2023. "Modeling of Energy Consumption and Print Time for FDM 3D Printing Using Multilayer Perceptron Network" Journal of Manufacturing and Materials Processing 7, no. 4: 128. https://doi.org/10.3390/jmmp7040128

APA Style

El youbi El idrissi, M. A., Laaouina, L., Jeghal, A., Tairi, H., & Zaki, M. (2023). Modeling of Energy Consumption and Print Time for FDM 3D Printing Using Multilayer Perceptron Network. Journal of Manufacturing and Materials Processing, 7(4), 128. https://doi.org/10.3390/jmmp7040128

Article Metrics

Back to TopTop