From Faster R-CNN to YOLO/DETR: Counting and Localizing Objects
EU-Philippines CoPhil Programme
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, best perf. | SOTA accuracy + speed |
Performance: 45+ FPS, mAP competitive with two-stage methods
For Philippine EO
YOLOv8 is recommended for most real-time monitoring applications (ships, vehicles, disaster response)
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
Tomorrow’s hands-on lab: Implement object detection for Philippine use cases!
Use Case: Traffic flow, parking, planning
Expected Performance:
Use Case: Asset inventory, informal settlement mapping, damage assessment
Philippine Application:
Approach: Faster R-CNN or circular Hough + CNN
Performance: mAP ~0.85+ (easier due to distinct shape)
Approach: YOLO series for real-time
Performance: mAP ~0.75-0.85
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) | YOLOv8 or Faster R-CNN | Balance speed vs accuracy |
| Vehicle Counting | Faster R-CNN + FPN | Very small objects |
| Building Detection | YOLOv5/v8 | Good balance |
| Aircraft Monitoring | YOLO series | Real-time, medium objects |
| Oil Tank Inventory | Faster R-CNN | Precision matters |
| Disaster Assessment | YOLOv8 | Rapid large-area scans |
| Informal Settlement | YOLOv8 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: mAP > 0.60 with fine-tuned model
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: CoPhil Training Programme

DAY 3 - Session 3 | Object Detection for EO | 20-23 October 2025