Derek Research ExperienceONE RESEARCH · THREE EXPERIENCES
PDF

EXPLORE / EVIDENCE WORKSPACE

Free exploration · inspect methods, evidence, contributions and resources in any order. Return to narrative
← All projects
RESEARCH CASE STUDYOctober 2026

MaterialSense Reliable machine learning for concrete strength

A reproducible benchmark of concrete-strength prediction on unseen recipes, with an interface for examining uncertainty estimates and error-risk warnings.

Reproducible public-data benchmark · local research-engineering prototype, not a validated design tool.

Role
Project owner & maintainer
Stack
Python · scikit-learn · Streamlit
LOCAL STREAMLIT INTERFACERecorded MaterialSense interface with mix sliders, a pinned recipe and prediction intervalsEnlarge image
Actual local UI. The age-response plot samples a fitted model; its shading is not simultaneous coverage of a physical strength curve.
Dataset observations
1,030
Exact recipes
428
Prespecified resplits
10
Grouped test RMSE
5.641 MPa

RMSE sample SD: 0.788 MPa across overlapping resplits; not an independent-replication confidence interval.

KEY TAKEAWAY

Evaluate a model where it is meant to generalize, report uncertainty beside predictions, and make failures visible rather than hiding them. The cross-source results demonstrate the limits of the current benchmark.

See where it fails

Research question

Can a model predict the strength of a concrete recipe absent from training?

The UCI dataset contains 1,030 observations and 428 exact seven-ingredient recipes. A recipe may appear at several curing ages. A random-row split can expose the same recipe in training and testing, answering a different question from prediction on unseen recipes.

MaterialSense combines a small scientific machine-learning benchmark with an interface for inspecting predictions, intervals, and warnings. It makes the evaluation assumptions and limits visible alongside the results.

Data: I-Cheng Yeh, UCI Concrete Compressive Strength. Seven ingredient quantities and curing age. No new lab measurements were collected. Dataset and attribution (CC BY 4.0).

System architecture

Recipes are identified by the seven ingredient quantities. Age remains a predictor but is excluded from the grouping key. For each seed, recipes are split 60/20/20 into training, calibration, and test sets. Five-fold GroupKFold within training selects among a mean baseline, Ridge, RandomForest, and GradientBoosting. Calibration and test recipes are excluded from model selection.

SYSTEM BLUEPRINT

One project, three architectural views

Follow the experimental partitioning, then the application and its evidence trail.

01 Study design

01 · Data identity

  1. UCISource records1,030 observations · 8 inputs
  2. Group keyExact recipe7 ingredient quantities, excluding age
  3. 42–51Recipe-group split428 recipes · 10 prespecified resplits
Three disjoint recipe sets per seed

02 · Evaluation topology

  1. 60%Train & select5-fold GroupKFold · mean, Ridge, RF, GBDTFit model and preprocessing here
  2. 20%CalibrateGroup-maximum residual and CQR scoresNominal 90% target
  3. 20%Held-out testPoint error, coverage, width, warningNo tuning on test data
Artifact flowTraining fitsCalibration correctionsFrozen test evaluation

Recipe membership stays separate across all three partitions. Age remains a predictor. The row-random protocol is only a separate diagnostic.

Architecture of the recorded ten-seed benchmark; split proportions are recipe-level, not exact row percentages. Study protocol · Split audit (CSV).

02 Local application

01 · Local input and feature preparation

  1. InputMix + curing ageSeven ingredients (kg/m³) and age (days)
  2. FeaturesInput transformationRaw / selected engineered point-model inputs; standardized raw inputs for KNN
Saved seed-42 artifacts; no refitting on slider movement

02 · Three parallel signals

  1. Point estimateFitted regressorPredicted compressive strength (MPa)
  2. UncertaintyResidual / CQRNominally calibrated prediction bounds
  3. Novelty5-neighbor distanceThreshold fixed from training distances
Display together, do not combine into a safety score

03 · Local Streamlit interface

  1. A/BPinned recipe comparisonAge-response exploration and interval switching
  2. CSVInspect & exportMeasured-data view and result export

The portfolio hosts the recorded interface and saved evidence only. Warning, point estimate and interval are distinct signals, not engineering certification.

Documented local application architecture. View recorded workflow.

03 Evidence chain

