Knowledge Integration in Smart Factories

ﬂoor level of the manufacturing facilities where products are manufactured, and related data are collected for later integration and analysis. The vertical perspective is a perspective of knowledge integration where gathered data from the manufacturing environment are fused, aggregated and integrated with the knowledge about the underlying business processes. The goal is to derive at the lowest level a real-time perspective on the state of manufacturing, while enabling at the top level a predictive business perspective. These alignments are reﬂected both horizontally and vertically in the RAMI 4.0 architecture of the i40-platform and vertically in the 5C model .


Introduction
In the wake of the Industry 4.0 development, the concept of Smart Factories and related technologies such as Cyber-Physical Systems (CPS) or the application of Internet of Things (IoT) in an industrial context emerged in the span of just ten years.Cyber-Physical Systems combine the analogue or physical production world with the digital world in a newfound complexity.Consequently, data and knowledge are playing an increasingly bigger role, supporting and leading to data-driven manufacturing (e.g., ).
Industry 4.0 has first been published on a larger scale as a (marketing) concept in 2011 at the Hannover fair in Germany.What followed was the backwards view on how to define the previous epochs of Industry 1.0 to 3.0 and their respective historical focus (e.g., ).Industry 4.0 presents a forward view of how the concept may be used to transform the current production environment and integrate digital solutions to improve aspects such as performance, maintenance, manufacturing of individualized products or to generate transparency over the whole production process or value chain of a company.Zhong et al.
(2017) conclude that "Industry 4.0 combines embedded production system technologies with intelligent production processes to pave the way for a new technological age that will fundamentally transform industry value chains, production value chains, and business models" .The technological advance also requires interaction with and integration of skilled workforces, even though this is often not addressed .
In this light, Industry 4.0 can be further defined as a network of humans and machines, covering the whole value chain, while supporting digitization and fostering real-time analysis of data to make the manufacturing processes more transparent and simultaneously more efficient to tailor intelligent products and services to the customer .Depending on the type of realization and number of data sources, there might be a requirement for Big Data analysis .
Intensive research has been conducted on how to make the existing factories "smarter".In this context, the term "smart" refers to making manufacturing processes more autonomous, self-configured and datadriven.Such capabilities enable, for example, gathering and utilizing of knowledge about machine failures, to enable predictive maintenance actions or ad hoc process adaptations.In addition, the products Knowledge integration is well explained by the human-organization-technology (HOT) approach known from knowledge management.This approach contains the horizontal and vertical interaction and communication between employees, human-to-machine, but also machine-to-machine.Different organizational structures and processes are supported with the help of appropriate technologies and suitable data processing and integration techniques.In a Smart Factory, manufacturing systems act largely autonomously on the basis of continuously collected data.The technical design concerns the networking of machines, their connectivity and the interaction between human and machine as well as machine-to-machine.Within a Smart Factory, machines can be considered as intelligent manufacturing systems.Such manufacturing systems can autonomously adapt to events through the ability to intelligently analyze data and act as adaptive manufacturing systems that consider changes in production, the supply chain and customer requirements.Inter-connected physical devices, sensors, actuators, and controllers form the building block of the Smart Factory, which is called the Internet of Things (IoT).IoT uses different data processing solutions, such as cloud computing, fog computing, or edge computing, to fuse and process data.This is accomplished in an integrated and cross-device manner.
[1] [2] [3] [4] [5] [6] [1] [2] and services which are manufactured often are aimed to be "smart" too, meaning they contain the means to gather data which may be used to improve functionalities or services through continuous data feedback to the manufacturer.
A generic definition of the term Smart Factory is still difficult, as many authors provide definitions based on their specific research area .It can be concluded from this that the Smart Factory concept is targeting a multi-dimensional transformation of the manufacturing sector that is still continuing.Based on their analysis, Shi et al. (2020) conclude on four main features of a Smart Factory: (1) sensors for data gathering and environment detection with the goal of analysis and self-organization, (2) interconnectivity, interoperability and real-time control leading to flexibility, (3) application of artificial intelligence (AI) technologies such as robots, analysis algorithms as well as (4) virtual reality to enhance "human-machine integration" .To target the diversity of topics related to the term Smart Factory, Strozzi et  Before talking more about this change the terms data, information and knowledge as well as knowledge management will be introduced briefly, giving a better background of understanding : From a knowledge management perspective, the three terms are closely related, whereas data are the basis being formed out of a specific alphabet and grammar/syntax and may be structured, semi-structured or unstructured.Information builds on top of data which are used and interpreted in a certain (semantical) context, while knowledge is interconnected, applied or integrated information and oftentimes relates to a specific application area or an individual.That is why the terms of individual and collective knowledge are important factors for knowledge management, a discipline supporting, e.g., the acquisition, development, distribution, application or storage of knowledge within an organization.Different KM models or processes may be established and manage targeting human, organizational and technological aspects.Frey-Luxemberger gives an overview of the KM field .
The changes and role of data in manufacturing detailed above, is motivated or required by the rising customer demands of customized or tailored orders .From an outside perspective the change of market demands requires hybrid solutions which not only focus on the manufacturing of physical devices or products but an accompanying (smart) service , which is only possible if the product generates data to be analyzed and used for offering said service.At the same time, the interconnected technologies require a change in knowledge management.Bettiol et al. (2020) conclude: "On the one hand advanced, interconnected technologies generate new knowledge autonomously, but on the other hand, in order to really deploy the value connected to data produced by such technologies, firm should also rely on the social dimension of knowledge management dynamics" .The social dimension will be discussed later when reflecting on the changing role of employees in Smart Factories. [7] [7] [8] [4] [9] [10] [10] [11] [12] [13] To meet a lot size of one, while offering extensive automated configuration abilities throughout the production process, the Smart Factory has to offer configuration and adaptation possibilities in a scalable way.At the same time these have to be manageable by the human workers, as well as being aligned to the underlying business processes.The realization is only possible by collecting and using data and knowledge throughout the manufacturing and documentation process, as well as by deploying automated data analytics and visualization tools to enable real time management and reconfiguration.It is expected that in the future workers inside Smart Factories will have to fulfill different roles or tasks in different processes or together with (intelligent) machines (e.g., ).Furthermore, instead of only administering one isolated machine, they will be supporting overarching tasks as the surveying and monitoring of interconnected production machines or plants, as well as flexible automation solutions.This again requires knowledge about inter-dependencies in the production process as well as about consequences for multiple production queues, e.g., in case of a failure of an intermediate machine.In this context the topic of predictive maintenance (e.g., ) is another major issue, as the gathered data inside the Smart Factory can and has to be used to minimize the times of failures in the more complex manufacturing environment, deploying analytics strategies (e.g., ) or machine learning algorithms to detect potential failures or maintenance measures.The concept of a digital twin (DT) (e.g., ) might be used here to fuse data and simulation models to create a real-time digital simulation and forecast the real environment, supporting the early detection of potential problems and real-time reconfiguration.
In the following, the different aspects of a Smart Factory including computing, analytics and knowledge integration perspectives will be discussed in more detail.

