What it does
ColdChain Guard is an AI-powered forensic investigation system that transforms raw IoT reefer telemetry and complex maritime carriage contracts into structured, evidence-backed claim documents.
When high-value pharmaceuticals, biologics, or perishable cargo experience temperature excursions during transit, freight claims teams must reconstruct what happened, examine thousands of timestamped data points, interpret contractual liability clauses, and assemble the findings into a formal claim. This is a tedious, fragmented process involving technical evidence, dense legal language, and commercially sensitive information.
ColdChain Guard brings this entire investigation into one streamlined workflow:
- Telemetry Audit: Python and Pandas process sensor logs to identify temperature-threshold breaches, calculate peak temperatures and observed breach spans, inspect reefer power-status readings, and render an interactive Plotly timeline.
- Privacy-Preserving Redaction: Contracts are parsed using
pypdf, while local regex-based masking identifies and redacts selected sensitive identifiers, including EINs, IBANs, and corporate emails before contract text is sent for AI analysis. - AI-Assisted Contract Analysis: NVIDIA Nemotron 3.5 Lightning, hosted on Nebius Token Factory, analyzes the sanitized contract text alongside the calculated shipment evidence to identify relevant liability clauses, assess contractual thresholds, extract relevant indemnity terms, and draft a formal claim notice.
- Claim Compilation: The structured findings are assembled using
python-docxinto an editable Word document containing the claim narrative, supporting evidence, and signature lines for claims-team review.
Core Architectural Principle: Sensor arithmetic stays in deterministic Python code. The language model focuses on contextual contract interpretation and claim drafting, using calculated telemetry findings as the factual basis for its analysis.
How I built it
I built ColdChain Guard as a modular Python pipeline wrapped in an interactive Streamlit application, connecting data analysis, document privacy, AI inference, and claim generation into one workflow.
- Telemetry Engine (
data_engine.py): Uses Pandas to process timestamped sensor readings, identify threshold violations, calculate peak temperatures and observed breach spans, and surface power-status information. Plotly turns the results into an interactive timeline for investigation. - Privacy Layer (
redact_engine.py): Usespypdffor PDF text extraction and regex-based masking to redact selected commercial and personal identifiers before the extracted contract text is submitted for AI analysis. - Inference & Routing (
ai_engine.py): Uses the OpenAI Python SDK with configurable inference endpoints, including NVIDIA Nemotron 3.5 Lightning through Nebius Token Factory and NVIDIA NIM. The model is used for contract interpretation and structured claim generation rather than sensor arithmetic. - Structured Output & Parsing: Implements JSON-oriented model prompting and fallback parsing to handle structured responses and multi-paragraph claim text, connecting model output to the downstream claim-generation workflow.
- Artifact Generator: Uses
python-docxto compile the analysis into an editable Word document with a formal claim narrative, evidence tables, and signature lines. Interactive Application: Uses Streamlit to bring the workflow together, allowing users to upload shipment telemetry and contract documents, inspect the analysis, and generate a claim-document draft.
Regular code cannot interpret the semantic nuances of a multi-page maritime carriage contract. While Python computes the physical breach metrics deterministically, NVIDIA Nemotron operates as the cognitive legal engine: it analyzes the contractual language, maps the verified breach to specific default clauses, calculates financial indemnity exposure, and drafts the evidentiary claim letter.
Accomplishments that I'm proud of
I am proud of building an end-to-end tool around a genuine, high-stakes logistics problem, not just another conversational chatbot turning a 30-to-90-day fragmented administrative dispute into an editable claim document in seconds. Cold-chain incidents can leave claims teams facing two very different forms of evidence: thousands of sensor readings that must be analyzed accurately, and dense contracts that must be interpreted in context. ColdChain Guard connects both sides of that investigation and turns the findings into a practical claim-document draft.
What I value most is the architecture behind it. Sensor metrics are calculated with Python and Pandas; selected sensitive identifiers are redacted before contract text is sent for AI analysis; and NVIDIA Nemotron is used where contextual language understanding adds value. The result is a focused workflow that brings technical evidence and contractual reasoning together instead of leaving users to reconcile them manually across separate tools.
Building the pipeline also meant working through the practical challenges of integrating PDF extraction, pattern-based redaction, model inference, structured output parsing, and Word-document generation. Connecting those components into a single application was a major milestone and it gave me a clearer understanding of what it takes to build AI systems around real operational constraints.
What I learned
This project reinforced that building reliable AI applications is as much about defining the right engineering boundaries as it is about choosing a model. I learned to separate deterministic calculations from language-model reasoning, design structured prompts and outputs, handle multi-paragraph model responses, and configure inference across compatible providers.
Most importantly, I learned that language models are not most useful when they replace traditional algorithms. They are powerful when they complement them: deterministic code establishes the calculated evidence, while the model helps interpret complex language and turn that evidence into a useful, structured outcome. ColdChain Guard gave me a practical way to apply that principle to a real-world workflow where accuracy, privacy, and usability all matter.