Additive Friction Stir Deposition (AFSD) is a solid-state manufacturing technique that avoids melting-related defects. Incorporating nanodiamond (ND) and titanium nitride (TiN) nanoparticles into AA5083 deposits offers in situ composite strengthening, but the extremely small experimental datasets demand rigorous, leakage-resistant validation strategies. This study investigates a nested group-wise cross-validation pipeline for Vickers microhardness (HV) prediction from spindle speed (RPM), vertical feed rate (Vz), and nanoparticle addition (binary), establishing a reproducible template for small-data machine learning in solid-state additive manufacturing. The dataset comprises 13 unique AFSD conditions yielding 78 indentations. Gradient Boosting (GB) hyperparameters are tuned exclusively inside the inner loop of nested Leave-One-Group-Out cross-validation; outer LOGO provides the leakage-resistant performance estimate. Preprocessing is embedded in scikit-learn Pipelines and fitted solely on training folds. Exact interventional SHAP values are computed on raw features, with explicit acknowledgment of the confounded experimental design. The nested CV GB model achieved R2 = 0.770 (95% CI: 0.487–0.859) and RMSE = 3.57 HV. Linear Regression performed comparably (R2 = 0.802), but the limited sample size precludes detection of nonlinearity. SHAP attributed the largest contribution to powder addition (3.56 HV), followed by Vz (3.14 HV) and RPM (1.49 HV); these values cannot be interpreted causally. Nested evaluation of raw features alone gave R2 = 0.893, indicating that engineered features increased variance without detectable gain at this sample size. The pipeline provides a rigorous standard for future ML studies. A linear model on engineered features is recommended as a transparent baseline for process planning after external validation.
Nano-diamond (ND) is a special ultrafine reinforcement whose agglomeration properties and weak interfacial bonding limit its application in aluminum matrix composites. This study used the additive friction stir deposition (AFSD) technique to produce AA5083-H321/2.5 wt% nano TiN/ND additive manufacturing deposition hybrid composite parts (AMDCPs) and a non-composite part (AMDNCP) was also deposited for comparative analysis. The aim was to improve the microstructure and examine the effect of the deposition process parameters, which include 900, 1250, and 1600 rpm rod rotation speed and 5 and 12 mm/min feed rate. The AFSD process parameters were used to calculate the heat input. The consumable rod and AMD parts were evaluated for their macrostructure, microstructure, macro-hardness, tribological, and corrosion properties. The microstructural features were examined using an OM, XRD, and SEM equipped with an EDS. The worn and corrosion surface morphology was investigated using SEM, and hardness was also evaluated as contour maps. The results show that defect-free deposited multilayer AA5083-nano TiN/ND hybrid composite parts were successfully manufactured, and analysis revealed a lower D/H ratio, well-bonded layers, homogeneously distributed TiN/ND and fragmented IMC components, and equiaxed refined grain microstructures. The deposited composites via AFSD showed a lower corrosion rate, higher hardness, and wear resistance than the deposited AA5083 consumable rod and AMDNCP. The AMDP C900-12 demonstrates an optimized deposition process parameter (900 rpm, 12 mm/ min) with superior properties, including an increase in hardness by 9.3%, a reduction in grain size by 54%, and a decrease in corrosion rate by 45.2% related to the AMDNC part.