Full text
University of Minho School of Engineering Cláudia Rafaela Neves Afonso Development of a Disruption and Defect Prediction System for the Wood-Based Panel Industry October 2023 Development of a Disruption and Defect Prediction System for the Wood-Based Panel Industry Cláudia Rafaela Neves Afonso UMinho | 2023
University of Minho School of Engineering Department of Information Systems Cláudia Rafaela Neves Afonso Development of a Disruption and Defect Prediction System for the Wood-Based Panel Industry Master’s Dissertation Report Integrated Master’s in Engineering and Management of Information Systems Work developed under the supervision of Professor Doutor Paulo Alexandre Ribeiro Cortez October 2023
COPYRIGHT AND TERMS OF USE OF THE WORK BY THIRD PARTIES This is an academic work that can be used by third parties as long as the internationally accepted rules and good practices are respected, with regard to copyright and related rights. Thus, the present work can be used under the terms foreseen in the license indicated below. If the user needs permission to be able to use the work under conditions not provided for in the indicated licensing, he/she should contact the author, through the RepositóriUM of the University of Minho. License granted to users of this work Attribution-NonCommercial CC BY-NC https://creativecommons.org/licenses/by-nc/4.0/ i
ACKNOWLEDGEMENTS As I reflect on the past five years, I am profoundly grateful for the wealth of experiences and knowledge I have gained. This transformative journey has been shaped by the support and presence of some people who, during both the highs and lows, have not only guided me but also served as a source of strength and inspiration, fueling my determination to pursue excellence. I want to thank my supervisor, Professor Dr. Paulo Cortez, for his guidance, knowledge sharing and constant availability for clarifications. I also want to express my gratitude to my colleagues at CCG for fostering a positive work environment characterized by camaraderie, laughter and a culture of mutual support. Special thanks to André Pilastri for his mentorship over the past two years and for pushing me to always strive to reach my best potential. To Arthur, who has been more than a colleague, thank you for the support, knowledge sharing, encouragement on the toughest days and for being the best partner I could ask for. Last but not least, my gratitude extends to my family, whose celebration of my achievements and continuous support have been a constant throughout not only this journey but also my entire life. Thank you for being my safe place, the ones I trust blindly. Thank you for simply being there and for being the incredible presence that you are in my life. ’Gratitude is when memory is stored in the heart and not in the mind.’ Lionel Hampton This work was supported by the European Structural and Investment Funds in the FEDER Component through the Operational Competitiveness and Internationalization Programme (COMPETE 2020) under Advanced Decision Making in productive systems through Intelligent Networks (ADM.IN) Project 055087 (POCI-01-0247-FEDER-055087). ii
STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. iii
ABSTRACT The advent of Industry 4.0has triggered an Information Technology revolution within the manufacturing sector. Through the strategic integration of Internet of Things within factories, companies can now monitor their production processes in real-time and generate a substantial amount of data. These data, when effectively leveraged, holds an interesting potential for optimizing production efficiency. In particular, unplanned disruptions and product defects are issues that often affect the manufacturing industry. A minor malfunction in a single piece of equipment can bring an entire production line to a halt, while defective products result in substantial financial losses. This study aims to address these two issues in the context of a decorative-paper-coated plywood manufacturing company through the use of Machine Learning algorithms. The objective is to explore these algorithms to predict disruptions and defects. By doing so, the company can take proactive measures to prevent such issues, ultimately enhancing its overall efficiency and competitiveness in the market. Keywords: Predictive Maintenance; Machine Learning; Manufacturing; Industry 4.0; Anomaly detection iv
RESUMO O advento da Indústria 4.0desencadeou uma revolução de Tecnologias da Informação na indústria manufatureira. Através da integração estratégica de Internet of Things nas fábricas, as empresas passaram a poder monitorizar os seus processos produtivos em tempo real e a gerar uma quantidade substancial de dados. Estes dados, quando efetivamente aproveitados, têm um enorme potencial para otimizar a eficiência da produção. Em particular, paragens não planeadas e defeitos nos produtos são problemas que continuam a pairar sobre a indústria. Uma pequena avaria numa única peça de equipamento pode provocar a paragem de toda uma linha de produção, enquanto os produtos defeituosos resultam em perdas financeiras substanciais. Esta dissertação visa abordar estes dois problemas no contexto de uma empresa de fabrico de contraplacados revestidos com papel decorativo, através da utilização de algoritmos de Machine Learning. O objetivo é utilizar estes algoritmos para prever paragens e defeitos. Ao fazê-lo, a empresa pode tomar medidas proativas para evitar tais incidentes, melhorando assim a sua eficiência e competitividade no mercado. Palavras-chave: Manutenção preditiva; Machine Learning; Manufatura; Indústria 4.0; Deteção de Anomalias v
vi
1 INTRODUCTION 1.1 motivation The Industry 4.0(I4.0), represents a transformative era marked by the integration of automation and digitalization into production processes (Lasi et al., 2014). At its core, this revolution is driven by the Internet of Things (IoT), recognized as a critical component fostering global connectivity among machines and devices (I. H. Khan & Javaid, 2021). This interconnectedness enables the rapid exchange of huge amounts of data, often referred to as Big Data (BD). While BD, on its own, may seem abstract, its true value emerges when harnessed for business and predictive analytics, utilizing for example Machine Learning (ML) techniques. With ML it is possible to predict problems in production processes that might disrupt their normal operation (Lechevalier et al., 2014). Acknowledging the many advantages these techniques have to offer, several industries have undertaken initiatives to establish more technologically advanced infrastructures, with one of them being the manufacture industry. This dissertation aligns with the research project ’ADM.IN - Advanced Decision Making in productive systems through Intelligent Networks,’ which was developed at ’Centro de Computação Gráfica’ (CCG) in collaboration with a Portuguese company highly regarded in the manufacture industry for its specialization in the production of boards coated with decorative papers. The manufacturing of these coated boards involves a complex process with multiple stages, requiring careful management of multiple variables such as temperature and pressure. Inadequate configuration of these variables can significantly increase the likelihood of two common manufacturing issues: unexpected stoppages and defective coated boards. Both of these problems reduce the efficiency of the manufacturing process and, consequently, the company’s profitability. Therefore, the purpose of this dissertation is to establish an effective management of those variables. 1.2 objectives This dissertation aims to contribute to the existing body of knowledge in Predictive Analysis and Predictive Maintenance within the context of I4.0, specifically focusing on its application in the manufacture industry. The goal is to enhance control over the production line operations in the decorative-paper-coated company by harnessing the power of ML algorithms. Firstly, this dissertation aims to develop predictive models capable of foreseeing disruptions and defects within the production process of the production line. Additionally, this study 1
1.3. Thesis Organization 2 seeks to identify critical factors and elucidate how adjustments to these factors can influence the likelihood of disruptions and defects occurring. Furthermore, it is intended to create an intuitive Graphical User Interface (GUI) that will empower operators with actionable insights into machinery configurations and their direct impact on disruptions and defects. Armed with these insights, operators can make wellinformed decisions to optimize setups, thereby reducing the likelihood of disruptions and defects and, in turn, enhancing overall operational efficiency. Hence, this dissertation seeks to address the following research questions: Can ML be effectively utilized to predict disruptions in the wood-based panel industry? And can ML be effectively utilized to predict defects in the wood-based panel industry? 1.3 thesis organization This dissertation consists of five essential chapters that provide a comprehensive overview of the project. Chapter 1serves as an introduction to the project, including a clear explanation of the project’s context, objectives, and research questions that will be addressed. Chapter 2delves into the literature review, exploring key theoretical concepts pertinent to this dissertation, such as Industry 4.0, Data Mining and Machine Learning, Anomaly Detection and Predictive Maintenance. This chapter also examines related work in the manufacture industry and other relevant sectors to assess prior research in the field. Chapter 3outlines the chosen research methodology (CRISP-DM), discusses the current problem context and identifies the technological tools essential for this dissertation. Furthermore, this chapter also provides an overview of the available data and details the data preparation procedures. It also encompasses the modeling section, where the employed ML models are defined, and the evaluation section, which establishes the criteria for assessing the performance of those models. Finally, Chapter 4 presents the results obtained and Chapter 5offers a concise summary and reflective analysis of the executed work, also discussing some future research possibilities.
2 BACKGROUND 2.1 bibliographic search strategy A literature review was conducted in order to identify the relevant state-of-the-art for this dissertation. In a first stage, a systematic search was performed using several online academic databases, including Google Scholar (https://scholar.google.com), Scopus (https: //www.scopus.com), Web of Science (https://apps.webofknowledge.com), ACM Digital Library (https://dl.acm.org), IEEE Xplore (http://ieeexplore.ieee.org) and Science Direct (http://sciencedirect.com). Relevant literature was selected based on combinations of keywords such as ’Manufacturing’, ’Industry 4.0’, ’Machine Learning’, ’Deep Learning’, ’Explainable Artificial Intelligence’, ’Anomaly Detection’, and ’Predictive Maintenance’. A filter was applied with a year range set between 2013 and 2023 to retrieve only recent publications for each search. Additional filtering criteria were adopted. The type of publication was set to include: article published in a journal, conference proceedings, book, or a technical report. In cases where the work has been published in more than one publication, only the most extensive work was considered (e.g., journal article). When two or more publications presented similarities, the works with most Google Scholar citations and published in journals and conferences with higher quality rank were considered. For journal articles, the Scimago Journal & Country Rank (http://scimagojr.com) was used to check the journal quality, while for conferences, the Computing Research and Education Association of Australasia (CORE) (http://www.core.edu.au) was adopted. The final selection of works was made via manual inspection of the works retrieved from the bibliographic databases. The manual inspection was carried out in three steps. First, the work title, abstract and keywords were read. If the document was considered relevant, it was then saved for further reading; Otherwise, the document was discarded. Next, the second step included the complete reading of the saved publications. The works that were considered irrelevant after their reading were also discarded. The third and final step consisted of searching for additional relevant works based on the selected publication references. If the reference title was considered potentially relevant, the three steps of the manual inspection were applied to that work. The document manual inspection application outcome resulted in the bibliography for this literature review. 3
2.2. Industry 4.0 4 2.2 industry 4.0 The industrial landscape has undergone several phases of technological advancements referred to as "industrial (re)evolutions" (Lasi et al., 2014; Mohamed, 2018). From production facilities, driven by water and steam power, to the widespread use of electrical energy, and then to the integration of electronic and information technologies, each industrial revolution brought major changes to the production process. Currently, the Fourth Industrial Revolution, also called Industry 4.0, represents a significant turning point in history (Xu et al., 2018). It stems from the requirement for modern manufacturing systems to be flexible, agile, integrated, and cost-effective to remain competitive in global markets (Rojko, 2017; Vaidya et al., 2018). I4.0integrates advanced Information and Communication Technology (ICT) and the IoT into manufacturing (Sipsas et al., 2016; Xu et al., 2018). This integration enables the optimization of real-time manufacturing through the use of intelligent sensors, artificial intelligence, and data analytics. With I4.0, conventional machines can be transformed into self-aware and self-learning systems that interact with their surroundings, improving their performance and efficiency, leading to reductions in production, logistic, and quality management costs (J. Lee et al., 2014; Rojko, 2017). Other benefits of I4.0include shorter time-to-market for new products, improved customer responsiveness, custom mass production without increased overall costs, and more efficient use of resources and energy (Ghobakhloo, 2020; Lai et al., 2019). These benefits contribute to increased productivity and revenue, stimulating economic growth (du Plessis, 2017). Hence, the long-term strategic impact of I4.0on global industrial development is well recognized (Xu et al., 2018). 2.3 data mining and machine learning In the context of I4.0, the use of IoT lead to a massive collection and aggregation of quickly generated data, which gave rise to the concept of Big Data. Making sense of this large and complex data poses a challenge, leading to the development of Data Mining (DM), also known as knowledge extraction and information discovery (Fan & Li, 1998). DM involves analyzing vast amounts of data to uncover patterns and valuable insights that would have otherwise been too time-consuming to uncover through traditional methods (Gullo, 2015; Attaran & Deb, 2018). Often, DM processes involve the usage of Artificial Inteligence (AI) techniques, such as ML, during the data modeling stage. AI, which has evolved from its early rule-based inference approach to one that is capable of significant transformations, has the potential to surpass human capabilities in certain tasks. This is possible through the combination of BD, improved algorithms, and powerful computing (Duan et al., 2019). AI has significantly impacted various industries as companies adopt and transform their businesses with it (Bean, 2018; Daugherty & Wilson, 2018). A study conducted by Gartner classifies AI and its various applications among the top 10 strategic technologies trends for 2023 (Groombridge, 2022).
2.3. Data Mining and Machine Learning 5 ML is a branch of AI that allows machines to learn and improve their performance when exposed to new experiences (e.g., new data) and extract valuable insights from them (Attaran & Deb, 2018; Mohri, 2018). This learning can be conducted in different ways, depending on the data format, the presence of labels, or the presence of learning feedback (Russell & Norvig, 1995). The following subsections discuss two ML learning methods, some of the most frequent types of ML algorithms, introduce Automated Machine Learning (AutoML) as a viable and efficient solution for ML tasks, and shed light on the concept and advantages of eXplainable Artificial Intelligence (XAI). 2.3.1Learning Methods This section briefly summarizes two ML learning techniques that have been employed in state-of-the-art studies and thus may be applied in the context of this dissertation. Supervised Learning Supervised learning is a technique that involves learning a function that maps inputs to outputs based on labeled examples (Dey, 2016). The goal is to use the inputs to predict the outputs and make accurate predictions on new data. This learning process is referred to as supervised because the presence of known labels, or correct outputs, guides the learning process (Hastie et al., 2009). The supervised learning problems can be broadly classified into two categories: regression and classification. In regression problems, the desired output is a continuous value, such as predicting the yield of a chemical in a manufacturing process (Bishop, 2006). On the other hand, in classification problems, the objective is to assign input data to one of several predefined categories, such as classifying emails as spam or not spam (Raza et al., 2021). Unsupervised Learning Unsupervised learning is a technique that tackles the challenge of finding structure in unlabeled data (Mohri, 2018). With no pre-determined labels, the algorithm must explore the input dataset on its own. Clustering can be considered the most important unsupervised learning problem and refers to grouping data points based on similarities and differences (Dridi, 2021). Clustering can uncover hidden, yet valuable, classes of items in the data and provide a deeper understanding of the relationships within the data (Jain et al., 1999). One- Class Classification (OCC) is another important unsupervised learning approach. It assumes that a classifier is trained using a large sample of normal (unlabeled) examples, thus learning what is the normal input space. Then, when a new input is fed into the OCC model, it is capable of computing an anomaly score (Ferreira & Cortez, 2023).
2.3. Data Mining and Machine Learning 6 2.3.2Algorithms There are several algorithms to choose from for each given ML task. Some supervised learning algorithms can be applied to both classification and regression. There are also some learning representations (e.g., Neural Networks) that can be adopted for both unsupervised and supervised learning. This section briefly summarizes several ML algorithms that have been employed in state-of-the-art studies and thus may be applied in the context of this dissertation. Linear and Logistic Regression Both Linear Regression (LinR) and Logistic Regression (LogR) are categorized as supervised algorithms. However, LinR is used for regression problems, while LogR is employed for classification. LinR represents a modeling relationship between a continuous target variable and one or more features using a linear function (Nasteski, 2017) (Fig. 1a). On the other hand, LogR predicts the probability that an input belongs to a particular category, using the logistic function, also known as the Sigmoid function. This function takes any real-valued number and converts it to a value between zero and one (Choudhary & Gianey, 2017) (Fig. 1b). 0𝑥 𝑦 𝑦 = 𝑎𝑥 + 𝑏 (a) Linear Regression. 0 1 𝑝 = 1 1 + 𝑒−(𝑏+𝑎𝑥) 𝑦 𝑥 (b) Logistic Regression. Figure 1: Linear and Logistic Regression functions. Adapted from Choudhary and Gianey (2017). Decision Trees Decision Tree (DT) is a popular approach in supervised ML. It aims to solve both classification and regression problems by dividing the data into smaller sub-groups based on specific parameters. The process starts with a primary decision, or root, which then splits into various branches until a prediction is made, creating a tree-like structure. The decisions made are represented by the leaves of the tree, and the data is separated at the nodes. In the case of a classification tree, the decision variables are categorical in nature, typically represented as "Yes" or "No." On the other hand, a regression tree deals with continuous decision variables (Ray, 2019). Fig. 2illustrates a decision tree model designed for binary classification, specifically aimed at discerning whether a board exhibits defects or not.
2.3. Data Mining and Machine Learning 7 Does the board have a faded color? Are there unusual texture irregularities on the board? Is the board cracked? Board with defects Board with defects Board with defects Defect-free board yes yes yes no no no Figure 2: Illustration of a Decision Tree for Classification. Adapted from Mahesh (2019). Random Forests Random Forest (RF) is an ensemble ML algorithm, i.e., an algorithm that combines multiple base models, used for both classification and regression problems. It is based on the DT algorithm and works by combining multiple DTs. In a RF, each DT is built using a randomly selected subset of the training data and a random subset of the features (Breiman, 2001). The individual trees make predictions, and the final prediction is made by combining these predictions through a voting process (in classification) or by taking the average (in regression). Fig. 3illustrates the schematic depicting the mechanism of a random forest. Training data Majority vote (in classification) or mean (in regression) Prediction Figure 3: Illustration of a Random Forest. Adapted from Kinaneva et al. (2021).
2.3. Data Mining and Machine Learning 8 Gradient Boosting Machines Gradient Boosting Machine (GBM) is another ensemble technique that follows the boosting principle of sequentially introducing new models to the ensemble. During each iteration, a new weak base-learner model is trained to address the current ensemble’s error. This iterative process characterizes GBMs, steadily enhancing their predictive accuracy by iteratively refining their estimation of the response variable (Fig. 4). The eXtreme Gradient Boosting (XGBoost) is a variant of GBM and it was designed for high scalability (Bentéjac et al., 2021). It constructs an additive expansion of the objective function by minimizing a loss function. 0Algorithm iterations 𝐸𝑟𝑟𝑜𝑟 + + + ++ + + Figure 4: Illustration of a Gradient Boosting Machine. Adapted from Zuchniak (2023). Support Vector Machines Support Vector Machine (SVM) is a type of supervised learning algorithm that can be used for both classification and regression tasks. The algorithm operates on the principle of margin calculation, where each data item is represented as a point in an n-dimensional space, where n is the number of features in the dataset. The feature values are used to determine the coordinates of each point. The algorithm then finds a hyper plane that separates the training data into different classes. The goal of SVM is to maximize the distance (margin) between the nearest data points in both classes and the hyper plane (Alzubi et al., 2018). SVMs provide high accuracy, but their complex learning algorithm can slow down the training speed of a model (Singh et al., 2016). Fig. 5displays a graphical representation of a SVM. Isolation Forests The Isolation Forest (IF) algorithm, first introduced by Liu et al. (2008), stands out due to its ability to effectively detect anomalies in high dimensional datasets, offering low time complexity and high accuracy (Cheng et al., 2019). It works by using the concept of isolation to
2.3. Data Mining and Machine Learning 9 0Fe𝑎𝑡𝑢𝑟𝑒 𝑥 Feature 𝑦Margin Hyperplane Support vectors Figure 5: Illustration of a Support Vector Machine. Adapted from Mahesh (2019). identify anomalies as points with shorter path lengths and employs multiple trees to address different anomalies. It takes advantage of the characteristic of anomalies being few and different (as compared to normal cases) by isolating them closer to the root of the tree (Fig. 6). Isolation Tree Isolation Tree Isolation Tree … Isolation Forest Anomaly Potential Anomaly Normal Instance Figure 6: Illustration of an Isolation Forest. Adapted from Regaya et al. (2021). Deep Learning and Artificial Neural Networks Deep Learning (DL) is a subset of ML that excels in uncovering intricate structures in highdimensional data and is widely applicable to a range of domains, including science, business, and government (LeCun et al., 2015). One of its key aspects is its ability to build complex concepts from simpler ones through a hierarchical structure of concepts and representations. DL is closely associated with Artificial Neural Network (ANN), which was the first term used to describe this type of learning (Goodfellow et al., 2016). ANN, commonly referred as just Neural Network, is a ML method that takes inspiration from the human brain (Y. - Y. Chen et al., 2019) and is designed to model complex nonlinear relationships (Zou et al., 2009). It can be imagined as a set of processing units (also known as neurons) linked together to create a network, where each link has a weight and each unit receives input from the adjacent units in the form of a weighted sum of outputs (Shalev-Shwartz & Ben-David, 2014). Their learning
2.3. Data Mining and Machine Learning 10 capability is achieved by adjusting those weights based on a chosen learning criteria (Abraham, 2005). FeedForward Networks (FFNs) represent a subset of ANNs that include several hyperparameters, often calibrated through heuristic techniques and trial-and-error experiments. The term "feedforward" encapsulates the core essence of these networks, where data progression follows a unidirectional path — starting from input traversing intermediate computations that define the function and culminating in the output (Fig. 7a). This unidirectional flow aligns with the network’s composition, where numerous functions intertwine to shape the overall model. In the presence of multiple hidden layers, these structures are named Deep FeedForward Network (DFFN) (Fig. 7b). Recurrent Neural Networks (RNNs), on the other hand, incorporate internal loops that distinguish them from FFNs (Fig. 7c). These internal loops enable the transfer of information within a single layer (Marhon et al., 2013). The Convolutional Neural Network (CNN) has been a popular algorithm for image recognition tasks for decades (Siddique et al., 2018), as it excels in extracting image features (Bandara et al., 2018). Deep AutoEncoders (AEs) are another type of ANN and function as a two-part system. They encompass an encoder that converts the input into a compressed representation, and a decoder that aims to reconstruct the original input (Fig. 7d). AEs are designed to be unable to learn to copy perfectly, as they are constrained to approximate rather than replicate precisely. By compelling the model to discern essential features for replication, valuable data properties are often learned in the process. Thus, AEs can condense data into a lower-dimensional representation (Goodfellow et al., 2016). Stacked Ensembles Stacked Ensemble (SE) is a technique that combines the predictions of multiple base models. The essence of stacking lies in a dual-layer architecture: the initial layer comprises diverse base models, each trained on the same dataset to capture distinct patterns, while the subsequent layer, often referred to as the meta-learner, leverages the collective insights of the base models to make the final prediction (Fig. 8). By harnessing the strengths of various algorithms and mitigating their individual weaknesses, SEs can unravel complex relationships in the data (Wolfinger & Tan, 2017). 2.3.3Automated Machine Learning Despite the positive impact ML has in the modern digital industry in areas such as anomaly detection and Predictive Maintenance (PdM) (Budjaˇc et al., 2019), the successful implementation of ML models still poses certain challenges. Designing a high-performing ML model requires preprocessing data, building a ML model, and deploying the final model (McHugh et al., 2017). All of these steps require significant knowledge and effort by human experts, who are in short supply (Vaccaro et al., 2021). Additionally, the manual approach to ML, where a human
3 MATERIALS AND METHODS 3.1 problem formulation The factory under study operates within the wood industry and specializes in manufacturing wood boards coated with decorative papers used for creating a diverse range of furniture. The manufacturing process of these coated boards is a multi-step procedure encompassing two main processes, each consisting of sequential phases. The first process takes place on the Impregnation Line (IL) and consists of using chemical substances to impregnate raw papers, resulting in papers with different colors, patterns, and finishes that contribute to their final appearance. The second process takes place on the Coating Line (CL) and involves the combination of raw boards and the impregnated papers produced previously into coated boards. In the course of this process, the operators manage four critical parameters that compose what is called a product recipe: press’ plates temperature, mechanical cycle, thermical cycle and specific pressure. This recipe, which is defined solely based on the operators’ previous experience, is responsible for optimizing the operation and guaranteeing its seamless execution. Interconnecting the various factory stages is the Warehouse, acting as an intermediary repository. It accommodates not only the essential raw materials (raw boards and papers) but also the impregnated papers and the coated boards that result from the IL and CL, respectively. The impregnated papers remain in storage until they are consumed in the CL while the coated boards remain until their delivery to the ultimate consumer. The comprehensive process is visually depicted in Fig. 9, offering an illustrative representation of the entire workflow. Through the strategic deployment of over three hundred IoT sensors distributed across the CL, IL, and Warehouse, a diverse array of real-time information is continuously collected. The majority of these sensors are placed on the CL since this is the bottleneck process of the production line. Consequently, a more frequent and wider variety of data is collected. Moreover, this production line faces some problems common to the manufacturing sector, including unexpected production disruptions and product defects. Disruptions can be electrical or mechanical and can lead to downtimes, production delays, and, if prolonged, order delays. On the other hand, defects can take different forms, but they all result in the coated boards being categorized as second-quality products (for minor defects) or packaging materials (for major defects). Nevertheless, this translates into waste of materials and probable financial losses to the company. 17
3.2. CRISP-DM execution 18 Bath CoolerStove Formation Table CutPress Edge Cleaner Stacking Warehouse Raw Papers IL Impregnated Papers Raw Boards CL Coated Boards Figure 9: Production Process Workflow. Therefore, being aware that both problems lead to a decrease in the company’s efficiency, the goal is to utilize the data collected by the company and, through the use of ML algorithms, be able to predict the occurrence of disruptions as early as possible, as well as predict whether defects will arise in future CL production orders. Furthermore, recognizing that improper recipe definition can increase the likelihood of those two problems emphasizes the inadequacy of depending solely on operators’ experience for this task. Hence, it is advantageous to provide operators with a decision support system that assists them in selecting the appropriate setup. This system would demonstrate the repercussions of their choices on the likelihood of disruptions and defects, thereby empowering operators to make more informed decisions. 3.2 crisp-dm execution Achieving the desired outcomes required a clear and effective methodology to guide the project. The CRoss Industry Standard Process for Data Mining (CRISP-DM) framework (Chapman et al., 2000) was deemed the best choice for this task. By following the CRISP-DM methodology, the complexity of Data Mining projects is reduced, resulting in a more effective, reproducible, and manageable process. The methodology breaks down the Data Mining process into six key stages, which are interconnected and follow a specific sequence. From understanding the business objectives to deploying the best solution, CRISP-DM provides a structured approach to Data Mining projects, ensuring that all necessary steps are taken to achieve the desired outcome. Figure 10 shows the six stages and the connections between them. 1. Business Understanding: In this stage, the objective is to comprehend the functioning of the wood industry factory and the entire production process under analysis. This entails understanding the workings of both production lines (IL and CL) and the interrelation
3.2. CRISP-DM execution 19 Business Understanding Data Understanding Data Preparation Modeling Evaluation Deployment Data Figure 10: The CRISP-DM methodology. Adapted from Martinez-Plumed et al. (2021). between them. Additionally, it is also in this stage where the issues to be solved are identified. Based on these issues, the functional requirements and plan of action are defined in collaboration with the relevant stakeholders. 2. Data Understanding: The Data Understanding phase involves exploring and familiarizing with the data generated by the production process of the wood industry factory. This analysis leads to identifying the availability and relevance of the data for the study. If the discovered data proves inadequate or incomplete, it becomes necessary to revisit the business understanding phase and redefine the functional requirements and plan of action. 3. Data Preparation: The Data Preparation phase encompasses transforming raw data into a format suitable for analysis. In the context of this study, a prohibitive volume of data is available and distributed into two data sources. This data was aggregated into datasets containing the pertinent information for predicting disruptions and defects in the CL. Also, an undersampling technique was employed to reduce the computationally unfeasible volume of data to a practical sized dataset. Additionally, the issues identified during the Data Understanding phase are addressed. This entails, for example, cleaning the data and dealing with missing and inconsistent values. 4. Modeling: In this stage, a variety of ML techniques are employed to construct models that respond to functional requirements and facilitate the decision-making process in the
3.3. Data Processing and Machine Learning Tools 20 CL. This phase entails testing various models and tuning their parameters to attain the best predictive performance. Sometimes, revisiting the Data Preparation phase becomes necessary, such as when certain features do not significantly contribute to the model and should be removed or when the models’ performance is lacking and more features need to be included. 5. Evaluation: In the Evaluation stage, the models are evaluated and compared using a chosen metric. This phase is crucial for determining whether the functional requirements established in the business understanding phase are being fulfilled. If they are not then it becomes necessary to revisit the business understanding phase to clarify or revise the requirements. 6. Deployment: In this final stage, the focus is on implementing the models and insights derived from the modeling phase into operational use. In the context of this study, the solution is integrated into a CL digital twin system and a Graphical User Interface (GUI) is created to leverage the selected models, facilitating decision-making and providing valuable insights for the operators during each production order. 3.3 data processing and machine learning tools This section details the technological tools utilized in the development of this dissertation. The core of this work was built using Python due to its extensive array of libraries conducive to data analysis, preparation, and modeling. This choice aligns with the methodology adopted, CRISP-DM, enabling a comprehensive coverage of the Data Understanding, Data Preparation and Modeling phases. On the other hand, the XAI component, was exclusively implemented using the R programming language since a robust library for model explainability is available and was developed by this dissertation’s supervisor. Table 2provides a comprehensive description of all the technological tools employed in this dissertation. 3.4 data The analyzed company is dedicated to acquiring valuable insights into its production process. Consequently, it is diligently collecting substantial and diverse data pertaining to its production procedures, which is subsequently stored within a data lake. The company maintains two distinct types of data: tabular data - containing structured information about various aspects of the business, such as details about each production order; and timeseries data – comprising timestamped readings derived from IoT sensors strategically deployed throughout different areas of the factory, including the CL, the IL, and the Warehouse. Notably, the tabular data has been collected over a more extensive period, initiating in 2006, whereas the acquisition of timeseries data began recently, specifically in 2020. The tabular data consisted of 76 tables, however only six have been deemed relevant for the Data Preparation phase. These six tables can be appropriately represented using a entity relationship diagram, which is depicted in Fig. 11. Table 3provides a comprehensive
3.4. Data 21 Table 2: Technological tools employed. Name Description Apache Spark Apache Spark is a data processing framework that can quickly handle extensive datasets by executing tasks in parallel across distributed clusters. It offers a Python implementation known as PySpark for seamless integration with Python-based workflows. NumPy NumPy is a Python library that enables the manipulation of large, multidimensional arrays and offers a wide range of mathematical functions for easy array operations. Pandas Pandas is a Python library that aims to facilitate working with datasets. In the context of ML projects, this library is especially popular due to the ease of data manipulation it provides through the DataFrame object. CANE CANE is a Python package for preprocessing categorical features. It offers a variety of techniques, including the integration of a simplified One-Hot Encoding (OHE) method. H2O AutoML H2O AutoML is an open-source, distributed ML platform designed to simplify and automate the process of training diverse models. It offers a Python implementation out of the box that works seamlessly with NumPy and Pandas but it also has an Apache Spark integration known as Sparkling Water, with its Python implementation called PySparkling. Scikit-learn Scikit-learn is an open-source Python library that contains many efficient tools for ML and statistical modeling, including classification, regression, and clustering. TensorFlow TensorFlow is an open source platform for ML. It offers a versatile ecosystem replete with tools, libraries, and collaborative resources, thereby enabling researchers to push the state-of-the-art in ML and affording developers the capability to construct and implement ML-driven applications with considerable ease. XGBoost XGBoost is an optimized open-source library designed for applying ML algorithms under the gradient boosting framework. It is distinguished by its high performance, supporting parallel training and task distribution, ensuring efficiency and rapid model training. Matplotlib Matplotlib is a Python library that enables the creation of data visualization graphs, serving as an extension of the NumPy library. Rminer Rminer is a package for data mining using the R tool. This package facilitates the use of data mining algorithms in classification and regression tasks by presenting a short and coherent set of functions. Reticulate The Reticulate package provides a comprehensive set of tools for interoperability between Python and R. It can be used for importing Python modules, and using Python interactively within an R session.
3.4. Data 22 description of each table’s contents, including the number of features and records and the factory area from which the records originate. production consumption product disruption defect n 1 n 1 1 n n 1 def_production 1 1 Figure 11: Entity Relationship Diagram of the tabular data. Table 3: Overview of the tabular data. Table name Description Factory area #features #records production General information about each production order (e.g., production code) CL, IL 77 2,060,920 def_production General information about each production order (e.g., timestamp with the beginning of the production order) CL, IL 34 296,402 consumption Consumed batches of papers and raw boards (e.g., batch code) CL 51 379,200 product Characteristics of the raw materials and final products (e.g., raw board length) CL, IL 76 64,603 defect Defects created (e.g., quantity of defects) CL 28 55,145 disruption Disruptive events (e.g., stage where the disruption took place) CL 37 410,419 In the context of timeseries data categorization, IoT sensors were systematically grouped based on discerned inherent similarities, as illustrated in Table 4. This table additionally provides a detailed breakdown of the quantity of IoT sensors assigned to each respective group, the count of successfully collected records, and specifies the specific factory area(s) from which the readings were obtained.
3.4. Data 23 Table 4: Overview of the IoT sensors. Group Description Factory area #sensors #records Infeed Raw materials infeed area (e.g., paper grammage) CL, IL 60 21,992,106 Press Press area (e.g., temperature) CL 53 65,392,678 Cut Cut area (e.g., intensity) CL 13 7,653,753 Edge Cleaner Edge cleaner area (e.g., trimmer speed) CL 25 22,739,428 Stacking Stacking area (e.g., elevation speed) CL 36 2,777,763 Materials Raw materials used (e.g., melamine code) CL 42 28,322,721 General General information of the production order (e.g., shift) CL, IL 80 75,798,348 Bath First and second bath areas (e.g., bath temperature) IL 10 16,477,576 Stove First and second stove areas (e.g., ventilation) IL 22 136,802,004 Cooler Cooler area (e.g., cooler temperature) IL 26 19,763,501 Environment Environment conditions (e.g., humidity) IL, Warehouse 14 2,534,360
3.4. Data 24 With the raw data presented in Table 3and 4, three datasets were created, incorporating aggregated and structured information that is considered crucial for predicting disruptions and defects in the CL. In Subsection 3.4.1and 3.4.2, the explanation of the created datasets is provided, delving into the intricacies of their construction. 3.4.1Production Disruption Dataset In order to fulfill the functional requirement of predicting CL disruptions, an initial dataset was constructed. This dataset incorporated features deemed pertinent by the analyzed company, encompassing details concerning the properties of papers and boards in use, as well as timeseries data specific to the Press group. Specifically, this timeseries data included the plates temperature, pressure, and the duration of thermical and mechanical cycles. To ensure consistency in data frequency, given the varying sensor data generation frequencies, the timeseries data was aggregated to achieve a uniform one-record-per-minute frequency. Missing values were addressed by replacing them with the most recent known value for the respective sensor. However, despite these efforts, the initial dataset exhibited remarkably poor predictive performance, akin to a random model. Consequently, an Exploratory Data Analysis (EDA) was conducted to identify underlying issues that required resolution. This EDA uncovered critical issues that had not been identified previously nor reported by the company. These issues encompassed disparities in time zones between the tabular and timeseries data, updates on the sensorization, variations in data measurement units, mixed sensoziration readings, various gaps with no sensor readings at all, and inconsistent classification of past disruptions. The misalignment between the timeseries data and the tabular data led to a misassociation between sensor readings and the actual occurrence of production stoppages, significantly impairing the performance of disruption predictions. Furthermore, the company had implemented upgrades to its plant’s sensorization, involving the removal, modification, and addition of sensors. Despite the availability of timeseries data dating back to 2020, utilizing this entire data period became infeasible due to these extensive changes in sensor configuration. Additionally, modifications to existing sensors resulted in challenges such as the same sensor yielding different data readings simultaneously or reporting values in disparate measurement units, thereby introducing substantial fluctuations in the range of reported values. Moreover, the frequent Covid-19-induced lockdowns compelled the company to suspend operations on multiple occasions, resulting in data gaps spanning multiple time intervals. Lastly, the company had revised its criteria for classifying disruptions on the production line, leading to varying classifications for the same stoppage depending on the period in which it occurred. In response to these challenges, a strategic decision was made to concentrate efforts on a specific nine-month timeframe, spanning from May 2021 to February 2022. This period demonstrated a heightened level of reliability, characterized by the consistent provision of uninterrupted data from the majority of sensors, as well as the maintenance of a stable set of active sensors.
3.4. Data 25 To address the issue of varying data generation frequencies, a standardization approach was employed. Data records were synchronized to coincide with new sensor readings. Specifically, when a sensor reading occurred at timestamp t, a new data record was generated with this timestamp, capturing the new sensor value, and duplicating the values of all other sensors that remained unchanged. This method ensured that each data record included all sensor values received up to the designated timestamp t. On average, this system generated approximately three records per second. Given the high frequency of data generation and the nine-month duration, the accumulated volume of raw production data amounted to approximately 360 Gb. Since each data record has an associated timestamp, distinguishing between sensor readings obtained during normal production and those captured during disruptions relied on the start and end timestamps of the disruptions within the production line. This approach allowed to categorize the sensors’ data with a binary label indicating whether the data was recorded during a disruption. For the purpose of ML experimentation, two production disruption datasets were created: Full2d - consisting of two days of complete data, which was used for preliminary ML experiments; and SS9m - which employs a novel Selective Sampling (SS) technique over the full nine-month big data. In both datasets, as several ML models (e.g., Neural Networks) cannot directly process categorical features, the well-known OHE technique was applied using the Python package CANE. This process involved transforming each categorical value into a numeric feature represented by a boolean value (zero or one). Before delving into the specifics of each dataset, it is important to mention that any input features that directly indicated a disruption condition were removed. Full2d The first dataset created, coined as Full2d, was created with the primary intention of conducting an initial ML proof-of-concept. The key objective was to ascertain the plausibility of implementing ML algorithms for disruption detection while ensuring computational feasibility. Due to the colossal volume of data at hand, Full2d encompasses solely the initial two days of raw production data, amounting to a total of 448,058 records related to five production stoppages. Fig. 12 illustrates the process undertaken to create this dataset. 9 months data 1 2 days data 2 Full2d 3 IoT sensors data Filter by timestamp Join by timestamp 1 Disruptions data Figure 12: Process undertaken to create the Full2d dataset.
3.4. Data 26 SS9m The second dataset, denoted as SS9m, was constructed to serve as a representation of the whole data but with a computationally-feasible size for a more robust experiment. Regarding the considered disruptions, after consulting experts from the wood-based panel production, it was decided to focus solely on disruptions up to the press stage because these stoppages significantly impact the production process, while disruptions occurring after the press stage tend to be less influential and some are even unpredictable. Due to this decision, all data features pertaining to sensors beyond the press area were deliberately excluded. This included features from the "edge cleaner", "cut", and "stacking" groups from Table 4. In addition to these features, some others were also eliminated during the in-depth data quality feature selection preprocessing. As a result of this analysis, features that met at least one of the following criteria were removed: those with reading interruptions over time (missing data); those representing theoretical or predefined values rather than real measured ones; those describing another feature; those remaining mostly constant throughout the entire period; those having no relevance to the study (as measured by a manual analysis); those with timestamps that did not accurately reflect the actual time of the readings; or those exhibiting a correlation coefficient higher than 0.95 with another feature. Finally, a SS approach (hence the name) was applied, which focuses on capturing detailed information pertaining to disruptions and the normal conditions preceding these disruptions while maintaining a realistic imbalance in the disruption ratio (Fig. 13). The underlying rationale is to enable an AoT analysis that closely examines events during and leading up to disruptive events, as opposed to prolonged periods of normal production. Following the nondisruption to disruption ratio of R = 49:1, for each N disruption records, 49 x N nondisruption records were selected. Within this context, a value of N = 5disruption records was considered adequate as it results in a computationally viable dataset while keeping the imbalanced ratio of the original data. Therefore, a total of 49 x N = 245 nondisruption records were kept. From these 49 x N records, approximately 45 × N = 225 of these examples occur sequentially in close proximity to the disruption event, resulting in a denser sampling scheme that enables an in-depth AoT prediction analysis (gray area in Fig. 13). The remaining 4× N = 20 normal instances (area with vertical gray lines in Fig. 13) are sampled at larger and equally spaced intervals within the preceding normal working zone, excluding the initial segment records that are ignored (total of 45 × N instances). These ignored records (stripped zone in Fig. 13) encompasses data related to a stoppage-staled status (considered uninteresting data), manual production reboots (which are not predictable), and the subsequent initial machine rebooting readings. In the end, the SS9m dataset comprises a total of 984 numeric inputs, encompassing information from 68 IoT sensors and 1,107 production segments (sequences of normal working in the CL that end with a disruption), amounting to 649,161 records in total. Fig. 14 summarizes the process undertaken to create this dataset.
4 RESULTS 4.1 production disruption prediction For the purpose of stoppage detection (where A =0), Table 6provides a comprehensive overview of the performance achieved by the five different ML models on the two distinct datasets (Full2d and SS9m). Table 6: Stoppage detection results (best values in bold). Dataset Method Model Train Time (s) Test Time (s) AUC Full2d Supervised Learning XGBoost 18.19 0.10 0.72 RF 2.02 0.35 0.91 DFFN 406.57 16.02 0.99 Unsupervised Learning AE 43.65 4.46 0.91 IF 5.04 6.22 0.94 SS9m Supervised Learning XGBoost 315.55 2.58 0.97 RF 61.56 3.28 0.92 DFFN 266.55 26.71 0.94 Unsupervised Learning AE 238.78 45.29 0.59 IF 355.63 55.31 0.48 For the Full2d dataset, the best evaluation metrics were obtained by the supervised algorithms, with the DFFN having the best AUC (99%). The RF algorithm demonstrated the least demanding training time (2s), while the quickest prediction time was achieved by XGBoost (0.1s). As anticipated, the DL algorithms (DFFN and AE) exhibited significantly longer training times. However, it is important to interpret these results with caution due to the dataset limitations. The Full2d dataset encompasses only a brief two-day period, featuring a training set comprising just three stoppages and a test set with two stoppages. Thus, instead of strictly ranking the performance of the ML algorithms on this dataset, the obtained AUC values highlight the potential for detecting wood-based panel production disruptions, as they were substantially higher than those of a random classifier (with an AUC of 50%). After achieving promising preliminary results with the Full2d dataset, the experiment continued with the SS9m dataset, a more comprehensive dataset that encompasses all 1,107 stoppages occurring over nine months. When leveraging this dataset, the AUC results strongly 33
4.1. Production Disruption Prediction 34 favored supervised learning methods, with XGBoost leading with an AUC of 97%. On the other hand, the unsupervised methods yielded significantly poorer results, approaching the performance of almost random classifiers (AE – 59%; IF – 48%). In terms of computational effort, the ML training times are quite reasonable. For instance, XGBoost can fit a model in just five minutes using approximately 454 thousand training samples, which span around six months of production data. When it comes to test time, the speed is higher, needing only about 2.5seconds to generate around 195 thousand predictions. This demonstrates the value of the proposed SS technique, enabling the training of lightweight ML models that deliver high-quality detection performance. Notably, the test set comprises a realistic sample with approximately 330 stoppages, further validating the effectiveness of the approach. Building upon the SS9m AUC results, an AoT analysis was executed, focusing exclusively on the supervised ML algorithms, as illustrated by the ASG in Fig. 17. For every AoT value, all three ML algorithms demonstrate the ability to generate interesting AUC values. Particularly noteworthy are the results from XGBoost (blue curve), consistently outperforming both DFFN and RF, remaining above 90% for a significant range of Avalues (up to A=10). 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Ahead-of-time level 0.5 0.6 0.7 0.8 0.9 AUC DFFN XG RF Figure 17: AoT ASG for the supervised ML models. For demonstration purposes, Fig. 18 shows the individual ROC curves for the selected XGBoost model, calculated for both pure detection ( A=0 ) and an extended AoT prediction (A=15). To further highlight the practical value of the XGBoost AoT prediction model for the woodbased industry, the 1D-SA approach outlined in Section 3.6was employed. In Fig. 19a, the obtained input importance for the top five relevant input features is presented. Notably, the input with the highest impact is associated with the number of press cycles, accounting for a total relevance of 19%. Fig. 19b displays the VEC curves for the same top five relevant inputs (the x -axis denotes the full range of input domain values, while the y -axis denotes the overall obtained prediction output). The plot indicates that the most influential input (Number of Press
4.2. Production Defects Prediction 35 0.0 0.2 0.4 0.6 0.8 1.0 FPR 0.0 0.2 0.4 0.6 0.8 1.0 TPR Roc Curve (area = 0.97) (a) A=0 0.0 0.2 0.4 0.6 0.8 1.0 FPR 0.0 0.2 0.4 0.6 0.8 1.0 TPR Roc Curve (area = 0.72) (b) A=15 Figure 18: ROC curves for the XGBoost model for the two extreme Avalues. Cycles) leads to the most significant change in the XGBoost output response, underscoring its substantial impact on the model. Additionally, this analysis confirms that specific material types (melamine code) tend to be more prone to causing disruptions. In general, an increase in the numeric input also corresponds to a higher probability of disruptions on the CL. 4.2 production defects prediction For the purpose of predicting defects, the top five performing models from the H2O AutoML experiment were selected (Table 7). These models were selected based on their ability to predict the occurrence of defects out of a total of 31 evaluated models. Comprising both SEs and GBMs, these five models exhibited similar AUC values ranging from 95% to 96%. Fig. 20 displays the ROC curve for the SE model that attained the highest AUC, providing a visual representation of its performance. In terms of computational efforts, all the models exhibited high speeds during both training and testing. Particularly noteworthy were the SE models, which accomplished training on 2,915 samples in under two seconds, surpassing the GBM models that took around seven seconds. When it came to generating predictions (1,250 in total) the models demonstrated similar processing times, with the standout performance being associated with the GBM model that required just 0.238s. To showcase the practical utility of the best SE model within the wood industry, the 1D-SA approach elucidated in Section 3.6was employed. Fig. 21a highlights the importance of the top five input features for the model. Notably, among these features, the total quantity of produced boards emerges as the most impactful one (47%). This prominence significantly exceeds that of the other top features. For instance, the second most impactful input feature (bottom paper length) holds a relevance of approximately 4%. Fig. 21b displays the VEC curves for the top five influential inputs. Notably, the plot emphasizes that the input with the greatest influence (total quantity produced) has the most pronounced impact on the SE’s
4.2. Production Defects Prediction 36 Planning Delta Melamine Code Delta Change 1 Mechanical Cycle Number of Press Cycles 0.00 0.05 0.10 0.15 0.20 0.00 0.05 0.10 0.15 0.20 (a) Importance values for the top five relevant inputs. (scaled) 0.0000 0.0005 0.0010 0.0015 0.0020 Number of Press Cycles Real Mechanical Cycle Delta Change 1 Melamine Code Planning Delta (b) Top 5input VEC curves. Figure 19: Extracted XAI knowledge from the XGBoost model. Table 7: Defects prediction results (best values in bold). Model Train Time (s) Test Time (s) AUC Stacked Ensemble 0.845 0.241 0.963 0.855 0.248 0.962 1.761 0.255 0.960 GBM 6.655 0.254 0.960 7.533 0.238 0.959
4.3. Interface Prototype 37 0.0 0.2 0.4 0.6 0.8 1.0 FPR 0.0 0.2 0.4 0.6 0.8 1.0 TPR ROC Curve (area = 0.96) Figure 20: ROC curve for the SE model. output response, reaffirming its substantial contribution to the model. Furthermore, this plot supports the fact that certain paper lengths and widths, specific raw board types, and the production of particular coated boards tend to decrease the likelihood of defects occurring. 4.3 interface prototype To support the decision-making process of the CL operators, a GUI was developed. This tool facilitates machinery configuration by providing predictive insights into the likelihood of disruptions and defects occurring based on the manipulation of four variables. Additionally, it also enables real-time monitoring of the probability of experiencing a disruption. Thus, operators are able to make well-informed decisions and monitor their impacts. The probabilities for predicting disruptions and defects are calculated using the two most robust ML models, namely XGBoost and SE, presented in Section 4.1and 4.2, respectively. The GUI allows operators to choose between making disruptions or defects predictions. For disruptions, the system automatically leverages the most recent data from the CL sensors to offer real-time predictions. On the other hand, when opting for defects, predictions are generated for a specific CL production order, and users have the flexibility to select from past, current or future production orders. Then, the user must choose the desired simulation type. For both disruptions and defects it is possible to make a single or all variables analysis. It is also possible to do a real-time analysis only for disruptions. 4.3.1Single variable analysis For this analysis the user must specify the variable to be explored, selecting from plates temperature, mechanical cycle, thermical cycle or specific pressure. Once the simulation begins, users can view a graph that displays the probability of occurrence of the selected phenomenon for all possible values for the selected variable, giving
4.3. Interface Prototype 38 Produced Board Code Bottom Paper Width Raw Board Code Bottom Paper Lenght Total Quantity Produced 0.0 0.1 0.2 0.3 0.4 0.0 0.1 0.2 0.3 0.4 (a) Importance values for the top five relevant inputs. (scaled) 0.0 0.2 0.4 0.6 0.8 1.0 Total Quantity Produced Bottom Paper Lenght Raw Board Code Bottom Paper Width Produced Board Code (b) Top 5input VEC curves. Figure 21: Extracted XAI knowledge from the SE model.
4.3. Interface Prototype 39 operators a comprehensive range of input options. As an illustrative example for defects prediction, Fig. 22 showcases a graph analyzing the probability of defects occurring during a specific operation for different values of "Plates Temperature". Notably, temperatures between approximately 178 and 194 result in the lowest probability of 77%. Values below or above this interval correspond to an increased likelihood of defects occurring, rising to around 80% for values below and 85% for values above that interval. Beneath the graph, a table with values for the fixed parameters is presented to provide operators with an overall context of the operation (Fig. 23). Figure 22: Single variable analysis. Figure 23: Fixed (non alterable) parameters shown during a single variable analysis.
4.3. Interface Prototype 40 4.3.2All variables analysis For the all variables analysis, the user must introduce a numeric value for each variable and the probability of having a disruption or defects is displayed (Fig. 24). To provide operators with a more visual system that alerts for abnormal situations, the probability has a background that changes its color according to the probability value. For a probability below 30% the background is green; between 30% and 70% it is yellow; and above 70% it is red. Figure 24: All variables analysis. 4.3.3Real-time analysis This analysis is only available for the prediction of disruptions and it shows the probability of having a disruption up to the current moment (Fig. 25). The graph is updated every five seconds with a new prediction. Regarding (Fig. 26), it displays the current value for the distinct fixed parameters.
4.3. Interface Prototype 41 Figure 25: Real-time analysis. Figure 26: Fixed (non alterable) parameters shown during a real time analysis.
5 CONCLUSIONS 5.1 overview This dissertation demonstrates the application of ML techniques to detect and predict AoT disruptions and predict defects in production orders within a CL in a Portuguese Wood-Based Panels Industry. To predict disruptions, a comparison of five state-of-the-art anomaly detection ML algorithms was conducted. Some of these algorithms were supervised: RF, XGBoost, and DFFN; while others were unsupervised: IF and AE. The experiments were conducted using two distinct datasets created from the raw data collected by the CL IoT sensors. The first dataset, Full2d, covers two days of complete data, while the second, SS9m, spans nine months and includes 1,107 production stoppages. Initial experiments on Full2d showed promising stoppage detection results, but more robust experimentation was carried out using the SS9m dataset. Among the algorithms, XGBoost outperformed the others, achieving an AoT stoppage prediction performance ranging from 97% for detection to 72% for an AoT prediction of five seconds. For defect prediction, a dataset containing 4,165 CL production orders, each record corresponding to a distinct production order, was created by aggregating raw data from the CL, IL, and Warehouse. Due to the smaller size of this dataset, an AutoML approach, based on supervised learning methods, was applied. After testing multiple models, SEs demonstrated the best predictive performance, followed by GBMs, with the top-performing SE model achieving an AUC of 96.3%. Additionally, to enhance transparency and interpretability, a XAI approach based on the 1D-SA was employed for both the XGBoost model and the SE model. Finally, a GUI was developed to leverage these two models and support decision-making by operators in their daily tasks. This GUI allows users to assess the probability of stoppages and defects across a range of values for four adjustable variables: plates temperature, mechanical cycle, thermical cycle, and specific pressure. Additionally, it also enables real-time monitoring of the probability of experiencing a disruption. 42
bibliography 49 Kinaneva, D., Hristov, G., Kyuchukov, P., Georgiev, G., Zahariev, P., & Daskalov, R. (2021). Machine learning algorithms for regression analysis and predictions of numerical data. 2021 3rd International Congress on Human-Computer Interaction, Optimization and Robotic Applications (HORA),1–6. https://doi.org/10.1109/HORA52670.2021.9461298 Kirchen, I., Vogel-Heuser, B., Hildenbrand, P., Schulte, R., Vogel, M., Lechner, M., & Merklein, M. (2017). Data-driven model development for quality prediction in forming technology. 15th IEEE International Conference on Industrial Informatics, INDIN 2017, Emden, Germany, July 24-26,2017,775–780. https://doi.org/10.1109/INDIN.2017.8104871 Kolokas, N., Vafeiadis, T., Ioannidis, D., & Tzovaras, D. (2019). Anomaly detection in aluminium production with unsupervised machine learning classifiers. In P. D. Koprinkova- Hristova, T. Yildirim, V. Piuri, L. S. Iliadis, & D. Camacho (Eds.), IEEE international symposium on innovations in intelligent systems and applications, INISTA 2019, sofia, bulgaria, july 3-5,2019 (pp. 1–6). IEEE. https://doi.org/10.1109/INISTA.2019.8778419 Krupitzer, C., Wagenhals, T., Züfle, M., Lesch, V., Schäfer, D., Mozaffarin, A., Edinger, J., Becker, C., & Kounev, S. (2020). A survey on predictive maintenance for industry 4.0. Lai, N. Y. G., Wong, K. H., Halim, D., Lu, J., & Kang, H. S. (2019). Industry 4.0enhanced lean manufacturing. 2019 8th International Conference on Industrial Technology and Management (ICITM),206–211. https://doi.org/10.1109/ICITM.2019.8710669 Lara, P. H. V., Mora, F. A. G., & Londoño, C. M. G. (2022). Aprendizaje de máquina para mantenimiento predictivo: Un problema de clasificación binaria. ConcienciaDigital. https://api.semanticscholar.org/CorpusID:248739287 Lasi, H., Fettke, P., Kemper, H. - G., Feld, T., & Hoffmann, M. (2014). Industry 4.0.Bus. Inf. Syst. Eng.,6(4), 239–242. https://doi.org/10.1007/s12599-014-0334-4 Lechevalier, D., Narayanan, A., & Rachuri, S. (2014). Towards a domain-specific framework for predictive analytics in manufacturing. In J. Lin, J. Pei, X. Hu, W. Chang, R. Nambiar, C. C. Aggarwal, N. Cercone, V. G. Honavar, J. Huan, B. Mobasher, & S. Pyne (Eds.), 2014 IEEE international conference on big data (IEEE bigdata 2014), washington, dc, usa, october 27-30,2014 (pp. 987–995). IEEE Computer Society. https://doi.org/10.1109/ BigData.2014.7004332 LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature,521,436–444. https://doi. org/10.1038/nature14539 Lee, J., Kao, H. - A., & Yang, S. (2014). Service innovation and smart analytics for industry 4.0 and big data environment. Procedia CIRP,16,3–8. https://doi.org/10.1016/j.procir. 2014.02.001 Lee, J. A., Sagong, M. J., Jung, J., Kim, E. S., & Kim, H. S. (2023). Explainable machine learning for understanding and predicting geometry and defect types in fe-ni alloys fabricated by laser metal deposition additive manufacturing. Journal of Materials Research and Technology,22,413–423. https://doi.org/https://doi.org/10.1016/j.jmrt.2022.11.137 Lee, K., Lee, Y., & Yoon, H. (2019). Development of edge-based deep learning prediction model for defect prediction in manufacturing process. 2019 International Conference on Information and Communication Technology Convergence, ICTC 2019, Jeju Island, Korea (South), October 16-18,2019,248–250. https://doi.org/10.1109/ICTC46691.2019.8939905
bibliography 50 Liu, F. T., Ting, K. M., & Zhou, Z. - H. (2008). Isolation forest. 2008 Eighth IEEE International Conference on Data Mining,413–422. https://doi.org/10.1109/ICDM.2008.17 Mahesh, B. (2019, January). Machine learning algorithms -a review. https://doi.org/10.21275/ ART20203995 Marhon, S. A., Cameron, C. J. F., & Kremer, S. C. (2013). Recurrent neural networks. In M. Bianchini, M. Maggini, & L. C. Jain (Eds.), Handbook on neural information processing (pp. 29–65). Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-642-36657-4_2 Martens, D., Baesens, B., & Gestel, T. V. (2009). Decompositional rule extraction from support vector machines by active learning. IEEE Transactions on Knowledge and Data Engineering, 21(2), 178–191. https://doi.org/10.1109/TKDE.2008.131 Martinez-Plumed, F., Contreras-Ochando, L., Ferri, C., Hernandez-Orallo, J., Kull, M., Lachiche, N., Ramirez-Quintana, M. J., & Flach, P. (2021). Crisp-dm twenty years later: From data mining processes to data science trajectories. IEEE Transactions on Knowledge and Data Engineering,33,3048–3061. https://doi.org/10.1109/TKDE.2019.2962680 Matos, L. M., Cortez, P., Mendes, R., & Moreau, A. (2023). A Deep Learning-Based Decision Support System for Mobile Performance Marketing. International Journal of Information Technology & Decision Making (IJITDM),22(02), 679–703. https://doi.org/10.1142/ S021962202250047X McHugh, J., Cuddihy, P. E., Williams, J. W., Aggour, K. S., Kumar, V. S., & Mulwad, V. (2017). Integrated access to big data polystores through a knowledge-driven framework. 2017 IEEE International Conference on Big Data (Big Data),1494–1503. https://doi.org/10. 1109/BigData.2017.8258083 Mohamed, M. (2018). Challenges and benefits of industry 4.0: An overview. International Journal of Supply and Operations Management,5(3), 256–265. https://doi.org/10.22034/2018.3.7 Mohri, M. (2018). Foundations of machine learning (Second). Mulder, W. D., Bethard, S., & Moens, M. (2015). A survey on the application of recurrent neural networks to statistical language modeling. Comput. Speech Lang.,30(1), 61–98. https://doi.org/10.1016/j.csl.2014.09.005 Nassif, A. B., Talib, M. A., Nasir, Q., & Dakalbab, F. M. (2021). Machine learning for anomaly detection: A systematic review. IEEE Access,9,78658–78700. https://doi.org/10.1109/ ACCESS.2021.3083060 Nasteski, V. (2017). An overview of the supervised machine learning methods. HORIZONS.B, 4,51–62. https://doi.org/10.20544/HORIZONS.B.04.1.17.P05 Natanael, D., & Sutanto, H. (2022). Machine learning application using cost-effective components for predictive maintenance in industry: A tube filling machine case study. Journal of Manufacturing and Materials Processing,6(5). https://doi.org/10.3390/jmmp6050108 Omar, S., Ngadi, A., & Jebur, H. H. (2013). Machine learning techniques for anomaly detection: An overview. International Journal of Computer Applications,79,33–41. https://doi.org/ 10.5120/13715-1478 Ray, S. (2019). A quick review of machine learning algorithms. 2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMITCon),35–39. https: //doi.org/10.1109/COMITCon.2019.8862451
bibliography 51 Raza, M., Jayasinghe, N. D., & Muslam, M. M. A. (2021). A comprehensive review on email spam classification using machine learning algorithms. 2021 International Conference on Information Networking (ICOIN),327–332. https://doi.org/10.1109/ICOIN50884.2021. 9334020 Regaya, Y., Fadli, F., & Amira, A. (2021). Point-denoise: Unsupervised outlier detection for 3d point clouds enhancement. Multimedia Tools and Applications,80,1–17. https://doi.org/ 10.1007/s11042-021-10924-x Rojko, A. (2017). Industry 4.0concept: Background and overview. International Journal of Interactive Mobile Technologies (iJIM),11,77. https://doi.org/10.3991/ijim.v11i5.7072 Russell, S. J., & Norvig, P. (1995). Artificial intelligence : A modern approach. Sezer, E., Romero, D., Guedea, F., Macchi, M., & Emmanouilidis, C. (2018). An industry 4.0- enabled low cost predictive maintenance approach for smes. 2018 IEEE International Conference on Engineering, Technology and Innovation (ICE/ITMC),1–8. https://doi.org/ 10.1109/ICE.2018.8436307 Shalev-Shwartz, S., & Ben-David, S. (2014). Understanding machine learning - from theory to algorithms. Cambridge University Press. Siddique, M. A. B., Khan, M. M. R., Arif, R. B., & Ashrafi, Z. (2018). Study and observation of the variations of accuracies for handwritten digits recognition with various hidden layers and epochs using neural network algorithm. CoRR,abs/1809.06188. http://arxiv. org/abs/1809.06188 Singh, A., Thakur, N., & Sharma, A. (2016). A review of supervised machine learning algorithms. 2016 3rd International Conference on Computing for Sustainable Global Development (INDIACom),1310–1315. Sipsas, K., Alexopoulos, K., Xanthakis, V., & Chryssolouris, G. (2016). Collaborative maintenance in flow-line manufacturing environments: An industry 4.0approach. Procedia CIRP,55,236–241. https://doi.org/10.1016/j.procir.2016.09.013 Sontakke, S., Lohokare, J., Dani, R., & Shivagaje, P. (2019, January). Classification of cardiotocography signals using machine learning: Proceedings of the 2018 intelligent systems conference (intellisys) volume 2. https://doi.org/10.1007/978-3-030-01057-7_35 Suthar, J., Persis, J., & Gupta, R. (2023). Predictive modeling of quality characteristics - A case study with the casting industry. Comput. Ind.,146,103855. https://doi.org/10.1016/j. compind.2023.103855 Syafrudin, M., Alfian, G., Fitriyani, N. L., & Rhee, J. (2018). Performance analysis of iot-based sensor, big data processing, and machine learning model for real-time monitoring system in automotive manufacturing. Sensors,18(9), 2946. https://doi.org/10.3390/ s18092946 Tan, Y., Jin, B., Nettekoven, A. J., Chen, Y., Yue, Y., Topcu, U., & Sangiovanni-Vincentelli, A. L. (2019). An encoder-decoder based approach for anomaly detection with application in additive manufacturing. In M. A. Wani, T. M. Khoshgoftaar, D. Wang, H. Wang, & N. Seliya (Eds.), 18th IEEE international conference on machine learning and applications, ICMLA 2019, boca raton, fl, usa, december 16-19,2019 (pp. 1008–1015). IEEE. https: //doi.org/10.1109/ICMLA.2019.00171
bibliography 52 Tien, C., Huang, T., Chen, P. C., & Wang, J. (2021). Using autoencoders for anomaly detection and transfer learning in iot. Comput.,10(7), 88. https://doi.org/10.3390/ computers10070088 Truong, A., Walters, A., Goodsitt, J., Hines, K., Bruss, C. B., & Farivar, R. (2019). Towards automated machine learning: Evaluation and comparison of automl approaches and tools. https://doi.org/10.1109/ICTAI.2019.00209 Vaccaro, L., Sansonetti, G., & Micarelli, A. (2021). An empirical review of automated machine learning. Computers,10,11. https://doi.org/10.3390/computers10010011 Vaidya, S., Ambad, P., & Bhosle, S. (2018). Industry 4.0– a glimpse. Procedia Manufacturing,20, 233–238. https://doi.org/10.1016/j.promfg.2018.02.034 Vajire, S. L., Singh, A. P., Saini, D. K., Mukhopadhyay, A. K., Singh, K., & Mishra, D. (2022). Novel machine learning-based prediction approach for nanoindentation loaddeformation in a thin film: Applications to electronic industries. Comput. Ind. Eng.,174, 108824. https://doi.org/10.1016/j.cie.2022.108824 Wan, J., Tang, S., Li, D., Wang, S., Liu, C., Abbas, H., & Vasilakos, A. V. (2017). A manufacturing big data solution for active preventive maintenance. IEEE Transactions on Industrial Informatics,13(4), 2039–2047. https://doi.org/10.1109/TII.2017.2670505 Woldaregay, A. Z., Årsand, E., Botsis, T., Albers, D., Mamykina, L., & Hartvigsen, G. (2019). Data-driven blood glucose pattern classification and anomalies detection: Machinelearning applications in type 1diabetes. J Med Internet Res,21(5), e11030. https://doi. org/10.2196/11030 Wolfinger, R. D., & Tan, P. - Y. (2017). Stacked ensemble models for improved prediction accuracy. https://api.semanticscholar.org/CorpusID:51836250 Wong, L. Y., Yahya, N., Hamid, M. N., & Hisham, S. B. (2022). Anomaly prediction and remaining useful life for alternator health monitoring system. 2022 International Conference on Future Trends in Smart Communities (ICFTSC),6–11. https://doi.org/10.1109/ ICFTSC57269.2022.10040046 Xu, L. D., Xu, E. L., & Li, L. (2018). Industry 4.0: State of the art and future trends. International Journal of Production Research,56,2941–2962. https://doi.org/10.1080/00207543.2018. 1444806 Zhang, C., Zhang, G., & Sun, S. (2009). A mixed unsupervised clustering-based intrusion detection model. 2009 Third International Conference on Genetic and Evolutionary Computing, 426–428. Zhang, H., Zhao, J., Yong, X., Zhang, C., & Ji, Y. (2017). Machine learning based approaches for medium-thick plate stress analysis feature extraction and product defect prediction. 2017 29th Chinese Control And Decision Conference (CCDC),7252–7256. https://doi.org/ 10.1109/CCDC.2017.7978493 Zhao, R., Wang, J., Yan, R., & Mao, K. (2016). Machine health monitoring with lstm networks. 2016 10th International Conference on Sensing Technology (ICST),1–6. https://doi.org/10. 1109/ICSensT.2016.7796266
bibliography 53 Zou, J., Han, Y., & So, S. - S. (2009). Overview of artificial neural networks. In D. J. Livingstone (Ed.), Artificial neural networks: Methods and applications (pp. 14–22). Humana Press. https://doi.org/10.1007/978-1-60327-101-1_2 Zuchniak, K. (2023, February). Multi-teacher knowledge distillation as an effective method for compressing ensembles of neural networks.