Smart Factory Environment
Before the different levels of integration and computing in Smart Factories are explicitly addressed, a conceptual overview of a Smart Factory environment is given and explained.Figure 1 summarizes the integration levels and technologies related to a Smart Factory.The icons indicate the interconnectivity and communication between them and are detailed in the following sub-sections.In this setting, the horizontal perspective is focused on the shop floor level of the manufacturing facilities where products are manufactured, and related data are collected for later integration and analysis.The vertical perspective is a perspective of knowledge integration where gathered data from the manufacturing environment are fused, aggregated and integrated with the knowledge about the underlying business processes.The goal is to derive at the lowest level a real-time perspective on the state of manufacturing, while enabling at the top level a predictive business perspective.These alignments are reflected both horizontally and vertically in the RAMI 4.0 architecture of the i40-platform and vertically in the 5C model .Depending on the author, either one or both terms of Cyber-Physical Systems (CPS) or Cyber-Physical Production Systems (CPPS) are used as the main building blocks of a Smart Factory.While the term CPS is sometimes used synonymously with CPPS, the term CPPS is also used to refer to a higher-level system that consists of multiple singular CPS .In this paper, we follow the second interpretation.We use the term CPPS to refer to a wider scope, in which interconnected CPSs build the CPPS.In a practical scenario, these may be different production machines connected to one production process, where each machine resembles a unit as an integration of the "cyber", meaning the computation and networking component, as well as the "physical" electrical and mechanical components.monitoring purposes or for cases where an analysis of a specific time frame is necessary.In the first case, Stream Processing or Stream Analytics can be used where the data are gathered and immediately analyzed "in place", meaning while being streamed, while in the second case Batch Processing or Batch analysis takes place, where data are collected and processed together with the option of aggregating over time and features.In Section 3, the different aspects are discussed in more detail.

Multi-Dimensional Knowledge Integration in Smart Factories Theorem 1. From the perspective of Knowledge Management and considering the three associated main pillars of (1) human workforce, (2) organizational structures or processes as well as (3) technology, the establishment of a Smart Factory requires a Multi-dimensional Knowledge Integration Perspective
targeting the aforementioned three pillars, while considering the knowledge associated with, as well as the interconnected manufacturing processes and automation requirements to support a "Smart" solution.
Based on Theorem 1, the following sub-sections detail the different aspects of how to create such a multidimensional knowledge integration perspective.We consider the human-organization-technology (HOT) (e.g., , or ) perspectives the target for this multi-dimensional knowledge integration .Examples of the human (employee) perspective are roles like involved knowledge experts, lifelong learning, humanmachine interaction, etc. Examples on the organizational perspective are the transformation of a hierarchical into a network-based structure, organizational learning and a data-driven business process integration; and finally, from the technological perspective we have the variance of knowledge assets (e.g., textual content, sensor data) as well as analysis processes, which will be detailed in Section 3.3.Figure 1 summarizes the perspectives around the Smart Factory environment.

