Next Article in Journal
Using AI to Reconstruct and Preserve 3D Temple Art with Old Images
Previous Article in Journal
A Combined Mirror–EMG Robot-Assisted Therapy System for Lower Limb Rehabilitation
Previous Article in Special Issue
Inkjet-Printed Flexible Piezoelectric Sensor for Large Deformation Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Evaluation of Machine Learning Models for Enhancing Sustainability in Additive Manufacturing

Department of Mechanical Engineering, University of Manitoba, Winnipeg, MB R3T 2N2, Canada
*
Author to whom correspondence should be addressed.
Technologies 2025, 13(6), 228; https://doi.org/10.3390/technologies13060228
Submission received: 8 May 2025 / Revised: 23 May 2025 / Accepted: 28 May 2025 / Published: 3 June 2025

Abstract

:
Additive manufacturing (AM) presents significant opportunities for advancing sustainability through optimized process control and material utilization. This research investigates the application of machine learning (ML) models to directly associate AM process parameters with sustainability metrics, which is often a challenge by experimental methods alone. Initially, experimental data are generated by systematically varying key AM parameters, layer height, infill density, infill pattern, build orientation, and number of shells. Subsequently, four ML models, Linear Regression, Decision Trees, Random Forest, and Gradient Boosting, are trained and evaluated. Hyperparameter tuning is conducted using the Limited-memory Broyden–Fletcher–Goldfarb–Shanno with Box constraints (L-BFGS-B) algorithm, which demonstrates the superior computational efficiency compared to traditional approaches such as grid and random search. Among the models, Random Forest yields the highest predictive accuracy and lowest mean squared error across all target sustainability indicators: energy consumption, part weight, scrap weight, and production time. The results confirm the efficacy of ML in predicting sustainability outcomes when supported by robust experimental data. This research offers a scalable and computationally efficient approach to enhancing sustainability in AM processes and contributes to data-driven decision-making in sustainable manufacturing.

Graphical Abstract

1. Introduction

Manufacturing is a cornerstone of industrial development and economic growth, playing a pivotal role in producing goods to meet societal demands [1]. However, traditional manufacturing methods often entail significant resource consumption and waste generation, raising concerns about their environmental impact. The manufacturing sector accounts for a substantial share of global greenhouse gas emissions, energy consumption (15%), and material consumption (35–40%) [2]. Consequently, the quest for more sustainable manufacturing practices has become increasingly urgent in the face of climate change and resource depletion for a circular economy.
Additive Manufacturing (AM) or 3D Printing has emerged as a revolutionary approach characterized by its layer-by-layer construction of parts from digital models. This innovative method contrasts sharply with conventional manufacturing (CM), which typically relies on subtractive processes to remove material from a larger block [3]. AM offers numerous advantages, including design flexibility, ability to create complex geometries, and reduced material waste. AM can minimize waste and optimize resource utilization. Furthermore, AM enables the production of products close to end users, reducing transportation emissions and enhancing supply chain efficiency [4].
The AM sustainability potential can be further amplified by its capability to fabricate lightweight structures that meet stringent performance requirements, making it particularly attractive for industries such as aerospace, automotive, and healthcare [5], where material efficiency and performance are paramount [6]. Additionally, AM facilitates the use of alternative and recycled materials, contributing to a more sustainable lifecycle for products [7]. However, despite its inherent advantages, the widespread adoption of AM faces challenges such as variability in material properties, process parameters, and complexities of optimizing designs.
Sustainability in AM integrates environmental, social, and economic considerations. It emphasizes the optimization of material usage, energy efficiency, and innovative production techniques to meet current manufacturing demands while ensuring that future generations can sustain production capabilities without exhausting resources or inflicting harm on the environment [8]. Specifically, the sustainability metrics considered in this research include energy consumption, part weight, scrap weight, and printing time, which directly relates to the economic and environmental goals of sustainability. Energy consumption and production time drive the operational efficiency, influence both energy usage and carbon emissions. Reducing material usage, reflected in part and scrap weights, conserves resources and minimizes waste. By optimizing these parameters, AM can achieve material savings, which in turn reduces energy consumption, emissions, printing time, and overall costs. These interconnected improvements address both economic and environmental sustainability and highlight the importance of parameter optimization for efficient and sustainable AM processes.
Machine learning (ML) has emerged as a promising approach to address the above challenges and offer a powerful tool for analyzing complex datasets and uncovering relationships between parameters and performance outcomes. Integrating ML into the AM process enables users to predict mechanical properties and assess AM parameters impact on sustainability metrics [9]. By employing advanced algorithms, ML can analyze vast amounts of data generated during the AM process [10] and facilitate the optimization of parameters like the layer thickness, infill type, and build orientation. This data-driven approach enhances the process efficiency while supporting informed decision-making to achieve sustainability objectives.
Hyperparameter optimization methods are essential for enhancing ML models in the context of AM. Techniques such as grid search [11] and random search [12] systematically and randomly navigate parameter spaces, respectively. However, these methods can be computationally intensive and may lack the desired precision. In contrast, Bayesian optimization offers a probabilistic framework that effectively balances exploration and exploitation, although its implementation can be intricate [13]. The Limited-memory Broyden–Fletcher–Goldfarb–Shanno with Box constraints (L-BFGS-B) optimizer, a gradient-based approach, excels in managing bounded continuous optimization, yielding results that are both faster and more computationally efficient [14]. This study employs L-BFGS-B to overcome limitations of the traditional methods, thereby advancing the parameter optimization for the AM sustainability.
The objective of this research is to investigate the relationship between AM process parameters and sustainability outcomes, with a particular focus on both environmental and economic dimensions. Using experimentally generated data, ML techniques are applied post hoc to model and interpret the complex interactions between specific process parameters and measurable sustainability metrics such as energy consumption and material efficiency. This approach enables a deeper understanding for the parameter choice to impact sustainability performance. By addressing a gap in existing literature, our solution contributes a data-driven framework for the sustainability implication of AM processes to valuable insights for both academic research and practical applications.

2. Literature Review

