Scrap optimization for steelmaking

Data Scientist at U. S. Steel Košice · 2021–2025

My title was data scientist, but our team of about twelve worked like a full-stack product team: data scientists also built and ran production software, and I often did more development than modeling.

Roughly a fifth of every heat of steel is scrap. The plant used dozens of scrap types with different levels of trace elements such as sulphur, tin and chromium, and with different prices and availability, while each steel grade sets upper limits on those elements. Choosing the scrap mix means balancing cost against the risk of missing the grade.

In a sub-team of four to five people, I worked on a toolkit that made this choice:

The recommendations were used for every heat, day and night, for several years; at first alongside the legacy software the toolkit was meant to replace. Process engineers used the rules editor and the explanation view whenever they needed them, and purchasing ran its planning every month.

I worked directly with all three groups of users, and their feedback shaped the toolkit. The explanation view answered process engineers’ frequent question of why the algorithm chose one scrap over another. When users found the first optimizer, an evolutionary algorithm, too slow, we replaced it with linear programming.

I worked mostly on the backend. The apps ran on Django, with frontends first in Dash and later in React, background workers on Dramatiq and Redis, and an Oracle database, deployed as Docker containers and later on Kubernetes, with CI/CD in Azure DevOps.