Integration
The Smart Factory integration or transformation from a regular factory into a Smart Factory bases on a horizontal and a vertical integration perspective.The horizontal perspective targets the production and transportation processes along the value chain, while the vertical perspective has a look at how the "new" or "transformed" production environment fits and interrelates with the other organizational areas such as production planning, logistics, sales or marketing, etc.The platform i4.0 visualized this change between Industry 3.0 towards Industry 4.0 with the change from a production pyramid towards a production network.Hierarchies are no longer as important in Industry 4.0 as the concept transforms the organization into an interconnected network, where hierarchical or departmental boundaries are resolved or less significant.The important aspect is the value chain and all departments working towards customer-oriented goals.This of course requires a change in the way the employees work and interact with each other.While before employees in the same hierarchy level or working on the same subject were mostly communicating with each other, this organizational change also leads to a social change inside the company.In addition, job profiles are changing towards a "knowledge worker".This will be discussed in Section 3.3.2as it requires knowledge management aspects to support this change process.
Going back to the horizontal and vertical integration, both aspects are not only related to the organizational changes necessary to establish a Smart Factory.They also target the data perspective.
Data play a central role for the Smart Factory, as it is needed to automate processes or exchange information between different manufacturing machines or between divisions as production and logistics, etc.These data are gathered mostly with the help of sensors, embedded into IoT devices which are part of the CPS.A sensor might be attached directly at a specific manufacturing machine or at different gates where the products or pre-products come along during their way through the manufacturing environment.
RFID tags may be used to automatically scan a product, check its identity and update the status or next manufacturing step.If the data are gathered and analyzed along the manufacturing process, then they are part of the horizontal integration, as the results of analysis might directly influence the next production steps and focus on a real-time intervention.Data analytics from a vertical perspective have a broader focus and gather and integrate data from and at different hierarchical levels and different IT systems, as, e.g., the enterprise resources planning (ERP) system, as well as over a longer time period to, e.g., generate reports about the Smart Factory or a specific production development for a specified time.

Knowledge Integration: Employee Level
If we consider the organizational changes leading to a Smart Factory, it is important to consider the role of the current and future employees in this environment.This applies especially to those employees whose production environments have been analogue or not interconnected before and who now need to be part of the digitized production process.As such, an essential factor in this transformation process is lifelong learning and needs to be considered in all knowledge management activities of the Smart Factory .
From the perspective of knowledge integration, it is recommended to involve knowledge engineers or managers to support the transformation process but to also consider the concerns or problems the employees have and to acquire and provide the training they need.Another aspect is to establish the knowledge exchange between different involved engineering disciplines, as well as computer science for the design and understanding of complex systems such as CPS.
The employees in Smart Factories may be concerned about their future role and tasks as there will be continuous shifts in human-machine interaction (HMI), where the mechanized counterparts of a human worker in the future may be different CPS, a robot or an AI application.The roles that workers execute may be the controller of a machine, peer or teammate up to their replacement by an intelligent machine .Ansari, Erol and Shin (2018) differentiate HMI into human-machine cooperation and human-machine analyzed", leading to future challenges and requirements to create recommendations or standards for said coexistence and collaboration between human and machine teammates .One approach is a "mutual learning" between human and machine, supported by human acquisition, machine acquisition, human participation and machine participation leading to the execution of shared tasks between human and machine .North, Maier and Haas (2018) envision that "in the future expertise will be defined as human (expert) plus intelligent machine", with the challenge being how they learn and work together .
A possible system, showcasing this synergetic collaboration is the implementation of cobots, passive robots that are tailored for collaboratively inhabiting a shared space for the purpose of operating processes together with humans .

Knowledge Integration: Technological Level
In the introduction, the central role of data and knowledge in modern manufacturing has been motivated.Technologies and products are listed here exemplary and do not represent an exhaustive market overview.
Based on the table above, the mentioned technologies may be brought into context from a data to a knowledge integration perspective.The interaction and integration of these technologies are shown in Figure 2. It is assumed that the processing from data to information to knowledge, an integral concept of knowledge management, is applied here as well.Data might be in the form of structured streaming data, mostly generated from sensors or in logging units, or unstructured in form, such as texts, process  In the following sub-sections, the technological level will be discussed in more detail.

