TraceFlow
AI-powered traceability for recycled materials.
Created on 26th March 2026
•
TraceFlow
AI-powered traceability for recycled materials.
The problem TraceFlow solves
The recycling industry is a cornerstone of global sustainability, but its supply chain is notoriously opaque. Tracking a plastic bottle from a local scrap vendor, through the washing and shredding process, all the way to becoming a finished recycled pellet usually involves messy spreadsheets, manual data entry, and siloed software.
This lack of transparency causes three massive problems:
- It is incredibly difficult to calculate actual material yield and pinpoint where physical losses are happening on the factory floor.
- It is easy for fraudulent or non-compliant materials to slip into the supply chain.
- Companies struggle to prove their compliance for sustainability certifications and Extended Producer Responsibility (EPR) audits.
TraceFlow AI solves this by providing an intelligent, end-to-end traceability platform specifically built for recycled materials.
We make the existing workflow significantly easier by allowing warehouse managers and floor workers to log inventory using natural language. Instead of navigating complex drop-down menus, a worker can simply type or speak, "Received 500kg of PET plastic from Vendor A and sent it to washing." Our NLP engine automatically extracts the entities and updates the database.
We make the process safer and more transparent for plant operators by visualizing the exact journey of all materials using interactive Sankey diagrams. If a batch of plastic loses an unusual amount of weight during the washing phase, our integrated Machine Learning models (Isolation Forest and XGBoost) instantly flag the anomaly, allowing quality control teams to catch inefficiencies or theft in real-time.
Challenges we ran into
💥 The D3.js Sankey Crash
The Bug: Our material flow visualization broke during backend integration. d3-sankey strictly requires numeric indices, but our database uses string-based IDs (like "INV-S4"), causing the canvas to crash with cryptic errors.
The Fix: Instead of building fragile data-mapping dictionaries, we configured D3 natively to accept strings using .nodeId((d) => d.id). We paired this with a pre-render sanitization script to strip out circular loops and orphaned nodes. It rendered flawlessly on the first compile.
🧠Taming Unstructured Jargon
The Hurdle: We wanted natural chat interactions, but parsing factory jargon with Regex was too brittle, and sending every message to a massive LLM was too slow and expensive.
The Fix: We built a two-tier NLP pipeline. A lightweight, local DistilBERT model handles rapid intent classification (e.g., logging vs. querying). Only then do we ping Featherless API LLMs to extract specific entities. This architectural split slashed latency and made the bot highly accurate.