Next Article in Journal
A Nitrocellulose Paper-Based Multi-Well Plate for Point-of-Care ELISA
Next Article in Special Issue
Weighted Matrix Decomposition for Small Surface Defect Detection
Previous Article in Journal
A Leaky-Wave Analysis of Resonant Bessel-Beam Launchers: Design Criteria, Practical Examples, and Potential Applicationsat Microwave and Millimeter-Wave Frequencies
Previous Article in Special Issue
Analysis of Current Situation, Demand and Development Trend of Casting Grinding Technology
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predicting the Optimal Input Parameters for the Desired Print Quality Using Machine Learning

by
Rajalakshmi Ratnavel
1,
Shreya Viswanath
2,
Jeyanthi Subramanian
2,*,
Vinoth Kumar Selvaraj
2,
Valarmathi Prahasam
1,* and
Sanjay Siddharth
2
1
School of Computer Science Engineering, Vellore Institute of Technology, Chennai 600127, India
2
School of Mechanical Engineering, Vellore Institute of Technology, Chennai 600127, India
*
Authors to whom correspondence should be addressed.
Micromachines 2022, 13(12), 2231; https://doi.org/10.3390/mi13122231
Submission received: 26 October 2022 / Revised: 28 November 2022 / Accepted: 6 December 2022 / Published: 16 December 2022
(This article belongs to the Special Issue Machine Learning for Advanced Manufacturing)

Abstract

:
3D printing is a growing technology being incorporated into almost every industry. Although it has obvious advantages, such as precision and less fabrication time, it has many shortcomings. Although several attempts were made to monitor the errors, many have not been able to thoroughly address them, like stringing, over-extrusion, layer shifting, and overheating. This paper proposes a study using machine learning to identify the optimal process parameters such as infill structure and density, material (ABS, PLA, Nylon, PVA, and PETG), wall and layer thickness, count, and temperature. The result thus obtained was used to train a machine learning algorithm. Four different network architectures (CNN, Resnet152, MobileNet, and Inception V3) were used to build the algorithm. The algorithm was able to predict the parameters for a given requirement. It was also able to detect any errors. The algorithm was trained to pause the print immediately in case of a mistake. Upon comparison, it was found that the algorithm built with Inception V3 achieved the best accuracy of 97%. The applications include saving the material from being wasted due to print time errors in the manufacturing industry.

1. Introduction

