sidenor_ladle - steel ladle refractory wear (sAIfety UPM)
Estimation and prediction of the wear of steel ladle refractory linings from infrared images of the ladle shell and process data.
Partially based on the Master's thesis of Jules Charvet (MUIOI, ETSII-UPM), supervisor Joaquín Ordieres Meré, within the RFCS project sAIfety.
What the package does
flowchart LR
A[/"Infrared .bin images<br/>(Termografiak)"/] --> P
B[/"Thickness Excel sheets<br/>(repairs, demolitions)"/] --> P
P["sidenor_ladle pipeline<br/>13 steps + 5 checks"] --> T[("Tables ready for<br/>modelling (CSV, NPY)")]
P --> R["Reports<br/>HTML / Markdown / PDF"]
P --> M["Reference models<br/>(thickness, RUL)"]
- Index the images and read the plant's thickness records (steps 01-02).
- Attach every image to its campaign and compute its remaining useful life; flag the doubtful images instead of dropping them (step 03).
- Isolate the ladle in each image (six candidate masks) and describe its temperature (whole shell, horizontal bands) (steps 04-06).
- Build sequences, the fixed split by ladle and remove the camera effect (steps 07-08).
- Give each image a thickness label, look for the wear signal and run the reference models (steps 09-11).
- Audit everything (steps 12-13 and five checks).
Quick start
poetry install # or: python -m venv .venv && pip install -e .
cp .env.example .env # then edit the paths of your machine
sidenor-ladle config validate # are the data folders found?
sidenor-ladle run # steps 01 to 13 + HTML report
sidenor-ladle -r md -r pdf run --from 5 # from step 05, Markdown and PDF reports
No real data at hand? Try the synthetic dataset:
sidenor-ladle dev synthetic --out /tmp/sidenor_fake
sidenor-ladle --data-root /tmp/sidenor_fake/imgs --thickness-dir /tmp/sidenor_fake/imgs/espesores_cucharas \
--output-root /tmp/sidenor_fake/run run
Where to go next
- Installation - Poetry, virtual environment, optional extras.
- Configuration and .env - every parameter, TOML / YAML / JSON.
- Command line - every command and option.
- Pipeline steps and checks - what each step reads, does and writes.
- Architecture and UML diagrams.
- API reference - generated from the Google-style docstrings.
Rules followed by the code
- Original data are never modified.
- Nothing is silently dropped: doubtful images receive a flag (
flag_*columns). - The split by ladle is fixed (test 17 and 18, validation 1 and 21). Test ladles are used only once, for the final test; every reference value is computed on training ladles, and no exploratory figure shows a test ladle. Exception: the identity checks of the folders, which use no wear information.
- Every parameter is in the configuration; private and machine-specific values are in
.env. - Version 4 reproduces the data files of version 3.8.0 byte for byte (regression test).
Use of AI
The code was written with the help of an AI assistant (Claude, Anthropic), as agreed with the supervisor on 10 November 2026. Design decisions are taken and justified by the author; the thesis text is written by the author.