Module 10 · Lesson 3
Digital Twins in Operations
A digital twin is a model kept in step with one specific spacecraft using its telemetry. This lesson covers what that means in practice, how operators use one and how to tell when it has drifted.
Learning objectives
After this lesson you will be able to:
- Define a digital twin precisely and distinguish it from a general-purpose simulator or a visualization
- Describe how operations teams use a synchronized model for command validation, anomaly investigation, training and trend prediction
- Explain how a twin is kept synchronized and how residuals between prediction and telemetry reveal divergence
From simulator to twin
The simulator built to test software before launch does not retire on launch day. The operations team keeps it and ties it to the one spacecraft that is now in orbit. That is the practical meaning of a digital twin: a model of a specific physical system, kept in step with that system using data from it, and used to make decisions about it.
Three properties separate a twin from a general-purpose simulator:
- It is specific. It carries this spacecraft's as-built configuration, software version, parameter tables, measured calibrations and known degraded units.
- It is synchronized. Its state is updated from telemetry: battery charge, wheel momentum, operating mode, stored command schedule.
- It is recalibrated. Its parameters are adjusted as hardware ages, for example as solar arrays lose output and batteries lose capacity.
The idea is usually traced to product lifecycle management work in the early 2000s. NASA technology roadmaps and a 2012 paper then applied it to aerospace vehicles. The practice is older than the name. During Apollo 13 in 1970, ground simulators were used to work out and check the procedures that brought the crew home.
Where the term is used loosely
The label is also attached to three-dimensional visualizations, to design simulations with no connection to a flying vehicle, and to telemetry dashboards. Those can all be useful. Three questions separate them from a twin in the sense used here:
- Is it tied to one specific physical asset?
- Does data from that asset update it?
- Are its predictions compared with what the asset then does?
There is no single agreed definition, so it is worth asking those questions whenever the term appears in a requirement or a proposal.
What operations teams do with one
Validating command sequences before uplink. Module 08 listed simulation as the last layer of plan validation, where the real flight software runs the expanded commands. The twin is what makes that layer trustworthy. It starts from the spacecraft's actual state, not a nominal one, so the sequence is checked against the battery charge, stored commands and operating mode that really exist.
Investigating anomalies. Engineers set the twin to the state shown in telemetry before the event, replay the commands and inject candidate faults until one reproduces what was observed. They then rehearse the recovery. This is reproducing a production bug from a snapshot, and the parallel holds well.
Training operators. Rehearsals run against realistic behavior, including injected failures, with no risk to the mission.
Predicting resource trends. The model is run forward by weeks to see how eclipse seasons, battery aging, momentum build-up, data storage and propellant will evolve, so that plans change before a limit is reached.
Keeping it in step
Synchronization has three parts.
- Configuration. Every software patch and table update sent to the spacecraft is also applied to the twin. This is configuration management, and it is easy to neglect once the mission is routine.
- State. At each contact the twin is re-initialized from the latest telemetry. Some internal state is never downlinked and has to be estimated, which is a known gap.
- Parameters. Periodically the model is refitted to long-term trends.
Residuals
The test of synchronization is the residual: the predicted value minus the observed value. Small residuals that scatter around zero mean the model is tracking. A residual that persists means something has changed, and there are four candidates:
- the spacecraft, through degradation or a fault
- the model, through a parameter that is no longer right
- the synchronization, through a configuration change that was missed
- the telemetry, through a failing sensor or a wrong calibration
The foundation course described limit checks, which ask whether a value is acceptable. A residual asks a different question: is the value what it should be, given what the spacecraft was doing? A temperature can be well inside its limits and still be four degrees from its prediction. That is the difference between a static alert threshold and anomaly detection in an observability system.
Single samples can be wrong because of noise or a corrupted packet, so monitors require persistence, meaning the threshold must be exceeded for several consecutive samples. Alerting rules that fire only after a condition has held for five minutes apply the same idea.
A practical example: a panel that runs warm
During a pass, the twin predicts that a panel will warm slowly from 20 degrees Celsius. The thermal engineer compares the prediction with telemetry sampled once a minute.
interface Sample {
t: number; // s since the start of the pass
predicted: number; // model output, degrees Celsius
observed: number; // telemetry, degrees Celsius
}
// Returns the time at which the residual has exceeded the threshold for
// `persistence` consecutive samples, or null if it never does.
function findDivergence(samples: Sample[], threshold: number, persistence: number): number | null {
let consecutive = 0;
for (const s of samples) {
const residual = Math.abs(s.observed - s.predicted);
consecutive = residual > threshold ? consecutive + 1 : 0;
if (consecutive >= persistence) return s.t;
}
return null;
}
const telemetry = [20.1, 20.4, 23.9, 20.9, 21.3, 22.4, 23.0, 23.7, 24.5];
const samples: Sample[] = telemetry.map((value, i) => ({
t: i * 60,
predicted: 20 + 0.2 * i, // the model expects a slow warm-up
observed: value,
}));
console.log(findDivergence(samples, 1.5, 3)); // sustained divergence
console.log(findDivergence(samples, 1.5, 1)); // no persistence - trips on one spike
The output is:
480
120
With a persistence of three samples, the monitor ignores the single spike at 120 seconds and flags the sustained drift at 480 seconds, when the residual has been above 1.5 degrees for three samples in a row. With no persistence it trips on the spike. The threshold comes from the model's demonstrated accuracy. If residuals normally stay within about one degree, 1.5 is reasonable. A tighter value produces nuisance flags, and people learn to ignore a monitor that flags too often.
The panel never approached a limit, so a limit check would have stayed silent. The engineer works through the four candidates. The sensor agrees with its neighbor, and the trend is smooth. The cause turns out to be on the ground: a heater setpoint table uploaded two weeks earlier had not been applied to the twin. The spacecraft was behaving as commanded and the twin was stale. The team corrects the twin and adds a step to the upload procedure that updates it. A divergence means investigate. It does not mean the spacecraft is broken.
Limits and costs
- Unmodeled failures. A twin predicts only what its models contain. Agreement between twin and telemetry is not proof of health.
- Unobserved state. The twin can be synchronized only to what the telemetry reports.
- Maintenance. People, hardware and configuration discipline are needed for the whole mission, which may last 15 years or more.
- False confidence. A polished display is persuasive. Users should be able to see how well the model has been tracking.
- Scale. For a large constellation, a detailed twin of every satellite may cost more than it returns, and fleet-wide statistics often do the job.
For a small, low-cost mission, a modest software simulator and careful trending may be the right amount of twin.
Simulation shows how software behaves when things go wrong. The next module turns to why they go wrong, and to how mission-critical software is built to detect and survive its own failures.
Key takeaways
- In its useful sense a digital twin is a model of one specific spacecraft, updated from that spacecraft's telemetry and used to make decisions about it. The term is also applied loosely to simulators and visualizations with no live data.
- Operations teams use the twin to rehearse command sequences before uplink, reproduce anomalies, train operators and predict resource trends.
- Synchronization has three parts - matching configuration, loading current state from telemetry and recalibrating model parameters as hardware ages.
- A persistent residual means that the spacecraft, the model, the synchronization or the telemetry has changed. It is a reason to investigate, not a diagnosis.
Knowledge check
Check your understanding. These questions are not graded and you can retry as often as you like.
0 of 3 questions answered.
Glossary
Digital twin
A model of a specific physical system that is kept in step with that system using data from it and is used to predict or explain its behavior.
Residual
The difference between a value predicted by a model and the value actually observed in telemetry.
State synchronization
Setting a model's internal state, such as battery charge or stored commands, from the most recent telemetry so that it starts from where the spacecraft actually is.
Model calibration
Adjusting a model's parameters, such as solar array output or battery capacity, so that its predictions match measured behavior as the hardware ages.
Persistence
A requirement that a condition hold for a set number of consecutive samples before it is acted on, used to avoid reacting to isolated bad values.
References and further reading
- The Digital Twin Paradigm for Future NASA and U.S. Air Force Vehicles (opens in a new tab)NASA Technical Reports Server
- NASA-STD-7009 Standard for Models and Simulations (opens in a new tab)NASA Technical Standards System
- Operations (opens in a new tab)European Space Agency
Finished this lesson?
Loading your progress…
Lesson version 1.0.0.