Skip to content
Learning

Build a digital twin of an electric motor using machine learning

Estimating four electric-motor temperatures

A motor-temperature estimator can complement instrumentation when its operating domain is understood. This example predicts yoke, tooth, winding and magnet temperatures from eight operating measurements.

175Source records
8Final input features
35Test observations
0.971Test prediction R² (first target)

1. Industrial challenge

Motor design and monitoring require attention to several thermal locations. This model maps one operating point to four temperatures, allowing the error at each location to be assessed separately.

Four locations

Estimate yoke, tooth, winding and permanent-magnet temperatures.

Operating point

Supply eight electrical and mechanical measurements.

Thermal assessment

Examine each temperature error before considering a monitoring application.

Motor designThermal engineeringCondition monitoring
Thirty-five test records provide limited evidence for a thermal model. Hold out complete sessions or machines and test transient regimes separately. This static estimator is a component for investigation, not a validated dynamic twin, controller or thermal protection system.

2. Data set

The supplied model uses a prepared table of 175 operating records, with 35 in its test report. It is not trained on the full high-frequency public dataset. Session identifiers in the accompanying CSV make a session-level evaluation possible, but the saved split is by record.

The downloadable project, saved report and supplied source CSV define the exact version used here. Repository: original dataset/source record.

SubsetRecords
Training105
Validation / selection35
Testing35
Unused0
VariableRoleTypeEncodingUnit
ambient_temperatureInputNumeric°C
coolant_temperatureInputNumeric°C
speedInputNumericrpm
torqueInputNumericN·m
voltage_dInputNumericAs supplied
voltage_qInputNumericAs supplied
current_dInputNumericAs supplied
current_qInputNumericAs supplied
yoke_temperatureTargetNumeric°C
tooth_temperatureTargetNumeric°C
winding_temperatureTargetNumeric°C
magnet_temperatureTargetNumeric°C

Interactive chart: tooth_temperature distribution. Enable JavaScript to explore it.

tooth_temperature distribution. Exported with Neural Designer from the saved task report.

Interactive chart: yoke_temperature Pearson correlations chart. Enable JavaScript to explore it.

yoke_temperature Pearson correlations chart. Exported with Neural Designer from the saved task report.

Interactive chart: tooth_temperature Pearson correlations chart. Enable JavaScript to explore it.

tooth_temperature Pearson correlations chart. Exported with Neural Designer from the saved task report.

Interactive chart: winding_temperature Pearson correlations chart. Enable JavaScript to explore it.

winding_temperature Pearson correlations chart. Exported with Neural Designer from the saved task report.

Interactive chart: magnet_temperature Pearson correlations chart. Enable JavaScript to explore it.

magnet_temperature Pearson correlations chart. Exported with Neural Designer from the saved task report.

Interactive chart: winding_temperature vs. ambient_temperature scatter chart. Enable JavaScript to explore it.

winding_temperature vs. ambient_temperature scatter chart. Exported with Neural Designer from the saved task report.
This is internal validation using the saved record-level split. Grouped or temporal independence has not been established.

3. Model

The final model has 8 encoded input features and 4 outputs. The following dimensions describe the final saved network.

LayerInput shapeOutput shapeActivation
Scaling88—
Dense83Tanh
Dense34Identity
Unscaling44—
Clamping44—

The final output is a continuous estimate. Scaling, unscaling and any bounds follow the saved implementation; the calculator does not silently impose physical constraints.

Estimating four electric-motor temperatures: initial Neural Designer architecture
Architecture used for this model; no architecture-selection experiment is recorded. Diagram labels show original variables; categorical expansion and the numeric layer dimensions are documented in the model table.

4. Training strategy

The saved training configuration uses NormalizedSquaredError with QuasiNewton. Training minimizes the recorded objective; the validation subset monitors generalization during fitting. The testing subset is used for the evaluation below.

Interactive chart: Quasi-Newton method error history. Enable JavaScript to explore it.

Quasi-Newton method error history. Exported with Neural Designer from the saved task report.

Quasi-Newton method results

MeasureValue
Epochs number71
Elapsed time00:00:00
Stopping criterionMinimum loss decrease
Training error0.045
Validation error0.076

5. Model selection

No model selection experiment is recorded in this supplied project. The displayed architecture is the trained model used for testing; earlier article claims about a different selected architecture do not apply to this version.

6. Testing analysis

The final model is evaluated on 35 testing observations. MAE, RMSE and prediction R² below are computed from the exact testing pairs stored by Neural Designer. Errors retain each target’s original units.

TargetUnitMAERMSEPrediction R²Pearson r²
yoke_temperature°C2.4663.0320.9710.976
tooth_temperature°C3.1623.8570.9690.972
winding_temperature°C3.9595.0840.9690.97
magnet_temperature°C5.8467.2470.8490.852

The native goodness-of-fit task reports squared Pearson correlation (r²). Prediction R² here is 1 − squared prediction error / squared deviation from the test mean. They measure different properties: a strongly correlated prediction can still have a bias or an incorrect scale.

Interactive chart: yoke_temperature goodness-of-fit chart. Enable JavaScript to explore it.

yoke_temperature goodness-of-fit chart. Exported with Neural Designer from the saved task report.

Interactive chart: tooth_temperature goodness-of-fit chart. Enable JavaScript to explore it.

tooth_temperature goodness-of-fit chart. Exported with Neural Designer from the saved task report.

Interactive chart: winding_temperature goodness-of-fit chart. Enable JavaScript to explore it.

winding_temperature goodness-of-fit chart. Exported with Neural Designer from the saved task report.

Interactive chart: magnet_temperature goodness-of-fit chart. Enable JavaScript to explore it.

magnet_temperature goodness-of-fit chart. Exported with Neural Designer from the saved task report.

7. Model deployment

Validated inputs → saved preprocessing → neural network → score or estimate → domain review. The ZIP contains the original project, source CSV, schema, test metrics and standalone interactive chart exports. The project hash in the schema identifies this exact version.

Directional response at a fixed reference point

Inspect the saved reference point
MeasureVariableValue
1ambient_temperature24.426
2coolant_temperature18.667
3speed4500
4torque20.092
5voltage_d-42.684
6voltage_q124.37
7current_d-91.699
8current_q24.509

Interactive chart: winding_temperature – torque directional output. Enable JavaScript to explore it.

winding_temperature – torque directional output. Exported with Neural Designer from the saved task report. Other inputs are held at the saved reference point. This is a model response, not a causal effect.

Explore the exported model

This research demonstration runs locally in your browser. Values outside the training range are outside the validated domain and are rejected. A valid input range does not guarantee that a combination is physically or operationally plausible.

This is not a certified control or protection system.

8. Scope and limitations

Thirty-five test records provide limited evidence for a thermal model. Hold out complete sessions or machines and test transient regimes separately. This static estimator is a component for investigation, not a validated dynamic twin, controller or thermal protection system.

No external validation or independent calibration study is included. Preprocessing statistics and model choices should be refitted within a prospective or grouped validation design. Correlations and directional responses describe associations, not causes. Human review is required before an operational decision.

References