National Cheng Kung UniversityLAiMM Laboratory
Instructor supervising an AI-enabled engineering workflow with a physical bridge and evidence checkpoints

W01 · H1 · FALL 2026

Machine Learning
in Engineering Science

From prediction to evidence—and from models to bounded agents.

Prof. Chi-Hua Jonny Yu · Monday 14:00–17:00

Visual: Image 2.0 conceptual illustration · 2026-08-26

National Cheng Kung UniversityLAiMM Laboratory

WHY THIS COURSE CHANGED

AI changed the interface to computation.

SpeedDraft code, models, and analyses in minutes.
ScopeWork across language, images, data, and tools.
AgencySelect and execute multi-step actions.

The bottleneck moved from producing an output to deciding whether the output deserves trust.

Continuity: original introduction slides 4–8, “Speed / Impact”

National Cheng Kung UniversityLAiMM Laboratory
92%

PREDICT BEFORE WE EXPLAIN

A bridge classifier reports 92% accuracy.

Would you approve an inspection decision?

Which bridge?Which split?Which errors?Which uncertainty?Which cost?

Synthetic teaching scenario; no real bridge performance claim

National Cheng Kung UniversityLAiMM Laboratory
Engineering model outputs connected to evidence, reproducibility, and decisions

COURSE PROMISE

Build results that another engineer can rerun, challenge, and explain.

A model is useful only when its data, assumptions, errors, and decision boundary are inspectable.

ReproduceInterpretDecide

Course evidence contract · visual generated for W01-H1

National Cheng Kung UniversityLAiMM Laboratory
Measurements, machine learning, deep learning, notebooks, agents, and evidence gates across the semester

SEMESTER ARCHITECTURE

Foundations first. Agents later.

Data→ML→Deep learning→Generative AI→Agents

Reproducibility and interpretability constrain every layer.

Fall 2026 course plan · Image 2.0 conceptual architecture

National Cheng Kung UniversityLAiMM Laboratory

SEVENTY-SIX YEARS IN ONE VIEW

AI progressed by changing how behavior is specified.

1950Turing tests machine intelligence
1956AI becomes a named field
1957Perceptron learns a boundary
1986Backprop learns representations
1997Deep Blue scales search
2012AlexNet aligns data, GPUs, CNNs
2016AlphaGo learns and searches
2017Transformer scales attention
2020–22Few-shot and instruction LLMs
2023–26Retrieval, tools, agents

Rules did not disappear. Search did not disappear. Models accumulated into larger systems.

Turing 1950 · Dartmouth 1956 · Rumelhart 1986 · IBM 1997 · AlexNet 2012 · AlphaGo 2016 · Transformer 2017

National Cheng Kung UniversityLAiMM Laboratory
Conceptual reconstruction of the 1956 Dartmouth AI workshop with the modern instructor shown separately as narrator

1950 → 1956

From “Can machines think?” to a research program.

Turing reframed the question as observable behavior. Dartmouth proposed language, abstraction, problem solving, and self-improvement as machine capabilities.

1956

Historical reconstruction, not an archival photograph · Turing, Mind (1950) · Dartmouth proposal/workshop

National Cheng Kung UniversityLAiMM Laboratory
Symbolic rules and traceable inference contrasted with trainable statistical learning

SYMBOLIC AI

Intelligence was first encoded as symbols, rules, and search.

Facts + inference rules → a traceable conclusion.

IF vibration ↑ANDtemperature ↑THENinspect bearing

Strength: explicit logic. Boundary: coverage depends on rules humans anticipated.

Conceptual illustration; example rule is synthetic

National Cheng Kung UniversityLAiMM Laboratory

1957 · THE PERCEPTRON

A machine could learn a boundary from examples.

ŷ = 𝟙[wᵀx + b ≥ 0]

Learning adjusts w and b; it does not write a separate rule for every point.

wᵀx + b = 0held-out point?

Rosenblatt, The Perceptron, Cornell Aeronautical Laboratory report (1957)

National Cheng Kung UniversityLAiMM Laboratory
A narrow successful rule corridor collapsing under unseen cases and combinatorial rule growth

EXPERT SYSTEMS · AI WINTERS

Narrow competence was mistaken for general intelligence.

Rule systems could excel inside a defined domain. Outside it, coverage, maintenance, and brittle assumptions became visible.

More cases → more rules → more interactions → harder validation

Conceptual mechanism; AI winter denotes periods of reduced confidence and funding

National Cheng Kung UniversityLAiMM Laboratory
Bridge measurements becoming a feature space, optimized prediction surface, uncertainty, and held-out evaluation

