Predicting Steel Scrap Composition from Sparse Phone Photos
On one plant's operator estimates, frozen DINOv2 features with plain view averaging remove most of the error, but the model reproduces the operator's sheet rather than the physical composition, so it does not transfer across plants or support settlement.
On this page
A buyer holding 6 photos of a scrap pile and an operator's composition sheet must decide what to pay — yet nobody knows how much of that sheet is actually in the pixels. The usual advice is to trust the grader, because the physical composition of a multi-ton pile is never measured and the operator watches the truck unload while the camera does not. This paper asks the narrow version of the question: keep the existing workflow, take only the photos the operator already saved, and see how much of the recorded number a frozen vision backbone can reproduce. On 600 held-out piles the gap to the operator estimate is 13.4% total variation, against 40.4% for a photo-free prior fitted on the training split [1]. The gap is real, but it measures agreement with a person, not with the material.
The label is an operator's estimate, not an assay
The task takes a variable number of handheld photos of one pile and outputs a six-class mass composition summing to 100%: Stamped steel, Cast iron, and heavy melting scrap (HMS) in four thickness bands, above 6 mm, 4–6 mm, 2–4 mm and 0–2 mm. Supervision is the number an operator typed into a tablet at one-percentage-point resolution after watching the truck unload and the pile being handled [1].
The paper is explicit that the true physical composition is never observed. The photos and the operator estimate are two imperfect observations of the same pile: views omit, occlude and duplicate material, while the operator sees more than the camera and adds judgement. The model therefore learns what the sheet says, not what the pile contains.
The metric is total variation distance, which is the minimum share of the composition vector that must be reassigned to match the operator. A figure of 13.4% means roughly thirteen points still have to move. Lower is better, but the target is a human, not a measurement.
750 piles and 4,187 photos from a single plant
The data comes from one plant and eight operators, covering 750 piles: 223 with a single class and 527 with two or more. Piles carry a median of 5 views, ranging from 1 to 19, for 4,187 images in total. View count is not controlled during acquisition, which later becomes a boundary of the method. The three thinner HMS classes appear only in heterogeneous piles.
| Class | Active piles | Mean share (%) | Homogeneous piles |
|---|---|---|---|
| Stamped steel | 99 | 13.0 | 96 |
| HMS >6 mm | 596 | 49.6 | 118 |
| HMS 4–6 mm | 506 | 15.1 | 0 |
| HMS 2–4 mm | 465 | 16.6 | 0 |
| HMS 0–2 mm | 251 | 3.3 | 0 |
| Cast iron | 365 | 2.4 | 9 |
Five fixed, pile-disjoint folds hold 150 piles each, stratified by dominant class and active-class count. Fold F0 is used for development, and primary results pool held-out predictions from F1 to F4, giving 600 piles: 180 homogeneous and 420 heterogeneous. The paper labels this a non-nested evaluation, because F1–F4 also contributed training data to development-fold comparisons [1].
Frozen DINOv2 with mean pooling beats learned aggregation
The backbone is never trained. Images are rotated by EXIF orientation, resized directly to 896×504 with no crop or padding, and passed through a frozen DINOv2 ViT-L/14, producing a 64×36 token grid that 4×4 average pooling reduces to 144 spatial tokens. Each token goes through a 1024→256 linear projection with LayerNorm, GELU and dropout 0.1, then tokens are averaged within a view and view embeddings are averaged across views, feeding a six-class linear head with softmax.
Training minimises KL divergence against the operator label with AdamW, weight decay 0.05, two piles per batch and 40 epochs. Learning rates warm up over 10% of steps and decay by cosine to 1% of peak, with peaks of 8×10⁻⁴ for mean pooling and gated ABMIL and 5×10⁻⁵ for self-attention; gradient norms are clipped to 1.0. Three seeds, 42, 156 and 2026, are reported.
Two heavier aggregators are compared: gated ABMIL, which learns attention weights over views, and a self-attention variant borrowing VGGT's alternating global and frame attention, with four heads and feed-forward width 256. A no-projector ablation is also included.
13.44% against a 40.44% photo-free prior
| Method | All mean | All median | Homogeneous mean | Heterogeneous mean |
|---|---|---|---|---|
| TV-optimal prior (no images) | 40.44 | 36.00 | 67.76 | 28.73 |
| Mean pooling | 13.44 | 10.20 | 5.05 | 17.03 |
| Self-attention | 13.76 | 10.40 | 4.60 | 17.69 |
| Gated ABMIL | 15.43 | 11.84 | 6.07 | 19.45 |
| Mean pooling, no projector | 14.03 | 11.16 | 6.87 | 17.10 |
All entries are out-of-fold TV in percent over 600 piles. Mean pooling varies by 0.03 across seeds, while the prior reaches 67.76 on homogeneous piles, because most of those are the thickest HMS band and one constant vector cannot serve both pure and mixed loads. The difficulty concentrates in heterogeneous piles at 17.03% against 5.05%.
Self-attention lands at 13.76±0.35, inside seed noise of mean pooling at 13.44±0.03, and gated ABMIL is worse at 15.43±0.11. On this dataset, learned view weighting buys nothing.
The residual error sits inside the four HMS thickness bands
Collapsing the four HMS classes into one leaves the question of how the HMS share is split. The paper reports within-HMS TV of 25.1% when each prediction keeps its Stamped steel and Cast iron shares plus total HMS share but splits HMS using a fixed training-set prior. Letting the image decide the split drops that to 11.2% [1]. Thickness information is genuinely in the photos.
A 1-Wasserstein diagnostic measures cumulative discrepancies across the 6, 4 and 2 mm boundaries in class steps, not millimetres. The comparison with LASER is restricted to 405 heterogeneous piles whose target is at least 95% HMS, scored with a pooled RMSE over normalised HMS shares, a threshold chosen to keep piles carrying 1–5% Cast iron.
View-count experiments use 356 heterogeneous piles with at least four views, averaging 30 nested subsets per pile for k in 1, 2, 4 and all. A target-conditioned oracle freezes the mean-pooling model and optimises only per-view softmax weights against the true target, checked against five structured shuffles that preserve dominant class, active-class count and dominant-share differences within 10 points.
The only external check is DOES, which measures something else
The authors state that no public benchmark for mass-composition estimation exists, and the composition dataset is proprietary. External evaluation therefore leans on DOES, a public European scrap-category dataset built for classification. A classifier on the same frozen features reaches 93.97% accuracy, above the published results the paper compares against, and the composition model aligns with related DOES categories without adaptation [1].
Those two numbers answer different questions and should never be quoted together. The 13.4% figure describes agreement with an operator estimate; the 93.97% figure describes how reusable the features are on a classification task elsewhere.
When this does not apply
The method fails when the plant, country or scrap stream changes, because every pile comes from one plant and eight operators, and the class definitions, especially HMS thickness bands, carry site conventions with no cross-plant validation.
- It does not apply when you need physical composition rather than an operator estimate: labels are the sheet, so the ceiling is the sheet, and inter-operator agreement is not reported.
- It does not apply to settlement or audit: the data is proprietary, no public composition benchmark exists, and the evaluation is non-nested, so generalisation claims are out of scope.
- It does not apply when acquisition must be guaranteed: view counts run from 1 to 19, photos miss, occlude and repeat material, and coverage of the pile is never assured.
- It does not apply as evidence for other tasks: DOES scores show feature transfer only, not composition accuracy on a new dataset.
What remains is a specific and useful role. If you already keep inspection photos, want no new hardware and no annotation, and need a starting value far better than guessing the training average, this is a screening tool. The distance between 13.44% and 40.44% is the whole of its value, and it is not a settlement figure.