AM builds parts layer by layer, guided by digital models, which significantly reduces the material waste and energy consumption compared to CM [3]. Due to these advantages, AM is often considered a more sustainable option than CM [8].
Sustainability of manufacturing processes including AM is commonly assessed by three primary approaches: cradle-to-grave [15], cradle-to-gate [16], and gate-to-gate [17]. The cradle-to-grave approach evaluates sustainability metrics like energy consumption and material usage from raw material extraction to product’s disposal after its useful life. Cradle-to-gate focuses on these metrics from the raw material extraction to production stage, while gate-to-gate examines only the production process. Analysis methods employed in these approaches include Life Cycle Costing (LCC) which focuses on the total economic cost, and Life Cycle Assessment (LCA), which evaluates environmental impacts over the product’s lifecycle [18].
Various approaches have been proposed to investigate AM sustainability. Some studies have focused on energy consumption and material usage as key indicators of AM sustainability [19]. Energy consumption in AM encompasses multiple stages, including warm-up time, printing time, post-processing, and material processing, all of them contribute to the overall energy demand. Additionally, factors such as machine’s efficiency and its rate of utilization play a crucial role in determining energy use. A machine running at the optimal capacity with high utilization rates tends to be more energy-efficient, as downtime and idle energy consumption are minimized. In contrast, low utilization or inefficient operation can lead to wasted energy [20]. Moreover, the quantity and type of material processed, whether metals, polymers or composites, can influence the energy required for both material handling and post-processing stages. Insightfully managing these aspects is the key to enhancing AM sustainability by optimizing energy use while maintaining production quality [21]. One study evaluated the impact of key FFF parameters on the mechanical properties and mass of PLA-printed parts, it also developed predictive models for the observed responses. The findings identified extrusion temperature as the most influential factor due to its effect on material behavior and thermal–rheological characteristics. Print speed also affects the results, though its influence varied with part geometry and printer configuration. The study stablished a low-error predictive model based on structured experimental planning, demonstrating the effectiveness of mathematical modeling in capturing parameter–property relationships in FFF [22]. Others have examined relationships between electrical energy consumption and emissions to assess AM sustainability [23]. These findings emphasize that infill density is a dominant factor, with a substantial effect on material consumption, energy usage, and overall CO₂ emissions. Another work applied twelve ML algorithms in modeling energy consumption of FDM using a dataset of isovolumetric parts with Gaussian Process Regression (GPR) achieving the best performance. Although it identified the optimal build orientation for minimizing energy use, it did not explicitly analyze or interpret the relationship between orientation and energy consumption [24]. Recent research has explored the dual objectives of understanding parameter influence and applying artificial intelligence (AI) techniques to predict CO₂ emissions in FFF processes [25]. Another research proposed a G-code-based method to predict carbon emissions in 3D printing by avoiding the use of ML techniques. By comparing FDM with traditional injection molding (IM) for PLA products, it found that FDM resulted in significantly lower emissions, especially in small-batch or customized production, highlighting its environmental benefits [26]. In the context of metal AM, energy [27] and exergy [28] metrics have been used to evaluate sustainability. Additionally, some studies have explored the recyclability of PET filaments to assess sustainability for the material usage [29]. Design plays a pivotal role in achieving AM sustainability. By leveraging the AM flexibility, designers can optimize part geometries to reduce material usage, create lightweight structures, and minimize waste. Features such as topology optimization and lattice structures allow for efficient designs that maintain strength while using less material [30]. Furthermore, design for recyclability and modular components can extend product life cycles, facilitate remanufacturing, and enhance material recovery, contributing to a circular economy. Thoughtful design choices in AM can not only improve resource efficiency but also reduce energy consumption in the manufacturing process [31]. Traditionally, the Taguchi method, a well-established approach for optimizing parameters in manufacturing and engineering processes, is applied. It provides a systematic framework aimed at enhancing performance while minimizing variability. By employing orthogonal arrays and signal-to-noise ratios, this method effectively reduces the number of experimental trials needed to identify optimal process parameters. Its robust statistical foundation has made it a preferred choice in quality control and process optimization, as it can identify resilient settings with minimal experimental effort [19].
However, the Taguchi method has notable limitations. Its signal-to-noise ratios often fail to accurately determine optimal factor levels, and its application requires substantial statistical expertise, limiting accessibility for non-experts. The method’s effectiveness depends on interactions between controllable and noise factors. When these interactions are weak, its reliability diminishes, while strong interactions among controllable factors can obscure the true optimum. Additionally, its offline nature makes it unsuitable for real-time process adjustments, and its assumption of linear, additive effects may not hold in complex manufacturing systems with nonlinear interactions. These constraints underscore the need for more flexible, data-driven optimization techniques [32]. Although these studies have made significant contributions to understanding AM sustainability, approaches they used are often time-consuming, labor-intensive, and resource-intensive, requiring extensive experiments and data collection to draw meaningful conclusions.
To address the challenges of AM sustainability, ML tools have been increasingly studied for their potential to predict and optimize various processes [33]. By focusing on key mechanical properties such as tensile strength, compressive strength, and Young’s modulus, researchers have harnessed ML techniques to enhance the efficiency of AM. While specific models like Regression [34], Classification [35], Neural Networks (NN) [26] and Ensemble Learning models [36] have been employed, the overarching goal remains the same: optimizing AM processes to reduce waste and energy consumption. For instance, the prediction of tensile strength through ML allows for the identification of optimal processing parameters, which improves the part quality and minimizes defects [33,34,37]. It is crucial as defects in printed parts often lead to increased material waste and longer production times. Similarly, by accurately predicting the compressive strength [38] and Young’s modulus [39], ML can facilitate the design of components to meet performance specifications without the excess material usage including geometrical feature identification and segmentation [40]. Printing temperature, layer height, and printing speed significantly impact the tensile strength. Temperature has a positive impact while the layer height and printing speed negatively impact the tensile strength [41]. Printing temperature has a similar effect on Young’s modulus [42]. Layer height and infill percentage dominantly impact Young’s modulus, and infill patterns can significantly influence the strength, stiffness, and weight of a 3D printed part [43]. Therefore, optimizing printing parameters is essential to ensure desired mechanical performance and prevent defects, as slight variations can affect strength, stiffness, and durability [44,45]. Moreover, the integration of ML into parameter optimization strategies [32,33], such as adjusting layer thickness, infill type and build orientation, contributes significantly to sustainability efforts [19]. These efforts can reduce the need for trial-and-error methods traditionally used in AM, thereby decreasing production time and energy consumption.
Hyperparameter tuning is an essential process to enhance the performance of ML models by identifying the most effective parameter configurations. The grid search method systematically evaluates all possible combinations of predefined hyperparameters for a thorough assessment, but it incurs significant computational costs [11]. In contrast, the hybrid grid search improves efficiency by combining systematic exploration of critical parameters with random sampling of less influential ones. Bayesian optimization utilizes a probabilistic framework with a surrogate function to iteratively refine optimal parameter settings, leading to the enhanced computational efficiency [46]. The L-BFGS method, employed with support vector regressors [47,48], is a gradient-based optimization technique specifically tailored for continuous and differentiable functions. It iteratively adjusts parameters within established constraints, promoting the faster convergence and reducing computational expense [49]. These methods highlight the crucial role of hyperparameter tuning in enhancing the ML model performance while ensuring efficiency, particularly in the AM field, where accurate and sustainable predictions are paramount.
Despite advancements in utilizing ML for predicting mechanical properties, a significant gap remains in directly correlating AM parameters with sustainability metrics. While the indirect benefits of enhancing mechanical properties and reducing defects are evident, further research is essential to establish clear connections between specific ML applications and sustainability outcomes in AM. Understanding the specific AM parameters to impact sustainability metrics is crucial for improving the overall efficiency and environmental performance of the AM process. This research aims to directly analyze the relationship by evaluating different ML models and presenting optimized parameters, which offers a substantial advancement over the traditional time-consuming and resource-intensive approaches for AM sustainability. To achieve this, we select Linear Regression, Decision Trees, Random Forest, and Gradient Boosting models that are widely recognized for their robustness and effectiveness in regression tasks and commonly used in the literature. This selection helps evaluation of the L-BFGS-B optimization method in the computational efficiency and effectiveness for an alternative to traditional hyperparameter tuning methods such as the grid search. Although other ML methods such as Neural Networks, k-Nearest Neighbors, Gaussian Process Regression, and Support Vector Regression have their merits, they are not included in this research due to their limitations in the dataset size, relevance to continuous data, and less frequent use in the AM context. By integrating sustainability assessments into the ML process, our research introduces a novel data-driven method that examines key parameters such as the layer thickness, number of shells, build orientation, infill type, and infill percentage. Impacts of these parameters are evaluated in energy consumption, part weight, scrap weight, and printing time to form a comprehensive framework for AM sustainability. Our research solution could ultimately lead to the development of sustainable AM practices that align with industry goals and environmental standards.

3. Methodology

In this section, we discuss the evaluation of ML models, hyperparameter optimization, evaluation metrics, data collection, and sustainability metrics.

3.1. ML Models

ML models employed in this research are Random Forest, Decision Trees, Gradient Boosting, and Linear Regression. These models are selected for their robustness and effectiveness in handling regression tasks, and widespread use in related applications, making them ideal for evaluating sustainability metrics in AM. Random Forest and Gradient Boosting, as ensemble-based models, excel in capturing complex interactions between features while reducing overfitting through their inherent aggregation mechanisms [50]. Decision Trees provide clear interpretability, enabling insights into the relative importance of process parameters [36]. Linear Regression offers a baseline for the comparison due to its simplicity and efficiency [39]. Each model configuration is carefully chosen to align with our objectives to ensure reliable predictions across sustainability metrics in the energy consumption, part weight, scrap weight and production time. This combination of models provides a comprehensive framework to assess the impact of AM process parameters on sustainability outcomes.

