📚 Series ShipPaulJobs AI Learning Roadmap | PART 1 Lesson 4 of 5 · Course Index →
PART 1 · Lesson 4 Computer Vision YOLO · SAM · CLIP

Computer Vision and Object Detection

ImageNet · CNN Architecture · Object Detection · YOLO · Semantic Segmentation · Foundation Vision Models (SAM, CLIP)

Captain Paul
Captain Paul
Maritime Cybersecurity · IACS UR E26/E27
September 2026
🎯 Lesson Objective

After this lesson you can explain the image classification task and how CNNs approach it; describe the ImageNet benchmark and why it was a turning point; explain what object detection adds to image classification and how YOLO achieves real-time detection; distinguish between classification, detection, and segmentation tasks; and identify concrete maritime applications of each computer vision capability.


Computer vision is the field of AI concerned with enabling machines to derive meaningful information from visual inputs — images, video, and depth sensor data. What changed in 2012 was the combination of large labelled datasets, deep convolutional networks, and GPU computation — turning computer vision into a core enabling technology for robotics, autonomous vehicles, medical diagnosis, and maritime operations.

This lesson builds on the CNN foundations from Lesson 3 and shows how they were applied to progressively harder vision tasks: classification, detection, segmentation, and foundation models.

For maritime professionals: computer vision is the technology enabling autonomous port cranes, hull inspection drones, shipyard weld quality AI, and CCTV-based anomaly detection on vessels and port facilities.

1. The Image Classification Problem

Image classification assigns a label to an entire image from a fixed set of categories. Before deep learning, this used hand-crafted features (SIFT, HOG) fed into SVMs. After AlexNet (2012), CNNs learned features directly from raw pixels, exceeding human performance by 2015. The key enabler was the ImageNet dataset.

2. The ImageNet Moment — How Data Scale Changed Everything

ImageNet (Deng et al., CVPR 2009) — 14M images, 1,000 categories. The ILSVRC ran 2010–2017 and drove a decade of computer vision progress.

ILSVRC Top-5 Error Rate
201028.2% — Pre-deep-learning (NEC/Illinois).
201215.3% — AlexNet. 10.8pp improvement. Start of the deep learning era.
20146.7% — VGGNet. 19 uniform 3×3 convolutional layers.
20153.57% — ResNet-152. Below human performance (~5.1%).
20172.25% — SENet. Challenge retired.

Maritime AI insight: scale of labelled data drives model quality. Maritime datasets are orders of magnitude smaller than ImageNet. Transfer learning from ImageNet-pretrained models is the standard approach.

3. Object Detection — Finding Objects in Images

Object detection extends classification: it simultaneously identifies which objects are present and where (bounding boxes). Two-stage detectors (R-CNN, Faster R-CNN) achieved high accuracy but at 5–7 fps — too slow for real-time.

Key Detection Metrics

IoU: Measures bounding box overlap vs. ground-truth. IoU > 0.5 = correct detection.

mAP: Mean Average Precision — standard benchmark metric across classes and IoU thresholds.

4. YOLO — Real-Time Object Detection

YOLO (You Only Look Once) (Redmon et al., CVPR 2016) treats detection as a single-pass regression over an S×S grid — predicting bounding boxes and class probabilities simultaneously. Result: 45 fps vs. 7 fps for Faster R-CNN. YOLOv8 (Ultralytics, 2023) is the most widely deployed production model in maritime applications as of 2025.

YOLO in Maritime — Deployed Applications
  • Container seal inspection: Detects seal number, type, damage as containers are loaded.
  • Port gate CCTV: Detects unauthorised access to secured areas in real time.
  • Shipyard weld inspection: Detects porosity, cracks, undercut from inspection robot cameras.
  • Hull inspection drone: Identifies biofouling, anode consumption, coating damage georeferenced to 3D hull model.
  • VTS vessel monitoring: Detects non-AIS targets that appear on camera but not radar/AIS.
📎 관련 포스트

YOLO 기반 검사 시스템이 선박 건조 프로세스를 어떻게 바꾸고 있는지 실무 관점에서 확인하세요.

5. Beyond Detection — Segmentation

Semantic segmentation assigns a class label to every pixel. Instance segmentation (Mask R-CNN, ICCV 2017) provides separate masks for each individual object instance.

🔍 Semantic Segmentation

Every pixel gets one class label. Used for: waterway detection in autonomous vessel path planning; ice classification; hull coating condition mapping.

🎯 Instance Segmentation

Each object instance gets its own pixel mask. Used for: individual container tracking; crew detection for access control; weld bead segmentation.

6. Foundation Vision Models — SAM and CLIP

Foundation Vision Models

CLIP (Radford et al., OpenAI, 2021): Trained on 400M (image, text) pairs. Zero-shot classification — classifies vessels by type without task-specific training, by matching image and text embeddings.

SAM (Segment Anything Model) (Kirillov et al., Meta AI, 2023): Trained on 1.1B masks. Segments any object given a point, box, or text prompt — without task-specific training. Maritime use: segment hull regions or welds from inspection images without per-vessel retraining.

7. Maritime Connection — Vision AI and Cyber Risk

Vision AI Cyber Risk — Key Attack Classes
  • Adversarial patches: Physical stickers causing systematic misclassification. Demonstrated with real-world applicability to port access control.
  • Training data poisoning: Crafted images embed backdoors — causing specific misclassifications on demand.
  • Camera feed manipulation: Spoofing or replaying CCTV feeds to bypass AI-based access control.
  • Model extraction: Querying vision AI APIs to reconstruct the model's decision boundary for adversarial attacks.
  • IACS UR E26 relevance: Sections 4.2.3 (malware prevention) and 4.2.4 (access control) require adversarial robustness evaluation for AI-based enforcement systems.
Captain Paul
✍️ Author Insight
Captain Paul — Maritime Cybersecurity Consultant

During an E26 CRSI assessment, I have seen increasing adoption of AI-based CCTV analytics in port and vessel access control contexts. The typical deployment pattern is: existing CCTV → video stream to shore-based server → YOLO-based detection → alert to security personnel.

The cyber risk question almost universally absent from procurement: "What happens if someone learns which detection model we use and tests adversarial inputs against our camera feeds?" YOLO model weights are public; an attacker who knows which version a port uses can generate adversarial inputs the same afternoon.

The mitigation: treat the model version, training data distribution, and detection thresholds as sensitive configuration data (IACS UR E26 Section 4.1), and include adversarial robustness in the periodic security assessment alongside traditional penetration testing.

🔑 Key Takeaways
  • ImageNet (1.2M labelled images, 1,000 classes) enabled the deep learning revolution in computer vision. Transfer learning from ImageNet-pretrained models is standard for maritime tasks.
  • Image classification labels a whole image; object detection adds bounding boxes; segmentation assigns class labels to every pixel.
  • YOLO achieves real-time detection (45+ fps) via single-pass regression over a grid.
  • YOLOv8 is the most widely deployed production detection model in maritime applications as of 2025.
  • CLIP enables zero-shot classification; SAM enables prompt-driven segmentation without task-specific retraining.
  • Vision AI in maritime is vulnerable to adversarial patches, data poisoning, and camera feed manipulation. Model configuration is sensitive cybersecurity data.
⏭ What's Next

Lesson 5 — From GANs to Generative AI completes PART 1: GAN (Goodfellow 2014) through Diffusion Models to LLMs and multimodal generative systems that define AI in 2025–26.

📚 Official Sources & Key Citations
  • Deng et al. (2009). ImageNet. CVPR 2009.
  • Redmon et al. (2016). YOLO. CVPR 2016. arXiv:1506.02640.
  • Ren et al. (2015). Faster R-CNN. NeurIPS 2015. arXiv:1506.01497.
  • He et al. (2017). Mask R-CNN. ICCV 2017. arXiv:1703.06870.
  • Radford et al. (2021). CLIP. arXiv:2103.00020.
  • Kirillov et al. (2023). SAM. arXiv:2304.02643.
  • MITRE ATLAS — atlas.mitre.org
  • IACS UR E26 (Rev.3, 2024) — iacs.org.uk
📚 PART 1 — AI Fundamentals
L1: From AI to GenAI L2: How Machines Learn L3: CNN · RNN · Deep Learning L4: Computer Vision L5: GANs → Generative AI

⚓ Join the ShipPaulJobs Community

Join →
Share

Comments

Top Ranked · All Posts

Popular Posts