
ity to identify defective cases while maintaining a rel-
atively low false positive rate (see Table 1 and Fig-
ure 4b). However, under the unsupervised setting,
performance deteriorated significantly, with precision
dropping to 44% and recall decreasing to 78.6%, re-
sulting in an F1-score of 56.4% (see Table 1 and Fig-
ure 5b). This decline indicates that exposure to mixed
data introduced classification uncertainty, causing the
model to struggle with distinguishing between nor-
mal and defective instances. Similarly, for iForest
(see Table 2 and Figure 4b), training on normal data
(semi-supervised) resulted in a precision of 82%, a
recall of 95.8%, and an F1-score of 87.7%, high-
lighting a strong balance between false positive re-
duction and defect detection sensitivity. In contrast,
when trained under the unsupervised setting, preci-
sion declined to 74%, recall dropped to 85.7%, and
the F1-score decreased to 78% (see Table 2 and Fig-
ure 5b). While iForest demonstrated more robustness
than OCSVM, it still exhibited reduced classification
confidence under the unsupervised scheme, leading to
increased false positives. These findings indicate that
semi-supervised training with exclusively normal data
enhances both recall and precision, ensuring more re-
liable defect detection in DED processes. In contrast,
the unsupervised setting, while more flexible, intro-
duces noise and weakens model performance, partic-
ularly in recall and precision trade-offs.
4 CONCLUSION
This work adopted a semi-supervised anomaly de-
tection approach for defect detection in DED pro-
cesses. It is based on two effective semi-supervised
algorithms: iForest and OCSVM. The results for both
algorithms were compared with an unsupervised set-
ting to highlight the effectiveness of the adopted semi-
supervised approach. The results demonstrate that the
semi-supervised setting, where the training data ex-
clusively includes normal data, significantly enhances
detection performance, as evidenced by higher pre-
cision, recall, and an associated F1-score compared
to the unsupervised setting. Comparing the indi-
vidual algorithms, iForest consistently outperforms
OCSVM in this defect detection task for both set-
tings. In the semi-supervised setting, iForest achieved
an F1-score of 0.88 and a respective accuracy of 95%.
Notably, correlation-based feature selection improved
the models’ effectiveness by removing redundancy
and noise. Specifically, it provided the most robust
and stable performance across both normal-only and
mixed-data training conditions. These findings under-
score the robustness of the semi-supervised approach
for anomaly detection with the notorious data imbal-
ance issue. It also emphasizes the critical importance
of feature selection strategies, training data quality,
and algorithm choice in achieving optimal anomaly
detection outcomes. The proposed approach is highly
adaptable and can be seamlessly extended to defect
detection in other additive manufacturing processes,
such as powder bed fusion.
REFERENCES
Alexopoulou, V. E. (2021). Study and modeling of the tran-
sition from conduction to keyhole mode during SLM
process. Master’s thesis, School of Mechanical Engi-
neering, National Technical University of Athens.
Dass, A. and Moridi, A. (2019). State of the art in directed
energy deposition: From additive manufacturing to
materials design. Coatings, 9(7).
Era, I. Z., Zhou, F., Raihan, A. S., Ahmed, I., Abul-Haj,
A., Craig, J., Das, S., and Liu, Z. (2024). In-situ melt
pool characterization via thermal imaging for defect
detection in directed energy deposition using vision
transformers. arXiv preprint arXiv:2411.12028.
Farea, S. M., Unel, M., and Koc, B. (2024). Defect pre-
diction in directed energy deposition using an ensem-
ble of clustering models. In Proceedings of the 2024
IEEE 22nd International Conference on Industrial In-
formatics (INDIN), pages 1–6.
Gaja, H. and Liou, F. (2018). Defect classification of laser
metal deposition using logistic regression and artifi-
cial neural networks for pattern recognition. Interna-
tional Journal of Advanced Manufacturing Technol-
ogy, 94(1-4):315–326.
Garc
´
ıa-Moreno, A.-I. (2019). Automatic quantification
of porosity using an intelligent classifier. Interna-
tional Journal of Advanced Manufacturing Technol-
ogy, 105(5):1883–1899.
Herzog, T., Brandt, M., Trinchi, A., et al. (2024). Defect
detection by multi-axis infrared process monitoring of
laser beam directed energy deposition. Scientific Re-
ports, 14:3861.
Hespeler, S., Dehghan-Niri, E., Juhasz, M., and Luo, K.
(2022). Deep learning for in-situ layer quality mon-
itoring during laser-based directed energy deposition
(LB-DED) additive manufacturing process. Applied
Sciences, 12(18):8974.
Khanzadeh, M., Chowdhury, S., Marufuzzaman, M.,
Tschopp, M. A., and Bian, L. (2018). Porosity predic-
tion: Supervised-learning of thermal history for direct
laser deposition. Journal of Manufacturing Systems,
47:69–82.
Li, S. H., Kumar, P., and Chandra, S. (2023). Directed
energy deposition of metals: Processing, microstruc-
tures, and mechanical properties. International Mate-
rials Reviews, 2023.
Qin, J., Hu, F., Liu, Y., Witherell, P., and Wang, C. C. L.
(2022). Research and application of machine learning
ICINCO 2025 - 22nd International Conference on Informatics in Control, Automation and Robotics
444