/** * Vessels — Benchmarks & Leaderboards * Domain: Maritime * Benchmarks: Threat Classification, Track Confidence */ import { BenchmarkCard, EvalBadge, LeaderboardTable, type LeaderboardEntry, ResultDetailDrawer, type EvalResultDetail, SubmitScoreForm, type SubmitScorePayload, } from '@szl-holdings/design-system'; import { Ship, Trophy } from 'lucide-react'; import { useState } from 'react'; const BG = 'hsl(214,16%,4%)'; const SURFACE = 'hsla(0,0%,100%,0.035)'; const BORDER = 'hsla(0,0%,100%,0.07)'; const TEXT = 'hsl(38,8%,92%)'; const TEXT_SEC = 'hsl(214,7%,55%)'; const ACCENT = '#14b8a6'; const BENCHMARKS = [ { benchmarkId: 'szl-maritime-threat-class-v1', name: 'Threat Classification', description: 'Evaluates AI systems on dark vessel detection, sanctions evasion patterns, and piracy-risk classification across AIS and RF signal datasets.', domain: 'maritime', evaluationFramework: 'szl-native', tags: ['dark-fleet', 'sanctions', 'piracy', 'AIS', 'classification'], tasks: [ { taskId: 'tc-dark-vessel', name: 'Dark Vessel Detection', primaryMetric: 'f1', higherIsBetter: true, baseline: 0.73 }, { taskId: 'tc-sanctions', name: 'Sanctions Evasion ID', primaryMetric: 'precision', higherIsBetter: true, baseline: 0.69 }, { taskId: 'tc-piracy-risk', name: 'Piracy Risk Scoring', primaryMetric: 'auc_roc', higherIsBetter: true, baseline: 0.81 }, ], }, { benchmarkId: 'szl-maritime-track-confidence-v1', name: 'Track Confidence', description: 'Measures accuracy of vessel identity resolution and track continuity across AIS gaps, spoofing events, and multi-source fusion windows.', domain: 'maritime', evaluationFramework: 'szl-native', tags: ['tracking', 'identity-resolution', 'spoofing', 'fusion'], tasks: [ { taskId: 'trc-identity', name: 'Identity Resolution Accuracy', primaryMetric: 'accuracy', higherIsBetter: true, baseline: 0.78 }, { taskId: 'trc-spoof-detect', name: 'Spoofing Detection', primaryMetric: 'recall', higherIsBetter: true, baseline: 0.71 }, { taskId: 'trc-gap-fill', name: 'Track Gap Fill Error', primaryMetric: 'gap_fill_mae_km', higherIsBetter: false, baseline: 8.4 }, ], }, ]; const LEADERBOARDS: Record = { 'tc-dark-vessel': [ { rank: 1, resultId: 'vr-001', entityId: 'vessels-dark-fleet-v4', entityLabel: 'Dark Fleet Detector v4', entityType: 'agent', domain: 'maritime', metric: 'f1', value: 0.961, numericValue: '0.961', badgeState: 'verified', evalDate: '2026-04-20', sourceUrl: '#' }, { rank: 2, resultId: 'vr-002', entityId: 'vessels-satellite-rf-v2', entityLabel: 'Satellite RF Agent v2', entityType: 'agent', domain: 'maritime', metric: 'f1', value: 0.934, numericValue: '0.934', badgeState: 'leaderboard', evalDate: '2026-04-01', sourceUrl: '#' }, { rank: 3, resultId: 'vr-003', entityId: 'community-ais-ml', entityLabel: 'Community AIS-ML', entityType: 'model', domain: 'maritime', metric: 'f1', value: 0.887, numericValue: '0.887', badgeState: 'community', evalDate: '2026-02-15', sourceUrl: '#' }, ], 'tc-sanctions': [ { rank: 1, resultId: 'vr-004', entityId: 'vessels-sanctions-v3', entityLabel: 'Sanctions Chain Explorer v3', entityType: 'agent', domain: 'maritime', metric: 'precision', value: 0.948, numericValue: '0.948', badgeState: 'verified', evalDate: '2026-04-17', sourceUrl: '#' }, { rank: 2, resultId: 'vr-005', entityId: 'vessels-dark-fleet-v4', entityLabel: 'Dark Fleet Detector v4', entityType: 'agent', domain: 'maritime', metric: 'precision', value: 0.921, numericValue: '0.921', badgeState: 'leaderboard', evalDate: '2026-04-20', sourceUrl: '#' }, ], 'tc-piracy-risk': [ { rank: 1, resultId: 'vr-006', entityId: 'vessels-piracy-v2', entityLabel: 'Piracy Risk Agent v2', entityType: 'agent', domain: 'maritime', metric: 'auc_roc', value: 0.951, numericValue: '0.951', badgeState: 'verified', evalDate: '2026-04-10', sourceUrl: '#' }, ], 'trc-identity': [ { rank: 1, resultId: 'vr-007', entityId: 'vessels-track-v5', entityLabel: 'Track Fusion Engine v5', entityType: 'agent', domain: 'maritime', metric: 'accuracy', value: 0.974, numericValue: '0.974', badgeState: 'verified', evalDate: '2026-04-22', sourceUrl: '#' }, { rank: 2, resultId: 'vr-008', entityId: 'vessels-digital-twin-v3', entityLabel: 'Vessel Digital Twin v3', entityType: 'agent', domain: 'maritime', metric: 'accuracy', value: 0.951, numericValue: '0.951', badgeState: 'leaderboard', evalDate: '2026-04-05', sourceUrl: '#' }, ], 'trc-spoof-detect': [ { rank: 1, resultId: 'vr-009', entityId: 'vessels-track-v5', entityLabel: 'Track Fusion Engine v5', entityType: 'agent', domain: 'maritime', metric: 'recall', value: 0.942, numericValue: '0.942', badgeState: 'verified', evalDate: '2026-04-22', sourceUrl: '#' }, { rank: 2, resultId: 'vr-010', entityId: 'vessels-satellite-rf-v2', entityLabel: 'Satellite RF Agent v2', entityType: 'agent', domain: 'maritime', metric: 'recall', value: 0.913, numericValue: '0.913', badgeState: 'leaderboard', evalDate: '2026-04-01', sourceUrl: '#' }, ], 'trc-gap-fill': [ { rank: 1, resultId: 'vr-011', entityId: 'vessels-track-v5', entityLabel: 'Track Fusion Engine v5', entityType: 'agent', domain: 'maritime', metric: 'gap_fill_mae_km', value: 1.8, numericValue: '1.8', unit: 'km', badgeState: 'verified', evalDate: '2026-04-22', sourceUrl: '#' }, { rank: 2, resultId: 'vr-012', entityId: 'vessels-digital-twin-v3', entityLabel: 'Vessel Digital Twin v3', entityType: 'agent', domain: 'maritime', metric: 'gap_fill_mae_km', value: 2.7, numericValue: '2.7', unit: 'km', badgeState: 'leaderboard', evalDate: '2026-04-05', sourceUrl: '#' }, ], }; function toDetail(entry: LeaderboardEntry): EvalResultDetail { return { resultId: entry.resultId, benchmarkId: 'vessels-benchmark', benchmarkName: 'Vessels Maritime Benchmark', taskId: entry.metric, entityId: entry.entityId, entityLabel: entry.entityLabel, entityType: entry.entityType, domain: entry.domain, metric: entry.metric, value: entry.value, numericValue: entry.numericValue, unit: entry.unit, higherIsBetter: entry.metric !== 'gap_fill_mae_km', badgeState: entry.badgeState, evalDate: entry.evalDate, sourceUrl: entry.sourceUrl, }; } type Tab = 'leaderboards' | 'benchmarks' | 'submit'; export default function VesselsBenchmarks() { const [activeTab, setActiveTab] = useState('leaderboards'); const [selectedTaskId, setSelectedTaskId] = useState('tc-dark-vessel'); const [drawerResult, setDrawerResult] = useState(null); const [drawerOpen, setDrawerOpen] = useState(false); const allTasks = BENCHMARKS.flatMap((b) => b.tasks.map((t) => ({ ...t }))); const currentTask = allTasks.find((t) => t.taskId === selectedTaskId) ?? allTasks[0]; const currentEntries = LEADERBOARDS[selectedTaskId] ?? []; return (

Benchmarks & Leaderboards

Verified scores for Vessels maritime intelligence agents, tracking workflows, and threat-classification models.

{(['leaderboards', 'benchmarks', 'submit'] as Tab[]).map((tab) => ( ))}
{activeTab === 'leaderboards' && (
Benchmark Tasks {BENCHMARKS.map((bm) => (
{bm.name}
{bm.tasks.map((task) => ( ))}
))}
{currentTask?.name}
Metric: {currentTask?.primaryMetric}
{ setDrawerResult(toDetail(e)); setDrawerOpen(true); }} />

Open Evaluation Hub →

)} {activeTab === 'benchmarks' && (
{BENCHMARKS.map((bm) => ( { setSelectedTaskId(taskId); setActiveTab('leaderboards'); }} /> ))}
)} {activeTab === 'submit' && (
{ await new Promise((r) => setTimeout(r, 600)); console.info('Vessels eval:', p); }} />
)}
setDrawerOpen(false)} />
); }