Computational Engineering / AI and machine learning for structural engineers
Surrogates, and who is accountable
Define the surrogate’s domain and evidence.
Lesson review: expert verification remains open
This lesson has received a full-context editorial review and a check of its technical explanations. Selected arithmetic has been checked separately. This is not independent engineering sign-off.
Checks needed for project use
- A computational engineering reviewer must check algorithms, convergence claims, statistical assumptions and numerical examples beyond the cases explicitly recorded.
- Reproduce seeded learning experiments and label model-selection data as validation, retaining an independent test procedure.
- Obtain qualified review for legal responsibility statements; this is not a legal opinion.
- Review domain guards and calibration before any real engineering use.
- Specialist statistical review remains required for representative data, leakage, validation strategy, uncertainty and deployment monitoring.
These are educational models and exercises. Check their assumptions before using the results. The full technical content and every diagram have not yet been independently verified.
Concrete and steel calculations retain their stated first-generation Eurocode teaching basis. Use the standards and amendments specified for your project; do not mix generations without an appropriate design basis.
Read the lesson register and outstanding review notesWhy this matters
A fast approximation can reduce a large analysis study’s cost. Count the training and confirmation work, and establish where the approximation is dependable.
By the end of this lesson you should be able to
- Explain what a surrogate is for and what it replaces
- Quantify the interpolation and extrapolation error and compare them
- Explain why nothing in the output signals extrapolation
- State and apply the deterministic-check rule
- Say what a recommendation must carry to be reviewable
Keep the fitted domain visible during exploration
Move the reference marker inside and outside the indicated region.
Surrogate domain illustration. Geometry and movement are schematic; use the lesson calculations for numerical results.
- Shaded interval
- Domain coverage and validation evidence must support predictions.
- Orange approximation
- A matching point or good local fit does not establish extrapolation accuracy.
Define a limited surrogate role
Fit the surrogate to outputs from a stated analysis or measurement process. Record the input domain, training sample design, validation method and error measures. The original analysis itself still needs an appropriate verification and validation basis.
Check the selected candidate using the agreed engineering method. Minimum and maximum ranges are useful but do not prove that every multidimensional combination or sparse interior region is represented. Extrapolation can be unreliable, and even interpolation needs relevant error evidence.
Compare total work, including training analyses, surrogate evaluation and confirming runs. Record the recommendation, remaining uncertainty and responsible review. A human approval step helps only when the reviewer has adequate evidence and authority to challenge the output.
Try it
Surrogate model explorer
Fit a fast approximation to a slow function over one range, then query it outside. The error rises by orders of magnitude and nothing about the output changes.
Underlying function
Horizontal axis: input →
Solid dark line: reference function. Dashed orange: surrogate. Blue shaded region: training range.
- Query at
- 13.00
- Inside the trained range?
- no — trained only to 6
- Surrogate says
- 101.1853
- True value
- 26.2105
- Error at this query
- 74.9747
- Interpolation error (RMS)
- 0.0660
- Extrapolation error (RMS)
- 45.85
- Extrapolation penalty
- × 695
The surrogate returned 101.185 in the same format, at the same speed, with no warning. It has no representation of where its data was — it is a function, defined everywhere.
What the engineer has to do
- Record the range of every input in the training set. That is bookkeeping, not cleverness, and it is the only defence.
- Check every query against it, and refuse or flag anything outside.
- Confirm the promising candidates with the deterministic analysis. The surrogate searches; the analysis answers.
- Try the cubic function: when the truth is in the surrogate's own family, extrapolation is nearly free. That is a fact about that function, not a general licence.
What this shows: Nothing in a surrogate's output distinguishes an interpolation from an extrapolation — the boundary has to be enforced by the engineer.
Try it
Human approval workflow
A recommendation with evidence, uncertainty and a deterministic check. Try to get it approved with the check unrun.
Evidence recorded
Deterministic check
Human review
Recommendation
Increase the transfer beam from a 762 UB to an 838 UB
- Confidence
- 94 % — which describes how well the model fits its training data, and is not a probability that this is right.
- Evidence
- Comparable spans in the training set used a deeper section; Deflection is the governing check in 8 of 10 similar cases
- What would make it wrong
- The floor zone cannot accommodate the extra 76 mm of depth
- Deterministic check
- Available and not run.
- May this be acted on?
- no
- Blockers
- 2
Why not
- A deterministic check exists for this and has not been run. Confidence is not evidence where a calculation is available.
- No human review recorded.
Try this
- Set the confidence to 100 % with the check unrun. It still cannot be acted on — confidence is not a substitute for a calculation that could have been done.
- Set the check to 'none exists'. Now confidence and evidence and a review are what you have, which is the situation where a recommendation genuinely helps.
- Remove the evidence. Without it there is nothing for a reviewer to examine, so the review would be a formality.
- Reject at review. A recorded rejection is as useful as an acceptance — it says the question was considered.
What this shows: Review the evidence and any available engineering check before accepting the recommendation. The displayed score alone does not establish structural suitability.
Worked example
A surrogate used just outside its range
Given
- A surrogate fitted over spans of 6 to 12 m from 40 nonlinear analyses
- Interpolation error within that range: about 0.07 in the objective's units
- The same surrogate queried at a 15 m span, because a late design change extended one bay
Find
What the surrogate returns and what should happen
Practice
A surrogate has an interpolation error of 0.066 and an extrapolation error of 45.85. By what factor is extrapolation worse? Give the factor to the nearest ten.
Practice
A nonlinear analysis takes 20 minutes. A study needs 200 combinations. A surrogate is fitted from 40 real runs and used for the rest, with the best 10 confirmed properly. How many minutes of analysis does that take, against running all 200?
Check yourself
A recommendation carries 94 % confidence, full evidence, a named reviewer who has accepted it — and a deterministic check that exists and has not been run. May it be acted on?
Practice
A surrogate runs in 0.02 seconds against a full analysis at 40 seconds. How many times faster is it?
Practice
Building a surrogate needs 200 full analyses at 40 seconds each. How many minutes of computation is that?
Check yourself
What does the numerical prediction alone reveal about extrapolation in the plain polynomial surrogate used here?
Check yourself
Who is accountable for a design decision made on the strength of an AI recommendation?
Summary
- Define the surrogate’s domain and evidence.
- Confirm selected decisions with the required engineering checks.
- Count setup and confirmation costs in the saving.
Sources & further information
scikit-learn, common pitfalls and cross-validation.
Reviewed 19 October 2026: explanations, teaching calculations and figures checked within the recorded course audit. This is not independent engineering approval. Specialist statistical review remains required for representative data, leakage, validation strategy, uncertainty and deployment monitoring.
Continue the course
A model can also feed fabrication and shared services. Follow its coordinates, identities and responsibilities beyond the local calculation.
Continue with digital fabrication, cloud and connected workflows.