3.1.1. Linear Regression (LinReg)

Linear regression is a technique used in statistics and Machine Learning to model the relationship between dependent and independent variables, assuming a linear relationship. Changes in the dependent variable occur proportionally with changes in the independent variables, as shown in the equation below:
Y = β ο + β X + ε
where Y is the dependent variable, X is the independent variable, βο is the intercept, β is the slope of the line, and ε represents the error between the predicted and actual values [39].
By minimizing the sum of squared differences between the true and predicted values, linear regression identifies the best-fit line, a process known as the least squares method. It is most effective for linear data with the minimal noise.

3.1.2. Decision Tree (DT)

Decision Trees are simple yet powerful regression models that split the data recursively into regions with minimal target variance. They are particularly intuitive, as they create a flowchart-like structure where each internal node represents a decision rule, and leaf nodes correspond to predictions. However, DTs are prone to overfitting due to their tendency to memorize training data [36].
Mathematically, the decision at each split minimizes the Mean Squared Error (MSE):
M S E = 1 n i = 1 n y i y 2
where y i is the actual value, y is the mean of the target values in a region, and n is the number of data points in the region.
The tree grows until a stopping criterion, such as the maximum depth or minimum samples per leaf, is met. Predictions are made by taking the mean of target values in the corresponding region.

3.1.3. Random Forest (RF)

Random Forest enhances the performance of Decision Trees by using an ensemble of trees trained on bootstrapped subsets of the data. Each tree randomly selects a subset of features for splitting, introducing randomness that reduces overfitting and improves generalization. RF is robust to noise and highly effective in predicting complex patterns [50].
For regression, RF predicts by averaging the outputs of all the T trees:
y R F = 1 T t = 1 T y ( t )
where y ( t ) is the prediction of the t-th tree.
By combining the strengths of multiple weak learners, RF provides accurate and stable predictions while remaining resistant to overfitting.

3.1.4. Gradient Boosting (GB)

Gradient Boosting is an advanced ensemble technique that builds trees sequentially, where each tree corrects the residuals of the previous trees. Unlike RF, which trains trees independently, GB uses a gradient descent approach to optimize a loss function, typically the MSE for regression tasks. This iterative refinement allows GB to capture complex relationships effectively [51].
The residuals at iteration t are computed as
r i ( t ) = y i y i ( t 1 )  
where y i is the actual value, and y i ( t 1 ) is the prediction from the previous iteration.
The updated prediction is
y i ( t ) = y i ( t 1 ) + ŋ ·   f ( t )   ( x i )
where η is the learning rate, and f ( t ) ( x i ) is the prediction from the t-th tree.
GB’s iterative error minimization makes it highly accurate, but it requires careful tuning of hyperparameters to prevent overfitting or underfitting.

3.2. Hyperparameter Optimization

For the parameter optimization and response variable prediction, the model is initialized by importing Python libraries and defining a dataset with various parameters related to AM, using Google Colab. ML models such as Decision Tree (DT) and Random Forest (RF) regressors are used to predict multiple response variables, including the energy consumption, part weight, scrap weight, and production time. Both models utilize the ‘random_state’ parameter to ensure reproducibility of results, the RF model also incorporates the ‘n_estimators’ parameter to define the number of trees in the forest, which is set to 100. The data are split into training and test sets, with 20% reserved for testing, and a consistent random state is used for reproducibility across different runs [51]. To enhance the model performance, the ‘StandardScaler’ is applied to normalize the feature scales.
For the hyperparameter optimization, the minimize function from the ‘scipy.optimize’ library is utilized to leverage the L-BFGS-B method. Unlike the grid search or random search that are computationally expensive and time-intensive, L-BFGS-B is chosen for its efficiency in optimizing continuous and smooth functions within bounded constraints. The considered hyperparameters include ‘n_estimators’ for RF and ‘max_depth’ for both DT and RF. Other hyperparameters, such as ‘min_samples_split’ and ‘min_samples_leaf’, are not included for the computational efficiency and focus on parameters with the most significant impact on the model performance. This setup aims to fine-tune the models and optimize AM parameters to minimize costs and improve efficiency. Table 1 highlights the hyperparameter configurations for the models used in the parameter optimization.
This approach ensures a balance between the computational efficiency and predictive accuracy to demonstrate the practical application of advanced ML techniques in improvement of the AM sustainability.

3.3. Evaluation Metrics

The models’ performance is assessed using the Coefficient of Determination (R2), Mean Absolute Error (MAE), and Mean Squared Error (MSE) [38].
R2, MAE, and MSE are fundamental metrics used to evaluate the accuracy of regression models. R2, or the coefficient of determination, quantifies the percentage of the variance in the dependent variable that is predictable from the independent variables, with values closer to 1 indicating a better fit of the model [36], mathematically represented as
R 2 = 1 S S r e s S S t o t
where S S r e s (Sum of Squares of Residuals) = i = 1 n y i y i 2 , S S t o t (Total sum of squares) = i = 1 n y i y i 2 , y i = actual values, y i = predicted values, and y i = mean of actual values.
Mean Absolute Error (MAE) measures the average magnitude of errors in predictions, giving a straightforward indication of prediction accuracy with a perfect score of 0, mathematically represented as
M A E =   1 n   i = 1 n | y i y i |
where | y i y i | is the absolute error between the actual and predicted values.
Meanwhile, Mean Squared Error (MSE) calculates the average of the squares of the errors, heavily penalizing larger errors, which makes it sensitive to outliers in the dataset, mathematically represented as
M S E = 1 n i = 1 n y i y i 2
These metrics together provide a comprehensive overview of a model’s predictive performance, helping in both the diagnostics of model behavior and the comparison of different models under consideration [52]. To evaluate the model performance comprehensively, we incorporate multiple techniques beyond the traditional metrics like R2, MAE, and MSE.
Model Stability Analysis: Stability analysis assesses the consistency of model predictions by calculating the mean and standard deviation of predictions across multiple bootstrap samples. This method highlights the reliability of each model under varying training conditions to offer deeper insights into model robustness.
True vs. Predicted Values with Error Bands: The actual vs. predicted value plots provide a visual representation of model accuracy. To enhance interpretability, error bands are added to these plots, representing the standard deviation of errors. Residuals ( e i ) are calculated as follows.
e i = y i y i
where y i and y i are the true and predicted values, respectively. The standard deviation of residuals ( δ e ) quantifies the error spread
δ e = 1 m i = 1 m e i 2
where ‘m’ is the total number of samples. The error bands are then defined as
Upper   Bound = y i + δ e   and   Lower   Bound =   y i δ e .
Selecting appropriate evaluation metrics is crucial for ensuring the reliability, robustness, and interpretability of machine learning models, especially with experimental datasets. This study employs a comprehensive assessment framework combining prediction accuracy metrics, uncertainty quantification, and visual validation methods. Bootstrap-based stability analysis evaluates prediction variability across response variables, ensuring model consistency.
Additionally, true vs. predicted value plots visually assess bias, variance, and predictive performance, providing deeper insights into model reliability and generalizability. This integrated approach strengthens model evaluation, ensuring the selected models are statistically sound and practically applicable.

3.4. Dataset Description, Preprocessing and Datasplitting