Additive manufacturing (AM), or 3D printing, is one of the most promising manufacturing techniques. Several industries have started to incorporate this technology. Quickly producing geometrically intricate and complex designs is one of the critical advantages of this technology. Different categories of AM are differentiated based on the composition of the raw material being used. Some examples of liquid-based AM are fused filament fabrication (FFF), polyjet, and stereo lithography (SLA). At the same time, laminated object manufacturing (LOM) is a solid-based AM. Examples of powder-based AM include selective laser sintering (SLS), electron-beam additive manufacturing (EBM), and LENS [1].
Among all the AM techniques, FFF is the most commonly used one. Its ability to fabricate geometrically complex parts with precision makes it very versatile. Initially developed by Stratasys, FFF works on the principle of layer-by-layer addition of molten thermoplastics. The thermoplastic filament is fed into the liquefier using a filament-pulling system, which uses rollers to wind the filament down. Then, a liquefier was used to soften and melt a filament by heating it above its melting point. The molten filament is then pushed through a nozzle. The extruded polymer is deposited onto the bed as the liquefier moves [2,3,4,5]. The bed is relatively cooler, allowing the molten plastic to stick onto the bed and cool down enough to bond with the subsequent layer, forming a rigid product. Several parameters affect the quality of the print. These factors include material, nozzle and bed temperature, filament thickness, nozzle diameter, infill structure and density, retraction, layer thickness and count, and wall count and thickness. The 3D printing process can be conducted in hot and cold rooms as long as the printer’s temperature is controlled and appropriate material is used. While most printing occurs efficiently in hot environments, there are a few limitations.
For example, according to [6], materials like polylactic acid (PLA) would not do well in a hot atmosphere(temperatures exceeding 35 °C), as they would not have enough time to harden. On the other hand, materials like ABS are not sensitive to temperature changes and are easy to work with in a hot atmosphere due to thermal and chemical properties; PETG combines the strength of ABS with the simplicity of PLA; Nylon has a low coefficient of friction with a high melting point, making it useful for support structure material. These materials are cheap and offer relatively competitive mechanical properties compared to conventional manufacturing materials. According to the authors of [6], regardless of the environment, it is essential that the temperature of the printing atmosphere is controlled and maintained at an appropriate temperature depending on the material being printed. Extreme hot conditions might deform the structure, and coldness may lead to warping. Hence, we can conclude that room temperature significantly influences the quality of the printed product. The temperature of the extruder and heating bed also plays an essential role in the print quality. It is necessary to set the temperature to an optimal value depending on the material used. According to the authors of [7], one can set the temperature of the heated bed and select the extruder’s temperature based on the material used. Wall thickness and count, layer thickness and count also significantly affect mechanical properties. When the thickness and count increase, the strength and stiffness of the product also increases. However, the weight of the fragment also increases. This may not be favourable, as automotive industries want lightweight products with enhanced mechanical properties.
Apart from the material’s melting point, other properties such as mechanical, and physical parameters should be considered when choosing a material [8]. Mechanical properties such as tensile and flexural strength, impact loading, modulus of elasticity, and rigidity are crucial. For instance, the authors of [9] found that a part fabricated with ABS material, kept at 0 raster angle, showed the best tensile and flexural strength. Similarly, Garg et al. [10] found that tensile strength highly depended on the building orientation. They found that a part built flat on a long edge showed higher tensile and flexural strengths than a piece made flat on a shorter edge. This validates the importance of process parameters in determining the quality of the printed product. For instance, Qattawi et al. [11] studied other parameters such as infill structure and density, print speed, and layer height. Their study focused on how the parameters mentioned above affected the mechanical properties of the fabricated part. The common consensus among the scientific community is that cubic, cubic subdivision, and honeycomb structures are the best infill structures to achieve high stiffness and strength. One can use machines like the universal testing machine (UTM) to perform tensile and compressive tests. One can perform Izod and Charpy tests to determine the impact strength. Different apparatuses are required to perform various tests; this can be tedious and time-consuming. Finite element methods help overcome that, provided you have a system with strong computational power. One can use software like ANSYS to simulate and perform the abovementioned tests. The analysis offers an accurate solution to the entire model by undertaking an element-wise approach [12,13,14,15]. Abbot, D. W. et al. [16] used finite element methods to study the strength and toughness of a rectangular block using compression tests. They varied infill structures and materials to get different samples. Given the number of factors and the values it can take, making test specimens with different combinations of parameters can be difficult. The Design of Experiments (DOE) can help plan, design, and analyze experiments [17,18]. It is a combination of statistical and mathematical functions where studies of how a response is affected by one or more factors are conducted. DOE has been traditionally used to improve reliability and quality [18]. Some examples of DOE are Taguchi, Response Surface Methodology (RSM), screening, and factorial and mixture designs. RSM and Taguchi have not only been incorporated in the manufacturing and engineering industries [19,20,21] but also in pharmaceuticals [22], food [23], hospitals, architecture [24], and energy industries. It can also be incorporated into computer simulation models [25].
Today, in the wake of the pandemic, contactless manufacturing embedded with machine vision and artificial intelligence is vital. A field of computing algorithms called machine learning is constantly developing and aims to replicate human intelligence by learning from the environment [26]. Several network architectures are available. For instance, the CNN (convolutional neural network) algorithm is the most well-known and often-utilized. CNN’s main benefit over its predecessors is that it automatically recognizes the essential components without human intervention. Similarly, a deep convolutional architecture called the Inception v3 Network was created for classification tasks using the ImageNet dataset, which consists of 1.2 million RGB pictures from 1000 classes [27]. Another network architecture, the MobileNet Application Programming Interface (API), was created to improve accuracy while using little power and responding quickly. MobileNet can quickly address various problems related to instance segmentation, object recognition, and image/object classification. Several researchers have devised ways to detect, monitor, and correct these defects using machine vision and machine learning. Concepts of machine learning, when coupled with the internet of things, help promote contactless manufacturing. Appropriate sensors can be employed to monitor and correct the print in the event of an error. For instance, the authors of [12] created a CNN-based model to detect mistakes in 3D printing. They achieved reasonably good accuracy and efficiency. The lead researchers of [13] used machine vision and statistical process control (SPC) to monitor the print. They reached an accuracy of 0.5mm. Similarly, the authors of [14] used support vector machines to process the data collected from accelerometers, thermocouples, and acoustic emission sensors to monitor the fabrication process [28,29].
This paper presents a novel machine-learning algorithm that predicts the optimal input parameter based on the users’ wishes and monitors and controls the print. The algorithm was trained using four network architectures: CNN, MobileNet, Resnet152, and Inception_V3. RSM, and Taguchi’s method was used to determine and design the experiment. Print parameters such as infill type, density, material, wall and layer thickness, and count were varied to design the experiment. Finite element analysis is performed using Ansys 2022 software (Ansys Inc., ARK Infosolutions, Pvt.Ltd., Chennai, India) to understand the mechanical properties (strength, and stiffness) of all the test specimens. The inferences obtained from the finite element analysis are used to train the novel machine learning model. This machine learning model will help save time, as companies and manufacturers will not have to spend time and resources to find the optimal input parameters to obtain the desired outputs. This can be implemented in almost every manufacturing industry.

2. Neural Networks

2.1. Convolutional Neural Network (CNN)

CNN is the most well-known and often-utilized algorithm [30]. CNN has a significant advantage over its predecessors because it automatically recognizes relevant elements without human intervention [31]. CNNs have been widely employed in several domains, including computer vision, audio processing [32], facial recognition, etc. In most situations, a photograph is utilized as the input for CNN-based object classification algorithms, producing the class type [33,34]. Using an R-FCN(Region-based Fully Convolutional Networks) network, an auto-sorting system with a 97% accuracy rate that could be employed on an assembly line conveying diverse parts was developed [35]. It can extract a sequence of convolutional feature maps from an image of a component. These feature maps reflect essential visual characteristics and are utilized for object classification and localization. The network provides a collection of bounding boxes {{P An = P Ax n, P Ay n, P Aw n, P Ah n}}, each of which contains one item recognized. Each bounding box specifies an element picture for the following phase.
In the first convolutional layer of CNN, the weights of the receptive field and the feature map may be utilized to determine the variable and temporal information required for fault classification. During CNN’s training phase, weights were modified using the gradient descent technique to lower the loss (classification error) function value. This implies that when the size of a single weight increases, the last nodes contribute more significantly to extracting information relevant for classification. Each weight column of the CNN model’s first convolutional layer reflects the importance of a particular sensor variable [36].

2.2. MobileNet

