1. Introduction
Over recent decades, the manufacturing sector has gone through significant changes, yet it continues to play a critical role in the growth and development of both developed and developing countries [
1]. It is considered the backbone of economies due to its contribution to economic growth, job creation, and technological advancement [
2]. Additive manufacturing (AM) has gained acceptance among academics and the manufacturing sector as a powerful manufacturing tool. Recent research shows that it is more efficient than conventional production methods [
3]. The manufacturing industry uses the term Additive Manufacturing to describe the process of fabricating physical objects from design data in a digital form by building them layer-by-layer. AM is a disruptive technology as it is not tied to individual production steps and does not require specific tools for each component, making it a universal production technology [
4,
5]. Numerous AM processes are currently available for commercial use. Various researchers have approached the classification of AM methods differently [
6,
7,
8]. However, a widely accepted classification stems from the ASTM-F42 committee guidelines, which categorize AM into seven distinct groups [
9]. These categories consist of vat photopolymerization (VP), material jetting (MJ), binder jetting (BJ), material extrusion (ME), sheet lamination (SL), powder bed fusion (PBF), and directed energy deposition (DED). The concise overview of all seven categories was presented in the paper [
10].
The main advantage of additive manufacturing is that it can fabricate complex shapes and reduces material waste and production time (for some) [
11,
12,
13,
14]. Despite its advantages, additively manufactured products generally have poorer quality compared to those made with conventional manufacturing systems [
15,
16], primarily due to limitations in surface integrity [
17]. Research indicates that in all additive manufacturing techniques, the improvement of surface roughness is a key objective. For example, vat photopolymerization (VP) and material jetting (MJ) yield parts with moderate surface roughness [
10], whereas binder jetting (BJ), material extrusion (ME), sheet lamination (SL), powder bed fusion (PBF), and DED tend to result in parts with relatively poorer surface finishes [
10]. Surface roughness is one of the factors encompassed by the concept of surface integrity. In
Table 1, the surface roughness of most additively manufactured techniques is presented.
The surface quality of additively manufactured components is influenced by a multitude of factors that interact in intricate ways. These factors include the choice of AM technique, powder characteristics, layer thickness, scanning strategy, and energy parameters specific to each technique. For instance, in Vat Photopolymerization (VP), parameters such as layer thickness, exposure time, and resin properties contribute to surface quality [
40,
41]. Similarly, in Material Jetting (MJ), drop size, print speed, and layer thickness impact the surface finish [
40,
42,
43]. In Binder Jetting (BJ), binder saturation and layer thickness play a crucial role in achieving desired surface characteristics [
44,
45,
46,
47]. For material extrusion-based methods in fuse deposition modelling or fused filament fabrication, parameters such as nozzle diameter, layer height, and extrusion speed influence the surface roughness [
48,
49,
50,
51,
52]. The terms fused deposition modeling (FDM) and fused filament fabrication (FFF) are two terms that are often used interchangeably to describe the same 3D printing process. However, FDM is a trademarked term by Stratasys, while FFF is a generic term used by the open-source community [
53].
Powder Bed Fusion (PBF) [
54,
55] and Directed Energy Deposition (DED) [
56] are also characterized by their unique process parameters that have direct implications on surface quality. While the powder bed fusion techniques such as SLS, SLM, DMLS, and L-PBF (
Table 1) are fundamentally identical processes that use a laser to selectively melt or sinter a bed of powder material to create a 3D object, there exist some differences in the way these processes work, such as the type of laser used, the power of the laser, and the scanning strategy used to melt or sinter the powder. These differences can affect the quality of the printed part, including its surface roughness. In general, thinner layers result in smoother surfaces, but can also increase printing time and cost. The optimal layer thickness for a given process depends on several factors, including the size of the powder particles, the power of the laser, and the scanning speed used to melt or sinter the powder.
Table 2 presents the process parameters of selected additive manufacturing techniques.
Furthermore, post-build treatments significantly contribute to the final surface quality of additively manufactured components [
65,
66]. For example, it can significantly improve the mechanical properties, i.e., surface roughness of the parts, making them more suitable for a wide range of applications [
67]. Different post-processing techniques have been used by many researchers, such as shot peening (SP), laser shock peening (LSP), hot isostatic pressing (HIP), friction stir processing (FSP), and heat treatments (HT), to realize the better performance of the AM parts [
66]. Various treatments, such as heat treatment, abrasive finishing, and chemical processes, can be applied to refine the surface texture and eliminate defects [
68]. For instance, heat treatment can lead to grain growth and stress relief, affecting the overall surface roughness [
63]. Abrasive finishing techniques, including sanding and polishing, can mitigate layer lines and irregularities, resulting in improved surface smoothness [
68]. Chemical processes such as etching or electrochemical polishing can selectively remove material, enhancing surface finish [
63]. Understanding the dependencies of surface roughness on these post-build treatments is crucial for achieving consistent and desirable surface qualities in additively manufactured components [
69].
Surface roughness has been identified as one of the most significant factors affecting product quality, as stated in previous research [
11]. For instance, Chan et al. [
70] conducted a study to investigate the impact of surface roughness on product life and concluded that surface roughness leads to a reduction in product life expectancy. Moreover, surface roughness plays a role in the tribological behavior of surfaces [
71], with rough surfaces experiencing faster wear compared to smooth surfaces. Therefore, it becomes crucial to predict and control the surface roughness of additively manufactured parts [
64,
72]. Additionally, surface roughness serves as an indicator for directly monitoring the mechanical characteristics of a workpiece, such as fatigue and surface friction, dimensional accuracy [
73], and fracture resistance [
74]. Understanding and managing surface roughness in manufacturing processes is essential for ensuring optimal product performance and longevity.
The impact of surface roughness on system performance is significant across multiple industries, such as aerospace [
75,
76], automotive [
77,
78], marine [
79], semiconductor [
80], chemical, wind energy [
81], solar energy [
82], food processing [
83,
84], and medicine [
85,
86]. Therefore, it is crucial to control the surface roughness of manufactured components. Thus, researchers give attention to predicting the surface roughness of additively manufactured components before printing/manufacturing the components. Predicting surface roughness in the manufacturing industry can lead to better quality control, cost savings, improved performance, and process improvement.
Different methods were used to predict the surface roughness of additively manufactured components, i.e., Taguchi-based regression models [
87,
88], statistical regression models [
89], computational modeling (e.g., the FEM and Discrete Element Method (DEM)), [
90] and machine learning methods [
91]. There are several limitations of conventional (statistical) methods for predicting the surface roughness of additively manufactured components. Conventional methods for predicting the surface roughness of manufactured components often suffer from various limitations, such as a lack of flexibility, time-consuming nature, high cost, limited accuracy, limited applicability, inability to account for process parameter interactions, and limited understanding of underlying mechanisms [
17,
92].
However, the emergence of Artificial Intelligence (AI) approaches, including both machine learning and deep learning, has opened avenues to surmount these limitations. These AI approaches offer the potential to yield more precise and adaptable predictions of surface roughness. By harnessing these advancements in AI, particularly in machine learning, we can transcend the confines of traditional methods and attain the capability to design and fabricate high-quality components with unparalleled precision and efficiency. The flexibility, accuracy, and capacity to discern intricate patterns inherent in machine learning techniques empower us to overcome the challenges posed by conventional methods.
Machine learning methods have demonstrated remarkable capabilities in predicting complex patterns and relationships within diverse datasets [
93,
94]. Their strength lies in their ability to capture non-linear interactions among various process parameters—a challenge that conventional methods often struggle to address. By leveraging extensive datasets and sophisticated algorithms, machine learning models can unveil subtle correlations that might otherwise remain hidden. This not only enhances prediction accuracy, but also fosters a comprehensive understanding of the underlying factors shaping surface roughness. Moreover, the adaptability of machine learning techniques contributes to their predictive prowess [
95]. Unlike rigid regression models, machine learning algorithms can continuously learn from new data, integrating fresh insights to refine their predictions. This adaptive nature proves especially advantageous in the realm of additive manufacturing, where process conditions and material properties can vary substantially. Consequently, machine learning empowers the development of predictive models that evolve alongside the manufacturing process, ensuring consistently precise predictions of surface roughness.
Deep learning, a subset of machine learning, adds a layer of sophistication to predictive modeling [
96,
97]. Neural networks within deep learning architectures automatically extract hierarchical features from raw data, enabling them to capture intricate patterns with remarkable precision. This capability proves invaluable when dealing with the complex structures and intricate relationships intrinsic to additive manufacturing processes. Deep learning models excel in analyzing intricate spatial and temporal interactions, offering insights into how diverse process parameters impact surface roughness across various production stages. The depth and complexity of deep learning models enable them to unearth nuanced relationships that may evade traditional methodologies. The hierarchical representation of features empowers deep learning models to untangle the underlying mechanisms driving surface roughness, contributing to a deeper comprehension of the manufacturing process itself. Consequently, deep learning not only delivers enhanced predictive capabilities, but also advances fundamental knowledge within additive manufacturing. The confluence of machine learning and deep learning with additive manufacturing holds tremendous potential to reshape quality assurance and process optimization.
Recently researchers gave great attention to AI for surface roughness prediction. Thus, this paper presents machine learning models or techniques used to predict the surface roughness of 3D printed parts. The remainder of the paper is organized as follows:
Section 2 provides a method used to collect and select published data for the review.
Section 3 introduces an overview of AI-based surface roughness predictions in AM.
Section 4 presents a machine learning algorithm used for surface roughness predictions of AM parts.
Section 5 presents a discussion on the trends, challenges, and future direction of applying AI algorithms for the surface roughness prediction of AM components.
Section 6 provides conclusions and future work.
5. Discussion
5.1. Analysis of AI Techniques Used to Predict Surface Roughness
The presented studies demonstrate a diverse range of AI techniques employed for surface roughness prediction in additively manufactured components. Each study offers unique insights into the efficacy of different methodologies, shedding light on the advantages and limitations of AI-driven approaches in this domain.
Table 5 lists a summary of some selected works on the data used as the input, the models developed, and the results obtained from the surface roughness prediction models.
5.1.1. Data Input Variability
The variety of input data used across these studies highlights the adaptability of AI techniques to different additive manufacturing processes. Mishra et al. [
131] utilized a comprehensive set of FDM parameters, while Xia et al. [
173] focused on process parameters specific to the WAAM process. The success of these studies underscores the potential for AI models to handle various input types, capturing intricate relationships between parameters and surface roughness.
5.1.2. Model Performance and Accuracy
The performance metrics across the studies, such as R2, RMSE, and MAE, reflect the success of AI models in capturing complex patterns and providing accurate surface roughness predictions. The notable performance of the XGBoost algorithm in the study by Mishra et al. [
131] highlights its suitability for handling a multitude of FDM parameters, showcasing its ability to learn and model complex interactions. Similarly, the GA–ANFIS model introduced by Xia et al. [
173] exhibited a superior predictive performance. The use of genetic algorithms to optimize ANFIS parameters contributed to accurate predictions, showcasing the power of hybrid models in enhancing accuracy.
5.1.3. Interpretability vs. Black Box Models
While deep learning techniques, such as ANNs and XGBoost (
https://xgboost.ai/), consistently demonstrated high accuracy, they often sacrifice interpretability. In contrast, ensemble methods such as the Random Forest Regressor, as seen in Saxena et al. [
91], and the GA–ANFIS model in Xia et al. [
173], offer a balance between accuracy and interpretability. This trade-off is significant, particularly in industries, where understanding the underlying factors influencing predictions is crucial for process optimization and decision making.
5.1.4. Application to Diverse Manufacturing Processes
The versatility of AI models is evident in their application to various additive manufacturing processes. Studies such as Huang et al. [
134] demonstrate the feasibility of AI techniques in predicting surface roughness for FDM, while Singh et al. [
129] applied Support Vector Machine (SVM) techniques to the domain of WEDM. This showcases the potential for AI models to be tailored to different manufacturing processes, enabling their wide-ranging adoption.
5.1.5. Optimizing Manufacturing Processes
The studies collectively underline the potential of AI techniques in optimizing additive manufacturing processes. These models have the capability to predict surface roughness accurately, guiding engineers to adjust parameters for desired outcomes without extensive trial and error. This optimization potential can lead to enhanced manufacturing efficiency, reduced material waste, and improved product quality.
5.1.6. Weakness and Strength of each Developed Model
Each developed model possesses unique strengths and limitations when predicting the surface roughness of additively manufactured components. Considering the diversity of data types, a comparative analysis of the strengths and weaknesses was conducted for both machine learning models and deep learning models employed in surface roughness prediction. The strengths and weaknesses of the machine learning models were presented in
Table 6, while those of the deep learning models were outlined in
Table 7.
5.2. Challenges and Limitations
The literature on the application of AI techniques for surface roughness prediction in additive manufacturing highlights various limitations and challenges that must be addressed to advance this field.
One significant limitation is the scarcity of publicly available datasets containing comprehensive surface roughness measurements. Many studies rely on proprietary or limited experimental data, making it challenging to develop and evaluate AI models. The lack of standardized datasets hampers the ability to compare and benchmark different approaches. Additionally, the limited availability of diverse data restricts the training of AI models in a wide range of additive manufacturing scenarios, limiting their ability to generalize. This scarcity of high-quality datasets poses a challenge in achieving accurate predictions of surface roughness using AI models. Indeed, the scientific community is making continuous efforts to tackle the surface roughness issue in additive manufacturing. For instance, researchers are actively exploring methods such as supervised machine learning regression-based algorithms to predict the surface roughness of additive-manufactured polylactic acid specimens [
131]. Additionally, data-driven predictive modeling approaches are being developed to enhance surface roughness prediction in additive manufacturing processes. These research endeavors aim to improve the understanding and control of surface roughness in the context of additive manufacturing, ultimately leading to the better quality and performance of the manufactured parts.
Another challenge lies in feature selection and extraction. While some studies have explored manual feature engineering techniques, these processes can be time-consuming and subjective. Furthermore, relevant feature selection depends heavily on the specific additive manufacturing process and material. Although automated feature learning using deep learning models has gained attention, determining the most informative features from complex datasets remains a challenge. Further research is necessary to develop robust and automated feature selection methods tailored specifically for surface roughness prediction in additive manufacturing.
The generalization of AI models across different additive manufacturing processes and materials poses another significant challenge. Each combination of process and material exhibits unique characteristics that influence surface roughness. AI models trained on specific process–material combinations may not effectively transfer to other scenarios, limiting their applicability. Developing transferable models capable of handling variations in process parameters, material properties, and surface characteristics is crucial for the broader adoption of AI techniques in predicting surface roughness. Additionally, the complexity and variability of additive manufacturing processes make it difficult to develop models that accurately predict surface roughness across different materials and printing parameters. Capturing the complex and nonlinear relationship between process parameters and the resulting surface roughness is crucial. A data-driven predictive modeling approach that utilizes multiple sensors to collect temperature and vibration data has been introduced to improve the surface integrity of additively manufactured parts.
Furthermore, the interpretability and explainability of AI models present challenges in this domain. Many AI models, especially deep learning models, are often perceived as black boxes, making it difficult to understand the reasoning behind their predictions. This lack of interpretability hampers insights into the factors contributing to surface roughness. Research efforts should focus on developing explainable AI models that shed light on the relationships between process parameters, material properties, and surface roughness. Ensuring the transparency and interpretability of these models is crucial for their successful integration into real-world manufacturing processes.
In addition to the aforementioned challenges, training challenges and computational costs also play a significant role. Training AI models for accurate surface roughness prediction demands substantial computational resources and time. The complexity of the underlying data, along with the need for large and diverse datasets, often results in prolonged training periods. Furthermore, finding an optimal balance between model complexity and generalization capacity is a challenge. Models that are overly complex might overfit to training data and perform poorly on unseen data, while overly simplified models might lack the ability to capture intricate relationships in the data.
Considering computational costs is paramount, especially in real-time applications where quick predictions are required. Complex AI models, such as deep neural networks, can demand substantial computational power for both training and inference phases. This can lead to challenges in deployment, especially in resource-constrained environments. Optimization techniques and hardware acceleration solutions are being explored to mitigate these computational challenges.
Data quality and preprocessing complexity present further challenges. Acquiring precise and dependable measurements of surface roughness can be complex due to factors such as measurement equipment accuracy, noise, and variations in measurement techniques. Ensuring consistent data quality across diverse sources is essential for training reliable AI models. Additionally, the process of preprocessing raw data to eliminate outliers, address missing values, and standardize data for training can introduce its own intricacies and potential sources of error.
Moreover, integrating AI techniques into existing manufacturing processes and systems presents implementation challenges. Incorporating AI-based surface roughness prediction models into real-time control systems requires considerations such as computational efficiency, real-time data acquisition, and compatibility with existing manufacturing infrastructure. Addressing the implementation and deployment of AI models in practical manufacturing environments is vital to ensure seamless integration and practical utility.
In conclusion, while AI techniques hold promise for surface roughness prediction in additive manufacturing, several limitations and challenges must be overcome. These include the scarcity of comprehensive and standardized datasets, challenges in feature selection and extraction, limitations in model generalization, a lack of interpretability, and implementation challenges. Addressing these limitations and challenges will pave the way for more accurate, robust, and practical AI-based surface roughness predictions in additive manufacturing.
5.3. Future Direction
The existing literature on the application of AI techniques for surface roughness predictions in additive manufacturing suggests several promising future directions that can further advance this field. These directions address the limitations and challenges identified and aim to enhance the accuracy, applicability, and practicality of AI-based surface roughness predictions.
One crucial future direction is the integration of AI techniques with process optimization algorithms. By combining predictive models with closed-loop control systems, real-time adjustments can be made to process parameters during additive manufacturing. This integration enables the dynamic control of surface roughness, leading to improved surface quality control. The optimization algorithms can utilize the predicted surface roughness values to adjust process parameters, ensuring the desired surface roughness is achieved. This integration holds the potential to optimize additive manufacturing processes and improve overall manufacturing efficiency.
The utilization of generative AI models, such as generative adversarial networks (GANs), is another promising future direction. GANs can be employed to generate synthetic surface roughness patterns that resemble real-world variations. These generative models can augment limited datasets, simulate different surface roughness scenarios, and enhance the robustness of AI models. By generating synthetic data, GANs can alleviate the data scarcity issue and improve the generalization capabilities of AI models.
The development of explainable AI models is also critical for the future of surface roughness predictions in additive manufacturing. Explainability is essential for users and stakeholders to understand and trust the predictions made by AI models. Methods for explaining the decision-making process of AI models need to be explored and implemented. This can provide insights into the factors influencing surface roughness predictions and enable users to identify opportunities for process optimization and improvement. Explainable AI models can enhance transparency, trust, and acceptance of AI techniques in the additive manufacturing industry.
Currently, the majority of studies in surface roughness prediction for additively manufactured components primarily concentrate on process parameters. Only a limited number of papers explore alternative data sources such as vibration data, material properties, environmental conditions, and geometric features for predictive modeling. Future research endeavors should explore and integrate these underutilized data types to enhance the accuracy and robustness of surface roughness predictions in additive manufacturing.
Additionally, future research should focus on exploring advanced feature selection techniques specifically tailored for surface roughness prediction in additive manufacturing. The development of automated feature extraction methods that can effectively capture the underlying factors influencing surface roughness would enhance the predictive performance of AI models. Advanced feature selection techniques, such as deep feature learning or genetic algorithms, can help identify the most relevant and informative features from complex datasets.