THE STATISTICAL-LEARNING TURN

Behavior moved from handwritten rules to fitted functions.

f̂ = arg minf∈ℱ [ empirical loss + regularization ]

Examples define the pattern; held-out data challenges whether it generalizes.

Conceptual illustration; no measured performance values

National Cheng Kung UniversityLAiMM Laboratory
Large labeled data, GPU compute, and hierarchical feature learning converging in a deep neural model

1986 → 2012 · DEEP LEARNING

Backpropagation became transformative when data, compute, and representation learning aligned.

DataGPU computeLearned representations
15.3%AlexNet top-5 test error in ILSVRC-2012vs. 26.2% runner-up

Rumelhart, Hinton & Williams (1986) · Krizhevsky, Sutskever & Hinton (2012)

National Cheng Kung UniversityLAiMM Laboratory
Policy and value networks guiding Monte Carlo tree search, self-play, reward, and Go-board actions

1997 DEEP BLUE → 2016 ALPHAGO

Search became stronger when learning guided where to search.

Deep BlueLarge-scale search + hand-engineered evaluation
AlphaGoPolicy network + value network + MCTS + self-play

Reinforcement learning optimizes sequential decisions through feedback—not just one prediction.

IBM Deep Blue (1997) · Silver et al., Nature (2016)

National Cheng Kung UniversityLAiMM Laboratory

2017 · TRANSFORMER

Attention made context parallel.

Attention(Q,K,V) = softmax(QKᵀ / √dk)V
sensorreportsbearingvibrationinspect

Self-attention learns which parts of context should influence each representation.

Vaswani et al., Attention Is All You Need, NIPS (2017)

National Cheng Kung UniversityLAiMM Laboratory
Autoregressive token generation and diffusion denoising shown as different stochastic processes

2014 → 2020s · GENERATIVE MODELS

The target changed from predicting labels to modeling distributions.

AutoregressivePredict the next element given prior context.

DiffusionReverse a progressive noising process.

Seed, decoding, temperature, or guidance can change the sample.

Goodfellow et al. (2014) · Ho et al. (2020)

National Cheng Kung UniversityLAiMM Laboratory
Multimodal pretraining, instruction alignment, retrieval, scientific tools, agent loop, and human approval

2020 → 2022 · FOUNDATION MODELS

One pretrained model became an interface for many tasks.

Pretrainingnext-token and multimodal predictionIn-context useinstructions and few-shot examplesPost-traininghuman demonstrations and preferences

GPT-3 demonstrated broad few-shot behavior; InstructGPT improved instruction following with human feedback.

Brown et al. (2020) · Ouyang et al. / OpenAI InstructGPT (2022)

National Cheng Kung UniversityLAiMM Laboratory
Evolution from chat to retrieval, deterministic tools, and a bounded agent that plans and acts

2022 → 2026 · FROM ANSWERS TO ACTIONS

An agent is a system around a model.

Model+Context+Retrieval+Tools+State+Permissions

Tool access increases capability and the cost of error. Evaluate the trajectory, not only the final sentence.

ReAct (2022) · Toolformer (2023) · agent interoperability work (2025–26)

National Cheng Kung UniversityLAiMM Laboratory

WHAT THE HISTORY TEACHES

Capability changes. Evidence obligations accumulate.

RulesMake constraints explicit
LearningGeneralizes from examples
GenerationSamples plausible outputs
AgentsAct through tools and state
Every new layer creates a new failure surface.
NEXT · SOFTWARE 1.0 → 2.0 → 3.0

Synthesis for this course

Three-layer engineering software architecture with deterministic code, learned models, and an agent layer

02

SOFTWARE PARADIGMS

Software is changing again

Each new layer changes who specifies behavior - and what evidence must be checked.

SOFTWARE 1.0

Humans specify the behavior directly

y = frules(x)
stress_MPa = stress_Pa / 1e6
allowable = yield_MPa / gamma

if stress_MPa > allowable:
    return "STOP"
return "CONTINUE"
Sensor
Pa
→
Convert
MPa
→
Compare
σ > σy/γ?
YES → STOPNO → CONTINUE

Strength: deterministic and auditable

Limit: every relevant rule must be authored

SOFTWARE 2.0

Data and optimization specify behavior

Software 2.0 training loop with data splits, prediction, loss surface, gradients, optimization, validation, uncertainty, and frozen model artifact

SpecifyExamples and an objective define desired behavior statistically.

OptimizeBackpropagated gradients update parameters to reduce training loss.

ChallengeHeld-out validation, calibration, and frozen artifacts test generalization.