MobileNet, created by Google, is a solid deep neural network that seeks to perform well. The Application Programming Interface (API) was designed to improve accuracy while consuming little power and responding quickly. MobileNet can help with instance segmentation, object identification, and image or object classification challenges, to name a few [37]. MobileNet is available in four variants: mobilenetv1, mobilenetv2, mobilenetv3, and mobilenetedgeTpu. The variants are evolutions of the previous models that aim at making the training process less complicated by using better separable convolutions. Mobilenetv2 is utilized in this paper.
In this system, depth-wise separable convolutions, the first layer of the architecture, are used to filter light. The next layer is a point wise convolutional layer with a dimension of 1*1. The latter is in charge of developing new characteristics by employing certain linear combinations on input layers. Relu6, which provides computation robustness but low precision, is used [38]. Spontaneous layer segregation benefits bottleneck and transformation layers. The inverted residual layer provides a memory-efficient implementation. In this article, the MobilnetV2 model is integrated with the Input Layer, Functional MobileNet Layer, and Global Average Pooling Layer to form a dense layer.

2.3. InceptionV3

The InceptionV3 is a convolutional neural network for helping in image analysis and object detection. The InceptionV3 was designed to approach deep and broad networks by reducing the number of parameters [39]. The InceptionV2 experimenters observed that auxiliary classifiers did not contribute much until the end of the training process. Thus, the V2 was improved without drastically changing modules. It was achieved by adding an RMSProp optimizer, factorized 7 × 7 convolutions, batch norm in auxiliary classifiers, and label smoothing. The RMSProp optimizer limits the oscillations in a vertical direction, thereby increasing the learning rate, and the algorithm may converge faster as it takes longer steps in the horizontal direction.
Factorization of convolutions and reducing high dimensions inside the network can result in relatively low computational effort and better performance. Batch normalization is a method to standardize the inputs to each layer of the mini-batch, thus neutralizing the learning process and reducing the number of training epochs to train deep networks [34,40].The present-day application of InceptionV3 has increased enormously across various domains, from healthcare [41] to robotics, and archaeology [42].

2.4. Resnet152

A Residual Network(Resnet) is a CNN architecture. It has blocks of CNN in multiple layers. It is one of the most popular and successful deep learning models. Residual networks help ease the training of deeper networks [43]. This makes it possible to train hundreds or even thousands of layers and achieve compelling performance. Increasing the depth does not provide us with better performance. Deep networks are hard to train due to the vanishing gradient problem. The version becomes saturated or degraded when the grid becomes more profound. Resnet provides a way to handle the vanishing gradient problem by skipping one or more layers (identity shortcut connection) so that not all coatings are executed. It helps eliminate the vanishing gradient problem. The authors of [43] argue that combining layers should not degrade the network performance.
A deeper model can still achieve the required performance by skipping layers despite the vanishing gradient problem. According to the authors of [38], removing a few layers in a Resnet architecture does not compromise its performance.

3. Methodology

3.1. Fused Filament Fabrication (FFF)

The thermoplastic filament is fed into the liquefier using a filament pushing system, which then uses a set of rollers to the filament down. Then, a liquefier is used to soften and melt a filament by heating it above its melting point. Table 1 represents the thermoplastics melting point range. The molten filament is then pushed through a nozzle. The extruded polymer falls onto the bed as the liquefier moves. The bed is relatively cooler, allowing the molten plastic to stick onto the bed and cool down enough to bond with the subsequent layer, forming a rigid product. The visual representation of FFF process is shown in Figure 1.

3.2. Design of Experiments—Taguchi

Five levels are considered for each of the process parameters. The Taguchi method is used to develop and design an experimental model with different permutations and combinations of infill structure and density, material, wall and layer thickness, and nozzle diameter. The Taguchi method is efficient as it gives the correlation between the variables and the response with a minimum error. A total of 25 test specimen combinations are represented. Each level is labelled as 1, 2, 3, 4, and 5. Table 2 describes the parameter levels used for the DOE, whereas Table 3 specifies the different combinations of the input parameters.

3.3. Modelling and Finite Element Analysis

Solidworks 2022 software, (Dassault Systemes Corp., Sim Technologies, Chennai, India) was used to design and model the test specimen (Figure 2). A standard ASTM model (ASTM D638) was created using the above software. The model wasthen sliced according to the specifications in Table 3 using Ultimaker Cura (5.0, Ultimaker, India). The software stores the models in the “.stl” format. Finite element analysis includes tensile, compressive, and fatigue tests. The model meshed with an element size of 1 × 10−4 m.The meshed model had 23.7 × 106 meshes. For the tensile test, one of the end plates of the test specimen was fixed, and a load of 1000 N was applied on the opposite end and direction. Similarly, a load of 1000 N was applied on both ends in the same direction for the fatigue test. The fatigue test helps determine the creep, which helps find the specimen’s life. The tensile and compressive tests help find the material’s breaking point. The results thus obtained are used to train the machine learning algorithm.

3.4. System Design

The machine learning algorithm was trained using the inferences obtained from the finite element analysis. It is essential to design the experimental setup before training the algorithm. Sensors such as accelerometers, thermocouples, and infrared cameras are connected to the 3D printer. The algorithm is connected to the printer using Raspberry Pi 4 and Arduino Uno (R3, Arduino, Italy, Chennai, India) The model and the sensors(accelerometers with range: −g to +g, thermocouples with range 32 to 5300° F, and infrared cameras) are connected. The algorithm is prepared to send appropriate input parameters to the 3D printer (Sedaxis Advanced Materials Pvt. Ltd., Chennai, India) based on the user’s requirements and the inference from the finite element analysis. For instance, if the user wants a lightweight and flexible product, then the algorithm is trained to choose Gyroid as the infill pattern and PLA as the material. The algorithm also gets feedback from the system to monitor the print. In the event of an anomaly, the algorithm takes appropriate measures to ensure the smooth fabrication of the process. Figure 3 shows the methodology for training the machine learning algorithm.