To evaluate the AM sustainability, four key metrics, energy consumption, part weight, scrap weight, and printing time, are analyzed using five process parameters at three levels, as shown in Table 2. The Taguchi Orthogonal Arrays (OA) approach is employed to optimize experimental design, reducing the number of experiments from 243 (full factorial design) to 27, as per the L27 OA design [19]. The dataset is provided by the corresponding author who is also the author of the referenced paper [19]. This ensures that the dataset structure, including process parameters and response variables, aligns with the objectives of this research.
Numerical features, such as the layer thickness and infill percentage, are standardized using the ‘StandardScaler’ to enhance the model performance and ensure consistent training. Categorical variables, including the infill type (Cross, Diamond, Honeycomb) and build orientation (Flat, On-edge, Upright), are encoded using ‘pd.Categorical’. The choice of ‘pd.Categorical’ over methods like One-Hot Encoding is driven by its compactness, as it avoids the feature expansion and minimizes dimensionality. This results in the lower memory usage and computational overhead for its high efficiency. Additionally, the distinct categories in the dataset are effectively represented with direct numerical encoding to eliminate the need for binary columns required by One-Hot Encoding. This approach ensures efficient preprocessing while maintaining clarity and interpretability, aligning seamlessly with our goals.
Figure 1 displays the parameter combinations used in our research for 3D printing specimens. Five factors at three levels are considered for investigation as follows: print layer thickness, number of shells, infill type, infill percentage, and build orientation. Figure 2 shows dimensions of the experimental specimens. Polylactic Acid (PLA) material with a 1.75 mm diameter filament is used to fabricate the ASTM-standard specimen using the Fused Filament Fabrication (FFF) process as classified under ISO/ASTM 52900 [53]. A CubePro Duo 3D printer is used to produce the specimens. The printer has a build volume of 275 × 265 × 230 mm and supports a minimum layer thickness of 70 µm. Default settings for extrusion temperature and printing speed are employed. The printer is equipped with dual nozzles, allowing the use of different types of materials during fabrication. Figure 3 displays 3 building orientations. Figure 4 presents the experimental data collected for the four sustainability metrics. The x-axis represents the sample index, while the y-axis displays the corresponding values for each metric, allowing for a clear comparison across the different samples in terms of energy consumption, part weight, scrap weight, and production time. The connecting lines between data points are included to help readers follow the trend and do not imply a linear relationship between the values. The energy consumed is determined by multiplying the 3D printer’s power consumption by the sum of the warm-up and printing times. Part weight and scrap weight are measured by weighing the printed part and any additional materials such as support structures, respectively. Production time encompasses both setup and printing durations.
To ensure the reliable model evaluation, the dataset is split into training and testing sets using an 80:20 ratio. This split allows much of the data to be used for training the models, while a representative portion is reserved for testing their performance. A fixed random seed is applied during the splitting process to maintain consistency and reproducibility of results across different runs. This approach ensures that the training and testing sets remain representative of the overall dataset for a robust evaluation of the model ability.

3.5. Sustainability Metrics

Among the three aspects of sustainability, economic, environmental, and social sustainability [54], this research focuses on the economic and environmental aspects. Energy efficiency, material efficiency, and process efficiency are identified as key factors contributing to both environmental and economic sustainability [2,55]. Energy efficiency reduces the energy consumption and lowers operational costs while minimizing the carbon footprint. Material efficiency involves optimizing the resource utilization, reducing waste, conserving natural resources, and decreasing pollution [20]. Economically, it leads to significant cost savings by minimizing the material usage. Processing efficiency enhances production rates and reduces energy use and operational costs, thereby improving profitability and environmental outcomes.
In the context of AM, sustainability metrics in energy consumption, part weight, scrap weight, and production time quantitatively represent the environmental impact and efficiency of the printing process. These metrics facilitate informed decisions to balance sustainability goals with operational performance. Mathematical representations of these metrics are as follows.

3.5.1. Energy Consumption (EC)

It can be represented as the total kilowatt-hours (kWh) used during the production of a single part and the warm-up time [15].
E C = P   ( T w a r m u p + T p r i n t i n g )
where P is the power rating of the 3D printer (in kilowatts), T w a r m u p is the time the printer takes to warm-up, and T p r i n t i n g is time taken to print the part (in hours).

3.5.2. Part Weight (PW)

The total mass of the final product, usually measured in grams or kilograms [55] is represented as
P W = i = 1 n m i
where m i is the mass of each component of the part if the part consists of multiple components.

3.5.3. Scrap Weight (SW)

The total mass of waste material generated during the printing process [19] is represented as
S W = j = 1 k w j
where w j is the weight of the waste material for each print job.

3.5.4. Production Time (PT)

The total time required to produce a part, which includes setup time, printing time, and post-processing time [55], is represented as
P T = t s e t u p + t p r i n t + t p o s t
where t s e t u p is the time for setting up the printer, t p r i n t is the actual printing time, and t p o s t is the time required for any post-processing steps.

4. Results and Discussion

This section presents results and discussions of the ML models performance and the relationship analysis of parameters to the response variables.

4.1. ML Models Evaluation

We evaluate the performance and stability of four ML models, LinReg, DT, RF, and GB, in predicting the sustainability metrics of energy consumed, material used, scrap weight, and printing time in AM. The performance metric plots (e.g., R2 and MSE) and model stability plots are applied in a comprehensive evaluation.

4.1.1. Performance Evaluation Analysis

The performance metric plots in Figure 5 clearly highlight the superiority of the RF model across all response variables. In Figure 5a, for MSE and MAE, RF consistently achieves the lowest values, indicating its ability to minimize prediction errors effectively. Similarly, in Figure 5c, RF secures the highest R2 values, nearing 1, signifying exceptional alignment between predicted and actual values. This performance underscores RF’s robustness and accuracy, which stems from its ensemble structure that combines predictions from multiple decision trees. DT, shown alongside RF in Figure 5a,c, for part weight and scrap weight, respectively, achieves competitive R2 values and low MSE and MAE, making it a strong secondary choice despite slightly lower precision.
Figure 5b,c further demonstrate the limitations of LinReg and GB. LinReg, as evident in its high MSE in Figure 5a and lower R2 values in Figure 5c, struggles with the nonlinear relationships present in the dataset. GB performs moderately but is less consistent than RF and DT, with higher variability as seen in Figure 5a.
The “Actual vs. Predicted” performance in Figure 5 highlights RF’s strong predictive accuracy across all metrics (energy consumption, printing time, part weight, and scrap weight). RF’s predictions closely align with the red diagonal line, supported by narrow and consistent error bands, indicating minimal prediction uncertainty. In Figure 5a, RF’s tight error bands demonstrate its stability, while LinReg shows wider bands, reflecting inconsistent predictions for lower energy consumption values. In Figure 5b, RF again outperforms with the minimal variability, while LinReg and GB exhibit broader error bands at higher printing time, suggesting reduced reliability.
In Figure 5c, RF maintains the superior performance with narrow error bands for the part weight, while DT shows slightly wider bands, indicating moderate deviations. LinReg displays irregular error bands, especially for lighter parts, highlighting its challenges in capturing data complexity. In Figure 5d, for the scrap weight, RF shows consistently narrow error bands, while GB and LinReg exhibit broader bands, particularly for higher scrap weights, reflecting greater prediction uncertainty in these models.
Overall, the error bands provide a clear depiction of the model stability and reliability, reinforcing RF’s superior performance and DT’s moderate reliability while highlighting limitations of LinReg and GB in capturing complex relationships in AM parameters.

4.1.2. Model Stability Analysis

