IV. Results and Discussion
We begin first to analyze the published references dressed in the
Table 7.
Deep learning-based frameworks [
3,
4,
8,
9,
10,
12,
15] greatly outperform previous published approaches in additive manufacturing applications.
Due to their reliance on indirect physical signal collecting techniques or handmade feature engineering [
13], early approaches show a limited capacity to capture fine-grained spatial patterns. These include physical measurements taken from extrusion-based additive manufacturing processes [
2], process signal-driven defect detection techniques in laser powder bed fusion (LPBF) systems [
4], acoustic emission-based monitoring strategies [
3], and conventional industrial inspection frameworks based on indirect sensing modalities and classical measurement protocols [
6]. When taken as a whole, these approaches are limited in their ability to represent intricate spatial structures and minute local fluctuations in the underlying data due to their dependence on indirect observables and manually created descriptors.
Convolutional neural network-based methods has shown better detection performance, but they remain sensitive to illumination variations, noise, and domain shift, which can degrade their robustness in real operational environments.
A. Qualitative and Quantitative Performance Analysis
To evaluate the reliability of the dataset trained using BLP and GLCM-based feature extraction, and to assess the capability of the proposed camera system in capturing texture variations,
Figure 7 presents the four concrete texture classes used for validation. In addition,
Figure 8 illustrates the model predictions on two clay texture classes acquired using the FLIR camera, demonstrating its ability to generalize across different material types.
Results for improved extrusion layer segmentation are further, presented and discussed, for both concrete and soil extrusion acquired using our FLIR camera-based acquisition system.
Although the proposed method based on BLP and GLCM features achieves very strong performance, we introduce an improved approach based on a U-Net architecture combined with a VGG backbone to further enhance feature representation and segmentation accuracy.
Specifically, the encoder blocks progressively reduce the spatial dimensions of the input tensors in order to capture deep contextual cues associated with interlayer boundary profiles in 3D-printed materials. Conversely, the decoder pathway reconstructs pixel-wise segmentation maps through successive transposed convolutions, combined with feature fusion from the corresponding encoder stages. These skip connections play a crucial role in preserving edge sharpness and boundary details, which are essential for isolating micro-scale defects along the highly complex layered extrusions.
Moreover, a qualitative study, introduced in Section E, based on the segmented mask was conducted. The results show that the baseline suffers from a high rate of false positives introduced by environmental noise. The improved model output achieves better clean, of theses false values, demonstrating its operational readiness for closed-loop quality control applications.
This substantial qualitative improvement is directly rooted in the structural layout of the network. In fact, Dice loss is employed to handle class imbalance by directly optimizing the overlap between predicted and reference masks, Equ. (
16). The network’s hyperparameters, were rigorously calibrated in purpose to optimize classification performance while ensuring stability during backpropagation. Our improved model based on U-VGG19 seamlessly integrates the deep hierarchical feature extraction capabilities combined with the precise spatial reconstruction properties inherent to the U-Net decoder loop. This cohesive design framework enables the network to learn, high-level semantic representations while concurrently preserving fine-grained localized spatial coordinates.
The VGG19 encoder has the ability of capturing the VGG19 deep features generating huge number of parameters. The introduction of the next GlobalAveragePooling2D ensures an efficient dimensionality reduction mechanism since it reduces the total parameter count compared to conventional flattening methods. This mechanism results in lowering the computational complexity while reduction the network’s susceptibility to spatial translations.
The intermediate dense hidden layer is configured to provide sufficient non-linear capacity to decode the high-dimensional vectors passed by the convolutional backbone, it is regularizated via the weight decay and is followed by the Dropout layer configured at a strict rate of the selected value 0.5.
This choice aims to prevent the model from overfitting to structural noise.
By randomly deactivating half of the neural pathways during each training forward-pass, the network is encouraged to learn more robust and less co-adapted feature representations, significantly mitigating the risk of overfitting.
Additionally, a Softmax function was used to activate the output 4 nodes, resulting in a well-calibrated probability distribution across the intended structural categories (Fluid, Good, Dry, and Tearing).
Concerning the optimization strategy, we first adopt a learning rate baseline of 0.0001. to achieve a trade off between fast convergence and gradient stability.
The Adam optimizer was selected due to its computational efficiency and its efficiency. In fact, it learns adaptive momentum and captures the velocity like the behaviour of the gradient.
It has the ability to train the network for the four classes learning individual parameters, by minimizing the sparse_categorical_crossentropy loss function.
The layer-freezing configuration was precisely adjusted across the pre-trained VGG19 backbone.
Considering, the implementation of the presented U-VGG19 architecture, the standard Keras deep learning framework comprises 22 layers, including convolutional blocks and intermediate max-pooling operations.
Under the proposed fine-tuning strategy, the first 16 layers of the network were strictly frozen (layer.trainable = False), while only the final 6 upper layers were permitted to remain trainable (layer.trainable = True).
The 16 Locked layers are used as static general-purpose feature extractor. Since they have been trained on the large-scale ImageNet repository, they can easily work as filters able to detect visual primitives, basic contours, elemental textures...Their weights are locked ensuring that theses essential representations are protected from forgetting.
Consequently, this selective freezing strategy reduces the number of trainable parameters, improves computational efficiency during backpropagation, and mitigates overfitting on the target dataset.
Discussion the Practical Results
The ablation experiment section highlights the dependency of the model on the data augmentation strategy integrated in the pipeline. We show that the absence of data augmentation leads to a noticeable degradation in Dice score on the test set, resulting in reducing the ability of the model to generalize across various condition constraint in the operating world. In the opposite case, the use of data augmentation enriches the training distribution, and results in better Dice scores.
As outlined in
Table 8, augmentation data improves robustness and enhances generalization performance on unseen samples.
These findings confirm the importance of augmentation strategies in segmentation tasks for ensuring stability and predictive reliability.
Figure 9 illustrates the training convergence behavior of the proposed model over successive epochs. The loss curve exhibits a steady decrease, indicating stable optimization throughout training.
A limited gap between training and validation curves is observed, suggesting that the network does not suffer from severe overfitting, this behavior is also supported by the combined effects of data augmentation and dropout regularization.
During evaluation on the raw testing set, the improvement appears less pronounced, suggesting that although data augmentation significantly enhances generalization, the inherent variability of the dataset remains a limiting factor.
Nevertheless, the F1-score results reported in
Figure 10 demonstrate consistently accurate performance across the four extrusion classes, confirming that the proposed improved U-VGG19 classification model effectively discriminates between different extrusion states under realistic conditions.
While the classification results confirm the effectiveness of the proposed model, the overall pipeline performance also depends on the quality of the input data used for segmentation. The primary goal of the artifact removal preprocessing step was to prepare the input images for optimal feature extraction by the deep segmentation network. As visually evidenced in
Figure 11 and
Figure 12, the proposed method effectively suppresses visual disturbances commonly encountered in construction environments, including illumination artifacts, sensor noise, and extraneous shadows from surrounding equipment, while preserving the semantic integrity of critical layer boundaries.
Comparisons before and after artifact removal are illustrated in
Figure 12a,c for the concrete dataset, and in
Figure 12b,d for the soil dataset. This preprocessing step results in a clearer delineation between cement paste and aggregates within the bead profile and reduces ambiguities caused by heterogeneous surface textures and micro-shadowing effects. By standardizing the visual domain across different materials, it significantly contributes to improved segmentation performance on unseen validation data.
Following the segmentation stage, a geometric post-processing step is applied to extract structural information from the predicted masks. To quantitatively assess the accuracy of the reconstructed geometry, the evaluation is based on the error metrics defined in the Methodology section,
Section 7, namely the absolute error and relative error. The detected lines and their corresponding medial traces extracted from the segmented concrete image are illustrated in
Figure 13.
Across these steps, the robustness of the proposed approach is consistently validated on both the concrete and soil materials.
Although the model was originally trained on concrete extrusion data, These findings suggest that basic aspects of extrusion behavior are captured by the learned feature representations. The model can be readily continue to be applied to various materials. This demonstrates the potential applicability of the proposed approach to real-world for various materials in additive manufacturing environments.
B. Training Stability and Robustness Analysis
The stability of learning-based models in additive manufacturing remains a critical challenge, particularly under perturbations such as noise, illumination variations, and domain shifts. Prior studies have shown that neural network performance can be sensitive to input perturbations and training dynamics [
8,
10,
11]. In addition, instability issues related to feature extraction and representation learning have been widely observed in practical deep learning systems applied to industrial monitoring tasks [
3,
4,
9].
In our case, the smooth convergence of the loss function, together with the limited gap between training and validation curves, indicates a well-conditioned optimization process.
This behavior suggests stable gradient propagation, supported by the combined effect of skip connections, data augmentation, and artifact removal preprocessing.
From a mathematical perspective, the stability of the optimization process can be interpreted through the convergence behavior of the loss function:
where the training loss approaches converge to a stable equilibrium without showing oscillations.
The stable gradient propagation is ensured by bounded gradient updates during backpropagation:
This, especially in deep encoder-decoder systems, helps reduce exploding gradient issues.
Additionally, the slight difference between test and training performance can be used to represent the model’s generalization behavior:
highlighting the ability of the model to maintain consistent performance on unseen data.
In addition, the model demonstrates robustness under input variability, maintaining consistent prediction behavior even in the presence of noise, texture heterogeneity, and illumination variations. This robustness can be interpreted through invariance to small perturbations in the input space:
reflecting a form of implicit stress resilience and reinforcing the reliability of the proposed architecture xhen deployed in realistic operational environments.
where denotes the nonlinear mapping learned by the proposed U-Net–VGG19 architecture, which transforms an input optical image into its corresponding predicted segmentation mask .
The perturbation represents a small variation in the input image.
It can occur due to the real world constraints such as illumination fluctuations, sensor noise, or slight spatial translations.
The condition
indicates that the perturbation has a negligible magnitude. Consequently, the relation
implies that the network generates nearly identical segmentation outputs despite these minor perturbations, thereby demonstrating robustness and stability under realistic imaging conditions. This observation is consistent with prior studies on the sensitivity and robustness of deep neural networks to input perturbations and domain shifts [
8,
9,
10,
11]. In industrial additive manufacturing applications, similar instability issues have been reported due to sensor noise and environmental variations [
3,
4].
C. Integration into Closed-Loop Additive Manufacturing Systems
The proposed framework is designed for integration into closed-loop additive manufacturing systems, enabling real-time monitoring and feedback control during the extrusion process. By combining fast inference with reliable segmentation and classification outputs, the model provides continuous assessment of extrusion quality at each printing stage, as illustrated in
Figure 14.
This real-time capability allows the system to detect deviations in layer formation and material behavior, which are then translated into control signals to adjust process parameters such as extrusion speed, flow rate, and layer height. As shown in the proposed architecture, the decision module acts as an intermediary between the perception stage (image acquisition, artifact removal, and deep feature extraction) and the control stage responsible for actuation of the 3D printer.
As a result, the framework supports adaptive control strategies aimed at improving print quality and reducing defect propagation during fabrication. The stability of the model predictions and its robustness to input variability further reinforce its suitability for deployment in industrial environments requiring continuous and automated decision-making.
Recent studies have demonstrated the effectiveness of integrating in-situ monitoring with feedback control for additive manufacturing applications, where sensor or vision-based information is used to dynamically regulate printing conditions [
2,
12]. In particular, vision-based and sensor-driven monitoring approaches provide the necessary feedback signals for adaptive correction mechanisms, contributing to improved process robustness under variable operational conditions [
3,
4].
Figure 11.
Comparison of segmentation results: original FLIR image, initial model output, and improved model output after architectural enhancements.
Figure 11.
Comparison of segmentation results: original FLIR image, initial model output, and improved model output after architectural enhancements.
Figure 12.
Comparison of images before and after artifact removal for concrete and soil datasets. Concrete results are shown on the left, while soil results are shown on the right.
Figure 12.
Comparison of images before and after artifact removal for concrete and soil datasets. Concrete results are shown on the left, while soil results are shown on the right.
Figure 13.
Ground truth thickness distribution of the material sample.
Figure 13.
Ground truth thickness distribution of the material sample.
Figure 14.
Improved closed-loop control architecture for real-time monitoring and adaptive control in additive manufacturing systems.
Figure 14.
Improved closed-loop control architecture for real-time monitoring and adaptive control in additive manufacturing systems.