Case study · Shipping company
Container tracking and document AI
I built container tracking that puts every shipment on one timeline and reads shipping documents with an LLM.
- 220,000shipments tracked a year
- 85%of arrivals within 6 hours of the ETA
- 88%of documents auto-processed
Challenge
Ops teams stitched together carrier portals, emails and PDFs by hand to locate cargo.
What I built
AIS and carrier EDI ingestion, one shipment timeline, ETA prediction, LLM extraction from bills of lading and customs papers, exception alerts.
Stack
Python, Kotlin/Java, Kafka, PostGIS, Airflow, AWS (S3, SageMaker for the ETA model, Bedrock for document extraction), OpenSearch.
System design
AIS vessel positions stream into Kafka, while carrier EDI status messages and carrier APIs pass through a normaliser into one shipment-event model in PostgreSQL/PostGIS. Airflow runs the pipelines and retrains the ETA model in SageMaker on voyage features such as route, vessel speed history and port congestion. Shipping documents land in S3, an LLM extracts their fields into a fixed schema, and validation checks them against the booking. OpenSearch powers search across shipments and documents.
Results
- 220,000 shipments tracked a year
- ETA within 6 hours for 85% of arrivals
- 88% of documents auto-processed