Abstract
Die-casting is a popular manufacturing process that produces precise metal parts with excellent dimensional accuracy and smooth cast surfaces. Recently die-casting process condition data can be acquired to be used as input for machine learning techniques for fault detection. The rapid development of complex and accurate machine learning algorithms, such as tree ensembles and deep learning, allows the accurate detection of faulty products. However, interpreting and explaining black-box models is crucial in the die-casting industry because the predictions provided by the machine learning solution can be adopted in practice only after understanding the internal decision mechanism of the model. To solve this problem, rule extraction methods generate simple rule-based predictive models from complex tree ensembles. Nevertheless, rulesets may contain numerous complex rules with redundant conditions, and the standard structure of rulesets does not clearly show the hierarchical relationships and frequent interactions among their elements. For this reason, in this study, a visualization tool based on formal concept analysis, called RuleLat (Rule Lattice), is proposed, which generates simple visual representations of rule-based classifiers. The generated models depict the hierarchical relationships of interactions among conditions, rules, and predicted classes in a modified concept lattice that is easy to analyze and understand. To demonstrate the applicability of the proposed method, a case study using real-world manufacturing data collected from a die-casting company in Korea is presented. RuleLat is adopted as a tool for interpretable machine learning, and the process conditions of three types of defects (porosity, material, and imprint) are analyzed and discussed.
Similar content being viewed by others
Abbreviations
- CL:
-
Control limit
- FCA:
-
Formal concept analysis
- LCL:
-
Lower control limit
- LGBM:
-
Light gradient boosting machine
- RF:
-
Random forest
- SMOTE:
-
Synthetic minority oversampling technique
- UCL:
-
Upper control limit
- XAI:
-
EXplainable artificial intelligence
- XGB:
-
EXtreme gradient boosting
- \(\mathcal{R}\) :
-
Rule-based classifier
- \({\mathbb{R}}\) :
-
Rule context
- \({\mathbb{B}}\) :
-
Set of all rule concepts
- \({\mathbb{G}}\) :
-
Rule lattice
References
Adadi, A., & Berrada, M. (2018). Peeking inside the black-box: A survey on explainable artificial intelligence (XAI). IEEE Access, 6, 52138–52160. https://doi.org/10.1109/ACCESS.2018.2870052
Barredo Arrieta, A., Díaz-Rodríguez, N., Del Ser, J., Bennetot, A., Tabik, S., Barbado, A., Garcia, S., Gil-Lopez, S., Molina, D., Benjamins, R., Chatila, R., & Herrera, F. (2020). Explainable artificial intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information Fusion, 58, 82–115. https://doi.org/10.1016/J.INFFUS.2019.12.012
Belohlavek, R., de Baets, B., Outrata, J., & Vychodil, V. (2009). Inducing decision trees via concept lattices. International Journal of General Systems, 38(4), 455–467. https://doi.org/10.1080/03081070902857563
Bonollo, F., Gramegna, N., & Timelli, G. (2015). High-pressure die-casting: Contradictions and challenges. JOM Journal of the Minerals Metals and Materials Society, 67(5), 901–908. https://doi.org/10.1007/S11837-015-1333-8
Breiman, L. (1996). Bagging predictors. Machine Learning, 24(421), 123–140. https://doi.org/10.1007/BF00058655
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324
Carletti, M., Masiero, C., Beghi, A., & Susto, G. A. (2019). Explainable machine learning in industry 4.0: Evaluating feature importance in anomaly detection to enable root cause analysis. Conference Proceedings—IEEE International Conference on Systems, Man and Cybernetics, 2019-October, 21–26. https://doi.org/10.1109/SMC.2019.8913901
Cendrowska, J. (1987). PRISM: An algorithm for inducing modular rules. International Journal of Man-Machine Studies, 27(4), 349–370. https://doi.org/10.1016/S0020-7373(87)80003-2
Chawla, Nv., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. https://doi.org/10.1613/JAIR.953
Chen, C.-L. (1997). Evaluation of aluminum die casting defects causing casting rejection during machining. Doctoral dissertation, Ohio State University. Retrieved August 2, 2022, from http://rave.ohiolink.edu/etdc/view?acc_num=osu1155309911
Chen, T. & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. In Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (Vol. 13–17-Augu, pp. 785–794). New York, NY, USA: Association for Computing Machinery. https://doi.org/10.1145/2939672.2939785
Dietterich, T. G. (2000). Ensemble methods in machine learning. International Workshop on Multiple Classifier Systems (MCS 2000). Lecture Notes in Computer Science, 1857, 1–15. https://doi.org/10.1007/3-540-45014-9_1
Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. Annals of Statistics, 29(5), 1189–1232. https://doi.org/10.2307/2699986
Ganter, B., & Wille, R. (1999). Formal concept analysis. Springer. https://doi.org/10.1007/978-3-642-59830-2
Gerling, A., Ziekow, H., Hess, A., Schreier, U., Seiffer, C., & Abdeslam, D. O. (2022). Comparison of algorithms for error prediction in manufacturing with automl and a cost-based metric. Journal of Intelligent Manufacturing, 33(2), 555–573. https://doi.org/10.1007/S10845-021-01890-0/FIGURES/7
Goldstein, A., Kapelner, A., Bleich, J., & Pitkin, E. (2015). Peeking inside the black box: Visualizing statistical learning with plots of individual conditional expectation. Journal of Computational and Graphical Statistics, 24(1), 44–65. https://doi.org/10.1080/10618600.2014.907095
Guidotti, R., Monreale, A., Ruggieri, S., Turini, F., Giannotti, F., & Pedreschi, D. (2018). A survey of methods for explaining black box models. ACM Computing Surveys, 51(5), 1–42. https://doi.org/10.1145/3236009
Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning data mining, inference, and prediction (Second). Springer.
Ismail, M., Mostafa, N. A., & El-assal, A. (2021). Quality monitoring in multistage manufacturing systems by using machine learning techniques. Journal of Intelligent Manufacturing, 33, 2471–2486. https://doi.org/10.1007/S10845-021-01792-1
Kang, B., Wook Cho, N., Kang, S. H., & Jung, J. Y. (2011). Real-time business process monitoring using formal concept analysis. ndustrial Management & Data Systems, 111(5), 652–674. https://doi.org/10.1108/02635571111137241
Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q., & Liu, T.-Y. (2017). LightGBM: A highly efficient gradient boosting decision tree. In I. Guyon, U. v Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, & R. Garnett (Eds.), Advances in Neural Information Processing Systems (Vol. 30, pp. 3146–3154). Curran Associates, Inc.
Kim, A., Oh, K., Jung, J.-Y., & Kim, B. (2018). Imbalanced classification of manufacturing quality conditions using cost-sensitive decision tree ensembles. International Journal of Computer Integrated Manufacturing, 31(8), 701–717. https://doi.org/10.1080/0951192X.2017.1407447
Kopper, A. E., & Apelian, D. (2021). Predicting quality of castings via supervised learning method. International Journal of Metalcasting, 16(1), 93–105. https://doi.org/10.1007/S40962-021-00606-7
Kozjek, D., Vrabič, R., Kralj, D., & Butala, P. (2017). Interpretative identification of the faulty conditions in a cyclic manufacturing process. Journal of Manufacturing Systems, 43, 214–224. https://doi.org/10.1016/J.JMSY.2017.03.001
Kuznetsov, S. O. (2004). Machine learning and formal concept analysis. Lecture Notes in Artificial Intelligence (subseries of Lecture Notes in Computer Science), 2961, 287–312. https://doi.org/10.1007/978-3-540-24651-0_25
Kuznetsov, S. O., & Poelmans, J. (2013). Knowledge representation and processing with formal concept analysis. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 3(3), 200–215. https://doi.org/10.1002/WIDM.1088
Lee, C. Y., & Chien, C. F. (2020). Pitfalls and protocols of data science in manufacturing practice. Journal of Intelligent Manufacturing, 33(5), 1189–1207. https://doi.org/10.1007/S10845-020-01711-W
Lee, J., Lee, Y. C., & Kim, J. T. (2020). Fault detection based on one-class deep learning for manufacturing applications limited to an imbalanced database. Journal of Manufacturing Systems, 57, 357–366. https://doi.org/10.1016/J.JMSY.2020.10.013
Lee, J., Lee, Y. C., & Kim, J. T. (2021a). Migration from the traditional to the smart factory in the die-casting industry: Novel process data acquisition and fault detection based on artificial neural network. Journal of Materials Processing Technology, 290, 116972. https://doi.org/10.1016/J.JMATPROTEC.2020.116972
Lee, M., Jeon, J., & Lee, H. (2021b). Explainable AI for domain experts: A post Hoc analysis of deep learning for defect classification of TFT–LCD panels. Journal of Intelligent Manufacturing, 33(1747–1759), 1–13. https://doi.org/10.1007/S10845-021-01758-3
Li, J., Mei, C., Kumar, C. A., & Zhang, X. (2013). On rule acquisition in decision formal contexts. International Journal of Machine Learning and Cybernetics, 4(6), 721–731. https://doi.org/10.1007/S13042-013-0150-Z
Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S. I. (2020). From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1), 5667. https://doi.org/10.1038/s42256-019-0138-9
Lundberg, S. M. & Lee, S. I. (2017). A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems, 2017-Decem (Section 2), pp 4766–4775
Mahadevan, S., & Shah, S. L. (2009). Fault detection and diagnosis in process data using one-class support vector machines. Journal of Process Control, 19(10), 1627–1639. https://doi.org/10.1016/J.JPROCONT.2009.07.011
Obregon, J., Hong, J., & Jung, J.-Y. (2021). Rule-based explanations based on ensemble machine learning for detecting sink mark defects in the injection moulding process. Journal of Manufacturing Systems, 60, 392–405. https://doi.org/10.1016/J.JMSY.2021.07.001
Obregon, J., & Jung, J.-Y. (2023). RuleCOSI+: Rule extraction for interpreting classification tree ensembles. Information Fusion, 89, 355–381. https://doi.org/10.1016/J.INFFUS.2022.08.021
Obregon, J., Kim, A., & Jung, J.-Y. (2019). RuleCOSI: Combination and simplification of production rules from boosted decision trees for imbalanced classification. Expert Systems with Applications. https://doi.org/10.1016/j.eswa.2019.02.012
Oh, S. (2019). Feature interaction in terms of prediction performance. Applied Sciences, 9(23), 5191. https://doi.org/10.3390/APP9235191
Ribeiro, M. T., Singh, S., & Guestrin, C. (2016). “Why should I trust you?” Explaining the predictions of any classifier. Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 13-17-Augu, 1135–1144. https://doi.org/10.1145/2939672.2939778
Ribeiro, M. T., Singh, S., & Guestrin, C. (2018). Anchors: High-precision model-agnostic explanations. Proceedings of the AAAI Conference on Artificial Intelligence. https://doi.org/10.1609/aaai.v32i1.11491
Senoner, J., Netland, T., & Feuerriegel, S. (2021). Using explainable artificial intelligence to improve process quality: Evidence from semiconductor manufacturing. Management Science, 68(8), 5704–5723. https://doi.org/10.1287/MNSC.2021.4190
Song, W., Shi, C., Xiao, Z., Duan, Z., Xu, Y., Zhang, M., & Tang, J. (2019). AutoInt: Automatic feature interaction learning via self-attentive neural networks. In Proceedings of the 28th ACM international conference on information and knowledge management (Vol. 10, pp. 11611170). ACM. https://doi.org/10.1145/3357384
Sun, Y., Qin, W., Zhuang, Z., & Xu, H. (2021). An adaptive fault detection and root-cause analysis scheme for complex industrial processes using moving window KPCA and information geometric causal inference. Journal of Intelligent Manufacturing, 32(7), 2007–2021. https://doi.org/10.1007/S10845-021-01752-9
Vinarcik, E. (2002). High Integrity Die Casting Processes. Wiley. Retrieved January 25, 2022, from https://books.google.com/books?hl=en&lr=&id=qbHU3al_D-QC&oi=fnd&pg=PR7&dq=high+integrity+die+casting+processes&ots=kSaGalaIvK&sig=cuGD3LYxLuFF0bF4NP5dLprvM-M
Wang, T., Qiao, M., Zhang, M., Yang, Y., & Snoussi, H. (2018). Data-driven prognostic method based on self-supervised learning approaches for fault detection. Journal of Intelligent Manufacturing, 31(7), 1611–1619. https://doi.org/10.1007/S10845-018-1431-X
Acknowledgements
This work was supported by the National Research Foundation of Korea (NRF) grants funded by the Korean government (MSIT) (Grant Nos. 2017H1D8A2031138, 2019R1F1A1064125).
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Obregon, J., Jung, JY. Rule-based visualization of faulty process conditions in the die-casting manufacturing. J Intell Manuf 35, 521–537 (2024). https://doi.org/10.1007/s10845-022-02057-1
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10845-022-02057-1