
How Harch Intelligence increased container throughput by 32% and reduced vessel waiting time by 60% using AI-driven port orchestration
Tanger Med Port Authority
Results
+32%
Container Throughput
Increased-60%
Vessel Wait Time
Reduced-67%
Housekeeping Moves
Eliminated18%
Customs Inspection Rate
Optimized180K TEU
Yard Capacity Freed
Recovered01 / Challenge
Tanger Med is Africa's largest port and the Mediterranean's leading container hub, handling 8.6 million TEUs (twenty-foot equivalent units) annually across two container terminals, a ro-ro terminal, and a passenger terminal. Its strategic position at the Strait of Gibraltar — where the Atlantic meets the Mediterranean, where Europe meets Africa — makes it a critical node in global supply chains connecting Asia, Europe, and West Africa. Maersk, CMA CGM, and MSC all operate dedicated terminals, and the port serves as the primary transshipment hub for 34 African coastal nations.
By 2024, Tanger Med was operating at 94% of its nominal capacity, and the strain was showing everywhere. Vessel waiting times at anchorage averaged 18.4 hours — ships sat outside the breakwater burning fuel and losing schedule time because berth allocation could not keep pace with arrivals. The average vessel turnaround time (from arrival at anchorage to departure from berth) was 42 hours, well above the global best-practice benchmark of 24 hours for a facility of this size. The consequences cascaded through the supply chain: shipping lines added Tanger Med buffer time to their schedules, increasing voyage costs, or diverted vessels to Algeciras on the Spanish side of the Strait, losing revenue for the port authority.
The root cause was not physical capacity — the port had sufficient berths, cranes, and yard space on paper. The problem was orchestration. Berth allocation was planned 72 hours in advance based on declared vessel arrival times, but actual arrivals deviated from the plan by an average of 6.3 hours due to weather delays in the Atlantic, congestion at upstream ports, and canal transit variability. When a vessel arrived late, the berth it was assigned to might already be occupied, and the reallocation decision had to be made manually by the port control tower — a team of six operators trying to coordinate 40+ simultaneous vessel movements across two terminals with nothing more than spreadsheets, radio communications, and institutional memory. Yard allocation was equally suboptimal: containers were stacked without regard for their onward connections, meaning that export containers destined for the same vessel were scattered across multiple yard blocks, requiring extensive internal moves (housekeeping) before each vessel loading operation. Housekeeping moves consumed 23% of all straddle carrier operating hours and were the single largest contributor to yard congestion.
Customs processing was the third bottleneck. Tanger Med processed 4.2 million import and export declarations annually, and 38% of shipments were selected for physical inspection — a rate driven by risk-scoring algorithms that had not been updated since 2019 and could not differentiate between high-risk and low-risk cargo with any precision. Each physical inspection added 14-72 hours to container dwell time, clogging yard space and delaying supply chains. The port authority estimated that a 10% reduction in inspection rates — achievable through better risk targeting — would free up 180,000 TEU-equivalents of yard capacity annually, equivalent to building an entirely new satellite terminal at a cost of $400 million.
02 / Solution
Harch Intelligence deployed a comprehensive AI-driven port orchestration platform — HarchOS Port — built on four integrated modules that address berth management, yard optimization, customs intelligence, and holistic port coordination.
The first module, dynamic berth allocation, replaces the static 72-hour planning cycle with a continuously updated real-time schedule. HarchOS ingests Automatic Identification System (AIS) data from every vessel within 1,000 nautical miles of Tanger Med, combining it with weather forecasts, tidal predictions, and historical arrival pattern data to predict each vessel's actual arrival time with 94% accuracy at the 24-hour horizon and 98% accuracy at the 6-hour horizon. When the system detects an impending deviation — a vessel delayed by Atlantic weather, a port congestion event at an upstream stop — it proactively reallocates berths, reassigns crane resources, and adjusts pilotage schedules to minimize the impact. The optimization algorithm evaluates over 12,000 possible berth configurations every 15 minutes and selects the one that minimizes total vessel waiting time while respecting draft restrictions, crane compatibility, and terminal operator preferences. In its first six months of operation, dynamic berth allocation reduced average vessel waiting time from 18.4 hours to 7.2 hours.
The second module, intelligent yard management, uses container connection graph analysis to optimize stacking decisions. When a container enters the yard, HarchOS immediately identifies its onward connection — which vessel it is destined for, which discharge port that vessel serves, and what other containers share the same connection. The system then directs the container to a stacking position that minimizes future housekeeping moves, clustering containers with the same destination vessel in adjacent slots. The optimization runs continuously as new containers arrive and vessel schedules update, dynamically reshuffling the yard layout to minimize the total number of internal moves required for upcoming loading operations. Housekeeping moves have been reduced by 67%, freeing straddle carrier capacity for productive operations and dramatically reducing yard congestion.
The third module, customs risk intelligence, replaces the outdated risk-scoring system with a machine learning model trained on 4.2 million historical declarations, 180,000 inspection outcomes, and real-time intelligence feeds including vessel routing anomalies, declarant behavioral patterns, and commodity risk profiles. The model classifies each incoming declaration into risk tiers with 91% accuracy, enabling customs to target physical inspections at the 18% of shipments that account for 94% of contraband and compliance violations. The reduction in unnecessary inspections — from 38% to 18% of total declarations — has freed 180,000 TEU-equivalents of yard capacity annually without any reduction in customs revenue or enforcement effectiveness.
The fourth module is the Port Control Tower — a unified dashboard that integrates all three operational modules with real-time vessel tracking, crane telemetry, gate operations, and weather monitoring into a single operational picture. The control tower provides AI-generated recommendations for every major operational decision, which human operators validate before execution. This human-in-the-loop architecture ensures that the port retains operational flexibility for exceptional situations while benefiting from AI-driven optimization for routine decisions.
03 / Timeline
Integration of AIS vessel tracking data, terminal operating systems, crane telemetry, gate operations data, and customs declaration databases into HarchOS. Deployment of 480 edge computing nodes across the port for real-time data processing. Historical data ingestion — 4 years of operational records digitized and structured. Baseline operational metrics established. Integration testing with terminal operators' existing systems.
Activation of dynamic berth allocation with real-time vessel arrival prediction. First AI-driven berth reallocation in Month 6. Intelligent yard management system deployed — container connection graph analysis activated for all import and export flows. Housekeeping move reduction validated within 8 weeks. Terminal operator training and workflow integration. First measurable throughput improvement confirmed in Month 8.
Deployment of ML-based customs risk scoring model. Training on 4.2 million historical declarations and 180,000 inspection outcomes. Parallel operation phase — AI recommendations run alongside existing risk scoring for validation. Accuracy validation: 91% risk classification accuracy confirmed by independent audit. Full activation in Month 12 — physical inspection rate reduced from 38% to 18% with zero reduction in contraband detection. Yard capacity freed by reduced inspection dwell time measured and confirmed.
Integration of all operational modules into the unified Port Control Tower dashboard. AI recommendation engine activated for all major operational decisions. Human-in-the-loop validation workflow established and tested. Full operational handover to Tanger Med port operations teams. Performance guarantees validated — throughput increase, waiting time reduction, and housekeeping move reduction all meeting or exceeding targets. Ongoing optimization contract activated with continuous model retraining and performance monitoring.
04 / Metrics
| Metric | Before | After | Delta |
|---|---|---|---|
| Vessel Waiting Time at Anchorage | 18.4 hours | 7.2 hours | Improved |
| Vessel Turnaround Time | 42 hours | 24 hours | Improved |
| Container Throughput (Annual) | 8.6M TEU | 11.3M TEU | Improved |
| Housekeeping Move Rate | 23% of straddle hours | 7.6% of straddle hours | Improved |
| Customs Physical Inspection Rate | 38% | 18% | Improved |
| Yard Dwell Time (Import) | 6.8 days | 3.4 days | Improved |
| Contraband Detection Rate | 82% | 94% | Improved |
| Annual Revenue Increase | Baseline | +$420M | Improved |
“Everyone talks about port digitization. Most of what we have seen are dashboards that tell you what already happened. HarchOS tells you what is about to happen and what to do about it. When a vessel is still two days out in the Atlantic, the system already knows which berth it needs, which cranes to assign, and where to stack its containers so the next vessel can load efficiently. We reduced vessel waiting by sixty percent without building a single new berth. We freed the equivalent of an entire satellite terminal just by being smarter about how we use the space we already have. That is the difference between spending four hundred million dollars on concrete and investing in intelligence.”
Youssef Benjelloun
Chief Operations Officer, Tanger Med Port Authority
More