Food Traceability Graph β Turning food recalls into real-time graph traversals
Food recalls are not just a database problem β they are a connectivity problem.
Imagine a supplier notifies a cloud-kitchen network that one batch of paneer is contaminated. The company instantly needs to know:
- Which kitchens received that batch
- Which dishes used it
- Which customers ordered those dishes
We built TraceChain, a Neo4j-powered food traceability system that solves exactly this.
Graph Model
text
(:Supplier)-[:SUPPLIED]->(:Batch)-[:USED_IN]->(:Kitchen)-[:PREPARED]->(:Dish)-[:ORDERED_BY]->(:Customer)
How it works
- An operator flags a contaminated Batch or Supplier.
- A Cypher traversal follows every downstream relationship in real time.
- The system returns an actionable recall view:
- Kitchens affected
- Dishes that must be pulled from the menu
- Customers who should be notified
Demo highlights
- Flag batch PNR-1001 β instantly shows 2 kitchens + 4 dishes + customer names
- Flag an entire supplier (Amul Dairy Gurugram) β impact cascades to multiple batches and 3 kitchens
- Full supply-chain table view available for audit
Built with Neo4j + Streamlit.
Happy to share the data model, Cypher queries, or the live demo link if anyone is interested!
Here is my project link: