Digital Twin with Python (VTR UGE 21), day 5 of 5
Prof. Dr. Utku Kose, Süleyman Demirel University
Part A runs the assembled twin in an operations panel with faults you inject. Part B separates verification from validation. Part C estimates the model error behind a validation result.
The panel runs the pack and its twin for two hours in the browser. Inject a fault at a chosen time and watch the twin: It compares every reading with its own physics prediction, a model temperature that no reading ever corrects. When the mean of their differences over the last five minutes exceeds 1 °C in either direction, the twin declares the loss of trust, switches the fan to its fail-safe setting, full speed, and reports the change in the event log. The log can be exported as JSON lines, one record per line in the JavaScript Object Notation, the format of the notebook.
Continue in Colab, section 7: the assembled twin on a healthy and a faulted pack.
Decide which question each check answers.
Continue in Colab, section 5: verification by step halving and validation against noisy data.
The error between twin and sensor is measured by the root mean square error (RMSE). With a sensor noise of standard deviation sigma, the error of the model itself is estimated as the square root of RMSE squared minus sigma squared. All values are in °C.
Continue in Colab, section 8: the scorecard of your own asset with a worn fan.
Answer each question, rate your confidence and check the answer. Results stay in this browser.
Write a short answer to each question. The text is saved in this browser and is included when you export the learning log.