13. Manufacturing Analytics, Digital Systems and AIIntroduction and ContextManufacturing cost and productivity management has traditionally depended on periodic reports, standard costing, production records, maintenance logs and managerial experience. These mechanisms remain useful, but they are often too slow and fragmented for highly variable, digitally integrated production environments. A production manager may need to know not only what a product cost yesterday, but also what it is costing now, why a process is deviating, whether an order can be completed on time, and whether an equipment failure is likely to occur before the next shift. Manufacturing analytics and digital systems address these questions by connecting operational data with financial, engineering and managerial decision-making. Enterprise resource planning (ERP) systems provide an integrated business record; manufacturing execution systems (MES) coordinate and record shop-floor activity; industrial Internet of Things (IIoT) devices capture machine and process conditions; digital twins represent assets or processes computationally; process mining reveals how work actually flows; and predictive analytics and artificial intelligence (AI) support forecasting, anomaly detection, scheduling and maintenance. The central managerial issue is not simply the adoption of technology. Digital systems create value only when data are reliable, processes are clearly defined, models are fit for purpose, and decisions remain accountable. Poor master data can produce precise but misleading costs. An inaccurate predictive model can encourage unsafe maintenance decisions. An insecure connected machine can expose production systems to disruption. Consequently, manufacturing analytics must be treated as an integrated socio-technical capability involving people, processes, technology, governance and economics. Learning ObjectivesAfter studying this chapter, the learner should be able to: 1. Explain the roles and relationships of ERP, MES, IIoT, digital twins, process mining, predictive analytics and AI. 2. Describe how digital systems support real-time costing, forecasting, anomaly detection, scheduling and predictive maintenance. 3. Evaluate manufacturing data quality, model performance and implementation readiness. 4. Analyse the managerial, financial, cybersecurity, ethical and operational risks of digital manufacturing. 5. Design a phased approach for implementing analytics in a production environment. 6. Interpret an applied manufacturing analytics case and recommend appropriate actions. From Transaction Records to an Integrated Manufacturing Intelligence SystemAn ERP system integrates functions such as finance, procurement, inventory, sales, human resources and production planning. It normally contains bills of material, routings, purchase orders, inventory transactions, work orders, labour records and accounting postings. ERP is therefore the principal source for planned costs, material valuation, order status and financial control. Its weakness is that it may record production at relatively broad intervals and may not capture high-frequency machine conditions. An MES occupies the operational layer between planning systems and the shop floor. It can dispatch work orders, record start and completion times, track work-in-process, collect labour and machine data, enforce quality checks, manage electronic work instructions and maintain genealogy or traceability. MES data make it possible to compare planned cycle time with actual cycle time, identify waiting and rework, and calculate operational measures such as overall equipment effectiveness (OEE). IIoT refers to connected sensors, controllers, machines and communication networks used in industrial settings. Sensors can measure temperature, vibration, pressure, energy consumption, speed, torque, humidity and acoustic signals. The value of these data depends on context. A vibration reading becomes useful when associated with a particular asset, operating condition, product, speed and time. Data without context may create false alarms or obscure the actual cause of a problem. A practical architecture commonly includes five layers: - The physical layer, consisting of machines, sensors, tools and products.
- The control and connectivity layer, including programmable logic controllers, gateways and industrial networks.
- The operational layer, including MES, historians and quality systems.
- The enterprise layer, including ERP, supply-chain and financial systems.
- The analytics and decision layer, containing dashboards, models, alerts and decision-support applications.
Integration may be achieved through application programming interfaces, standard industrial protocols, event streaming or a data platform. Integration should not mean that every system stores every data item. Instead, the organization should define data ownership, identifiers, time standards, interfaces and the purpose of each data exchange. Digital Twins and Process MiningA digital twin is a computational representation of a physical asset, process, product or system that is linked to current or historical data. A static simulation model may estimate how a process should behave; a digital twin additionally uses operational data to monitor and update that representation. Digital twins can range from a machine-level model predicting tool wear to a factory-level model examining capacity, material flow and energy use. A useful digital twin must have a defined purpose. For example, a maintenance twin may estimate remaining useful life, whereas a production twin may test alternative schedules. A twin that attempts to represent everything may become expensive, opaque and difficult to maintain. Model fidelity should therefore be proportional to the decision being supported. Process mining uses event logs to reconstruct and analyse the actual sequence of activities in a process. A work order may generate events such as release, material issue, operation start, operation completion, inspection, rework and shipment. Process mining can reveal bottlenecks, repeated loops, unauthorized deviations, excessive waiting and differences between standard operating procedures and actual practice. It is especially useful when managers believe that a process follows one route but the data show several unplanned variants. Three common process-mining tasks are process discovery, conformance checking and process enhancement. Process discovery derives a process model from event data. Conformance checking compares actual behaviour with a reference model. Enhancement combines process information with performance data, such as cost, lead time or defect rate, to identify improvement opportunities. Real-Time Costing and Productivity MeasurementTraditional product cost is often calculated after production using material consumption, labour hours, overhead rates and variance analysis. Digital integration permits a more timely view. A real-time or near-real-time cost estimate may combine actual material issues, energy consumption, labour time, machine time, scrap, rework, tooling consumption, subcontracting and applicable overhead drivers. A simplified current-cost model for order j may be expressed as: Current Cost_j = Direct Material_j + Direct Labour_j + Machine Cost_j + Energy_j + Quality and Rework_j + Allocated Overhead_j. The result is not necessarily a final accounting cost. Some overheads are known only at period end, and sensor readings may require validation. The estimate should therefore display its status, such as actual, accrued, estimated or allocated. This distinction prevents operational estimates from being confused with audited financial figures. Digital costing can improve decisions in several ways. A manager may compare the cost of producing an order on two machines, identify the economic effect of excessive setup time, evaluate the cost of expedited material, or determine whether a low-volume order remains commercially attractive. When connected to scheduling, the system can estimate the cost consequences of late delivery, overtime and changeovers. Productivity analysis also becomes more granular. Labour productivity can be examined by productive time, waiting, changeover, rework and indirect activity. Machine productivity can be analysed through availability, performance and quality. OEE is commonly expressed as: OEE = Availability × Performance × Quality. Although useful, OEE should not be treated as a complete measure of factory productivity. A machine may have high OEE while producing low-value products, consuming excessive energy or creating downstream bottlenecks. Productivity measures must therefore be linked to flow, customer value, cost, quality and delivery performance. Forecasting, Anomaly Detection and SchedulingForecasting models support decisions concerning demand, material requirements, capacity, labour, energy and maintenance. Time-series methods may use historical patterns, seasonality and trends. Machine-learning models can incorporate explanatory variables such as promotions, customer segments, weather, supplier performance or product mix. The appropriate model depends on data volume, stability, interpretability requirements and the cost of forecast error. Forecast accuracy should be evaluated using measures such as mean absolute error, mean absolute percentage error, root mean squared error or forecast bias. No single measure is universally appropriate. Percentage-based measures can be problematic when actual demand is close to zero, while squared-error measures give greater weight to large errors. A forecast should also be judged by its operational consequence: an apparently small error may be serious for a constrained component. Anomaly detection identifies observations that differ materially from expected behaviour. Statistical control limits, moving averages, regression residuals, clustering and autoencoder models can all be used. An anomaly is not automatically a failure. It may represent a sensor fault, a new but legitimate product, an unusual raw-material batch or an operating condition not represented in the training data. Alerts therefore require investigation and contextual rules. Scheduling applications use optimization, heuristics, simulation or AI-assisted methods to assign jobs to machines and sequence operations. Important constraints include due dates, setup times, labour availability, material availability, tooling, maintenance windows, batch sizes and quality requirements. An algorithm that minimizes machine idle time may increase changeovers or delay urgent orders. The objective function must reflect the organization’s actual priorities, often through a weighted combination of tardiness, setup cost, inventory, energy and utilization. Human planners remain important because schedules operate in uncertain environments. A robust system should allow planners to inspect assumptions, test alternatives, override recommendations and record the reason for an override. The purpose of AI-assisted scheduling is not merely automation; it is improved decision quality and response speed. Predictive Maintenance and Remaining Useful LifeCorrective maintenance repairs equipment after failure, while preventive maintenance performs intervention at planned intervals. Predictive maintenance uses condition data and analytical models to estimate the probability or timing of failure. Typical inputs include vibration, temperature, oil condition, current, pressure, cycle count, alarm history and maintenance records. A predictive-maintenance workflow normally includes asset identification, sensor selection, data collection, signal preparation, failure-mode analysis, model development, alert thresholds, maintenance planning and feedback. Reliability-centred maintenance is useful at the design stage because it links each asset’s functions and failure modes to appropriate maintenance tasks. Models may classify whether a failure is likely within a defined horizon, estimate remaining useful life, or detect a change from normal behaviour. Evaluation must consider false negatives and false positives. A missed failure may cause safety risks and major downtime, whereas an unnecessary maintenance intervention may consume labour, parts and equipment life. Thresholds should therefore reflect the consequence and detectability of each failure mode. Predictive maintenance creates value only when predictions lead to effective action. If spare parts are unavailable, technicians lack capacity, or production schedules cannot accommodate intervention, a highly accurate prediction may have limited economic value. Maintenance analytics must be integrated with work management, inventory and scheduling systems. Data Quality, Model Governance and ExplainabilityData quality is multidimensional. Relevant dimensions include accuracy, completeness, consistency, timeliness, uniqueness, validity and traceability. Common manufacturing problems include incorrect bill-of-material quantities, duplicated asset identifiers, missing downtime codes, inconsistent units, unsynchronised clocks, manual workarounds and unrecorded rework. A data-quality programme should define critical data elements, assign ownership, establish validation rules and monitor data-quality indicators. For example, a plant may track the percentage of work orders with valid start and completion times, the proportion of downtime events with approved reason codes, and the percentage of sensors reporting within expected intervals. Data cleansing should not replace process correction. If operators routinely select a generic downtime code because the interface is inconvenient, the underlying process must be improved. Model governance includes version control, documented assumptions, training-data lineage, approval procedures, performance monitoring and retirement rules. Models can degrade when products, suppliers, machines or operating conditions change. This phenomenon, often called model drift, requires periodic validation. Explainability is particularly important when an AI recommendation affects safety, quality, employment, customer commitments or significant expenditure. A model should communicate relevant factors, confidence or uncertainty, and the limits of its training data. Explanations need not expose every mathematical detail, but users should be able to understand why an alert or recommendation was generated and what evidence supports it. Cybersecurity, Ethics and ResponsibilityConnected manufacturing expands the attack surface. Risks include unauthorized access to control systems, ransomware, manipulation of production data, theft of proprietary process information, insecure remote access and disruption of industrial networks. Cybersecurity must be designed into the system rather than added after deployment. Important controls include network segmentation, least-privilege access, multifactor authentication, secure configuration, patch management, asset inventories, encrypted communication where appropriate, offline backups, incident-response plans and supplier-security requirements. Operational technology requires special care because an indiscriminate patch or shutdown can affect safety and continuity. Ethical issues also arise. Worker-generated data may be used for legitimate process improvement but can become intrusive if used for excessive surveillance or unfair performance ranking. Automated decisions may reproduce historical bias, particularly in labour allocation, promotion or disciplinary systems. Organizations should define legitimate purposes, restrict access, protect personal information and provide mechanisms for review and appeal. Accountability cannot be transferred to an algorithm. Management remains responsible for decisions, controls and outcomes. Safety-critical applications require appropriate human authority, fail-safe operation and compliance with applicable industry, employment, privacy and cybersecurity requirements. An Implementation RoadmapSuccessful implementation generally begins with a business problem rather than a technology purchase. The organization should identify a measurable pain point, such as unplanned downtime, unexplained cost variance, late orders or excessive energy consumption. It should then establish a baseline and estimate the value of improvement. A phased roadmap may include: 1. Define the decision, process owner, performance baseline and success criteria. 2. Map data sources, interfaces, quality problems and cybersecurity constraints. 3. Select a limited pilot with manageable scope and visible operational value. 4. Build a minimum viable data pipeline and validate the data with shop-floor personnel. 5. Develop and test the analytical model against historical and live cases. 6. Integrate alerts or recommendations into daily management and work systems. 7. Train users, establish governance and measure operational and financial outcomes. 8. Scale only after confirming technical reliability, adoption and economic benefit. A business case should include implementation cost, integration effort, training, cybersecurity, model maintenance and change-management costs. Benefits may include reduced downtime, lower scrap, improved schedule adherence, lower inventory, reduced energy use and better cost visibility. Benefits should be measured against a credible baseline rather than assumed from vendor claims. Illustrative Case: Predictive Maintenance and Cost Visibility in a Metal-Component PlantBackgroundThe following is an illustrative case. A medium-sized metal-component plant operates computer numerical control machines, heat-treatment equipment and inspection stations. Its ERP system contains work orders and material costs, while an MES records production quantities and operation times. Maintenance records are maintained separately in spreadsheets. Situation and ProblemThe plant experiences repeated spindle failures on two machining centres. Failures cause urgent repairs, delayed orders and overtime. Managers know the annual maintenance expense but cannot determine the cost of each failure by order. Operators also report that actual cycle times are increasing, although the standard cost system has not been updated. AnalysisA cross-functional team first reconciles machine identifiers across ERP, MES and maintenance records. It discovers that one machine has two different identifiers and that downtime is frequently recorded as “mechanical” without a specific failure mode. Vibration and spindle-temperature sensors are installed for a pilot period. The team combines these signals with cycle time, tool changes, product family and maintenance history. The initial anomaly model identifies an increase in vibration combined with longer cycle time before several known spindle problems. It also produces false alerts during a high-speed product family. Investigation shows that the model had not adequately represented product-specific operating conditions. The team therefore adds product and speed variables and establishes different alert thresholds for different operating regimes. For costing, the plant links machine time, energy estimates, material consumption, scrap and rework to work orders. The system labels machine costs as estimated until the accounting period is closed. Managers can now compare the cost of continuing production on the deteriorating machine with the cost of transferring work to an alternative machine. Approach and SolutionThe plant does not automate maintenance decisions completely. An alert creates a technician inspection task. The technician records the finding, confirms or rejects the alert, and updates the failure-mode database. A weekly meeting reviews alerts, false positives, avoided failures, schedule effects and cost consequences. Access to sensor and worker data is restricted, and the plant documents how data are used. OutcomeThe principal outcome is improved decision visibility rather than a single numerical saving. Maintenance planning becomes more proactive, production planners can consider equipment condition when sequencing work, and finance receives better evidence for cost variance analysis. The pilot also reveals that data-quality improvement and common asset identifiers are prerequisites for scaling the system. Learning PointsThe case demonstrates that predictive analytics is an organizational process, not merely a model. Reliable identifiers, contextual data, human verification, integration with maintenance work management and transparent costing are all necessary. It also shows why false alerts should be analysed as learning opportunities rather than treated only as technical failures. Challenges and Common MistakesSeveral implementation mistakes recur. Organizations may purchase advanced software before clarifying the decision to be improved. They may attempt to collect every possible data point without a data architecture, or select a model based on accuracy alone while ignoring interpretability and economic consequences. Another frequent error is to run a pilot that never enters the daily operating process. Additional risks include resistance from operators who were not involved in design, underestimation of integration and cybersecurity costs, excessive dependence on a single vendor, poor change control, and failure to maintain models after deployment. Digital dashboards can also encourage metric fixation: employees may optimize the visible measure while harming quality, safety or total cost. Best practice is to combine technical development with process ownership, operator participation, financial evaluation and governance. Each application should have a clearly defined decision, data owner, model owner, user group, escalation path and retirement condition. The organization should also preserve manual fallback procedures for critical operations. Current Developments and Emerging DirectionsManufacturing systems are moving toward edge analytics, in which data are processed close to machines to reduce latency and dependence on continuous cloud connectivity. Interoperability standards and semantic models are becoming more important as factories combine equipment from different suppliers. Synthetic data and simulation can help address limited failure examples, although they must be validated against real conditions. Generative AI is increasingly used for natural-language access to maintenance records, work instructions, engineering documents and operational databases. Its use requires strong controls because generated responses may be incomplete or incorrect. In industrial settings, generative AI is more appropriate as an assistant for retrieval, explanation and draft analysis than as an unsupervised controller of safety-critical equipment. The broader direction is toward human-centred, composable and sustainable manufacturing intelligence. Energy, carbon, material circularity and resilience are being incorporated into optimization objectives alongside cost, quality and delivery. The competitive advantage will come not from having the largest volume of data, but from converting trustworthy data into timely, responsible and economically sound decisions. Chapter SummaryManufacturing analytics connects operational, financial and engineering information to improve decisions concerning cost, productivity, forecasting, anomalies, scheduling and maintenance. ERP provides enterprise integration, MES captures operational execution, IIoT supplies machine and process data, digital twins represent dynamic systems, and process mining reveals actual workflows. Predictive analytics and AI can support forecasting, condition monitoring and schedule optimization, but their value depends on data quality, contextual understanding and integration with human decisions. Real-time costing should distinguish actual, estimated and allocated values. Productivity measures such as OEE are useful but must be interpreted with cost, quality, delivery and flow. Predictive maintenance requires reliable asset identities, meaningful failure data and a connection between predictions and maintenance action. Cybersecurity, privacy, explainability, model governance and accountability are essential. A phased, problem-driven implementation with clear ownership and measurable benefits is more reliable than a technology-first transformation. Key TermsERP: An integrated system managing enterprise transactions such as finance, inventory, procurement and production planning. MES: A system that manages, records and controls manufacturing execution on the shop floor. IIoT: Connected industrial machines, sensors and devices that collect and exchange operational data. Digital twin: A data-linked computational representation of a physical asset, process, product or system. Process mining: Analysis of event logs to discover, compare and improve actual process flows. Real-time costing: Current or near-current estimation of the cost incurred by an order, product or process. OEE: A measure combining availability, performance and quality of equipment operation. Predictive analytics: Use of statistical or machine-learning methods to estimate future outcomes or conditions. Anomaly detection: Identification of observations that differ materially from expected behaviour. Predictive maintenance: Maintenance planning based on predicted equipment condition or failure probability. Remaining useful life: Estimated operating time before an asset or component requires failure-related intervention. Model drift: Decline in model performance caused by changes in data, products, equipment or operating conditions. Data quality: The degree to which data are accurate, complete, consistent, timely, valid and traceable. Data lineage: Documentation of where data originate, how they are transformed and where they are used. Explainability: The ability to communicate the factors and reasoning underlying an analytical output. Edge analytics: Processing data near the source machine or device rather than exclusively in a remote platform. Network segmentation: Division of a network into controlled zones to limit unauthorized movement and disruption. Process conformance: Comparison of observed process behaviour with an approved or reference process model. Model governance: Controls for approving, documenting, monitoring, changing and retiring analytical models. Human-in-the-loop: An arrangement in which people review, interpret or authorize automated recommendations. Review QuestionsShort Answer Questions1. What are the principal differences between ERP and MES? 2. Define a digital twin and explain why its purpose should be specified. 3. What does OEE measure, and why is it insufficient as a complete productivity measure? 4. Identify four dimensions of manufacturing data quality. 5. Why can an anomaly alert not be treated automatically as evidence of equipment failure? Long Answer Questions1. Explain how ERP, MES and IIoT can be integrated to support near-real-time manufacturing cost management. 2. Discuss the workflow, benefits and limitations of predictive maintenance in a production plant. 3. Examine the role of process mining in identifying manufacturing bottlenecks and deviations. 4. Analyse the cybersecurity, ethical and governance issues associated with connected manufacturing systems. 5. Develop a phased implementation roadmap for an AI-supported manufacturing analytics project. Analytical / Application Questions1. A plant has accurate machine sensor data but inconsistent asset identifiers across its ERP, MES and maintenance systems. Analyse the likely consequences and propose corrective actions. 2. A scheduling model reduces machine idle time but increases setup frequency, overtime and late deliveries. How should management redesign the objective function and evaluation process? 3. A predictive-maintenance model generates many false alarms on one product family but performs well on others. Diagnose possible causes and recommend a technically and managerially appropriate response. 22. Multiple Choice Questions with AnswersQuestion 1Which system is primarily responsible for recording and coordinating shop-floor execution, work instructions and production events? A. ERP B. MES C. CRM D. Payroll system Correct Answer: B. MES Question 2Why should a near-real-time manufacturing cost estimate distinguish between actual, estimated and allocated amounts? A. To eliminate the need for financial accounting B. To prevent operational estimates from being confused with finalized accounting costs C. To ensure that all overhead is ignored D. To make sensor data unnecessary Correct Answer: B. To prevent operational estimates from being confused with finalized accounting costs Question 3A machine shows an unusual vibration reading during a newly introduced product run. What is the most appropriate initial interpretation? A. The machine has definitely failed B. The sensor should immediately be removed C. The observation is an anomaly requiring contextual investigation D. The production order must automatically be cancelled Correct Answer: C. The observation is an anomaly requiring contextual investigation Question 4Which combination correctly represents OEE? A. Cost × Quality × Inventory B. Availability × Performance × Quality C. Labour × Material × Overhead D. Demand × Capacity × Utilization Correct Answer: B. Availability × Performance × Quality Question 5What is the primary purpose of process conformance checking? A. To compare actual process behaviour with a reference model B. To calculate employee salaries C. To encrypt sensor signals D. To replace all production schedules Correct Answer: A. To compare actual process behaviour with a reference model Question 6A predictive-maintenance model is accurate, but technicians cannot obtain spare parts in time. What does this demonstrate? A. Prediction accuracy alone does not guarantee operational value B. Predictive maintenance never requires inventory planning C. The model must be converted into an accounting system D. Sensor data are always unreliable Correct Answer: A. Prediction accuracy alone does not guarantee operational value Question 7Which practice most directly limits unauthorized movement between office IT and industrial control networks? A. Network segmentation B. Increasing product variety C. Reducing inspection frequency D. Using a larger dashboard Correct Answer: A. Network segmentation Question 8A forecasting model performs poorly after a major product-mix change. This is most likely an example of: A. Model drift B. Network segmentation C. Process discovery D. Asset genealogy Correct Answer: A. Model drift Question 9Why is human review especially important for safety-critical AI recommendations? A. Algorithms cannot process any numerical data B. Accountability and safe intervention cannot be transferred entirely to an algorithm C. Human review always improves forecast accuracy to 100 percent D. Safety-critical decisions do not require evidence Correct Answer: B. Accountability and safe intervention cannot be transferred entirely to an algorithm Question 10What is the strongest starting point for a manufacturing analytics implementation? A. Purchase the most advanced software available B. Collect every possible data item before defining a purpose C. Define a measurable business decision or operational problem D. Automate all maintenance decisions immediately Correct Answer: C. Define a measurable business decision or operational problem
|