19 min
Lesson 3 of 6
Port & Cargo Operations
From the course AI for Maritime & Shipping
Transform port efficiency with AI-powered operations and cargo management.
Smart Port Operations
Berth Allocation
class BerthAllocator:
def allocate(self, arriving_vessels, available_berths):
allocation_plan = []
for vessel in sorted(arriving_vessels, key=lambda v: v.eta):
compatible_berths = [
b for b in available_berths
if b.length >= vessel.length
and b.depth >= vessel.draft
]
best_berth = self.optimize_berth_selection(
vessel, compatible_berths,
factors=['turnaround_time', 'yard_distance']
)
allocation_plan.append((vessel, best_berth))
return allocation_plan
Container Yard Management
AI Optimization Goals:
- Minimize container reshuffles
- Optimize stacking by departure time
- Reduce truck wait times
- Balance yard crane utilization
Cargo Monitoring
IoT + AI for Cold Chain
class ColdChainMonitor:
def analyze_container(self, container_id):
sensors = self.get_sensor_data(container_id)
prediction = self.predict_temperature(
current=sensors.temperature,
external=sensors.ambient,
cargo_type=container.cargo_type
)
if prediction.will_exceed_threshold:
self.adjust_reefer_settings(container_id)
self.alert_stakeholders(container_id, prediction)
return prediction
Predictive Maintenance
AI monitors crane stress, AGV battery health, spreader wear patterns. Outcome: 30% reduction in unplanned downtime
Key Takeaways
- •AI berth allocation considers vessel size, cargo type, and equipment availability
- •Container yard AI minimizes reshuffles and optimizes stacking by departure time
- •Cold chain monitoring predicts temperature issues before cargo damage occurs
- •Predictive maintenance on port equipment reduces unplanned downtime by 30%
0 of 6 lessons marked complete
Progress is kept in this browser only.