01 · Prespecified study

  1. 42–51ConfigurationSeeds, splits, estimators and fixed warning quantiles
  2. RunRecorded outputsPer-seed metrics, calibration, prediction and overlap records
  3. SHA-256Evidence identityManifest and checksums for published evidence
Curated public evidence package

02 · Public surfaces

  1. GitHubPublic sourceRunnable study, data attribution and verification script
  2. PortfolioResearch case studyEvidence plots, tables, local recording and scope

The original private archive and trained models are not deployed. The Wu 2019 predictions are an exploratory frozen-model assessment, not harmonized external validation.

Evidence manifest · Public source repository.

The evaluation must distinguish recipe overlap from complete duplicate rows, row-weighted error from group-balanced error, and statistical novelty from known distribution shift. The grouped and random-row protocols use different test observations, so their metric difference cannot isolate a causal effect of leakage.

Benchmark evidence

Results are descriptive means and sample standard deviations over overlapping resplits, not independent replications or confidence intervals. Errors and interval widths are in MPa. The tables below report measured outcomes, including findings that did not improve.

EXPERIMENT 01

Generalization protocol

Explore the difference between two recorded evaluation protocols.

RMSE (MPa)

Group-held-out
5.641 ± 0.788
Random-row diagnostic
5.371 ± 0.321
RMSE (MPa) 02468 42434445464748495051 Prespecified seed

Scroll the chart horizontally to inspect all ten seeds.

Each mark is one recorded resplit; no connecting trend line. Values above are mean ± sample SD.

Exact values for each seed
RMSE (MPa)
SeedGroup-held-outRandom-row diagnostic
425.2175.282
435.8465.972
445.8895.350
456.9065.131
464.2434.959
474.5645.243
485.9125.666
495.9604.985
505.5875.596
516.2885.526

MAE (MPa)

Group-held-out
4.157 ± 0.609
Random-row diagnostic
3.782 ± 0.276
MAE (MPa) 02468 42434445464748495051 Prespecified seed

Scroll the chart horizontally to inspect all ten seeds.

Each mark is one recorded resplit; no connecting trend line. Values above are mean ± sample SD.

Exact values for each seed
MAE (MPa)
SeedGroup-held-outRandom-row diagnostic
423.8873.724
434.0094.191
444.4463.786
455.3433.626
463.2283.532
473.4193.549
484.1984.114
494.5503.375
503.9504.092
514.5373.831

R²

Group-held-out
0.878 ± 0.026
Random-row diagnostic
0.895 ± 0.014
R² 00.250.50.751 42434445464748495051 Prespecified seed

Scroll the chart horizontally to inspect all ten seeds.

Each mark is one recorded resplit; no connecting trend line. Values above are mean ± sample SD.

Exact values for each seed
R²
SeedGroup-held-outRandom-row diagnostic
420.8870.892
430.8810.872
440.8620.895
450.8680.908
460.9120.913
470.9130.901
480.9000.888
490.8260.913
500.8670.884
510.8660.886
Different test observations prevent an isolated causal leakage estimate. Ten overlapping resplits are not independent material experiments. Summary CSV · All candidate metrics.
EXPERIMENT 02

Feature ablation

Fixed random forest, identical grouped splits; group-balanced RMSE (MPa).

Raw eight inputs6.180 ± 0.707
+ Water / binder5.639 ± 0.867
+ SCM fraction5.748 ± 0.863
+ Total mass5.817 ± 0.711
048 MPa

−0.54 MPa mean reduction when adding the water-to-binder descriptor. It improved all ten recorded comparisons; the next two descriptors did not further improve average RMSE.

Bars are means; whiskers are sample SD. This is a model- and dataset-specific association, not a causal materials claim. Paired runs · Summary CSV.
EXPERIMENT 03

Coverage comes with a width trade-off

Recipe-level group-maximum calibration, nominal 90% target.

Residual

Whole-recipe coverage91.0%

Row coverage: 95.1%

Mean width24.225 MPa

CQR

Whole-recipe coverage93.1%

Row coverage: 96.0%

Mean width28.677 MPa

Coverage: 0–100%; dashed marker = nominal 90%. Width: 0–35 MPa.

Means of per-seed statistics. Higher average coverage for CQR accompanied wider intervals. Group coverage assumes exchangeable recipe clusters, covers recorded age sets only, and is not an OOD, conditional, or continuous-curve guarantee. Counts and denominators.