3.5. Training the Machine Learning Algorithm

First, the data generated from the finite element studies were enhanced. The custom data set consists of images of simulated errors and limited element studies. Data must undergo checking before being trained. Blurred images, unwanted noise, and merging contours are a nuisance. Thus, the images must be pre-processed and enhanced to make the dataset as valuable as possible. Generally, normalizing, denoising, resizing, contrast enhancement, and colour space transformation fall under the purview of image pre-processing [25]. The general workflow of the image pre-processing process for image classification is shown in Figure 4. It is of utmost importance to have all images in the dataset be the same size. Thus, resizing images is a necessary task. It also helps to train at a faster rate. Here, the inferences obtained from the finite element analysis and the final print images with and without simulated errors (Figure 5) were used as the input to train the machine learning algorithm. Next, one must tune the hyper parameters to the optimal setting to achieve the minimum loss function and accuracy. A feature extractor is responsible for feeding the input for the training process. It picks notable features (Regions of Interest, or ROIs) from the given data and feeds them into the model for training. “Train_ROIs_Per_Image” refers to the number of regions of interest that can be isolated and trained per image. The model allows 100 ROIs per image. The loss function is the summation of errors after every training step. A loss can be classified as a class loss, bounding box loss (bbox_loss), or region loss (Region_class_loss). The summation of all these three loss functions gives the overall loss function. Initially, the loss function was set as 1, the highest value a loss function can take. After proper training, the preferred loss function value was less than 0.05.
Once all the preliminary checks are done, the model must be trained. Every neuron in a neural network is associated with hyperparameters such as weight (w) and bias (b). The consequences must be pre-trained on other datasets for a transfer learning approach. The aim of training the custom model from scratch is to find the optimum value for weights and biases for each neuron in the network. The former and the latter can be fine-tuned to attain maximum precision and accuracy. The temporarily assigned hyper parameter values are updated with new values that minimize the error function during back propagation. A hundred epochs are performed to obtain the ideal hyperparameters that minimize the loss function. The desired loss function value is less than 0.05. Once the model undergoes sufficient training to achieve the value for the loss function, a script was used to convert the weights into a Tensor Flow frozen inference graph. Once converted, the inference was run on some test images, and masks were generated at a high level of accuracy.

3.6. Hyperparameters of Chosen Network Architectures

This paper uses four different network architectures to train the novel machine learning algorithm. The four models are then compared based on their precision and accuracy. Table 4 mentions the hyper parameters of the chosen architectures with results. The hyper parameters of all four network architectures are mentioned below:
  • Learning Rate: The amount by which weights are updated after each epoch is referred to as the learning rate. This value typically ranges between 0.0 and 1.0. The lower the learning rate, the higher the training time, and vice versa. However, extremely high values are not preferable as the coverage might be constrained, so the resulting accuracy may not be optimal.
  • Optimizer: Optimizers help update the weights along with other parameters. The model’s performance is highly dependent on Optimizer.
  • Batch Size: The interval of examples after which model parameters must be updated. This value must be greater than or equal to 1 but less than the number of training examples.
  • Activation function: These functions determine the neural network’s output and map it into its range.
  • Epochs: This refers to the number of times a model learns and updates itself during training.
  • F1 Score: This is a means to evaluate and express the model’s performance and classifier.

4. Results and Discussion

4.1. Regression Equation and Optimization

The obtained regression equation is a first-order polynomial equation. Corresponding material values, will thickness, infill pattern, infill density, nozzle diameter, and layer thickness are substituted in the regression equation.
Deformation = 0.00364 + 0.001706 A+ 0.000260 B − 0.000025 C − 0.00860 D − 0.00171 E+ 0.00262 F
Factor of safety = 6.48 − 0.782 A + 0.044 B + 0.0246 C+ 4.04 D+ 0.10 E − 1.60 F
Equivalent Stress = 18.3 − 1.86 A − 0.08 B + 0.056 C+ 15.0 D + 1.2 E − 2.6 F
where A = Material, B = Infill Structure, C = Infill density, D = Wall thickness, E = Layer thickness, F = Nozzle diameter.
Table 5 shows the values of total deformation, maximum stress, and safety factor obtained from the finite element methods and the regression equation, along with the error percentage. The calculated error percentage is below 5%, suggesting the legitimacy of the regression equation. The main effects plot (Figure 6, Figure 7 and Figure 8) was plotted to understand each parameter’s influence on the abovementioned response factors. The graph suggests that the honeycomb structure offers the best aspects of safety and strength, whereas the gyroid provides the best flexibility.

4.2. Algorithm Precision by a Confirmatory Test

The results of the training and testing can be seen in Table 4. It can be inferred that Inception offered the highest accuracy and precision with the least training time. Resnet152, on the other hand, provided equally competitive results. However, it took 341 s to train each epoch. Although CNN and MobileNet took less time to train, the results are not promising. One can infer that Inception is the most suitable network architecture for this application.
Real-time tests are conducted to find the algorithm’s efficiency and precision. A test specimen shaped like a cuboid (10 × 5 × 2 cm) was chosen to perform the test (Figure 9). Once the application is kicked-started, a standard questionnaire (Figure 10) appears. The user can give their requirements using that questionnaire. The algorithm uses the feed from the user and chooses the appropriate input parameters to be sent to the printer. The tests were performed with and without simulated errors (Figure 11) to test the model’s precision, accuracy, and speed. The time taken to predict must be significantly less, as it can help reduce the wastage of materials. For instance, Figure 12 shows the stringing error. The model identifies the defect and gives counter-commands to rectify the mistake.

5. Conclusions

The prediction of optimal input parameters for 3D printing is made by training a machine learning model using the results obtained from finite element analysis. The influence of parameters like material, wall thickness, infill pattern, infill density, nozzle diameter, and layer thickness was investigated using DOE and ANOVA approaches. Based on the former, 25 combinations of those mentioned above were tested, and total deformation, maximum stress, and safety factors were estimated. ANOVA was used to obtain the regression, which was then validated by comparing the values with those obtained from finite element analysis. The regression equations (Equations (1)–(3)) and other important data, including images of simulated errors, were used to train the machine-learning model. The InceptionV3-based algorithm achieved a precision of 100% and an accuracy of 97%. This algorithm helps avoid a similar experiment to predict the optimal input parameters for a given requirement. The algorithm is built so that it requires minimum computational power. Therefore, it can be incorporated into all major manufacturing industries.

Author Contributions

Conceptualization, R.R., S.V., J.S., V.P. and S.S.; Methodology, J.S. and V.K.S.; Software, R.R., S.V. and V.P.; Validation, J.S. and S.S.; Investigation, S.V. and V.K.S.; Data curation, R.R., S.V. and V.P.; Writing—original draft, S.V. and S.S.; Writing—review & editing, V.K.S.; Supervision, J.S. and V.K.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Acknowledgments

Authors are grateful to VIT-Chennai, for providing us the seed fund and fully operational laboratory for carrying out the experiments.

Conflicts of Interest

The authors declare that they have no known competing financial interest or personal relationships that could appear to influence the work reported in this paper. Hence, the authors declare that they have no conflict of interest.

Nomenclature

CNNConvolutional Neural Network
RSMResponse Surface Methodology
FFFFused Deposition Modelling
PLAPolylactic acid
ABSAcrylonitrile Butadiene Styrene
PETGPolyethylene terephthalate glycol
PVAPolyvinyl Alcohol Plastic

References

  1. Kruth, J.P. Material Incress Manufacturing by Rapid Prototyping Techniques. CIRP Ann. Manuf. Technol. 1991, 40, 603–614. [Google Scholar] [CrossRef]
  2. Too, M.H.; Leong, K.F.; Chua, C.K.; Du, Z.H.; Yang, S.F.; Cheah, C.M.; Ho, S.L. Investigation of 3D Non-Random Porous Structures by Fused Deposition Modelling. Int. J. Adv. Manuf. Technol. 2002, 19, 217–223. [Google Scholar] [CrossRef]
  3. Masood, S.H.; Rattanawong, W.; Iovenitti, P. Part Build Orientations Based on Volumetric Error in Fused Deposition Modelling. Int. J. Adv. Manuf. Technol. 2000, 16, 162–168. [Google Scholar] [CrossRef]
  4. Grimm, T. Fused Deposition Modeling: A Technology Evaluation; T. A. Grimm & Associates, Inc.: Edgewood, KY, USA, 2002; Volume 11, pp. 1–12. [Google Scholar]
  5. Turkmen, K.G.H.S. Common FDM 3D Printing Defects. In Proceedings of the International Congress on 3D Printing (Additive Manufacturing) Technologies and Digital Industry, Antalya, Turkey, 19–21 April 2018; pp. 1–7. [Google Scholar]
  6. Pang, X.; Zhuang, X.; Tang, Z.; Chen, X. Polylactic Acid (PLA): Research, Development and Industrialization. Biotechnol. J. 2010, 5, 1125–1136. [Google Scholar] [CrossRef]
  7. Singhvi, M.S.; Zinjarde, S.S.; Gokhale, D.V. Polylactic Acid: Synthesis and Biomedical Applications. J. Appl. Microbiol. 2019, 127, 1612–1626. [Google Scholar] [CrossRef] [Green Version]
  8. Ligon, S.C.; Liska, R.; Stampfl, J.; Gurr, M.; Mülhaupt, R. Polymers for 3D Printing and Customized Additive Manufacturing. Chem. Rev. 2017, 117, 10212–10290. [Google Scholar] [CrossRef] [Green Version]
  9. Durgun, I.; Ertan, R. Experimental Investigation of FFF Process for Improvement of Mechanical Properties and Production Cost. Rapid Prototyp. J. 2014, 20, 228–235. [Google Scholar] [CrossRef]
  10. Garg, A.; Bhattacharya, A.; Batish, A. Chemical Vapor Treatment of ABS Parts Built by FFF: Analysis of Surface Finish and Mechanical Strength. Int. J. Adv. Manuf. Technol. 2017, 89, 2175–2191. [Google Scholar] [CrossRef]
  11. Alafaghani, A.; Qattawi, A.; Alrawi, B.; Guzman, A. Experimental Optimization of Fused Deposition Modelling Processing Parameters: A Design-for-Manufacturing Approach. Procedia Manuf. 2017, 10, 791–803. [Google Scholar] [CrossRef]
  12. Wang, Y.; Huang, J.; Wang, Y.; Feng, S.; Peng, T.; Yang, H.; Zou, J. A CNN-Based Adaptive Surface Monitoring System for Fused Deposition Modeling. IEEE/ASME Trans. Mechatron. 2020, 25, 2287–2296. [Google Scholar] [CrossRef]
  13. Wu, Y.; He, K.; Zhou, X.; DIng, W. Machine Vision Based Statistical Process Control in Fused Deposition Modeling. In Proceedings of the 2017 12th IEEE Conference on Industrial Electronics and Applications (ICIEA), Siem Reap, Cambodia, 18–20 June 2017; pp. 936–941. [Google Scholar] [CrossRef]
  14. Nam, J.; Jo, N.; Kim, J.S.; Lee, S.W. Development of a Health Monitoring and Diagnosis Framework for Fused Deposition Modeling Process Based on a Machine Learning Algorithm. Proc. Inst. Mech. Eng. Part B J. Eng. Manuf. 2020, 234, 324–332. [Google Scholar] [CrossRef]
  15. Wen, Y.; Yue, X.; Hunt, J.H.; Shi, J. Feasibility Analysis of Composite Fuselage Shape Control via Finite Element Analysis. J. Manuf. Syst. 2018, 46, 272–281. [Google Scholar] [CrossRef]
  16. Abbot, D.W.; Kallon, D.V.V.; Anghel, C.; Dube, P. Finite Element Analysis of 3D Printed Model via Compression Tests. Procedia Manuf. 2019, 35, 164–173. [Google Scholar] [CrossRef]
  17. Durakovic, B.; Basic, H. Textile Cutting Process Optimization Model Based On Six Sigma Methodology in a Medium-Sized Company. Period. Eng. Nat. Sci. 2013, 1, 39–46. [Google Scholar] [CrossRef]
  18. Paulo, F.; Santos, L. Design of Experiments for Microencapsulation Applications: A Review. Mater. Sci. Eng. C 2017, 77, 1327–1340. [Google Scholar] [CrossRef] [PubMed]
  19. Selvaraj, V.K.; Jeyanthi, S.; Thiyagarajan, R.; Kumar, M.S.; Yuvaraj, L.; Ravindran, P.; Niveditha, D.M.; Gebremichael, Y.B. Experimental Analysis and Optimization of Tribological Properties of Self-Lubricating Aluminum Hybrid Nanocomposites Using the Taguchi Approach. Adv. Mater. Sci. Eng. 2022, 2022, 4511140. [Google Scholar] [CrossRef]
  20. Subramanian, J.; Vinoth Kumar, S.; Venkatachalam, G.; Gupta, M.; Singh, R. An Investigation of EMI Shielding Effectiveness of Organic Polyurethane Composite Reinforced with MWCNT-CuO-Bamboo Charcoal Nanoparticles. J. Electron. Mater. 2021, 50, 1282–1291. [Google Scholar] [CrossRef]
  21. Kumar, V.; Jeyanthi, S. A Comparative Study of Smart Polyurethane Foam Using RSM and COMSOL Multiphysics for Acoustical Applications : From Materials to Component. J. Porous Mater. 2022, 29, 1–17. [Google Scholar] [CrossRef]
  22. Yu, P.; Low, M.Y.; Zhou, W. Design of Experiments and Regression Modelling in Food Flavour and Sensory Analysis: A Review. Trends Food Sci. Technol. 2018, 71, 202–215. [Google Scholar] [CrossRef]
  23. Schlueter, A.; Geyer, P. Linking BIM and Design of Experiments to Balance Architectural and Technical Design Factors for Energy Performance. Autom. Constr. 2018, 86, 33–43. [Google Scholar] [CrossRef]
  24. Garud, S.S.; Karimi, I.A.; Kraft, M. Design of Computer Experiments: A Review. Comput. Chem. Eng. 2017, 106, 71–95. [Google Scholar] [CrossRef]
  25. Albawi, S.; Mohammed, T.A.M.; Alzawi, S. Layers of a Convolutional Neural Network; IEEE: New York, NY, USA, 2017; pp. 1–6. [Google Scholar]
  26. El Naqa, I.; Li, R.; Murphy, M.J. Machine Learning in Radiation Oncology (Theory and Applications); Springer: Cham, Switzerland, 2015. [Google Scholar] [CrossRef]
  27. Barratt, S.; Sharma, R. A Note on the Inception Score. arXiv 2018, arXiv:1801.01973. [Google Scholar]
  28. Wang, C.N.; Yang, F.C.; Nguyen, V.T.T.; Vo, N.T.M. CFD Analysis and Optimum Design for a Centrifugal Pump Using an Effectively Artificial Intelligent Algorithm. Micromachines 2022, 13, 1208. [Google Scholar] [CrossRef] [PubMed]
  29. Nguyen, T.V.T.; Huynh, N.T.; Vu, N.C.; Kieu, V.N.D.; Huang, S.C. Optimizing Compliant Gripper Mechanism Design by Employing an Effective Bi-Algorithm: Fuzzy Logic and ANFIS. Microsyst. Technol. 2021, 27, 3389–3412. [Google Scholar] [CrossRef]
  30. Alzubaidi, L.; Zhang, J.; Humaidi, A.J.; Al-Dujaili, A.; Duan, Y.; Al-Shamma, O.; Santamaría, J.; Fadhel, M.A.; Al-Amidie, M.; Farhan, L. Review of Deep Learning: Concepts, CNN Architectures, Challenges, Applications, Future Directions; Springer International Publishing: New York, NY, USA, 2021; p. 8. [Google Scholar] [CrossRef]
  31. Gu, J.; Wang, Z.; Kuen, J.; Ma, L.; Shahroudy, A.; Shuai, B.; Liu, T.; Wang, X.; Wang, G.; Cai, J.; et al. Recent Advances in Convolutional Neural Networks. Pattern Recognit. 2018, 77, 354–377. [Google Scholar] [CrossRef] [Green Version]
  32. Palaz, D.; Magimai-Doss, M.; Collobert, R. End-to-End Acoustic Modeling Using Convolutional Neural Networks for HMM-Based Automatic Speech Recognition. Speech Commun. 2019, 108, 15–32. [Google Scholar] [CrossRef] [Green Version]
  33. Wang, Y.; Hong, K.; Zou, J.; Peng, T.; Yang, H. A CNN-Based Visual Sorting System with Cloud-Edge Computing for Flexible Manufacturing Systems. IEEE Trans. Ind. Inform. 2020, 16, 4726–4735. [Google Scholar] [CrossRef]
  34. Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the Inception Architecture for Computer Vision. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 2818–2826. [Google Scholar] [CrossRef]
  35. Wang, T.; Yao, Y.; Chen, Y.; Zhang, M.; Tao, F.; Snoussi, H. Auto-Sorting System Toward Smart Factory Based on Deep Learning for Image Segmentation. IEEE Sens. J. 2018, 18, 8493–8501. [Google Scholar] [CrossRef]
  36. Lee, K.B.; Cheon, S.; Kim, C.O. A Convolutional Neural Network for Fault Classification and Diagnosis in Semiconductor Manufacturing Processes. IEEE Trans. Semicond. Manuf. 2017, 30, 135–142. [Google Scholar] [CrossRef]
  37. Saha, O.; Kusupati, A.; Simhadri, H.V.; Varma, M.; Jain, P. RNNPool: Efficient Non-Linear Pooling for RAM Constrained Inference. Adv. Neural Inf. Process. Syst. 2020, 33, 20473–20484. [Google Scholar]
  38. Srinivasu, P.N.; Sivasai, J.G.; Ijaz, M.F.; Bhoi, A.K.; Kim, W.; Kang, J.J. Classification of Skin Disease Using Deep Learning Neural Networks with MobileNet V2 and LSTM. Sensors 2021, 21, 2852. [Google Scholar] [CrossRef] [PubMed]
  39. Russakovsky, O.; Deng, J.; Su, H.; Krause, J.; Satheesh, S.; Ma, S.; Huang, Z.; Karpathy, A.; Khosla, A.; Bernstein, M.; et al. ImageNet Large Scale Visual Recognition Challenge. Int. J. Comput. Vis. 2015, 115, 211–252. [Google Scholar] [CrossRef] [Green Version]
  40. Guo, Z.; Zhou, Z.; Liu, B.; Li, L.; Jiao, Q.; Huang, C.; Zhang, J. An Improved Neural Network Model Based on Inception-v3 for Oracle Bone Inscription Character Recognition. Sci. Program. 2022, 7490363. [Google Scholar] [CrossRef]
  41. Ramaneswaran, S.; Srinivasan, K.; Vincent, P.M.D.R.; Chang, C.Y. Hybrid Inception v3 XGBoost Model for Acute Lymphoblastic Leukemia Classification. Comput. Math. Methods Med. 2021, 2577375. [Google Scholar] [CrossRef]
  42. Cao, J.; Yan, M.; Jia, Y.; Tian, X.; Zhang, Z. Application of a Modified Inception-v3 Model in the Dynasty-Based Classification of Ancient Murals. EURASIP J. Adv. Signal Process. 2021, 2021, 49. [Google Scholar] [CrossRef]
  43. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, San Juan, PR, USA, 17–19 June 1997; pp. 770–778. [Google Scholar] [CrossRef]
Figure 1. FFF process visual representation.
Figure 1. FFF process visual representation.
Micromachines 13 02231 g001
Figure 2. Modelling and meshing of sample using Solidworks.
Figure 2. Modelling and meshing of sample using Solidworks.
Micromachines 13 02231 g002
Figure 3. Methodology for training the machine learning algorithm.
Figure 3. Methodology for training the machine learning algorithm.
Micromachines 13 02231 g003
Figure 4. General workflow of the image pre-processing process for image classification.
Figure 4. General workflow of the image pre-processing process for image classification.
Micromachines 13 02231 g004
Figure 5. Common errors in 3D printing (a) Stringing (b) Over-extrusion (c) Under-extrusion (d) Pillowing (e) Layer Shifting.
Figure 5. Common errors in 3D printing (a) Stringing (b) Over-extrusion (c) Under-extrusion (d) Pillowing (e) Layer Shifting.
Micromachines 13 02231 g005
Figure 6. Main effects plot for the factor of safety.
Figure 6. Main effects plot for the factor of safety.
Micromachines 13 02231 g006
Figure 7. Main effects plot for equivalent stress.
Figure 7. Main effects plot for equivalent stress.
Micromachines 13 02231 g007
Figure 8. Main effects plot for stress.
Figure 8. Main effects plot for stress.
Micromachines 13 02231 g008
Figure 9. Test specimen.
Figure 9. Test specimen.
Micromachines 13 02231 g009
Figure 10. Questionnaire.
Figure 10. Questionnaire.
Micromachines 13 02231 g010
Figure 11. Live testing results.
Figure 11. Live testing results.
Micromachines 13 02231 g011
Figure 12. Live testing results with stringing error.
Figure 12. Live testing results with stringing error.
Micromachines 13 02231 g012
Table 1. Thermoplastics’ melting point range.
Table 1. Thermoplastics’ melting point range.
ThermoplasticMelting Range
(Celsius)
ABS180–230°
PLA210–250°
PETG220–250°
Nylon240–260°
Table 2. Parameter levels.
Table 2. Parameter levels.
SymbolParameterLevel
12345
X1Material12345
X2Infill Structure678910
X3Infill density (%)1020304050
X4Wall thickness (mm)0.050.100.150.20.25
X5Layer thickness (mm)0.10.20.30.40.5
X6Nozzle diameter (mm)0.060.10.150.20.3
Table 3. DOE table showing different combinations.
Table 3. DOE table showing different combinations.
Standard OrderMaterialInfill StructureInfill DensityWall ThicknessLayer ThicknessNozzle Diameter
116100.0500.1000.060
217200.1000.2000.100
318300.1500.3000.150
419400.2000.4000.200
5110500.2500.5000.300
626200.1500.4000.300
727300.2000.5000.060
828400.2500.1000.100
929500.0500.2000.150
10210100.1000.3000.200
1136300.5000.2000.200
1237400.0500.3000.300
1338500.1000.4000.060
1439100.1500.5000.100
15310200.2000.1000.150
1646400.1000.5000.150
1747500.1500.1000.200
1848100.2000.2000.300
1949200.2500.3000.060
20410300.0500.4000.100
2156500.2000.3000.100
2257100.2500.4000.150
2358200.0500.5000.200
2459300.1000.1000.300
25510400.1500.2000.060
Where, 1 = ABS; 2 = PLA; 3 = PETG; 4 = Nylon, 5 = Polyvinyl Alcohol Plastic (PVA). 6 = Honeycomb; 7 = Gyroid; 8 = Tri-hexagon; 9 = Grid; 10 = Cubic.
Table 4. Hyperparameters of chosen network architectures with results.
Table 4. Hyperparameters of chosen network architectures with results.
Model
Parameters
CNNResnet152MobileNetInception
Epochs100100100100
Precision0.640.80.631.0
Accuracy0.950.950.110.97
F1 score0.780.640.081.0
Time taken per epoch75s341s49s35s
Validation split0.30.20.30.3
Batch Size64326432
Activation FunctionBCECCEBCESM
Table 5. Error analysis.
Table 5. Error analysis.
Standard OrderThe Factor of Safety from FEAFactor of Safety from EquationErrorMax Equivalent Stress from FEAMax Equivalent Stress from EquationErrorTotal Deformation from FEATotal Deformation from Regression Equation (Equations (1)–(3))Error
15.3005.0005.60014.70015.0002.0000.0080.0083.600
24.5004.6002.20012.10012.0000.8000.0090.0093.000
35.1005.0001.90014.30015.0004.6000.0090.0092.900
44.8005.0004.10013.60014.0002.8000.0090.0091.700
55.7005.8001.70015.20016.0005.0000.0080.0081.200
66.6006.9004.50019.80020.0001.0000.0070.0072.400
77.0007.0000.00020.40020.0002.0000.0050.0051.700
86.4006.0006.20017.30017.0001.7000.0070.0071.600
98.9009.0001.10022.50022.0002.2000.0050.0051.900
106.1006.0001.60015.90015.5002.5000.0070.0080.500
119.70010.0003.00030.00029.0003.4000.0020.0022.000
129.1009.0001.00026.30027.0002.5000.0030.0034.100
1310.00010.0000.00030.20030.0000.6000.0020.0025.500
148.9009.0001.10024.60025.0001.6000.0040.0042.700
159.3009.0003.20027.10027.0000.3000.0030.0032.900
164.4004.5002.20011.00011.5004.3000.0100.0104.100
174.1004.0002.40010.30010.0003.0000.0100.0101.900
183.8004.0005.2009.90010.0001.0000.0110.0110.900
194.4004.5002.20010.90011.0000.9000.0100.0100.300
204.0004.0000.00010.10010.0001.0000.0110.0110.900
213.3003.4003.0009.70010.0003.0000.0120.0134.800
222.0002.0000.0008.2008.0002.5000.0140.0142.100
232.4002.5004.1009.1009.0001.1000.0160.0161.200
242.3002.4004.3008.6009.0004.4000.0160.0161.800
253.0003.0000.0009.60010.0004.0000.0180.0182.800
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Ratnavel, R.; Viswanath, S.; Subramanian, J.; Selvaraj, V.K.; Prahasam, V.; Siddharth, S. Predicting the Optimal Input Parameters for the Desired Print Quality Using Machine Learning. Micromachines 2022, 13, 2231. https://doi.org/10.3390/mi13122231

AMA Style

Ratnavel R, Viswanath S, Subramanian J, Selvaraj VK, Prahasam V, Siddharth S. Predicting the Optimal Input Parameters for the Desired Print Quality Using Machine Learning. Micromachines. 2022; 13(12):2231. https://doi.org/10.3390/mi13122231

Chicago/Turabian Style

Ratnavel, Rajalakshmi, Shreya Viswanath, Jeyanthi Subramanian, Vinoth Kumar Selvaraj, Valarmathi Prahasam, and Sanjay Siddharth. 2022. "Predicting the Optimal Input Parameters for the Desired Print Quality Using Machine Learning" Micromachines 13, no. 12: 2231. https://doi.org/10.3390/mi13122231

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