The Chartership Forum

Computational Engineering / AI and machine learning for structural engineers

What it is actually doing

Define the predictor’s role and available features.

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 notes

Why this matters

A trained predictor learns a relationship from examples. Its usefulness depends on the question, available inputs and evidence about errors in intended use.

By the end of this lesson you should be able to

  • State what a supervised model is doing in one sentence
  • Distinguish supervised, unsupervised and reinforcement learning by what each requires
  • Explain features and labels and why choosing features is engineering
  • Say why correlation is what these methods find

Available inputs must precede the prediction

Available inputs must precede the predictionA scatter of labelled samples supports a fitted relationship. The separate crossed feature illustrates an answer-derived input that would leak information unavailable at the intended prediction time.Leaked labelFeatures → fitted relationship → output
A scatter of labelled samples supports a fitted relationship. The separate crossed feature illustrates an answer-derived input that would leak information unavailable at the intended prediction time.
Samples
Document how features and target values were obtained.
Prediction role
Evaluate on suitable held-out evidence; fitting alone does not establish engineering suitability.

What you should already know

  • Curve fitting and least squares
  • The distinction between a model and the thing it models (Module 1)

Follow features to predictions

Supervised learning fits labelled examples: regression predicts a quantity and classification predicts a class or probability. Unsupervised methods explore unlabelled data; reinforcement learning uses actions and rewards. These categories describe training approaches, not automatic engineering suitability.

Use only information available when the prediction will be made. A utilisation already calculated by a full analysis can leak the answer into a model intended to predict that analysis beforehand. Preserve provenance and keep evaluation data separate from training decisions.

Assess errors, unfamiliar inputs and the consequence of a wrong recommendation. Where a direct engineering calculation is practical and appropriate, use it. A learned approximation may help explore expensive analyses, with a defined confirmation and review process.

Check yourself

A model is trained to predict whether a steel beam passes its design checks, from features including span, load, section properties and the computed utilisation ratio. It scores 99.8 % accuracy. What is wrong?

Practice

A classifier is tested on 240 cases and gets 217 right. What is its accuracy, as a percentage to one decimal place?

Worked example

Reading a confusion matrix nobody has explained

Given

  • A classifier sorts 500 model-audit cases into 'has a restraint error' and 'does not'
  • Of the 100 cases that really do have a restraint error, it finds 72
  • It also flags 40 cases that do not have one

Find

Accuracy, precision and recall — and which of the three is misleading here

    Practice

    A classifier flags 112 cases as having a defect. Of those, 72 really do. What is its precision, as a percentage?

    Practice

    The same classifier finds 72 of the 100 cases that really have the defect. How many defective models does it let through?

    Practice

    A classifier is applied to a population where only 2 % of models have the defect. It flags nothing at all. What accuracy does it report?

    Check yourself

    A vendor reports 94 % accuracy for a defect classifier. What is the first question to ask?

    Check yourself

    What does a classifier's 'confidence' of 0.94 actually describe?

    Predict first

    A classifier trained on steel frames is shown a timber frame. What does it do?

    Summary

    • Define the predictor’s role and available features.
    • Keep training decisions separate from evaluation evidence.
    • Assess error consequences and engineering confirmation.

    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.