The stability plots in Figure 6 provide a detailed visualization of the consistency of predictions for different models across various parameter combinations, helping us draw key conclusions about their performance. For RF, the narrow confidence intervals displayed in the plots in Figure 6a–d demonstrate its minimal prediction variability, as seen by the blue points closely aligning with the red lines (actual values). This consistent alignment across all parameter combinations highlights RF’s robustness and reliability, making it particularly well-suited for applications in AM, where prediction stability is critical. The lack of large deviations in RF’s plots indicates its ability to generalize effectively, regardless of the parameter complexity.
In comparison, the DT model also shows relatively consistent predictions in its plot, with blue points closely following the red lines. However, the confidence intervals for DT are slightly wider than those of RF, particularly in regions where parameters are more variable, such as in Figure 6a–d. This indicates moderate variability in DT’s predictions, suggesting that while it remains reliable, it is not as robust as RF for scenarios requiring high precision.
The LinReg model, on the other hand, exhibits significant instability in its predictions, as evident from the wide confidence intervals and inconsistent alignment of blue points with the red lines. For instance, in nonlinear regions such as in Figure 6a,d, LinReg fails to follow the trend of actual values, leading to erratic predictions. These deviations in the plot indicate that LinReg struggles to handle nonlinear interactions, making it unsuitable for complex AM parameter optimization tasks.
GB demonstrates moderate stability in its predictions, as observed in its plot where the blue points align reasonably well with the red lines in Figure 6a,d, energy consumption and printing time, respectively. However, occasional spikes in variability can be seen, such as around in Figure 6b,c for part weight and scrap weight, respectively, where confidence intervals widen significantly. These spikes suggest that GB is sensitive to certain parameter changes, which can limit its effectiveness in scenarios requiring highly consistent predictions.
By examining plots in Figure 6, findings can be related to the observed trends and prediction patterns. For instance, RF’s narrow confidence intervals and tight clustering of blue points around the red lines clearly showcase its stability and reliability. In contrast, LinReg’s wide intervals and scattered blue points highlight its instability, while GB’s occasional deviations and moderate alignment reflect its sensitivity to parameter changes. The DT plot shows stable predictions overall, with slightly more variability than RF but far better alignment than LinReg. These visual patterns directly support the conclusion that RF is the most robust and reliable model for AM applications, with DT as a secondary choice, while LinReg and GB exhibit limitations in handling complex parameter spaces.

4.1.3. Model Selection and Parameter Optimization

The selection of RF and DT ML models for detailed evaluation is based on a balance between performance and stability. RF, with its superior accuracy and low variability, is ideal for precise and consistent predictions. DT, while less accurate, offers stability and interpretability, making it a valuable complementary model. LinReg and GB, due to their higher variability and weaker performance metrics, are less suitable for this application.
Figure 7 illustrates the high performance of the DT and RF models on the test set, as evidenced by consistently high R2 scores across all response variables. RF demonstrates superior generalization with test set R2 scores close to 1, indicating exceptional accuracy in capturing the underlying patterns of energy consumption, production time, part weight, and scrap weight. DT also performs well, though with slightly lower R2 scores compared to RF, reflecting minor variability in prediction accuracy. This strong alignment between predicted and observed values highlights the robustness of both models, particularly RF, in parameter optimization and predictive reliability.
Table 3 lists the optimized parameters derived from the models, highlighting key combinations of AM parameters that contribute to minimizing energy consumption, reducing production time, and ensuring consistent part weight and scrap weight. These results demonstrate the practical utility of ML models in guiding AM practices.

4.2. Relationship Analysis Between Process Parameters and Response Variables

The correlation analysis is presented in Figure 8 using both bar plots (left) of correlation coefficients and heatmaps (right) of pairwise correlations, which provides a comprehensive understanding of the relationships between features and response variables [39]. The bar plots in Figure 8 (left) highlight building orientation as the most influential feature across all response variables, showing a strong positive correlation with energy consumption (0.91) and production time (0.91), while displaying a strong negative correlation with scrap weight (−0.93). This indicates that building orientation directly impacts energy usage and time requirements, while inversely affecting material waste. For the part weight, building orientation shows a positive correlation (0.67), further emphasizing its critical role. Secondary features, such as percentage infilling and the number of shells, exhibit moderate correlations in specific cases; for instance, percentage infilling moderately correlates with part weight (0.51), reflecting its influence on material usage and density.
The heatmaps Figure 8 (right) complement these findings by illustrating pairwise correlations between all features and response variables. Building orientation maintains consistently high correlations across all response variables, reaffirming its dominant influence. In contrast, other features such as layer thickness, number of shells, and infilling type show negligible correlations, indicating their limited direct impact on energy consumed, printing time, and scrap weight. Moreover, the heatmaps reveal minimal interdependencies between features, suggesting that the response variables are predominantly influenced by building orientation rather than complex interactions among features. Together, the bar plots and heatmaps confirm the models’ ability to accurately identify and quantify the impact of critical parameters, highlighting building orientation as the primary driver of AM outcomes, with secondary factors like percentage infilling playing a supporting role.
Figure 9 illustrates the feature importance values across the most effective ML models and response variables, highlighting the influence of key AM parameters. Building orientation is identified as the most critical feature, consistently showing the highest importance across all models and response variables, including the energy consumption, production time, part weight, and scrap weight. Infill type demonstrates the moderate importance in specific cases, such as the production time and part weight, while other features like the layer thickness, number of shells, and percentage infill exhibit minimal influence across the models. The results suggest that the building orientation significantly impacts the sustainability metrics, making it a priority for the AM process optimization. This analysis provides valuable insights into the relative contributions of different parameters for informed decision-making to improve AM efficiency and sustainability.
Partial dependence plots in Figure 10 are a visualization technique to interpret ML models by illustrating the marginal effect of a selected feature (or set of features) on the predicted outcome. These plots help isolate and understand the relationship between specific input features and response variables while averaging out effects of other features [34].
In Figure 10, the partial dependence plots reveal a predictable and interpretable relationship between building orientation and the response variables, including energy consumption, printing time, material used, and scrap weight. For energy consumption and production time in Figure 10a,d, the plots exhibit a steady and smooth upward trend as building orientation becomes more complex. This highlights a direct relationship, where increasing orientation complexity demands longer printing times and higher energy usage. In contrast, other parameters, such as layer thickness and the number of shells, show negligible effects on these response variables, as evidenced by their nearly flat trends. This suggests that energy consumption and production time are primarily dictated by building orientation.
For part weight and scrap weight shown in Figure 10b,c, the influence of building orientation is more nuanced yet significant. The plots indicate a positive trend for part weight, where increasing orientation complexity results in greater part weights due to changes in material distribution patterns. Conversely, the scrap weight demonstrates a consistent decline as the building orientation becomes more optimized, reflecting the ability of certain orientations to reduce waste. While interactions with other parameters, such as percentage infilling, are minimal, they are slightly more pronounced for part weight, where infilling marginally contributes to observed variations. The consistent and smooth gradients observed in the plots across all response variables underscore the robustness of the models in capturing both linear and nonlinear dependencies, validating their ability to generalize effectively to complex parameter spaces.
The shape analysis presented in Figure 11, DT (top), and RF (bottom) highlights the robustness of the models by illustrating the relationship between predicted and observed values for energy usage, printing time, material used, and scrap weight [34]. For the energy consumption plots in Figure 11a, the predicted distributions display smooth and consistent trends that align closely with the observed values, especially as building orientation changes. This alignment demonstrates the models’ ability to accurately capture the impact of building orientation on energy requirements, with significant shifts in predictions observed as orientation becomes more complex. Similarly, for the production time plots in Figure 11d, the models show a steady increase in predicted values with varying orientation, mirroring the observed trends. This further validates their precision in reflecting dependencies driven by orientation changes.
For the part weight, plots in Figure 11b reveal a stable relationship between predicted and observed values, capturing dependencies influenced by building orientation. The slight variations introduced by secondary parameters like percentage infilling are evident but minimal, reinforcing the models’ focus on the primary contributor, i.e., orientation. For the scrap weight plots in Figure 11c, the predicted values show a clear alignment with observed trends, with consistent decreases in scrap weight as the building orientation optimizes. This reflects the models’ capability to minimize material waste effectively through accurate predictions.
Overall, the smooth transitions and alignment in Figure 11 demonstrate that both the models, DT and RF, are well-calibrated and capable of generalizing across different parameter combinations. This further supports their reliability in predicting and optimizing AM processes, contributing to improved efficiency and sustainability.
The results demonstrate the exceptional performance of the DT and RF models in predicting and optimizing response variables for AM. Building orientation consistently emerges as the dominant factor influencing energy usage, printing time, material used, and scrap weight, as highlighted by feature importance rankings and partial dependence plots. The models capture clear, interpretable relationships, showing that increasing orientation complexity leads to higher energy usage and production time, increased part weight, and reduced scrap. Secondary features, such as percentage infilling and the number of shells, play minor roles, contributing only marginally in specific cases. The smooth gradients and alignment between predicted and observed distributions validate the robustness and generalizability of DT and RF as dominant ML models. Together, these findings underscore the models’ capability in both prediction and optimization, reinforcing their utility in enhancing AM processes for improved efficiency and sustainability.