Learn parameters
θ* = arg minθ Σi L(fθ(xi), yi) + λΩ(θ)
Experience
(x, y)
→
Model
fθ
→
Loss
L(ŷ, y)
→
Optimizer
update θ
Data defines observed experienceLabels define operational truthLoss prices mistakesOptimization searches parameters

TRAINING SEMANTICS

Optimization changes weights - not reality

D

Dataset

Which operating conditions are visible?

Missing regime → unsupported prediction
Y

Label

What event counts as "damage"?

Proxy label → proxy behavior
L

Loss

Which errors receive more penalty?

Symmetric loss → symmetric incentives
S

Split

What future situation is simulated?

Random rows may leak bridge identity
Diagnostic rule When a model fails, inspect the learning problem before tuning the architecture.
Stacked deterministic, learned, and agent software layers

SOFTWARE 3.0

Models coordinate tools through language

Intent→Plan→Tool→Artifact→Human gate
Working definition

A model selects the next action from context, invokes bounded tools, observes results, and stops under explicit criteria.

Conceptual lineage: Karpathy, Software Is Changing (Again), 2025.

ARCHITECTURE PRINCIPLE

The layers accumulate; they do not replace one another

LayerOwnsBridge-monitoring exampleMust not own alone
1.0 · Rulesinvariants + interfacesunits, limits, solver APIunknown-pattern inference
2.0 · Modelstatistical estimatedamage probability + uncertaintysafety authorization
3.0 · Agentworkflow coordinationload data, run model, draft reportunreviewed deployment
Safe system=constraints+estimates+orchestration+accountable approval

WORKFLOW OR AGENT?

The difference is who selects the next action

Fixed workflow

Control flow is authored in advance.

Load→Clean→Fit→Report
at = πrules(stept)

Agentic workflow

A model selects actions from state and observations.

State st→Action at→Observation ot+1↺
at ∼ πmodel(· | st)
Design choice Prefer a fixed workflow when the valid path is known; add agency only where adaptation creates measurable value.

CONTROL LOOP

An agent needs a stop condition, not just a prompt

GOALacceptance criteria PLANbounded actions ACTinvoke tool OBSERVEcapture artifact REFLECTcompare evidence GATEhuman / policy STOPpass · fail · budget
Max actionsAllowed toolsEvidence schemaEscalation owner
Four progressively stronger permission gates for an engineering AI agent

PRESS R · AUTONOMY BOUNDARY

Permission must grow with consequence

READsource + scope
→
WRITEdiff + provenance
→
EXECUTEsandbox + logs
→
DEPLOYacceptance + owner
A notebook can run in Colab. Does that imply it may overwrite the canonical dataset? No.

EMPIRICAL SIGNAL · PROVIDER-SPECIFIC

Humans plan; coding agents increasingly execute

Planning decisions

Human ≈70%Agent ≈30%

What to build · approach · completion criteria

Execution decisions

Human ≈20%Agent ≈80%

Files · code · commands · implementation details

Evidence boundaryPrivacy-preserving classifier over ~400,000 Claude Code sessions, Oct 2025-Apr 2026. This is not a universal law for all tools or users.

Source: Anthropic, Agentic coding and persistent returns to expertise, June 2026.

ARTIFICIAL INTELLIGENCE
MACHINE LEARNING
DEEP LEARNING
Agentic systemmodelsdatatoolsevaluationgovernance

03

FOUNDATIONS

Machine learning remains the core

Tool fluency without model literacy produces fast, unauditable mistakes.

MITCHELL'S DEFINITION

Specify learning before selecting an algorithm

T

Task

Classify each bridge/time window as damage or no damage.

P

Performance

Recall at an acceptable false-alarm rate, evaluated on unseen bridges.

E

Experience

Labeled vibration windows with bridge ID, sensor, load, time, and units.

A program learns from E with respect to T and P if performance at T, as measured by P, improves with E.

Adapted from Tom M. Mitchell, Machine Learning, 1997.

INTERACTIVE DEMO · DRAG THE THRESHOLD

Move the threshold. Watch every cell change.

lower τ: more alarmshigher τ: fewer alarms
Actual damagedActual healthyPredicted damage
predict healthy
predict damage
τ
0.0model score p(damage)1.0
Predicted damagePredicted healthy Actual damage Actual healthy
Click TP, FN, FP, or TN.The first word tells whether the prediction is correct; the second tells the predicted class.
Recall = Sensitivity = TPR-TP / (TP + FN)
Precision = PPV-TP / (TP + FP)
Specificity = TNR-TN / (TN + FP)
Accuracy-(TP + TN) / N
F1 score-2TP / (2TP + FP + FN)

SUPERVISED LEARNING · REGRESSION

Residual structure is evidence the model missed something

ŷ = fθ(x)
ei = yi - ŷi

Predict: remaining fatigue life (cycles)

predicted value →residual e
curvature → misspecified relationshipfunnel → non-constant varianceisolated points → inspect provenance

UNSUPERVISED LEARNING · PRESS R

Algorithms discover structure; engineers assign meaning

temperature (°C)vibration (m/s²)

Before naming clusters:

  1. What distance is used?
  2. Are units and scales comparable?
  3. Why this number of clusters?
  4. Is structure stable across resampling?
Standardizezij = (xij - μj) / σjFit μ and σ on training data only.

EVALUATION DESIGN

The split defines the claim you are allowed to make

Random rows

Valid only when rows are independent and deployment is exchangeable.

Group split

Bridge ABridge BBridge C

Tests generalization to an unseen asset.

Time split

pastrecentfuture

Tests forecasting under temporal drift.

TRAIN fit parametersVALIDATION choose model / thresholdTEST estimate once, after choices are frozen

DATA LEAKAGE · PRESS R

Preprocessing can quietly train on the test set

Wrong

All data→fit scaler→split→score

Test statistics influence the transform.

test information ↗

Correct

split→fit scaler on train→transform val/test→score
pipe = make_pipeline(StandardScaler(), model)
pipe.fit(X_train, y_train)
pipe.score(X_test, y_test)
Rule Any step that learns from data belongs inside the train-only pipeline.

Source: scikit-learn, Common pitfalls and recommended practices.

INTERACTIVE METRIC LAB · SELECT A SCENARIO

The same problem looks different through each metric

Pred +Pred - Actual +TP -FN - Actual -FP -TN -
Always compare: majority · simple statistical model · physics/rule baseline
Recall · Sensitivity · TPR-Of actual damage, how much did we catch?TP/(TP+FN)
Precision · PPV-Of alarms, how many were real?TP/(TP+FP)
Specificity · TNR-Of healthy cases, how many were cleared?TN/(TN+FP)
Negative predictive value-Of clearances, how many were healthy?TN/(TN+FN)
Accuracy-What fraction of all decisions were correct?(TP+TN)/N
F1 score-Harmonic balance of precision and recall.2TP/(2TP+FP+FN)
False positive rate · FPR-Healthy cases incorrectly alarmed.FP/(FP+TN)
False negative rate · FNR-Damaged cases incorrectly cleared.FN/(FN+TP)
No metric is universally best. Choose the denominator and error cost that match the engineering decision.
Two engineering teams reproduce the same result from one sealed evidence package

REPRODUCIBILITY

A result must travel with the conditions that created it

data hashsplit IDsenvironmentseed + configcode + commandoutputs + tolerance
Course contractSame evidence package → same result within a declared tolerance.Independent route → same conclusion is stronger replication evidence.
Model attribution analysis contrasted with a physical intervention experiment

INTERPRETABILITY

Start with the decision question

GlobalWhat patterns does the model use overall?summary importance · partial dependence
LocalWhy this prediction?feature attribution · counterfactual probe
ErrorWhere does it fail?residual slices · subgroup analysis
ActionCan a human use the explanation safely?stability · fidelity · domain plausibility

NIST distinguishes explainability of mechanisms from interpretation in the system's functional context.

INFERENCE BOUNDARY

Attribution is not causality

Prediction explanation

Temperature→Model score←TrafficWeather ↗ ↖
φj: allocate a prediction among features

Question: "Which observed features influenced this model output?"

Causal effect

do(x = x')→physical/system change→outcome
E[Y | do(X=x')] - E[Y | do(X=x)]

Question: "What would change if we intervened?"

Requires observational model + assumptions≠Requires identification, experiment, or defensible causal design

References: SHAP documentation; Judea Pearl, Causality; NIST AI RMF.

Students and instructor audit evidence for a bridge damage model

PAIR AUDIT · 4 MINUTES

Turn "92%" into an auditable claim

□ provenance + units□ prediction unit□ group/time split□ baseline□ error-cost metric□ uncertainty□ reproducibility package□ decision owner

Exit ticket

  1. Which Software layer owns units?
  2. What claim does the test split support?
  3. What evidence separates attribution from causality?
1.0 constraints · deployment-matched generalization · intervention/identification evidence
Next: ML evidence in practice - reproducible notebooks, baselines, and interpretable diagnostics.
Week 1 · Hour 1Choose a slide · O to close
← → navigate · R reveal · O overview · N notes · F fullscreen