Skip to content

Latest commit

Β 

History

71 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›°οΈ Critical Infrastructure Detection using RF-DETR

PyTorch RF-DETR Dataset Best mAP50-95 Data Centric License


πŸŽ₯ Model Detection Showcase

Satellite Ground Station Detection Nuclear Reactor Detection
RF-DETR detection of Satellite Ground Stations from aerial imagery RF-DETR detection of Nuclear Reactor infrastructure from aerial imagery

All detections shown above were generated using the fine-tuned RF-DETR model developed in this project.


🎯 Project Overview

This project explores aerial and drone-based detection of critical infrastructure using RF-DETR (Roboflow Detection Transformer).

The objective was to build a robust object detection system capable of identifying multiple infrastructure categories from high-altitude imagery while addressing one of the biggest challenges in computer vision projects:

Data Scarcity

Rather than focusing solely on model architecture, this project follows a data-centric workflow, emphasizing:

βœ… Dataset Creation βœ… Annotation Quality Control βœ… Synthetic Data Generation βœ… Error Analysis βœ… Iterative Retraining βœ… Class-Specific Optimization


πŸ—οΈ Infrastructure Classes

The model was trained to detect 19 infrastructure categories:

Infrastructure Infrastructure
Airport Runway Oil Refinery
Bridge Satellite Dish / Ground Station
Cargo Ship Seaport
Cooling Tower Shipping Containers
Dam Solar Power Plant
Electrical Substation Thermal Power Plant
Energy Storage Infrastructure Transmission Tower
Mobile Tower Water Tower
Nuclear Reactor Wind Turbine
Mobile Harbour Cranes

πŸ“Š Dataset Development

Hybrid Dataset Strategy

The dataset was created using a combination of:

  • Real aerial imagery
  • Satellite imagery
  • Synthetic imagery

πŸ“Š Dataset Development

Workflow Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Real Aerial Imagery  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Synthetic Imagery    β”‚
β”‚ (Nano Banana Pro,    β”‚
β”‚ Seedream 4)          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Manual QA & Review   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Label Studio         β”‚
β”‚ Annotation           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ COCO Dataset Export  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ RF-DETR Training     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚
           β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Evaluation &         β”‚
β”‚ Error Analysis       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Synthetic Data Workflow

To address limited availability of infrastructure imagery from rare aerial viewpoints, synthetic samples were generated using:

  • Nano Banana Pro
  • Seedream 4
  • ChatGPT-assisted prompt engineering

Synthetic data was used to create:

  • Oblique drone perspectives
  • Complex environmental conditions
  • Low-light scenarios
  • Rare infrastructure viewpoints
  • Additional examples for underrepresented classes

🧹 Data Cleaning & Quality Control

All images underwent manual review before training.

Quality Assurance Checklist

βœ… Removal of unrealistic synthetic outputs βœ… Visual inspection for generation artifacts βœ… Annotation consistency checks βœ… Duplicate image filtering βœ… Class balance verification βœ… Manual edge-case review

The goal was to maximize annotation quality before model training rather than relying solely on augmentation techniques.


🏷️ Annotation Pipeline

Annotation Tool

Label Studio

Annotation Format

COCO JSON

Annotation Methodology

  • Manual bounding-box annotation
  • Class-level verification
  • Edge-case review
  • Annotation consistency validation

High-Risk Confusion Pairs

Category A Category B
Thermal Power Plant Nuclear Reactor
Cargo Ship Mobile Harbour Cranes
Shipping Containers Airport Runway Structures
Electrical Substation Energy Storage Infrastructure

These categories received additional review due to visual similarity and contextual overlap.


πŸ€– Model Architecture

RF-DETR (Roboflow Detection Transformer)

RF-DETR was selected because transformer-based detectors can leverage broader contextual information across aerial scenes.

This is particularly useful when distinguishing visually similar infrastructure categories where surrounding environmental context contributes to classification accuracy.

Training Environment

  • Google Colab
  • PyTorch
  • RF-DETR
  • CUDA GPU Acceleration

Training Strategy

βœ… Transfer Learning βœ… Multi-Stage Fine-Tuning βœ… Early Stopping βœ… EMA Evaluation βœ… Targeted Retraining of Weak Classes


πŸ“ˆ Results

Best Validation Performance

Metric Value
Best mAP50-95 0.531
Best Model EMA Checkpoint
Early Stopping Enabled

Performance Summary

The final model demonstrated strong performance on visually distinctive infrastructure classes while highlighting several challenging categories that remain active areas of improvement.


🌟 Strong Performing Categories

Category
Oil Refinery
Water Tower
Satellite Dish / Ground Station
Mobile Tower
Transmission Tower

⚠️ Challenging Categories

Category
Shipping Containers
Electrical Substations
Solar Power Plants
Dams

Common challenges include:

  • Small object size
  • Dense object clustering
  • High visual similarity
  • Scale variation across aerial viewpoints

πŸ” Key Findings

A major outcome of this project was confirming that:

Dataset quality, annotation consistency, and targeted data collection produced larger gains than additional training epochs alone.

Performance improvements were primarily achieved through:

  • Additional class-specific data collection
  • Synthetic data augmentation
  • Error analysis
  • Annotation refinement
  • Focused retraining of underperforming classes

This reinforced the importance of a data-centric AI workflow over purely model-centric optimization.


πŸ“‚ Repository Structure

Critical-Infrastructure-Detection-using-RF-DETR/
β”œβ”€β”€ assets/
β”œβ”€β”€ dataset_info/
β”œβ”€β”€ notebooks/
β”œβ”€β”€ weights/
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
└── LICENSE

πŸš€ Resources

Training Notebook

πŸ”— Google Colab

https://colab.research.google.com/drive/167xgsFcpFqzVfAbT88IFdUYeM_X0h1um

Model Weights

Available through the repository Releases section.


πŸ›£οΈ Future Work

Planned improvements include:

  • Hard-negative mining
  • Expansion of Shipping Container samples
  • Improved Substation annotation consistency
  • Video-based infrastructure tracking
  • Integration with segmentation pipelines
  • Multi-object tracking support

πŸ‘¨β€πŸ’» Author

Sayan Chakraborty

Computer Vision Practitioner | Data Annotation Specialist

πŸ“§ Open to collaboration on:

  • Computer Vision
  • Object Detection
  • Dataset Development
  • Annotation Workflows
  • Synthetic Data Generation

GitHub https://github.com/sayanc227

LinkedIn https://www.linkedin.com/in/sayan-chakraborty-595a45382


About

Transformer-based RF-DETR model for drone & aerial surveillance detecting critical infrastructure (bridges, power plants, substations, towers).

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors