This study investigates the predictive modelling of weld bead geometry in wire arc additive manufacturing (WAAM) through advanced machine learning methods. While WAAM is valued for its ability to produce large, complex metal parts with high deposition rates, precise control of the weld bead remains a critical challenge due to its influence on mechanical properties and dimensional accuracy. To address this problem, this study utilized machine learning approaches—Ridge regression, Lasso regression and Bayesian ridge regression, Random Forest and XGBoost—to predict the key weld bead characteristics, namely height, width and cross-sectional area. A Design of experiments (DOE) was used to systematically vary the welding current and travelling speed, with 3D weld bead geometries captured by laser scanning. Robust data pre-processing, including outlier detection and feature engineering, improved modelling accuracy. Among the models tested, XGBoost provided the highest prediction accuracy, emphasizing its potential for real-time control of WAAM processes. Overall, this study presents a comprehensive framework for predictive modelling and provides valuable insights for process optimization and the further development of intelligent manufacturing systems.
29 July 2025 in Advances in Production Engineering & Management
This research explores the viability of producing ISO G-code for 3-axis machining with OpenAI's Chat Generative Pre-Trained Transformer models, particularly ChatGPT-3.5 and the newer GPT-4o. G-code (RS-274-D, ISO 6983) converts human directives into commands that machines can understand, controlling toolpaths, spindle velocities, and feed rates to produce particular aspects of an object. Previously, G-code was generated either by hand or through the use of computer-aided manufacturing (CAM) software along with machine-specific post-processors, both of which may require considerable time and expense. This research aimed to assess the practicality and effectiveness of specific large language models (LLMs) in generating G-code. The assessment took place in three distinct phases on a sample component that required 3-axis machining. These phases included: (1) the self-generated production of G-code for the sample component, (2) the examination of the independently generated G-code in the CAM application, and (3) the recognition and justification of mistakes in the G-code. The outcomes indicated varying abilities with promising findings. This method could accelerate and possibly enhance manufacturing workflows by decreasing reliance on expensive CAM software and specialized knowledge.
In this work, Laser Powder Bed Fusion (LPBF), an additive manufacturing (AM) process, was optimised to produce pure magnesium components. The focus of the presented work is on the prediction of the relative product density using the machine learning model XGBoost to improve the production process and thus the usability of the material for practical use. Experimental tests with different parameters, laser power, scanning speed and layer thickness, and fixed parameters, track overlapping and hatching distance, were analysed and resulted in relative material densities between 89.29% and 99.975%. The XGBoost model showed high predictive power, achieving an R2 test result of 0.835, a mean absolute error (MAE) of 0.728 and a root mean square error (RMSE) of 0.982. Feature importance analysis showed that the interaction of laser power and scanning speed had the largest influence on the predictions at 35.9%, followed by laser power × layer thickness at 29.0%. The individual contributions were laser power (11.8%), scanning speed (10.7%), scanning speed × layer thickness (9.0%) and layer thickness (3.6%). These results provide a data-based method for LPBF parameter settings that improve manufacturing efficiency and component performance in the aerospace, automotive and biomedical industries and identify optimal parameter regions for a high density, serving as a pre-optimisation stage.
Direct verification of the geometric accuracy of machined parts cannot be performed simultaneously with active machining operations, as it usually requires subsequent inspection with measuring devices such as coordinate measuring machines (CMMs) or optical 3D scanners. This sequential approach increases production time and costs. In this study, we propose a novel indirect measurement method that utilizes motor current data from the controller of a Computer Numerical Control (CNC) machine in combination with machine learning algorithms to predict the geometric accuracy of machined parts in real-time. Different machine learning algorithms, such as Random Forest (RF), k-nearest neighbors (k-NN), and Decision Trees (DT), were used for predictive modeling. Feature extraction was performed using Tsfresh and ROCKET, which allowed us to capture the patterns in the motor current data corresponding to the geometric features of the machined parts. Our predictive models were trained and validated on a dataset that included motor current readings and corresponding geometric measurements of a mounting rail later used in an engine block. The results showed that the proposed approach enabled the prediction of three geometric features of the mounting rail with an accuracy (MAPE) below 0.61% during the learning phase and 0.64% during the testing phase. These results suggest that our method could reduce the need for post-machining inspections and measurements, thereby reducing production time and costs while maintaining required quality standards.
This work used machine learning to forecast product density and optimize the laser powder bed fusion (LPBF) process for parts made of pure zinc (Zn). A relative density of 90–97% (6.42–6.95 g/cm3) was obtained by varying combinations of key process parameters, including laser power, scanning speed, track overlapping, hatch spacing, and layer thickness. Machine learning provided models for density prediction and better comprehension of the impact of input parameters. A SHapley Additive exPlanation (SHAP) analysis quantified the contributions of specific features, enhancing model interpretability. Fifty-one experimental runs were used to test several methods, including Bayesian ridge, CatBoost, elastic net, lasso, linear regression, random forest, ridge regression, and XGBoost. CatBoost performed best, with a test coefficient of determination (R2) of 0.893, a mean absolute error (MAPE) of 0.010 and a root mean square error (RMSE) of 0.015. A feature importance analysis showed that laser power (49%) and scanning speed (42%) had the greatest influence, while hatch spacing (5%) and layer thickness (4%) had minimal impacts on product density. Therefore, selecting the correct optimized set of process parameters determines the resulting density and can support more efficient LPBF process development.