Data Computing/Processing in Smart Factories
Smart Factories apply different kinds of computing levels to meet requirements regarding, e.g., real-time processing or big data analysis.The deciding factor for how to gather and process data streams inside the Smart Factory is oftentimes the available time or the amount of data.As a rule of thumb, the faster an analysis should be executed, the closer the necessary computing unit needs to be to the production machine.On the other hand, large amounts of data oftentimes need a central storage to be fused and aggregated before they are processed.Therefore, Smart Factories consider three computing tiers or levels: Cloud, Fog and Edge Computing, e.g., .In the case of a Smart Factory, the application of these computing approaches means that the previously closed environments, using only operation technology (OT), are now opened towards information technology (IT) thus providing opportunities regarding 1 [32] computing power but also challenges, e.g., from a security perspective.
Cloud Computing: Cloud Computing covers a computer science and hardware concept where central computing, network or software services are bought on service platforms.These are known as Platform as a Service (PaaS), if an organization is unable to establish its own data center or local data storage.Central indicates a single point of access to the service, which in turn may be within the cloud distributed transparently across multiple processing nodes.In the wake of Cloud Computing, different services emerged such as Software as a Service (SaaS), providing central, scalable software applications, which need not be installed locally but are accessible universally.Within the literature, Cloud Computing is strongly associated with Big Data as it offers the most benefits when huge amounts of data need to be analyzed with extensive, parallelized computing power which a local single-server unit may not be able to provide.In the context of Industry 4.0, Zhong et al. (2017) even speak of "cloud manufacturing" as a new model for an "intelligent manufacturing system" .In this case, the company or the machines generating the data need to have a network connection to the cloud services to store their data inside the cloud environment and use the available processing power and tools for analysis.The results will be transmitted back to the company.One aspect discussed in this context is data privacy and intellectual property, following the externalization of company data into a booked cloud service.To meet these concerns, there are possibilities for using a public cloud, private cloud or a hybrid version (e.g., ).In the case of a public cloud, the data will not be public for all, but it indicates that different user groups or organizations are using this cloud or virtual environment together.The private cloud environment is available only for the organization itself.Hybrid clouds blend both concepts seamlessly.pronounce the main difference towards Cloud Computing is that the available resources are more limited and require "optimal management", while on the other hand fog nodes are much closer to the edge devices, reducing network delays .
Edge Computing: Edge Computing targets a computing and storage unit that is directly attached to or embedded into an edge device (e.g., IoT Device, embedded sensor in a production unit).Edge computing describes a decentralized cloud computing architecture.The data generated, for example, from local computers or IoT devices, are processed immediately at or within the device itself or in the vicinity, i.e., at the outermost edge of the network of an IT infrastructure (e.g., ).This aspect has direct relations to stream processing, which will be discussed later in this section.This helps to offload network bandwidth and releases "an important part of the computational load from the Cloud servers" to a data center or cloud .The most important feature of edge computing is the extension and trade-off of cloud services to the edge of the network.As a result, computation, communication, and storage are much closer to the end user and the vicinity of the creation of the data.These edge nodes may include, e.g., smart sensors, smartphones, smart vehicles, or dedicated edge servers .Furthermore, the computing at the edge may introduce concepts of data separation where data are filtered, compacted, aggregated, and analyzed in the manufacturing environment while only resulting data with a potentially enriched information density is transmitted to other systems and services.Edge nodes may be used for different steps of the data analytics process .This way it can also be scaled what information needs to be revealed to [4] [3] [33] [32] [32] [22] [34] [34] [32] external services (e.g., public clouds) to receive a desired analytical feedback.The Edge Computing Task Group of the IIC concludes a vertical integration of edge computing over the whole technology stack of the Industrial Internet Reference Architecture (IIRA), while horizontally it may be used for peer-to-peer networking, edge-device collaboration, distributed queries, distributes data management or data governance .

