9. Digital Twins and Prescriptive Decision SystemsIntroduction and ContextIoT analytics is often introduced as the process of collecting sensor data and converting it into descriptive or predictive insight. In operational environments, however, insight is valuable only when it improves a decision. A maintenance team must decide which machine to inspect first, an energy manager must determine how to balance comfort against consumption, and a logistics operator must allocate vehicles under changing demand and traffic conditions. These are not merely reporting problems. They are decision problems involving uncertainty, constraints, competing objectives and the consequences of action. Digital twins and prescriptive decision systems address this wider challenge. A digital twin is a continuously updated digital representation of a physical asset, process, system or environment. It combines data from the real world with models of structure, behaviour and performance. A prescriptive decision system uses such information to recommend, optimise or automatically execute actions. It may combine simulation, rules, optimisation algorithms, machine learning and human judgement. The distinction between prediction and prescription is important. A predictive model may estimate that a pump has a high probability of failure within the next week. A prescriptive system goes further: it evaluates inspection schedules, spare-part availability, production commitments and safety constraints, then recommends when the pump should be serviced and what resources should be assigned. The central question changes from “What is likely to happen?” to “What should be done, given what may happen?” This chapter examines the architecture, methods and governance of digital twins and prescriptive systems. It connects IoT data engineering with simulation, optimisation, control and artificial intelligence, while also examining practical limitations such as model drift, data quality, cyber risk and excessive automation. Learning ObjectivesAfter studying this chapter, learners should be able to: 1. Define a digital twin and distinguish it from a static digital model, dashboard and simulation. 2. Explain the layered architecture and data flows of an IoT-enabled digital-twin system. 3. Describe how descriptive, predictive and prescriptive analytics are related. 4. Select appropriate simulation, rules, optimisation and AI approaches for operational decisions. 5. Formulate decision problems using objectives, constraints, variables and uncertainty. 6. Evaluate human-in-the-loop and automated control arrangements. 7. Analyse the organisational, ethical, security and governance issues associated with digital twins. 8. Apply these ideas to an industrial decision scenario. From Monitoring to Decision IntelligenceA conventional monitoring system presents measurements such as temperature, vibration, throughput or energy consumption. Its purpose is visibility. A digital twin adds interpretation by representing the relationships among these measurements, the physical asset and its operating context. For example, a production-line twin may represent machine states, material flow, maintenance history, product quality and operating limits. A useful distinction can be made among four levels of analytics: - Descriptive analytics explains what has happened or what is happening.
- Diagnostic analytics investigates why it happened.
- Predictive analytics estimates what is likely to happen.
- Prescriptive analytics evaluates possible actions and recommends or performs one.
These levels are related, but they are not interchangeable. Prescription depends on reliable observation and prediction, yet a highly accurate prediction does not automatically produce a good decision. The decision also depends on costs, constraints, priorities, risk tolerance and the reversibility of an action. A digital twin should therefore be understood as a decision-support representation, not simply as a three-dimensional visualisation. Visualisation may be useful, but the defining feature is the meaningful connection between a physical system and a computational representation that is updated and used for analysis or action. The Architecture of a Digital TwinA practical digital-twin architecture is usually distributed across the physical, edge, data, modelling and decision layers. The layers are conceptually distinct even when implemented on the same cloud platform. Physical and sensing layerThe physical layer contains assets, processes, people and environmental conditions. Sensors measure variables such as pressure, flow, location, current, acoustic emissions and ambient temperature. Actuators alter the system by opening valves, changing motor speed, adjusting set points or scheduling equipment. Sensor selection is an analytical decision rather than merely a hardware decision. A sensor must have adequate accuracy, sampling frequency, range, calibration stability and resistance to the operating environment. The value of a digital twin is limited when critical state variables cannot be observed or estimated reliably. Connectivity and edge layerGateways and edge devices collect readings, translate protocols, buffer data during network interruptions and perform local processing. Edge analytics may remove noise, calculate features, detect threshold violations or execute safety-critical rules with low latency. Local execution is especially important when communication with a central platform is unreliable or when sending all raw data is expensive. Data and context layerThe data layer stores time-series measurements, event logs, maintenance records, asset hierarchies, geospatial information, work orders and external context such as weather or energy prices. Context is essential. A vibration reading has different significance depending on machine type, speed, load, age and recent maintenance. Metadata, identifiers and semantic models allow data from different sources to be interpreted consistently. A strong twin must address time alignment, units, missing values, sensor identity, data lineage and versioning. Without these capabilities, the twin may produce technically sophisticated but operationally misleading results. Model and twin-state layerThis layer maintains the computational state of each asset or process. It may contain engineering equations, state-space models, process simulations, machine-learning models, rules and relationships among components. Twin state is not necessarily identical to directly measured data. Some variables, such as internal wear or remaining useful life, may be latent and estimated through data assimilation or state estimation. A twin can be classified according to the relationship it supports: component twins represent parts, asset twins represent complete equipment, system twins represent interacting assets, and process or environment twins represent broader operational contexts. These types may be nested. A factory twin can contain production-line twins, which contain machine twins and component twins. Decision and actuation layerThe decision layer evaluates alternatives and communicates recommendations, schedules or control commands. It may interact with enterprise resource planning, maintenance management, warehouse, energy-management and supervisory-control systems. The actuation pathway must be designed more cautiously than the monitoring pathway because an incorrect command can create physical, financial or safety consequences. A simplified information loop is: physical system → sensing → data and state estimation → prediction and simulation → optimisation or decision logic → human approval or actuation → physical system. This loop is continuous, but it is not automatically instantaneous. Decision frequency should match the dynamics of the problem. A turbine-control problem may require millisecond responses, whereas fleet maintenance planning may be recalculated hourly or daily. Modelling the Twin: Fidelity, Synchronisation and UncertaintyA digital twin combines several modelling traditions. First-principles models use physical laws, conservation equations and engineering relationships. Data-driven models learn patterns from historical observations. Hybrid models combine both: an engineering model provides structure, while machine learning estimates unknown parameters or corrects systematic error. Model fidelity refers to how closely a model represents relevant behaviour. Greater fidelity can improve realism but may increase computational cost, data requirements and maintenance effort. The appropriate model is not the most detailed model in the abstract; it is the model that is sufficiently accurate for the decision and fast enough for the decision cycle. Synchronisation is another defining concern. The twin must specify how frequently data are ingested, how delayed data are handled and how conflicting sources are reconciled. A system may be synchronised in near real time for operational monitoring but only synchronised daily for strategic planning. Uncertainty arises from noisy sensors, incomplete observations, uncertain parameters, external disturbances and model simplifications. It should be represented rather than hidden. Prediction intervals, scenario ranges, probabilistic forecasts and sensitivity analysis can show how uncertainty affects a recommendation. A decision that changes under small variations in assumptions should be presented as fragile, not as certain. Simulation as a What-if InstrumentSimulation allows analysts to examine possible futures without experimenting directly on the physical system. A discrete-event simulation is useful when operations consist of events such as arrivals, failures, queues and service completions. A continuous simulation represents variables that evolve continuously, such as temperature or fluid pressure. Agent-based simulation models the actions and interactions of individual entities such as vehicles, workers or customers. System-dynamics models focus on feedback, accumulation and flows over time. Digital twins frequently use a portfolio of models rather than one universal model. A warehouse twin may use discrete-event simulation to evaluate congestion, an optimisation model to assign locations and a machine-learning model to forecast demand. The choice should follow the decision question. Simulation is particularly useful when interactions, queues, feedback or nonlinear effects make simple statistical extrapolation inadequate. What-if analysis compares scenarios such as increased demand, equipment derating, altered staffing, new operating limits or extreme weather. Scenario analysis is not a prediction of one certain future. It is a structured exploration of consequences under specified assumptions. Scenario results should therefore record assumptions, model versions and data cut-off times. Prescriptive Analytics: Formulating the DecisionA prescriptive problem can be expressed through four elements: decision variables, objective functions, constraints and information about uncertainty. Decision variables are controllable choices, such as production quantities, maintenance times, vehicle routes, inventory levels, temperature set points or charging schedules. The objective function expresses what the organisation seeks to minimise or maximise, such as cost, delay, energy use, emissions or risk. Constraints represent physical, regulatory, contractual and operational limits. For example, a fleet manager may minimise total cost: total cost = fuel cost + overtime cost + late-delivery penalties + expected failure cost. The solution must respect vehicle capacity, driver hours, delivery windows, depot capacity and safety requirements. If multiple objectives conflict, the organisation may use weighted objectives, lexicographic priorities or a Pareto analysis showing trade-offs rather than pretending that one objective is universally correct. Optimisation methods include linear programming, mixed-integer programming, nonlinear programming, constraint programming, dynamic programming, heuristic search and metaheuristics. The choice depends on problem size, mathematical structure, time available and the need for a guaranteed optimum. In fast-changing environments, a good feasible solution delivered promptly may be more valuable than an exact solution delivered too late. Uncertainty can be addressed through robust optimisation, stochastic optimisation, chance constraints, scenario-based optimisation and receding-horizon control. Robust optimisation seeks solutions that remain acceptable across a defined range of conditions. Stochastic optimisation uses probability distributions or scenarios. Chance constraints allow a small, explicit probability of violating a condition, which may be appropriate for non-critical service targets but not for essential safety limits. Rules, AI and Control in CombinationRules remain important because many operational requirements are explicit. A rule may state that a motor must be shut down when temperature exceeds a safety threshold, or that a maintenance recommendation requires supervisor approval. Rules are transparent and auditable, but they can become brittle when conditions are complex or interacting. Machine learning is valuable for anomaly detection, demand forecasting, failure prediction, image inspection and estimation of unobserved states. However, a prediction model does not determine the best action by itself. Its output should be supplied to a decision process that considers consequences and constraints. Reinforcement learning can learn policies through interaction with an environment, but direct experimentation on safety-critical physical systems is usually inappropriate. Training may occur in a validated simulator, followed by restricted deployment, monitoring and fallback controls. The gap between simulated and real behaviour—often called the sim-to-real problem—must be assessed carefully. Control systems provide another connection. A feedback controller measures system state, compares it with a target and adjusts an actuator. Model predictive control repeatedly forecasts future behaviour, solves a constrained optimisation problem over a horizon and applies only the first action before recalculating. This approach is useful when systems have delays, multiple interacting variables and explicit operating constraints. A mature architecture often uses layers: hard safety rules at the lowest level, automatic control for rapid regulation, optimisation for resource allocation and human oversight for exceptional or strategic decisions. This layered design avoids asking one model to perform every function. Operational ApplicationsIn predictive maintenance, the twin combines sensor streams, asset history, operating conditions and failure models. It can compare the cost of immediate intervention with the risk of deferred maintenance, while considering spare parts and technician availability. The best decision may not be to service the asset with the highest failure probability; it may be to service the asset whose failure would cause the greatest operational disruption. In energy management, a building twin can simulate occupancy, weather, thermal behaviour and equipment efficiency. An optimisation engine can schedule heating, ventilation, cooling, storage and flexible loads while respecting comfort and equipment constraints. The system can also evaluate whether a demand-response commitment is feasible before accepting it. In supply chains, twins represent suppliers, inventory, transport capacity and demand. They support disruption scenarios, reorder decisions, routing and allocation. In healthcare facilities, a twin may model patient flow, bed occupancy and staffing, although privacy and safety requirements become especially significant. In smart cities, system-level twins can support traffic management, drainage planning and infrastructure maintenance, but they must account for public accountability and unequal impacts. Illustrative Case Study: A Digital Twin for a District Cooling PlantBackgroundConsider a fictional district cooling operator serving several commercial buildings. The plant includes chillers, pumps, cooling towers and thermal storage. Sensors record temperatures, flow rates, power consumption, vibration and valve positions. The operator must meet cooling demand while minimising electricity cost and preventing equipment damage. Situation and problemThe operator initially used dashboards and fixed schedules. During hot periods, the plant sometimes approached its capacity limit, while at other times it ran inefficiently. Maintenance was reactive, and operators were reluctant to rely on automated recommendations because the reasons for recommendations were unclear. AnalysisThe project team first established asset identifiers and validated sensor calibration. It then created a twin containing the equipment hierarchy, thermodynamic relationships, operating limits and maintenance history. A forecasting model estimated cooling demand using weather and building-load data. A hybrid performance model estimated chiller efficiency under different loads and ambient conditions. The decision problem was formulated as minimising electricity cost and estimated wear over a rolling six-hour horizon. Constraints included required supply temperature, maximum ramp rates, chiller capacity, storage limits and a reserve margin for unexpected demand. Several scenarios were tested, including sensor failure, a chiller derating event and a sudden demand increase. Approach and solutionThe system used a layered strategy. Safety thresholds remained in the existing control system. The optimisation engine proposed chiller loading, storage charging and pump settings every fifteen minutes. Operators received the proposed plan, forecast consequences and explanations of binding constraints. Automatic execution was initially limited to low-risk adjustments, while larger changes required approval. A monitoring process compared predicted and actual performance. When model error exceeded a defined tolerance, recommendations were suspended and the system reverted to established schedules. This created an operational fallback rather than assuming that the twin was always correct. OutcomeIn this illustrative case, the main benefit was not a single numerical efficiency claim but improved coordination. Operators could examine the effect of demand growth, equipment derating and electricity-price changes before committing to an action. Maintenance planning became more proactive because performance degradation was visible in the twin. Trust increased when recommendations included assumptions, expected effects and the constraints that shaped the solution. Learning pointsThe case demonstrates that a digital twin is an organisational capability as well as a software installation. Data quality, model validation, user acceptance, fallback procedures and integration with work practices were as important as the optimisation algorithm. It also shows why prescriptive analytics should be introduced gradually, beginning with decision support and expanding automation only when performance and risk are understood. Risks, Limitations and Common MistakesA digital twin may create false confidence when its representation is incomplete. Unmeasured failures, inaccurate asset relationships or outdated parameters can produce precise-looking but invalid recommendations. Data drift occurs when operating conditions, equipment, sensors or user behaviour change. Models therefore require performance monitoring and recalibration. A common mistake is to begin with a visually impressive three-dimensional model before identifying the decisions it must improve. Another is to optimise a local metric, such as energy consumption, while worsening production, comfort or equipment life. Objective functions should reflect the real operational context. Automation can also amplify errors. A bad sensor value may trigger a bad prediction, which may generate an unsafe command. Defence-in-depth requires validation, rate limits, interlocks, anomaly detection, manual override and safe fallback states. Cybersecurity must protect identity, communication, model endpoints and actuators. Particular attention is required for command authentication, network segmentation, patching, logging and incident response. Interoperability is a persistent challenge. Industrial equipment may use incompatible protocols and inconsistent naming conventions. Open interfaces, semantic asset models and documented data contracts reduce dependence on one vendor, although complete interoperability is rarely achieved automatically. Economic justification must include lifecycle costs: sensors, connectivity, integration, model development, cybersecurity, cloud or edge computing, training and ongoing maintenance. A pilot that cannot be sustained operationally is not a successful digital-twin programme. Governance, Ethics and Professional ResponsibilityA prescriptive system can influence employment, safety, service access and allocation of scarce resources. Organisations must identify who is accountable for a recommendation and who is authorised to override it. High-impact decisions should be explainable at a level appropriate to the audience, with records of data, model version, assumptions, recommendation and action. Data governance includes ownership, access control, retention, quality standards and lineage. When twins represent workers, customers or public spaces, privacy and proportionality must be considered. Data minimisation and purpose limitation are preferable to indiscriminate collection. Fairness matters when optimisation allocates services or opportunities among groups or locations. An apparently efficient objective may disadvantage less visible users. Governance should therefore include stakeholder consultation, impact assessment, audit procedures and an avenue for contesting consequential decisions. Professional responsibility requires distinguishing a model recommendation from a fact. Operators should understand uncertainty and system limits, while managers should not suppress warnings merely to meet short-term performance targets. Independent validation is especially important when the system controls safety-critical or regulated operations. Emerging Directions and Best PracticeCurrent development is moving toward composable twins that connect assets, processes and organisations through shared semantics. Edge-cloud collaboration is increasing, allowing latency-sensitive functions to remain local while computationally intensive simulation and optimisation use central infrastructure. Generative AI may improve natural-language querying and operator assistance, but it should not be allowed to invent operational facts or bypass validated decision logic. Other important directions include probabilistic twins, federated learning across organisations, physics-informed machine learning, carbon-aware optimisation and stronger integration of digital threads linking design, operation and maintenance. These developments increase capability but also increase the need for validation and governance. Effective practice can be summarised as follows: - Begin with a consequential decision, not with a technology demonstration.
- Establish identifiers, units, metadata, lineage and quality controls before advanced modelling.
- Combine engineering knowledge with data-driven methods where appropriate.
- Make objectives, constraints and uncertainty explicit.
- Validate models against operational outcomes and define drift thresholds.
- Introduce automation in stages, with human oversight and safe fallback modes.
- Measure business, operational, safety and user outcomes rather than model accuracy alone.
- Treat cybersecurity, privacy and accountability as design requirements.
Chapter SummaryDigital twins connect physical assets and processes with continuously updated computational representations. Their value lies not in visualisation alone but in supporting analysis, simulation and action. A complete architecture links sensing, connectivity, contextual data, state estimation, models, optimisation and actuation. Prescriptive decision systems extend predictive analytics by evaluating what should be done under objectives, constraints and uncertainty. Simulation supports what-if analysis; rules provide transparent safeguards; machine learning supplies forecasts and estimates; optimisation allocates resources; and control systems regulate dynamic processes. These capabilities are most effective when combined in layers rather than delegated to a single algorithm. Successful implementation depends on data quality, model fidelity, synchronisation, validation, interoperability, cybersecurity, human acceptance and governance. Digital twins should be introduced around clearly defined decisions, with staged automation and explicit fallback procedures. Their professional use requires attention to accountability, privacy, fairness and the limits of automated recommendations. Key TermsDigital twin: A continuously updated digital representation of a physical asset, process, system or environment. Prescriptive analytics: Analysis that recommends or executes actions by considering objectives, constraints and possible outcomes. Digital model: A computational representation that may not be connected continuously to a physical counterpart. Data assimilation: The process of combining observations with a model to estimate the current state of a system. State estimation: Inference of observed and unobserved system conditions from available data and models. Hybrid model: A model combining engineering or physical relationships with data-driven learning. Model fidelity: The degree to which a model represents behaviour relevant to a particular decision. Discrete-event simulation: Simulation in which system changes occur at defined events such as arrivals, failures or completions. Scenario analysis: Structured examination of outcomes under different assumptions about future conditions. Decision variable: A controllable quantity whose value is selected by a decision process. Objective function: A mathematical representation of the outcome to be minimised or maximised. Constraint: A physical, operational, contractual, ethical or regulatory limit on feasible decisions. Robust optimisation: Optimisation seeking solutions that perform acceptably across specified uncertainty ranges. Model predictive control: Repeated constrained optimisation using forecasts over a future horizon and applying the next control action. Human-in-the-loop: An arrangement in which people review, approve, interpret or override automated decisions. Model drift: Decline in model validity caused by changes in data, equipment, context or relationships. Digital thread: A connected flow of data linking stages such as design, operation, maintenance and lifecycle management. Safe fallback: A predefined operating mode used when data, models or automated recommendations become unreliable. Review QuestionsShort Answer Questions1. What distinguishes a digital twin from a static digital model? 2. Why is context important when interpreting IoT sensor data? 3. Define a decision variable and a constraint in an optimisation problem. 4. What is the purpose of scenario analysis in a digital twin? 5. Explain the meaning of human-in-the-loop automation. Long Answer Questions1. Explain the principal layers of an IoT-enabled digital-twin architecture and the role of each layer. 2. Discuss how simulation, machine learning, rules and optimisation can be combined in a prescriptive system. 3. Explain how uncertainty, model drift and validation affect the reliability of digital-twin recommendations. 4. Analyse the role of model predictive control in systems with delays, multiple variables and operating constraints. 5. Discuss the governance, cybersecurity, privacy and accountability requirements for operational digital twins. Analytical / Application Questions1. A factory must choose between servicing a high-risk machine immediately and servicing a lower-risk machine whose failure would stop the entire production line. How should a prescriptive system formulate and analyse this decision? 2. Design a staged automation strategy for the district cooling case described in the chapter. Specify which decisions should remain rule-based, which may be optimised, and which require human approval. 3. A digital twin’s demand forecasts are accurate during normal conditions but unreliable during extreme weather. Propose a robust decision approach, including fallback actions, uncertainty treatment and model-monitoring requirements. 22. Multiple Choice Questions with AnswersQuestion 1Which feature most clearly distinguishes a digital twin from a static digital model? A. It contains a three-dimensional visualisation B. It is continuously connected to and updated from a physical counterpart C. It uses only machine-learning algorithms D. It eliminates the need for physical sensors Correct Answer: B. It is continuously connected to and updated from a physical counterpart Question 2A maintenance system predicts that a pump may fail within seven days. Which additional capability makes the system prescriptive? A. Displaying the pump temperature on a dashboard B. Storing the pump’s historical readings C. Evaluating maintenance schedules subject to labour, spare-part and production constraints D. Increasing the sensor sampling frequency Correct Answer: C. Evaluating maintenance schedules subject to labour, spare-part and production constraints Question 3Which of the following is an example of a decision variable in a district cooling optimisation problem? A. Historical ambient temperature B. Chiller loading level C. The equipment manufacturer’s name D. A previously recorded failure Correct Answer: B. Chiller loading level Question 4Why might a digital twin use both an engineering model and a machine-learning model? A. To remove the need for validation B. To combine physical structure with data-driven estimation or correction C. To ensure that all decisions are fully automatic D. To avoid collecting contextual data Correct Answer: B. To combine physical structure with data-driven estimation or correction Question 5A fleet-routing solution minimises fuel cost but causes frequent late deliveries. What is the most likely modelling problem? A. The objective function ignores an important operational outcome B. The sensors have excessive sampling frequency C. The digital twin contains too much metadata D. The system uses a human-in-the-loop design Correct Answer: A. The objective function ignores an important operational outcome Question 6What is the principal purpose of a safe fallback mode? A. To maximise model complexity B. To continue normal automation when the model becomes unreliable C. To provide a predefined acceptable operating state during system or model failure D. To replace all cybersecurity controls Correct Answer: C. To provide a predefined acceptable operating state during system or model failure Question 7Which method repeatedly forecasts future system behaviour, solves a constrained optimisation problem and applies only the next action? A. Batch reporting B. Model predictive control C. Static classification D. Simple data archiving Correct Answer: B. Model predictive control Question 8A digital twin produces precise recommendations, but its sensor identifiers and units are inconsistent. What is the principal risk? A. The visualisation will necessarily be too simple B. The recommendations may be based on incorrectly interpreted data C. The optimisation will always find a global optimum D. The system cannot use any simulation Correct Answer: B. The recommendations may be based on incorrectly interpreted data Question 9Which approach is most appropriate for a safety-critical actuator command? A. Allowing an unvalidated generative model to issue the command B. Using layered safeguards, authenticated commands, interlocks and a defined fallback C. Removing all human oversight immediately D. Optimising only for short-term operating cost Correct Answer: B. Using layered safeguards, authenticated commands, interlocks and a defined fallback Question 10Why can a solution that is mathematically optimal still be operationally unsuitable? A. Optimisation never uses constraints B. The solution may ignore uncertainty, real-time requirements, safety or organisational priorities C. Mathematical models cannot represent any objective D. Simulation always produces inaccurate results Correct Answer: B. The solution may ignore uncertainty, real-time requirements, safety or organisational priorities
|