Skip to content
An engineer looking at a CAD drawing on a computer monitor

Photo: ThisisEngineering / Unsplash

Architecture · intermediate

Digital twins explained

What a digital twin is, how it differs from a device shadow, the levels of twin from descriptive to prescriptive, and when building one is worth it.

A digital twin is a software model of a physical asset, process or system that is kept in sync with its real counterpart through live data. The word “model” is doing the work in that sentence. A twin is not just the latest sensor readings; it is a structured representation of what the thing is, how its parts relate, how it behaves, and what state it is in now, updated continuously from IoT data and usable for questions the raw data cannot answer on its own.

The term has been stretched by vendors to cover everything from a 3D rendering to a database row, so it helps to be precise. This guide defines what a twin contains, separates it from the simpler concepts it is often confused with, describes the levels of capability a twin can have, and sets out when the investment pays off and when a dashboard would do.

What a twin contains

A useful twin has four parts.

The digital twin loop A physical asset sends telemetry to a digital twin made of a structural model, state, history and behavior; analytics read the twin and inform people and systems, whose decisions and commands flow back to the asset. PHYSICAL DIGITAL Physical asset turbine, line, building with sensors and actuators telemetry Digital twin Structural model parts and how they connect State current property values History time series per property Behavior rules, physics or ML models Analytics diagnose, predict, simulate what-if scenarios insights People and systems dashboards, alerts, planning decisions and commands
The twin loop: telemetry from the asset keeps the model in sync, analytics read the model to diagnose, predict and simulate, and the resulting decisions or commands flow back to the physical asset.

A structural model. What the asset is made of and how the parts connect: a wind turbine has a tower, a nacelle, a gearbox, a generator and three blades; a building has floors, zones, air handling units and the ducts that join them. This hierarchy gives every measurement a place to belong.

A state. The current values of the properties that matter, fed by telemetry from the data pipeline: temperatures, speeds, positions, operating mode, alarms. This part overlaps with a device shadow, but spans a whole asset rather than one device.

A history. Time-series data for each property, so that the twin can show trends and support analysis over time.

Behavior. Rules or models that describe how the asset responds to inputs. This can be as simple as a lookup table of expected operating ranges or as complex as a physics simulation or a trained machine learning model. Behavior is what separates a twin from a very detailed record.

What a twin is not

A dashboard displays data; it has no model of the thing. A device shadow stores last-known and desired state for one device so that applications and firmware can synchronize; it knows nothing about the asset the device is attached to. A 3D model or BIM file describes geometry but has no live data. A SCADA screen shows live process values and allows control but typically has no history or behavior model beyond alarm limits.

A twin can be built on top of all of these; it is the layer that connects them around a model of the asset.

Levels of capability

Twins are often described on a ladder, and knowing which rung you need prevents over-building.

Descriptive. The twin mirrors the current state and history of the asset. It answers “what is happening” and “what happened”. Most deployments that call themselves twins are at this level, and it is already valuable: a single place where a maintenance engineer sees every reading from a machine in context, instead of hunting through separate systems.

Diagnostic. The twin relates measurements to each other and to the structural model so that it can explain why. A rise in gearbox temperature combined with a change in vibration spectrum and no change in load points to a bearing, not to ambient conditions. This usually requires domain rules or trained models on top of the state.

Predictive. The twin projects forward. Using history and a behavior model it estimates remaining useful life, time to a threshold, or energy consumption for the next day. This is where predictive maintenance lives, and the guide on predictive maintenance with IoT and AI describes the modeling work involved.

Prescriptive and simulation. The twin can be run with hypothetical inputs. What happens to output if the line runs faster, to comfort if the HVAC setpoint drops, to battery degradation if the fleet charges at night. At this level the twin becomes a planning tool, and in some systems its recommendations are fed back as commands to the real asset.

Each level needs the ones below it and adds cost; a solid descriptive twin with a few diagnostic rules often captures most of the value.

Scales of twin

Twins exist at several scales, and the engineering differs at each.

A component or asset twin models one machine: a pump, a transformer, an aircraft engine. Data volumes are modest and the behavior model can be detailed.

A system or process twin models a production line, a water network or a building. It combines many asset twins and adds the relationships between them, such as flow from one stage to the next. The smart building and smart factory use cases live here.

A fleet or city twin aggregates thousands of systems. At this scale the twin is mostly a data model and a set of aggregate analytics; detailed physics per asset is impractical. Smart city platforms that model traffic, energy and utilities across a district are the typical example.

Building one

A twin project begins with the structural model, and the most common mistake is to start from the data instead. Define the asset hierarchy and the properties of each element first, using a standard information model where one exists (OPC UA companion specifications for industrial equipment, building ontologies for facilities). Then map each data source onto that model: which sensor, through which gateway, feeds which property.

The pipeline work is then conventional: ingestion, validation, storage in a time-series database, and a service that materializes the current state of each element. Behavior models are added incrementally, starting with the rules that engineers already apply by hand.

Several IoT platforms offer twin modeling services with a graph of entities, relationships and properties. They save building the model store but tie the model to the vendor, so open standards for the model definition are worth insisting on.

Identity, access and governance matter as much as for any other IoT data. A twin concentrates everything known about an asset in one place, which is convenient for engineers and equally convenient for an attacker.

When a twin is worth it

A twin earns its cost when three conditions hold. The asset is expensive or critical enough that better decisions about it have measurable value. Decisions depend on combining several data sources that today live in separate systems. And the questions people ask are about relationships or futures, not just current values. Turbines, production lines, hospital equipment fleets and district energy systems meet these conditions.

A twin is overkill when a dashboard and alert rules answer every question anyone asks, when the asset is cheap and replaceable, or when the data to feed it does not exist yet. In those cases the right first step is to deploy sensors and a plain pipeline and revisit the twin once there is a year of history and a backlog of unanswered questions.

Where to go next

Topics: digital twin, simulation, architecture, industrial IoT