5. Conclusions

This research evaluated ML models for predicting sustainability outcomes in AM, focusing on energy consumption, material usage, printing time, and scrap generation. Among the models tested, Decision Tree (DT) and Random Forest (RF) demonstrate the superior predictive performance and interpretability.
Build orientation is consistently identified as the most influential parameter across all sustainability metrics, while other factors, such as infill percentage and number of shells, show limited but context-specific effects. Feature importance rankings and partial dependence plots confirm the models’ ability to capture and explain complex relationships between AM parameters and sustainability outcomes.
The integration of the L-BFGS-B optimization algorithm enables efficient hyperparameter tuning, further enhancing model accuracy and robustness. The results highlight the potential of DT and RF models as practical tools for data-driven decision-making in sustainable AM process planning.
The work is limited by its focus on specific material and process parameters. Future research will expand the scope to include diverse materials and AM techniques to broaden the applicability of the findings. Our final goal is to offer a scalable approach for advancing sustainable manufacturing practices through interpretable and efficient ML models.

Author Contributions

Conceptualization, Q.P. and W.S.; methodology, W.S.; software, W.S.; validation, Q.P. and W.S.; formal analysis W.S.; investigation, W.S.; resources, Q.P.; data curation, Q.P. and W.S.; writing—original draft preparation, W.S.; writing—review and editing, Q.P.; visualization, W.S.; supervision, Q.P.; project administration, Q.P.; funding acquisition, Q.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Discovery Grants from the Natural Sciences and Engineering Research Council (NSERC) of Canada (RGPIN/5687-2020) and Mitacs Lab2Market program (IT38442).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The experimental data are provided in Figure 4.

Conflicts of Interest

The authors declare that there is no conflict of interest.

Abbreviations

AbbreviationFull Form
AMAdditive Manufacturing
FDMFused Deposition Modeling
CMConventional Manufacturing
LCALife Cycle Assessment
LCCLife Cycle Cost
MLMachine Learning
LingReLinear Regression
DTDecision Tree
RFRandom Forest
GBGradient Boosting
R2 Coefficient of Determination
MAEMean Absolute Error
MSEMean Squared Error
L-BFGS-BLimited-memory Broyden–Fletcher–Goldfarb–Shanno with Box constraints