Types of Data Analytics in Smart Factories
Data Analytics is a central factor for the implementation of automated or semi-automated Smart Factories.Depending on the literature reference, it may also be more specifically called Industrial Analytics (e.g., ).The analyzed data may be structured (e.g., sensor data), semi-structured (e.g., meta data or semi-structured feedback data) or even unstructured data in the form of varying texts or images.
The ways of extracting knowledge from these data are diverse."Extracting practical knowledge from heterogeneous data is challenging and thus, determining the right methodologies and tools for querying and aggregating sensor data is crucial…" .
Smart Factories emphasize the analysis of sensor data, due to the distributed sensor data streams created from singular or interconnected CPS or IoT devices inside the production plant or Smart Factory environment."Data is a key enabler for smart manufacturing" .While more data allow more insights, this holds true only if the fitting data analytics, statistics or machine learning methods are applied considering the purpose of why certain data streams or batches are being analyzed.From a knowledge integration perspective, it is important to define the use case (e.g., predictive maintenance of a machine, monitoring of the current CPS status, etc.) and fitting data analytics concepts before choosing a concrete implementation technology.
Data analytics in Smart Factories follow general lifecycle management models and dedicated analytics methods adapting them to the type of data available in the environment and the given task at hand.It is like any other data analytics application dependent on its lifecycle "of data collection, transmission, storage, processing, visualization, and application" .The IIC (2017) summarizes the applicable data analytics method categories of descriptive analytics, predictive analytics and prescriptive analytics: For the descriptive category, both batch and stream processing may be included to create monitoring, diagnosis or reporting applications, but to support also the training of a machine learning model.
Predictive analytics applies "statistical and machine learning techniques", which may be used for, e.g., predictive maintenance or material consumption, while "prescriptive analytics uses the results from predictive analytics" to develop recommendations, process optimization and prevention of failures .
Next to the use case and envisioned category of analytics task, it is important to define how the specific data need to be prepared and what kind of pre-analysis steps should be executed (e.g., ), such as filtering or removal of invalid or irrelevant data , handling of data gaps where, e.g., the sensor did not work, what patterns should be detected or which parameters are needed for the visualization of results, to name only a few.The definition and application of data quality criteria are essential at this step.
While talking about descriptive analytics, the terms stream and batch processing have been mentioned.A major deciding factor for the type of analysis is time.Is there a requirement for real-time analysis or not?
Depending on the answer, stream analytics/real-time analytics or batch analytics may be implemented: Stream Analytics: Stream Analytics or Stream Processing indicates that an incoming data stream, e.g., generated from one or more sensors attached to a CPS, is being analyzed immediately, utilizing "in place" algorithms which need a limited data window to operate and are computational sparse.Aggarwal (2013) highlights, "with increasing volume of the data, it is no longer possible to process the data efficiently by using multiple passes.Rather, one can process a data item at most once" .To meet the requirements of real-time processing, the incoming data are being separated into small frames and immediately forwarded into an "analyzer module" to generate knowledge for reactive measures or monitoring inside [35] [ thus being motivated to evaluate different machine learning (ML) algorithms regarding their applicability for analyzing CPS data streams .
Batch Analytics: Batch Analytics follow the principle of gathering data for some time before running a fitting analysis or ML method.Depending on the batch size, this may lead to big data analytics (e.g., ) and the necessity of applying technologies for handling huge amounts of data.A well explored and integrated, yet continuously developing set of methods for batch processing are deep learning networks, enabling the batch-wise processing of large volumes of data with a large input-feature space .
Production plants oftentimes run logging or monitoring applications, building up historians of accumulated data which might also be part of the analysis process.The purpose of data accumulation instead of immediate analysis is mostly due to the need to create reports (e.g., monthly) or visualize timeline developments or machine workload.Analyzed trends or what is part of predictive analytics also depends on past data instead of only ad hoc available data streams.
Overall, it is important to decide which data may be part of the stream processing and analysis and which ones are accumulated, e.g., with the help of cloud computing.This is not an either/or decision.Some data may also be analyzed immediately, while afterwards being stored in the batch/cloud to be part of another analysis, e.g., timeline analyses, or being used to offline-update deployed algorithms.These types of data are especially valuable as they offer a dual benefit and knowledge for ad hoc and long-term decisions.

Simulation and Decision Making in Smart Factories Using Digital Twins
Simulation in Smart Factories is directly associated with the concept of the "Digital Twin" (DT).
Alternatively, the terms "Digital Shadow" (DS) or "Digital Model" (DM) are being used in the literature as well, but they do not necessarily have the same meaning .The term digital twin indicates that the physical device, system or entity is being represented in a digital form which has identical characteristics and allows to interact, test or manipulate it in the digital space.Before explaining more about the DT, it is important to understand the differences to CPS or IoT as they are core building blocks of the Smart Factory and also bridge a gap between physical and cyber world.Tao et al. (2019) resume that "CPS and DTs share the same essential concepts of an intensive cyber-physical connection, real-time interaction, organization integration, and in-depth collaboration" but they are not the same concept ."CPS are multidimensional and complex systems that integrate the cyber world and the dynamic physical world", while DTs focus more on the virtual models, the matching of their behavior to the physical counterpart and feedback flow of data between both .Harrison, Vera and Ahmad (2021) envision that DTs may support the whole lifecycle and engineering of CPPS .Jacoby and Usländer compared the concepts of DT and IoT and related standards or representation models .They resume that while they are similar and both "center on resources", DTs aim for optimization and automation, applying computer science concepts such as AI or machine learning in an integrative manner .
DTs are being used to simulate situations or decision alternatives which may not be executed easily in the physical world during operation.The Industrial Internet Consortium and Plattform Industrie 4.0 (2020) summarized in a joint whitepaper, that the DT is "adequate for communication, storage, interpretation, process and analysis of data pertaining to the entity in order to monitor and predict its states and behaviors within a certain context" .DT has advantages in the case of decision making, analysis of [16] [40] [22] [1] [41] [42] [9] [9] [43] [44] [44] [45] gathered data or optimization of the physical counterpart.It is important to define the scope and purpose as the DT may address various aspects next to simulation .Martinez et al. (2021) recently conducted research where they reflected that DTs can be implemented on all levels of the classical automation pyramid while applying AI concepts, thus also indicating that a DT implementation is not only focused on one level but is a holistic approach .Harrison, Vera and Ahmad (2021) also see an evolution of the automation pyramid due to "data-driven manufacturing capabilities" .
The creation of a DT requires key aspects such as the availability of underlying models, service interfaces for connecting to the DT, and data collected from the physical entity it is related to .Kritzinger et al.From a knowledge integration perspective, the data flow is essential for the concept of the DT as it allows the creation of knowledge with the help of data analysis or machine learning methods, thus feeding the DT with new knowledge from its physical counterpart.At this stage there is an interrelation to the section of stream analytics (see Section 3.3.2) as the real-time simulation of the DT would require the application of real-time data processing and stream analytics as well.While real-time data may be a factor for the DT to show the current state of the physical entity with the help of a visualized DT, historical or accumulated data during, e.g., the operation process of the physical entity, allow more complex simulations for optimization, failure studies or predictive maintenance, thus building a bridge to batch analytics ( s e e Section 3.3.2).To realize these complex applications, authors research how concepts from AI, machine learning or other data science aspects such as big data analytics, may be applied in an efficient manner, or for which use cases of the Smart Factory they are applicable (e.g., ).

Semi-and Unstructured Data Integration
In a Smart Factory, knowledge can be mined from a range of data types.Sensor readings, for example, represent a structured data type, where the meaning of each value is definite.However, process documentations in modern industries also hold a great potential to capture expert knowledge in Smart Factories.Such documentations include verbal descriptions of procedures, failures, maintenance, etc. and it reflects inherently the experience of the human who is authoring the document.These user-specific inputs from the experts, like textual formats in general, are only available in a semi-structured or unstructured form.The latter type represents a completely free user input, whose meaning is only determined by analyzing the written text.An example of this type can be a customer complaint report.
The former type, semi-structured data, features some information about the free text that can help in determining its meaning.For example, a failure report can take the form of a table, in which certain fields [46] [47] [43] [45] [42] [46] [48] [9] [45] [9] [49] [50] are filled with free textual input.Here, although the cell content is free text, the cell itself is predefined by the table structure to contain information about a certain aspect of the failure, e.g., the description of a failure reason, which makes the overall data in the table semi-structured.
Extracting knowledge from semi-and unstructured data requires methods that can automatically analyze the textual content to mine the information and represent its meaning.For this reason, we will highlight in this section the role of text mining and semantic knowledge representation for extracting and modeling knowledge from these two types of data, in order to integrate this knowledge into the overall decisionmaking process of a Smart Factory. .This is a type of engineering design log record of frequently required changes during the design phase, which are collected for products and their components.This approach has been observed to significantly help to summarize the main features and changes to the product during the development process of previous projects.
Smart factories require architectures that integrate knowledge and focus on textual analysis of unstructured data.One approach to actively utilize unstructured data is the creation of an Intelligent Document and therefore the generation of texts, e.g., for reporting purposes, which are generated on demand and may include interactive elements .An intelligent document collects and contains references to the identified process documentation and relevant extracted knowledge sources.This includes expert identifiers as explicit entities to indicate the source creator and therefore potentially more implicit process knowledge.Such linked resources can be either followed by the user through generated [55] [56] [57] [26] links or be imported into the intelligent document to be composed into one homogenous text.Besides reporting purposes, additional applications can be the analysis and integration of results from past incident analyses as a so-called "lessons learned" documentation.In the case of subsequent changes to product generations and processes, identified errors resulting from incident analyses (e.g., log analysis) and error causes during manufacturing (machine and production reports) can be considered.Process Enrichment: In the process enrichment phase, relevant content is collected from the MKR structure, based on the relationships between elements and the underlying texts, and put into the format of an intelligent document.Each generated, intelligent document is a composition of identified knowledge assets.Based on the interaction of users, links to further resources can be followed and the document can be modified on demand and further enriched by additional asset recommendations.
Automated Update Cycle: The automatic enrichment of the intelligent documents runs iteratively and continuously and modifies documents or adds content to new assets when new or changed source texts or extraction results are available (e.g., new metadata such as keywords, entity links, related process contexts, new incident reports).

Semantic Knowledge Representation in Smart Factories
Knowledge graphs (KG), or knowledge maps, are graphical representations of a knowledge base.Whether ontologies or other semantic representations that are based on relations between graph entities, such networks are well suitable for knowledge representation and decision support in complex environments.
As a knowledge representation tool, knowledge graphs are constructed through analyzing available information and representing it and its relevant semantic relationships as a graph through using rulebased integration mechanisms or adhering to a formal representation structure.The added value of such semantic representations is rooted in their ability to describe the relationships between pieces of information.This interconnectivity and contextualization of information enables it to be used as a medium of stored knowledge.To extract information from a KG, knowledge querying procedures are used.Interaction with the knowledge graph, in terms of their construction and querying, is essential for their utilization.Several approaches for this process have been investigated, including Triple Pattern Fragments [58] [26] [59] [59] [60] [61] [62] [63] al. (2017) conducted a literature survey of publications between 2007 and 2016 and concluded from more than 400 publications direct relations between smart factories and the topics of real-time processing, wireless communication, (multi)-agent solutions, RFID, intelligent, smart, flexible and real-time manufacturing, ontologies, cloud computing, sustainability and optimization , identifying main areas but also enablers for a Smart Factory.The overall question this work tries to answer is "How do Industry 4.0 environments or Smart Factory plants of the future look like and what role does data and knowledge play in this development?"Tao et al., (2019), referencing Zhong et al. (2017) , summarize that "Manufacturing is shifting from knowledgebased intelligent manufacturing to data-driven and knowledge-enabled smart manufacturing, in which the term "smart" refers to the creation and use of data" .This shift has to be considered with the help of concepts known from the disciplines of data analytics, knowledge management (KM) and knowledge integration, machine learning and artificial intelligence.It presents a change from "knowledge-based", explicitly represented, qualitative data to the consideration of quantitative data in which meaningful patterns trigger manufacturing decisions, while being informed by supporting knowledge representations, such as ontologies.Especially the pronounced roles of data and knowledge are key aspects of future manufacturing environments and products.

Figure 1 .
Figure 1.Smart Factory Environment and Knowledge Integration.
Smart Factory environment: "A human labor on the one side is assisted by smart devices and machines (human-machine cooperation) and on the other should interact and exchange information with intelligent machines (human-machine collaboration)".This differentiation indicates that the human worker has benefits which will make their work process easier due to assisted technical and smart solutions, but also pose challenges as the worker needs to learn to work together with this new technical and digitized work environment.Vogel-Heuser et al. (2017) highlight that the human worker is now interconnected with CPS with the help of multi-modal human-machine interfaces .The automation and application of AI are factors which question (a) the role of the human worker in the work process as well as (b) their abilities in decision making as it might be influenced by or contrary to the recommendations or actions of the AI application.An AI "would always base its decision-making on optimizing its objectives, rather than incorporating social or emotional factors" , posing a challenge of who is the main decision maker in the Smart Factory and if the explicit and implicit knowledge and experience of the human worker are more valuable than the programmed AI logic, e.g., based on data and the execution of machine learning algorithms.Seeber et al. (2019) resume that "The optimal conditions for humans and truly intelligent AI to coexist and work together have not yet been adequately documentation or reports created by the experts inside the Smart Factory environment.The structured data are mostly processed as incoming data streams which are stored in a database (locally or inside a cloud) and may either be analyzed in real-time or at a later stage in a batch.Machine learning methods might be applied for the task of learning and reasoning, especially if the application requires tasks such as predictive maintenance, decision support, or providing recommendations.Unstructured data can be utilized by pre-processing with the help of text mining methods such as entity and relationship recognition or semantic enrichments before being composed in a knowledge graph.A knowledge graph allows an enrichment with results from the analyzed structured data stream as well.All results can contribute to different applications in the context of smart manufacturing, such as monitoring, digital twin simulations or decision support.

Fog
Computing: Next to Cloud Computing, Fog Computing, while not as prominent, still plays an important role in the implementation of computing resources in the Smart Factory.The OpenFog reference architecture of the OpenFog Consortium (2017) defines it as: "A horizontal, system-level architecture that distributes computing, storage, control and networking functions closer to the users along a cloud-to-thing continuum" .Oftentimes it is also defined in relation to the other two types of computing: Cloud and Edge.Hu et al. (2017) summarize the concept of fog computing as "Fog computing extends the cloud services to the edge of network, and makes computation, communication and storage closer to edge devices and end-users, which aims to enhance low-latency, mobility, network bandwidth, security and privacy" .The term "edge of the network" defines devices such as routers or gateways available for the edge devices to connect to the network.These devices are called fog nodes and offer the first central computing unit from the perspective of the edge device.Most of the time, fog nodes themselves are again connected to the cloud layer thus covering the computing unit in between .Fei et al. (2019) . Training models may be created and trained at different computing points, e.g., edge nodes .Turaga and van der Schaar (2017) summarize different forms of data streaming analytics features, such as Streaming and In-Motion Analysis for on the fly analytics, and Time-varying Analysis .Stream analytics require local processing units, which is why the concepts of fog or edge computing are prevalent for this type of processing.A transfer of stream data into a cloud environment before it is being analyzed might lead to too much latency and a delay in reaction time as the results oftentimes lead to an immediate action inside the production plant.Summarizing, Fei et al. (2019) proclaim "data stream analytics [as] one of the core components of CPS"

( 2017 )
conducted a literature study regarding DM, DS and DT and tried to differentiate between the terms based on the data flow between the physical and digital object.In the case of a Digital Model, they see only manual data flows; the Digital Shadow, however, also supports automated data flow from physical to digital object, while the Digital Twin supports a bidirectional automated data flow between the physical and digital object .Schluse et al. (2018) combine these aspects and summarize that a DT "integrates all knowledge resulting from modeling activities in engineering (digital model) and from working data captured during real-world operation (digital shadow)" .Hänel et al. (2021) reflect from a data and information perspective on the application possibilities of DTs "for High-Tech Machining Applications " and present a model targeting a "shadow-twin transformation loop" based on the acquired feedback data .The models of a DT may cover different details such as geometrical, material or physical properties, behavior or rules as well as data models .The complexity and possibilities for simulation applications in the Smart Factory based on DT depend highly on the level of detail of the DT and the available data gathered by or from the physical device and its integration and analysis in the DT.DTs may be independent/discrete or they are part of a composition of DTs thus allowing, e.g., the representation of a production line of different physical entities .Tao et al. (2019) summarize this as the unit, system and system of system level of DTs .From a practical perspective, Autiosalo et al. (2021) implemented different DTs with varying update times on the asset, fleet and strategic level for an overhead crane scenario, giving special focus to API standards and data flows .
Further text generation techniques can be used to improve the blending of imported texts .For the development of intelligent documents, Zenkert et al. (2018a) propose a four-step process : Acquisition and pre-indexing: In the acquisition and indexing phase, all relevant knowledge assetsincluding experts and extracted content from the knowledge base -are considered for extraction.Domain specific information such as textual information from design and process documentation is considered and subsequently identified through text analysis.Initialization: In the initialization phase, relevant knowledge sources are collected on the basis of the acquisition and indexing results, and metadata is assigned to documents.To sustain the extraction context and metadata of extraction algorithms, such results are stored using a graph-based knowledge representation concept, called Multidimensional Knowledge Representation (MKR) .Based on the graph-based MKR of each document, other entities and semantically related content from other documents can be referenced .Each extracted document is processed using text mining techniques to feed into the meta-structure of the MKR.
Yahya et al. (2021) surveyed the use of semantic technologies in the scope of industry 4.0 and smart manufacturing .They point out the multiple domains, in which KGs are involved to solve production challenges, such as predictive maintenance, resource optimization, and information management.They also propose an enhanced and generalized model, namely the reference generalized ontological model (RGOM), based on RAMI 4.0.Another study by Beden et al. (2021) analyzes the role of semantic technologies in the asset administration shells in RAMI 4.0 .The authors show that semantic approaches enhance the way physical assets are digitally represented through adding an element of formalism to the knowledge representation.

Table 1 .
Overview of Knowledge Integration on a Technological Level.
Tao et al. are even speaking of "data-driven smart manufacturing" .This means a continuous generation of data streams, leading to big data which require processing and analysis .The following Table1summarizes how these data may be used or processed to generate knowledge inside the Smart Factory.

Application of Text Mining and Text Generation in Smart Factories Text
mining is a collection of methods and algorithms intended for information extraction and knowledge discovery from structured, semi-structured and unstructured textual data .The utilization of text mining methods and approaches has a wide spectrum in the state of the art.Its applications include: Information extraction and retrieval: The information extraction process can be described as turning the unstructured textual data into structured and usable information.Since textual data are prone to including inconsistencies and human errors or potentially irrelevant data, a pre-processing phase takes place before the information extraction.After the raw text is pre-processed, several approaches have been addressed in the literature for the extraction of knowledge from the text, including Named Entity In contrast to classification, clustering and topic modelling are unsupervised learning approaches.Clustering and topic modelling have been applied in the design and engineering fields.They, e.g., enable the analysis of previous textual data, collected from various process steps and activities, such as emails, change logs and regular reports, for knowledge extraction and reuse.Grieco et al. (2017) have applied clustering on free text written on the Engineering Change Request (ECR) Classification, clustering and topic modelling: Classification is one of the important methods that allow creating a connection between a document and a search query.It is utilized in several applications, including the medical, commercial and industrial design processes.In the latter, Jiang et al. (2017) have developed an algorithm that predicts the importance of a product feature based on written user reviews .Traditional text classification methods include Naïve Bayes, Support Vector Machines (SVM), and k-Nearest Neighbor.All those algorithms depend on the features of a document and the predefined labels that classify this document into a certain category.Unlike traditional approaches, which use Term Frequency-Inverse Document Frequency (TF-IDF), cosine similarities or probability functions, machine and deep learning algorithms learn to map document features to the available labels through creating a matching function that enables the system of categorizing a new document to one or more of the predefined classes based on its features.