π‘οΈ TALOS: Bicycle Safety Detection System
TALOS is a specialized computer vision model designed to enhance cyclist safety by detecting vehicles approaching from the rear. It serves as the "visual cortex" for the open-source TALOS Hardware System (Raspberry Pi 5 + Camera).
This model is a fine-tuned version of YOLOv8 Nano (v8n), optimized for real-time performance on edge devices while maintaining high recall for vehicle detection.
π² Project Context
This model was developed by Kevin Davidson as part of the TALOS project, a portfolio initiative to build an affordable, open-source blind-spot monitoring system for bicycles.
- Website: kevindavidson.work/talos
- Hardware Target: Raspberry Pi 5 (w/ AI Accelerator or CPU-only)
- Camera Angle: Rear-facing, wide-angle (fisheye/action cam perspective)
π Model Versions & Iteration
This repository hosts two versions of the TALOS model, representing an iterative engineering process to address safety-critical class imbalances.
v2.0: Safety Update (Recommended!)
- File:
best_v2.pt - Focus: Recall improvement and decision stability.
- Changes:
- Class Merging: Merged
BusandTruckinto a singleHeavy_Vehicleclass to eliminate hazardous confusion between large vehicle types. - Oversampling: Applied 4x oversampling to
Motorcycleimages to address a severe false-negative rate caused by dataset scarcity.
- Class Merging: Merged
| Metric | v1.0 (Baseline) | v2.0 (Oversampled) | Improvement |
|---|---|---|---|
| Heavy Vehicle Accuracy | ~60% (Confused) | 74% (Stable) | β +14% |
| Motorcycle Recall | 22% | 31% | β +41% (Relative) |
| Motorcycle Miss Rate | 50% | 44% | β -6% (Safer) |
v1.0: Baseline
- File:
best.pt - Details: Original 6-class model trained on the raw Valdiolus dataset.
- Status: Legacy / Comparison only.
π Visual Comparison (v1 vs v2)
Confusion Matrix: Before (v1) vs. After (v2) Notice the consolidation of the "Heavy Vehicle" block and the darker blue (higher accuracy) in the Motorcycle column.
π Model Details
- Architecture: YOLOv8 Nano (
yolov8n) - Weights:
best_v2.pt - Training Framework: Ultralytics YOLOv8
- Input Resolution: 640x640 (Default)
- Classes: 6
0: person1: car2: bicycle3: motorcycle4: heavy_vehicle(Truck + Bus)
π Quick Start
You can run this model in Python using the ultralytics library.
Installation
pip install ultralytics
Usage
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
# Download the model to the local cache (bulletproof method)
model_path = hf_hub_download(repo_id="obscuradesign/talos-vehicle-detection", filename="best_v2.pt")
# Load the cached model
model = YOLO(model_path)
# Run inference
results = model("path/to/video.mp4")
π Performance and Training
The model was trained on the Valdiolus Rear View Camera Dataset, specifically curated for bicycle safety scenarios.
Training Metrics (v2.0)
| Metric | Value |
|---|---|
| Epochs | 60 (new) |
| Precision | See Below |
| Recall | See Below |
| mAP@50 | See Below |
| mAP@50-95 | See Below |
Training Results
β οΈ Safety Warning & Limitations
DISCLAIMER: This software is a PROTOTYPE and is NOT intended for life-critical safety applications.
Prototype Status: This model is a student project and has not undergone rigorous industrial safety testing.
Environmental Factors: Performance may degrade in low-light conditions (night), heavy rain, or lens obstruction.
False Negatives: While optimized for recall, the model may occasionally miss vehicles, especially if occluded or at extreme distances.
Liability: The creator assumes no liability for accidents or injuries occurring while using this system. Use at your own risk.
π License
This model is released under the MIT License. You are free to use, modify, and distribute it, provided credit is given to the original creator.
- Downloads last month
- 60
Model tree for obscuradesign/talos-vehicle-detection
Base model
Ultralytics/YOLOv8