References

  1. Panagiotopoulou, V.C.; Stavropoulos, P.; Chryssolouris, G. A Critical Review on the Environmental Impact of Manufacturing: A Holistic Perspective. Int. J. Adv. Manuf. Technol. 2022, 118, 603–625. [Google Scholar] [CrossRef]
  2. Shah, H.H.; Tregambi, C.; Bareschino, P.; Pepe, F. Environmental and Economic Sustainability of Additive Manufacturing: A Systematic Literature Review. Sustain. Prod. Consum. 2024, 51, 628–643. [Google Scholar] [CrossRef]
  3. Adekanye, S.A.; Mahamood, R.M.; Akinlabi, E.T.; Owolabi, M.G. Additive Manufacturing: The Future of Manufacturing. Mater. Technol. 2017, 51, 709–715. [Google Scholar] [CrossRef]
  4. Bandyopadhyay, A.; Bose, S. Additive Manufacturing, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2019; ISBN 1-5231-3442-9. [Google Scholar]
  5. Yurova, V.A.; Velikoborets, G.; Vladyko, A. Design and Implementation of an Anthropomorphic Robotic Arm Prosthesis. Technologies 2022, 10, 103. [Google Scholar] [CrossRef]
  6. Singh, R.; Davim, J.P. Additive Manufacturing: Applications and Innovations, 1st ed.; Manufacturing Design and Technology; CRC Press: Boca Raton, FL, USA, 2018; ISBN 1-351-68666-6. [Google Scholar]
  7. Hidalgo-Carvajal, D.; Munoz, A.H.; Garrido-Gonzalez, J.J.; Carrasco-Gallego, R.; Montero, V.A. Recycled PLA for 3D Printing: A Comparison of Recycled PLA Filaments from Waste of Different Origins after Repeated Cycles of Extrusion. Polymers 2023, 15, 3651. [Google Scholar] [CrossRef]
  8. World Commission on Environment and Development. Report of the World Commission on Environment and Development: Our Common Future (A/42/427); United Nations: New York, NY, USA, 1987; Available online: https://digitallibrary.un.org/record/139811 (accessed on 20 May 2025).
  9. Meng, L.; McWilliams, B.; Jarosinski, W.; Park, H.-Y.; Jung, Y.-G.; Lee, J.; Zhang, J. Machine Learning in Additive Manufacturing: A Review. JOM 2020, 72, 2363–2377. [Google Scholar] [CrossRef]
  10. Shehbaz, W.; Peng, Q. Selection and Optimization of Additive Manufacturing Process Parameters Using Machine Learning: A Review. Comput. Aided Des. Appl. 2025, 22, 893–911. [Google Scholar] [CrossRef]
  11. Saranya, G.; Pravin, A. Grid Search Based Optimum Feature Selection by Tuning Hyperparameters for Heart Disease Diagnosis in Machine Learning. Open Biomed. Eng. J. 2023, 17, e187412072304061. [Google Scholar] [CrossRef]
  12. Bergstra, J.; Bengio, Y. Random Search for Hyper-Parameter Optimization. J. Mach. Learn. Res. 2012, 13, 281–305. [Google Scholar]
  13. Akbari, P.; Zamani, M.; Mostafaei, A. Machine Learning Prediction of Mechanical Properties in Metal Additive Manufacturing. Addit. Manuf. 2024, 91, 104320. [Google Scholar] [CrossRef]
  14. Fei, Y.; Rong, G.; Wang, B.; Wang, W. Parallel L-BFGS-B Algorithm on GPU. Comput. Graph. 2014, 40, 1–9. [Google Scholar] [CrossRef]
  15. Swetha, R.; Siva Rama Krishna, L.; Hari Sai Kiran, B.; Ravinder Reddy, P.; Venkatesh, S. Comparative Study on Life Cycle Assessment of Components Produced by Additive and Conventional Manufacturing Process. Mater. Today Proc. 2022, 62, 4332–4340. [Google Scholar] [CrossRef]
  16. Výtisk, J.; Honus, S.; Kočí, V.; Pagáč, M.; Hajnyš, J.; Vujanovic, M.; Vrtek, M. Comparative Study by Life Cycle Assessment of an Air Ejector and Orifice Plate for Experimental Measuring Stand Manufactured by Conventional Manufacturing and Additive Manufacturing. Sustain. Mater. Technol. 2022, 32, e00431. [Google Scholar] [CrossRef]
  17. Solaimani, S.; Parandian, A.; Nabiollahi, N. A Holistic View on Sustainability in Additive and Subtractive Manufacturing: A Comparative Empirical Study of Eyewear Production Systems. Sustainability 2021, 13, 10775. [Google Scholar] [CrossRef]
  18. Kokare, S.; Oliveira, J.P.; Godina, R. A LCA and LCC Analysis of Pure Subtractive Manufacturing, Wire Arc Additive Manufacturing, and Selective Laser Melting Approaches. J. Manuf. Process. 2023, 101, 67–85. [Google Scholar] [CrossRef]
  19. Khalid, M.; Peng, Q. Investigation of Printing Parameters of Additive Manufacturing Process for Sustainability Using Design of Experiments. J. Mech. Des. 2021, 143, 032001. [Google Scholar] [CrossRef]
  20. Dudek, P.; Zagórski, K. Cost, Resources, and Energy Efficiency of Additive Manufacturing. In E3S Web of Conferences; EDP Sciences: Les Ulis, France, 2017; Volume 14, p. 1040. [Google Scholar]
  21. Rejeski, D.; Zhao, F.; Huang, Y. Research Needs and Recommendations on Environmental Implications of Additive Manufacturing. Addit. Manuf. 2018, 19, 21–28. [Google Scholar] [CrossRef]
  22. Afonso, J.A.; Alves, J.L.; Caldas, G.; Gouveia, B.P.; Santana, L.; Belinha, J. Influence of 3D Printing Process Parameters on the Mechanical Properties and Mass of PLA Parts and Predictive Models. Rapid Prototyp. J. 2021, 27, 487–495. [Google Scholar] [CrossRef]
  23. 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]
  24. 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]
  25. Hauck, S.; Greif, L.; Benner, N.; Ovtcharova, J. Advancing Sustainable Additive Manufacturing: Analyzing Parameter Influences and Machine Learning Approaches for CO2 Prediction. Sustainability 2025, 17, 3804. [Google Scholar] [CrossRef]
  26. Yu, S.; Liu, H.; Zhao, G.; Zhang, H.; Hou, F.; Xu, K. A Code-Based Method for Carbon Emission Prediction of 3D Printing: A Case Study on the Fused Deposition Modeling (FDM) 3D Printing and Comparison with Conventional Approach. J. Clean. Prod. 2024, 484, 144341. [Google Scholar] [CrossRef]
  27. Liu, Z.Y.; Li, C.; Fang, X.Y.; Guo, Y.B. Energy Consumption in Additive Manufacturing of Metal Parts. Procedia Manuf. 2018, 26, 834–845. [Google Scholar] [CrossRef]
  28. Nagarajan, H.P.N.; Haapala, K.R. Environmental Performance Evaluation of Direct Metal Laser Sintering through Exergy Analysis. Procedia Manuf. 2017, 10, 957–967. [Google Scholar] [CrossRef]
  29. Schneevogt, H.; Stelzner, K.; Yilmaz, B.; Abali, B.E.; Klunker, A.; Völlmecke, C. Sustainability in Additive Manufacturing: Exploring the Mechanical Potential of Recycled PET Filaments. Compos. Adv. Mater. 2021, 30, 26349833211000064. [Google Scholar] [CrossRef]
  30. Tang, Y.; Mak, K.; Zhao, Y.F. A Framework to Reduce Product Environmental Impact through Design Optimization for Additive Manufacturing. J. Clean. Prod. 2016, 137, 1560–1572. [Google Scholar] [CrossRef]
  31. Tavares, T.; Filho, M.; Ganga, G.; Callefi, M.H. The Relationship between Additive Manufacturing and Circular Economy: A Sistematic Review. Indep. J. Manag. Prod. 2020, 11, 1648. [Google Scholar] [CrossRef]
  32. Kwon, H.; Jang, H. Case Studies on Strengths and Weaknesses of Taguchi Method. J. Korean Inst. Ind. Eng. 2013, 39, 383–392. [Google Scholar] [CrossRef]
  33. Huu, P.N.; Van, D.P.; Xuan, T.H.; Ilani, M.A.; Trong, L.N.; Thanh, H.H.; Chi, T.N. Review: Enhancing Additive Digital Manufacturing with Supervised Classification Machine Learning Algorithms. Int. J. Adv. Manuf. Technol. 2024, 133, 1027–1043. [Google Scholar] [CrossRef]
  34. Nasrin, T.; Pourkamali-Anaraki, F.; Peterson, A.M. Application of Machine Learning in Polymer Additive Manufacturing: A Review. J. Polym. Sci. 2023, 62, 2639–2669. [Google Scholar] [CrossRef]
  35. Mishra, A.; Jatti, V.S.; Sefene, E.M.; Jatti, A.V.; Sisay, A.D.; Khedkar, N.K.; Salunkhe, S.; Pagac, M.; Nasr, E.S.A. Machine Learning-Assisted Pattern Recognition Algorithms for Estimating Ultimate Tensile Strength in Fused Deposition Modelled Polylactic Acid Specimens. Mater. Technol. 2024, 39, 2295089. [Google Scholar] [CrossRef]
  36. Ziadia, A.; Mohamed, H.; Kelouwani, S. Machine Learning Study of the Effect of Process Parameters on Tensile Strength of FFF PLA and PLA-CF. Eng 2023, 4, 2741–2763. [Google Scholar] [CrossRef]
  37. Maleki, E.; Bagherifard, S.; Guagliano, M. Application of Artificial Intelligence to Optimize the Process Parameters Effects on Tensile Properties of Ti-6Al-4V Fabricated by Laser Powder-Bed Fusion. Int. J. Mech. Mater. Des. 2022, 18, 199–222. [Google Scholar] [CrossRef]
  38. Agarwal, R.; Singh, J.; Gupta, V. Predicting the Compressive Strength of Additively Manufactured PLA-Based Orthopedic Bone Screws: A Machine Learning Framework. Polym. Compos. 2022, 43, 5663–5674. [Google Scholar] [CrossRef]
  39. Zhang, Z.; Shi, J.; Yu, T.; Santomauro, A.; Gordon, A.; Gou, J.; Wu, D. Predicting Flexural Strength of Additively Manufactured Continuous Carbon Fiber-Reinforced Polymer Composites Using Machine Learning. J. Comput. Inf. Sci. Eng. 2020, 20, 1–32. [Google Scholar] [CrossRef]
  40. Staub, A.; Brunner, L.; Spierings, A.B.; Wegener, K. A Machine-Learning-Based Approach to Critical Geometrical Feature Identification and Segmentation in Additive Manufacturing. Technologies 2022, 10, 102. [Google Scholar] [CrossRef]
  41. Mohamed, O.A.; Masood, S.H.; Bhowmik, J.L. Modeling, Analysis, and Optimization of Dimensional Accuracy of FDM-Fabricated Parts Using Definitive Screening Design and Deep Learning Feedforward Artificial Neural Network. Adv. Manuf. 2021, 9, 115–129. [Google Scholar] [CrossRef]
  42. Pelzer, L.; Schulze, T.; Buschmann, D.; Enslin, C.; Schmitt, R.; Hopmann, C. Acquiring Process Knowledge in Extrusion-Based Additive Manufacturing via Interpretable Machine Learning. Polymers 2023, 15, 3509. [Google Scholar] [CrossRef]
  43. Hamoud, M.; Elshalakany, A.B.; Gamil, M.; Mohamed, H. Investigating the Influence of 3D Printing Parameters on the Mechanical Characteristics of FDM Fabricated (PLA/Cu) Composite Material. Int. J. Adv. Manuf. Technol. 2024, 134, 3769–3785. [Google Scholar] [CrossRef]
  44. He, F.; Yuan, L.; Mu, H.; Ros, M.; Ding, D.; Pan, Z.; Li, H. Research and Application of Artificial Intelligence Techniques for Wire Arc Additive Manufacturing: A State-of-the-Art Review. Robot. Comput. Integr. Manuf. 2023, 82, 102525. [Google Scholar] [CrossRef]
  45. Chen, J.; Liu, Y.M. Neural Optimization Machine: A Neural Network Approach for Optimization and Its Application in Additive Manufacturing with Physics-Guided Learning. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2023, 381, 20220405. [Google Scholar] [CrossRef] [PubMed]
  46. Zong, Y.; Nian, Y.; Zhang, C.; Tang, X.; Wang, L.; Zhang, L.Q. Hybrid Grid Search and Bayesian Optimization-Based Random Forest Regression for Predicting Material Compression Pressure in Manufacturing Processes. Eng. Appl. Artif. Intell. 2025, 141, 109580. [Google Scholar] [CrossRef]
  47. Alpak, F.; Gao, G.; Florez, H.; Shi, S.; Vink, J.; Blom, C.; Saaf, F.; Wells, T. A Machine-Learning-Accelerated Distributed LBFGS Method for Field Development Optimization: Algorithm, Validation, and Applications. Comput. Geosci. 2023, 27, 425–450. [Google Scholar] [CrossRef]
  48. Najafabadi, M.M.; Khoshgoftaar, T.M.; Villanustre, F.; Holt, J. Large-Scale Distributed L-BFGS. J. Big Data 2017, 4, 22. [Google Scholar] [CrossRef]
  49. Chigilipalli, B.K.; Veeramani, A. A Machine Learning Approach for the Prediction of Tensile Deformation Behavior in Wire Arc Additive Manufacturing. Int. J. Interact. Des. Manuf.-IJIDEM 2023, 19, 185–197. [Google Scholar] [CrossRef]
  50. Kharate, N.; Anerao, P.; Kulkarni, A.; Abdullah, M. Explainable AI Techniques for Comprehensive Analysis of the Relationship between Process Parameters and Material Properties in FDM-Based 3D-Printed Biocomposites. J. Manuf. Mater. Process. 2024, 8, 171. [Google Scholar] [CrossRef]
  51. Chang, L.-K.; Chen, R.-S.; Tsai, M.-C.; Lee, R.-M.; Lin, C.-C.; Huang, J.-C.; Chang, T.-W.; Horng, M.-H. Machine Learning Applied to Property Prediction of Metal Additive Manufacturing Products with Textural Features Extraction. Int. J. Adv. Manuf. Technol. 2024, 132, 83–98. [Google Scholar] [CrossRef]
  52. Jayawardane, H.; Davies, I.J.; Gamage, J.R.; John, M.; Biswas, W.K. Sustainability Perspectives—A Review of Additive and Subtractive Manufacturing. Sustain. Manuf. Serv. Econ. 2023, 2, 100015. [Google Scholar] [CrossRef]
  53. Dave, H.K.; Davim, J.P. Fused Deposition Modeling Based 3D Printing, 1st ed.; Springer International Publishing: Cham, Switzerland, 2021. [Google Scholar] [CrossRef]
  54. Mani, M.; Lyons, K.W.; Gupta, S.K. Sustainability Characterization for Additive Manufacturing. J. Res. Natl. Inst. Stand. Technol. 2014, 119, 419–428. [Google Scholar] [CrossRef]
  55. Ford, S.; Despeisse, M. Additive Manufacturing and Sustainability: An Exploratory Study of the Advantages and Challenges. J. Clean. Prod. 2016, 137, 1573–1587. [Google Scholar] [CrossRef]
