Skip to content

Data model (the material)

The plant data are never modified. Every step writes its tables in its own folder of paths.output_root; the keys that join the tables are (folder, file) for an image, row for the arrays of step 04, (ladle, campaign) for a campaign and (ladle, timestamp) for a passage (all cameras of one capture).

Entity-relationship diagram

erDiagram
    BIN_FILE ||--o| INDEX_ALL : "indexed as (01)"
    INDEX_ALL ||--o| IMAGES_V2 : "becomes (03)"
    EXCEL_SHEET ||--|| THICKNESS_EVENT : "one event (02)"
    THICKNESS_EVENT ||--|{ THICKNESS_ROW : "has brick rows"
    THICKNESS_EVENT ||--o{ IMAGES_V2 : "DEM date gives campaign"
    IMAGES_V2 ||--o| TENSORS_INDEX : "row of the arrays (04)"
    TENSORS_INDEX ||--|| TENSOR : "tensors_raw_fp16[row]"
    TENSORS_INDEX ||--|| MASK_BITS : "masks_bits_u8[row]"
    TENSORS_INDEX ||--|| FEATURES_E : "40 features (05)"
    TENSORS_INDEX ||--|| FEATURES_BANDS : "bands (06)"
    FEATURES_E ||--|| FEATURES_E_CENTERED : "centred (08)"
    IMAGES_V2 ||--o| IMAGES_THICKNESS : "label A/B (09)"
    CAMPAIGN_PROFILE ||--o{ IMAGES_THICKNESS : "known points"
    TENSORS_INDEX }|--o{ SEQUENCE : "window of W rows (07)"
    IMAGES_V2 }|--|| PASSAGE : "ladle + timestamp"

    BIN_FILE {
        bytes header "sync, height, width"
        float32 values "240 x 320 degC"
    }
    INDEX_ALL {
        string folder PK
        string file PK
        int px_shell
        int px_bath
        string error
    }
    IMAGES_V2 {
        string folder PK
        string file PK
        int ladle
        int camera
        datetime timestamp
        int plant_heat
        int heat
        string campaign_id FK
        float RUL_heats
        bool after_repair
        bool flag_x "11 flags"
        bool usable_for_training
    }
    THICKNESS_EVENT {
        int ladle PK
        int campaign PK
        string type PK "REP or DEM"
        date date_demolition
        int heats_at_demolition
        int extra_heats
        int upper_zone_from_fila
    }
    THICKNESS_ROW {
        int ladle FK
        int campaign FK
        string type FK
        int fila
        float original_mm
        float side1_mm
        float side2_mm
        float repair_installed_mm
    }
    TENSORS_INDEX {
        int row PK
        string folder FK
        string file FK
        string read_error
    }
    TENSOR {
        float16 image "320 x 240 degC"
    }
    MASK_BITS {
        uint8 bits "bit k = mask k, 4 = E, 5 = F"
    }
    FEATURES_E {
        int row FK
        float T_mean
        float T_p95
        float top40_minus_bot40
    }
    FEATURES_E_CENTERED {
        int row FK
        string split "train, val, test"
        float T_mean_c
    }
    FEATURES_BANDS {
        string folder FK
        float band0_mean
        float band0_mean_c
    }
    IMAGES_THICKNESS {
        string folder FK
        string anchor_A
        float thk_A_upper
        float thk_B_upper
    }
    CAMPAIGN_PROFILE {
        int ladle PK
        int campaign PK
        float start_upper
        float demolition_upper
    }
    SEQUENCE {
        int seq_id PK
        string tensor_rows "row1;row2;..."
        float target_RUL_heats
        string split
    }
    PASSAGE {
        int ladle PK
        datetime timestamp PK
        bool first_of_repeated
        bool suspect
    }

Files per step

Step Main outputs Key
01 Inventory index_all.csv, inventory.csv, errors.csv, environment.txt folder, file
02 Thickness records thickness_events.csv, thickness_rows.csv, parse_log.csv ladle, campaign, type (, fila)
03 Campaigns images_v2.csv (master table), campaigns_v2.csv, bad_names.csv folder, file
04 Images and masks tensors_raw_fp16.npy, masks_bits_u8.npy, tensors_index.csv, mask_comparison.csv row
05 Features features_E.csv row
06 Bands features_bands.csv, band_worn_minus_new.csv folder, file
07 Sequences sequences_W5.csv, split_ladles.csv seq_id
08 Centering features_E_centered.csv, camera_medians.csv, centering_check.csv row
09 Thickness target images_thickness.csv, campaign_profiles.csv folder, file
10 Signal diagnostic signal_diagnostic.csv feature
11 Baselines cv_results.csv, predictions_oof.csv target, inputs, algo
12 Audit audit_alignment.csv row
13 Band evolution figures only campaign

Every step also writes <key>.result.json (summary, key numbers, tables and figure specifications used to rebuild a report) and, by default, its figures as PNG.