The worst split achieved 84.9% whole-recipe coverage with residual intervals and 89.5% with CQR. Means should be read together with variability and the calibration assumptions.

Original benchmark figure and summary tables
Point prediction across ten seeds
ProtocolMAE (MPa)RMSE (MPa)R²
Grouped4.157 ± 0.6095.641 ± 0.7880.878 ± 0.026
Random-row diagnostic3.782 ± 0.2765.371 ± 0.3210.895 ± 0.014
Fixed-forest feature ablation
Nested inputsGroup-balanced RMSE (MPa)
Raw inputs6.180 ± 0.707
+ Water/binder ratio5.639 ± 0.867
+ SCM fraction5.748 ± 0.863
+ Total ingredient mass5.817 ± 0.711
Interval calibration (nominal 90% target)
MethodRow coverageWhole-recipe coverageMean width (MPa)
Residual95.1%91.0%24.225
CQR96.0%93.1%28.677
Three saved benchmark plots showing per-seed error, feature ablation, and interval coverage versus widthEnlarge image
Original saved benchmark figure. Each point is one of the ten prespecified resplits. Left: row RMSE; middle: recipe-balanced RMSE.
RELIABILITY DIAGNOSTIC

Inspect the warning thresholds

Switch among the four prespecified training-distance quantiles. This only reveals retained test diagnostics; it does not select or modify the model threshold.

0.80

Absolute error > 10 MPa

Error-event recall53.0%
Warning precision12.3%
False-positive rate32.6%
0%50%100%

Mean absolute error

Flagged5.183 MPa
Not flagged3.584 MPa
048 MPa

Average of the 10 per-seed statistics.

0.90

Absolute error > 10 MPa

Error-event recall38.2%
Warning precision14.5%
False-positive rate19.7%
0%50%100%

Mean absolute error

Flagged5.707 MPa
Not flagged3.710 MPa
048 MPa

Average of the 10 per-seed statistics.

0.95 · Default

Absolute error > 10 MPa

Error-event recall29.1%
Warning precision18.1%
False-positive rate11.7%
0%50%100%

Mean absolute error

Flagged6.431 MPa
Not flagged3.799 MPa
048 MPa

Average of the 10 per-seed statistics.

0.99

Absolute error > 10 MPa

Error-event recall5.5%
Warning precision12.5%
False-positive rate3.3%
0%50%100%

Mean absolute error

Flagged6.000 MPa
Not flagged4.091 MPa
048 MPa

Average of the 10 per-seed statistics.

Distance is a novelty signal, not a ground-truth OOD label. The default 0.95 threshold had only 29.1% recall and 18.1% precision for the specified large-error event. An unflagged result can still be very wrong. Summary CSV · Confusion counts.
Original warning diagnostic figure and failure notes
Saved KNN risk threshold plots and flagged error comparisonEnlarge image
Saved warning diagnostics. Thresholds were fixed from training distances, not optimized using test errors.

Read recorded held-out failure cases · Failure cases (CSV).

Application workflow

Ten prespecified seeds (42–51) combine grouped model selection, fixed-forest feature ablation, group-maximum residual and conformalized quantile regression (CQR) intervals, and training-standardized KNN distance warnings. Material descriptors are added in a fixed order; warning thresholds are not selected on test performance.

Python, pandas, NumPy, scikit-learn, quantile gradient boosting, Matplotlib, pytest and a bilingual Streamlit application. The experiment stores configuration, split assignments, predictions, calibration scores and checksums.

The local application supports recipe sliders, curing-age exploration, pinned A/B comparisons, interval switching, measured-data inspection and CSV export. It uses saved artifacts rather than retraining when an input changes.

Recorded measured-data map and evaluation inspection viewEnlarge image
Actual Data & evaluation view. The two-dimensional map helps inspect observations; it does not establish physical similarity or external validation.

Recorded demonstration

A 55-second silent recording of real application interactions. Follow the saved model as an age changes, a recipe is pinned, intervals are switched and a CSV is exported. English and Chinese captions are available.

Recorded on 26 October 2026. Example predictions are model outputs, not new measurements or benchmark averages. This is a recording, not a hosted Python inference service.

Cross-source failure analysis

EXPLORATORY · NOT VALIDATION

Frozen-model exploration on Wu 2019

One source, seven recipes and five ages: 35 three-specimen means. Wu labels were not used for fitting, model selection, tuning, strength conversion or recalibration. This is exploratory cross-source assessment, not harmonized external validation.

Underpredicted means
35/35
MAE
15.327 MPa
RMSE
15.685 MPa
Whole recipes covered
0/7

Residual intervals cover 2/35 observations; CQR covers 11/35. Both cover all five recorded ages of 0/7 recipes. The 16 observations without a distance warning still have MAE 14.960 MPa. These are not 35 independent recipes or 105 acquired raw measurements.

SAVED-PREDICTION EXPLORER

Examine a recorded cross-source failure

Choose one of the 35 saved observations and an interval method. The display reads the frozen predictions and published three-specimen means; no new inference or lab measurements.

F3R2 · 14 days · CQR

Reported mean
61.5 MPa
Frozen prediction
40.515 MPa
Signed error (pred. − obs.)
-20.985 MPa
PredictionReported meanPrediction interval
Prediction interval
25.946–58.229 MPa
Reported mean in interval?
Not covered
Distance warning
Not triggered
Distance / threshold
1.188 / 1.336

This recorded mean lies outside the selected interval, while no distance warning was triggered. No warning is not evidence of safety.

Source: Wu et al. (2019), seven recipes / five ages, frozen seed-42 model. The target definitions and specimen geometry have not been harmonized with UCI. All 35 saved predictions · DOI 10.3390/app9112266.

Specimen geometry, provenance and target aggregation are not fully harmonized with UCI. Slag=0 is a structural inference; the original ± definition is unconfirmed; the 91-day highest-value prose conflicts with the table. These errors do not isolate a physical cause.

Original cross-source figure, provenance and recomputation
Frozen-model predictions versus 35 reported Wu means, all below equalityEnlarge image
Retained exploratory results. F3R2 at 14 days: reported 61.5 MPa, predicted 40.515 MPa, without a distance warning.

Scope, provenance and unresolved issues · Recomputed summary (JSON).

Source: Wu et al. (2019), CC BY 4.0. Phase 6 recomputed the same records; it is not a new laboratory experiment or independent human blind review. DOI 10.3390/app9112266.

Candidate data screening

This section records the initial screening of three candidate datasets for input compatibility, licensing, and source overlap. It does not report external model performance.

Candidate releases checked on 24 October 2026
DatasetRecordsFinding
Pavement Concrete1,430The strength file lacks superplasticizer dosage, a required model input.
Blended Cement8,979119 records share all eight inputs with UCI. The initial review focused on a subset attributed to Oner 2007.
Global SCM v21,456122 records cite the Yeh source. Some targets were converted from cube to cylinder strength.

Official data releases: Pavement Concrete · Blended Cement · Global SCM v2.

The initial screening identified a subset of 224 observations from 32 recipes at seven ages. It found no exact UCI recipe overlap or near overlap at a per-ingredient tolerance of 0.1 kg/m³. At that stage, source independence still required method review. A public paper transcription described 150 mm cubes and a mean of six specimens; the superplasticizer zero values and comparability with the UCI target remained unresolved. Original study.

A read-only audit command records data hashes and checks for reuse of recipes, input vectors, and complete rows, including cases with changed ages or labels. It rejects unexpected columns and protects existing outputs. The historical UCI benchmark is preserved.

My contributions

I own and maintain MaterialSense. Implementation, debugging, experiment tooling, and documentation were AI-assisted. The project uses established estimators and calibration methods, with the UCI data credited separately; it does not claim unaided authorship or an original statistical method.

The project includes grouped evaluation, feature ablation, interval calibration, warning diagnostics, saved experiment files and a bilingual application. It remains a research-engineering prototype, without a publication, funding award or claimed external adoption.

Limitations and next study

Exact recipe groups are not verified independent laboratory batches. The dataset lacks reliable laboratory or batch identifiers, and the group-coverage interpretation requires exchangeable recipe clusters. Further external evaluation requires traceable sources, compatible target definitions, and a protocol fixed before inspecting predictions.

This is not a validated concrete design tool. The model is not constrained to physical strength-development laws. Predictions, distance flags and physical screening heuristics are separate signals, and none certifies structural safety.

Code and reproducibility

A curated source repository is public; the original project archive remains private. This page shares selected tables, methodological notes, screenshots and a silent app recording; it does not host Python inference.

Presentation updated 28 November 2026. The historical experimental data, trained-model scope and original recorded evidence remain unchanged.

Contact me about MaterialSense

Full-size project image

Open original