Figure 1. Parameter combinations for experiments.
Figure 1. Parameter combinations for experiments.
Technologies 13 00228 g001
Figure 2. Experimental specimen [19].
Figure 2. Experimental specimen [19].
Technologies 13 00228 g002
Figure 3. Building orientations: (a) Flat; (b) On-edge; (c) Up right [19].
Figure 3. Building orientations: (a) Flat; (b) On-edge; (c) Up right [19].
Technologies 13 00228 g003
Figure 4. Experimental data for: Energy consumption (blue); Part weight (red); Scrap weight (green); Production time(pink). Each line connects data points for visual guidance only and does not imply a linear or continuous relationship. The X-axis represents discrete sample indices.
Figure 4. Experimental data for: Energy consumption (blue); Part weight (red); Scrap weight (green); Production time(pink). Each line connects data points for visual guidance only and does not imply a linear or continuous relationship. The X-axis represents discrete sample indices.
Technologies 13 00228 g004
Figure 5. Performance metrics of the ML models for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Figure 5. Performance metrics of the ML models for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Technologies 13 00228 g005aTechnologies 13 00228 g005b
Figure 6. The ML models Prediction Stability Analysis for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Figure 6. The ML models Prediction Stability Analysis for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Technologies 13 00228 g006aTechnologies 13 00228 g006bTechnologies 13 00228 g006c
Figure 7. Performance score of DT vs. RF on training and testing datasets.
Figure 7. Performance score of DT vs. RF on training and testing datasets.
Technologies 13 00228 g007
Figure 8. Correlation analysis: Bar Plot (left) and Heatmaps (right).
Figure 8. Correlation analysis: Bar Plot (left) and Heatmaps (right).
Technologies 13 00228 g008
Figure 9. Feature analysis of the best performing models: DT, RF and GB.
Figure 9. Feature analysis of the best performing models: DT, RF and GB.
Technologies 13 00228 g009
Figure 10. Partial Dependence plots using DT (top) and RF (bottom) for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Figure 10. Partial Dependence plots using DT (top) and RF (bottom) for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Technologies 13 00228 g010aTechnologies 13 00228 g010bTechnologies 13 00228 g010c
Figure 11. Shape Analysis using DT (top) and RF (bottom) for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Figure 11. Shape Analysis using DT (top) and RF (bottom) for: (a) Energy Consumption; (b) Part Weight; (c) Scrap Weight; (d) Production Time.
Technologies 13 00228 g011aTechnologies 13 00228 g011b
Table 1. Hyperparameter configuration for DT and RF ML models.
Table 1. Hyperparameter configuration for DT and RF ML models.
ModelHyperparameters
Decision TreeRandom-state = 42
Random Forestn-estimators = 100, random-state = 42
Train-Test-SplitTest-size = 0.2, random-state = 42
Minimize (L-BFGS-B)Method = ‘L-BFGS-B’
Table 2. The three levels of Process Parameters.
Table 2. The three levels of Process Parameters.
Process ParametersLevels
Layer thickness0.070.20.3
Number of shells234
Infill percentage5075100
Infill typeCrossDiamondHoneycomb
Build orientationFlatOn-edgeUp right
Table 3. Optimized parameters for the best performing ML models.
Table 3. Optimized parameters for the best performing ML models.
ModelLayerNo. of ShellsInfill %Infill TypeBuildEC
(kWh)
PW (gm)SW (gm)PT (h)
DT0.2375DiamondOn-edge0.14016.101.22.1
RF0.2375DiamondOn-edge0.13916.091.22
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

Shehbaz, W.; Peng, Q. Evaluation of Machine Learning Models for Enhancing Sustainability in Additive Manufacturing. Technologies 2025, 13, 228. https://doi.org/10.3390/technologies13060228

AMA Style

Shehbaz W, Peng Q. Evaluation of Machine Learning Models for Enhancing Sustainability in Additive Manufacturing. Technologies. 2025; 13(6):228. https://doi.org/10.3390/technologies13060228

Chicago/Turabian Style

Shehbaz, Waqar, and Qingjin Peng. 2025. "Evaluation of Machine Learning Models for Enhancing Sustainability in Additive Manufacturing" Technologies 13, no. 6: 228. https://doi.org/10.3390/technologies13060228

APA Style

Shehbaz, W., & Peng, Q. (2025). Evaluation of Machine Learning Models for Enhancing Sustainability in Additive Manufacturing. Technologies, 13(6), 228. https://doi.org/10.3390/technologies13060228

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop