From Faster R-CNN to YOLO/DETR: Counting and Localizing Objects
Anefelo
Duration: 1.5 hours Type: Theory + Discussion Goal: Master object detection for Earth Observation
You will learn:
Prerequisites:
Resources:
Object detection combines two fundamental computer vision tasks:
For each detected object, the model outputs:
| Aspect | Classification | Object Detection | Semantic Segmentation |
|---|---|---|---|
| Question | What’s in this image? | Where are objects? | Which pixels are what? |
| Output | Single label | Bounding boxes + labels | Pixel-wise mask |
| Granularity | Image-level | Object-level | Pixel-level |
| Location Info | None | Approximate (boxes) | Precise (pixels) |
| Count Objects | No | Yes ✓ | Possible |
| Speed | Fastest | Moderate | Slowest |
| Example Use | “Contains buildings” | “10 buildings at coords” | “Building footprints mapped” |
EO Examples:
EO Examples:
Detection vs Segmentation
Counting ships in Manila Bay → Object Detection
Mapping typhoon flood extent → Semantic Segmentation
Object detection has evolved through three main architectural paradigms:
Pipeline (4 stages):
Precision-critical EO applications:
Key Innovation
RPN replaces slow Selective Search with learned proposal generation
Core Concept: Reframe detection as regression—predict boxes and classes in single forward pass
| Version | Year | Key Features | Notes |
|---|---|---|---|
| YOLOv1-v3 | 2016-2018 | Original development | Grid-based, anchor boxes |
| YOLOv4 | 2020 | Bag of tricks | CSPDarknet, Mish activation |
| YOLOv5 | 2020 | PyTorch implementation | Very practical, widely used |
| YOLOv7 | 2022 | Speed optimizations | E-ELAN, compound scaling |
| YOLOv8 | 2023 | Anchor-free (Ultralytics) | Widely used baseline |
| YOLOv9 / v10 | 2024 | PGI/GELAN; NMS-free training | Research releases |
| YOLO11 | 2024 | Ultralytics; OBB support | Oriented boxes for aerial imagery |
| YOLO26 | Jan 2026 | Ultralytics; end-to-end, NMS-free | Current Ultralytics family |
Performance: real-time on a GPU; COCO mAP competitive with two-stage methods
For Philippine EO
A current Ultralytics YOLO (YOLO11/YOLO26; OBB variant for ships) is a practical default for real-time monitoring. Ultralytics is AGPL-3.0 — check licensing for operational use.
Multi-scale feature maps for detecting objects at different scales
Architecture:
Advantage over YOLO: Better at detecting small objects
Best for: Applications requiring both speed and small object detection
How it works:
Best for: Research applications, complex multi-object scenes when data is plentiful
Provide reference boxes at various scales and aspect ratios that the model adjusts to fit actual objects
Example Anchors:
Problem: Detectors generate multiple overlapping boxes for the same object
Solution: Remove duplicate detections through NMS algorithm
Threshold Trade-off:
Definition: Measure of overlap between two bounding boxes
\[ \text{IoU} = \frac{\text{Area of Intersection}}{\text{Area of Union}} \]
Interpretation:
Calculation Steps:
Common Variants:
For EO Applications:
Use Case: Monitor Exclusive Economic Zone (EEZ), detect illegal fishing, track vessel movements
Data Sources:
Challenges:
Session 4 Preview
Next session’s hands-on lab: fine-tune a pre-trained detector, framed by a Metro Manila use case.
Use Case: Traffic flow, parking, planning
Indicative Performance:
Use Case: Asset inventory, informal settlement mapping, damage assessment
Philippine Application:
Approach: Faster R-CNN or circular Hough + CNN
Performance: typically among the easiest EO objects (distinct circular shape)
Approach: YOLO series for real-time
Performance: high contrast makes aircraft comparatively easy in sub-metre imagery
Use Cases: Airport traffic analysis, capacity planning
Many EO objects are tiny relative to image size:
Same object type at vastly different scales:
Objects at any angle in overhead imagery:
Satellite imagery contains many distractors:
Annotating EO imagery is expensive and time-consuming:
Use Faster R-CNN When:
Example EO Applications:
Use YOLO or SSD When:
Example EO Applications:
| Application | Recommended Architecture | Key Reasoning |
|---|---|---|
| Ship Detection (EEZ) | YOLO-OBB or Faster R-CNN | Balance speed vs accuracy |
| Vehicle Counting | Faster R-CNN + FPN | Very small objects |
| Building Detection | YOLO (v8+) | Good balance |
| Aircraft Monitoring | YOLO series | Real-time, medium objects |
| Oil Tank Inventory | Faster R-CNN | Precision matters |
| Disaster Assessment | YOLO (v8+) | Rapid large-area scans |
| Informal Settlement | YOLO or Faster R-CNN | Speed vs detail trade-off |
Use DETR When:
Considerations:
Current Status:
What You’ll Do:
Case Study: Building Detection in Metro Manila
Expected Results: a working fine-tuning recipe and realistic expectations for 10 m data
Before moving to the hands-on session, consider:
For your EO applications, would you prioritize speed (YOLO) or accuracy (Faster R-CNN)? Why?
How would you handle limited labeled training data for Philippine-specific object types?
What validation strategy would ensure your model generalizes across different Philippine regions?
How might you combine object detection with other techniques for disaster damage assessment?
Next: Session 4 - Hands-on Object Detection Lab
Contact: Dimitrios Kasampalis, Anefelo
EO AI/ML Training | Day 3 · Session 3 | Object Detection for EO