Ego Vision: A Deep Dive into the YOLO11-Based Driving Action Prediction System

Ego Vision combines YOLO11, ByteTrack, and Depth Anything V2 to predict driving actions in real time.
Ego Vision is an open-source autonomous driving perception project that integrates YOLO11 object detection, ByteTrack multi-object tracking, and Depth Anything V2 depth estimation into a modular pipeline. By fusing object class, estimated distance, time-to-collision, traffic light states, and traffic signs, it outputs one of four driving actions: GO, SLOW DOWN, STOP, or EMERGENCY BRAKE — serving as both an engineering prototype and a learning resource.
Project Overview: Teaching Machines to "Read the Road" Like a Driver
In autonomous driving, perception and decision-making are two fundamental pillars. The open-source project Ego Vision has been generating buzz in the Reddit computer vision community — it chains together environment perception and driving action prediction into a complete pipeline using a lightweight, modular vision processing stack.
The author combines several mainstream open-source models to build a system capable of real-time judgment on whether to accelerate or brake. According to the project description, Ego Vision integrates object detection, distance estimation, time-to-collision (TTC) calculation, and traffic light/sign recognition to output one of four driving actions: GO, SLOW DOWN, STOP, or EMERGENCY BRAKE.
The project is open-sourced on GitHub (github.com/myatthukyaw/ego-vision) and is aimed at developers working in computer vision, autonomous driving, object tracking, and depth estimation.
Technical Architecture: Three Models Working in Concert
Ego Vision's core philosophy is not to train one massive end-to-end model, but to combine three specialized open-source components into a clean and efficient processing pipeline.
This architectural choice is itself a significant technical decision. Autonomous driving perception systems follow two main design paradigms: end-to-end approaches map directly from raw sensor data to driving control commands — exemplified by NVIDIA's PilotNet and Tesla FSD's neural network planner — while modular approaches decouple perception, prediction, and planning into independent modules that are each optimized and then chained together. End-to-end methods can learn implicit cross-module synergies but suffer from poor interpretability and are difficult to debug. Modular approaches allow individual module upgrades and easier fault isolation, making it easier in production systems to meet the traceability requirements of functional safety standards such as ISO 26262. Ego Vision opts for the latter, which is also the core engineering approach adopted by leading production-level autonomous driving systems like Waymo and Baidu Apollo.
YOLO11: The "Eyes" for Object Detection
The project uses YOLO11 as its object detector. YOLO (You Only Look Once), first proposed by Joseph Redmon in 2015, has evolved through multiple generations from YOLOv1 to YOLO11. Its core innovation lies in reformulating object detection as a single-pass regression problem, offering significant inference speed advantages over two-stage detectors like Faster R-CNN. Ultralytics has led the engineering development of this series since YOLOv5, and YOLO11 brings improvements to backbone architecture, feature fusion strategies, and training techniques, achieving a better mAP-latency trade-off on the COCO benchmark than its predecessors. In driving scenarios, it handles the identification of vehicles, pedestrians, traffic lights, traffic signs, and other critical objects, providing the foundational inputs for downstream decision-making.
ByteTrack: Cross-Frame "Motion Memory"
Single-frame detection only tells the system what is present at a given moment, but driving decisions also require an understanding of how objects are moving. The project integrates ByteTrack for multi-object tracking. ByteTrack was proposed by Zhang et al. in 2022, and its key innovation is that it does not discard low-confidence detections. Traditional trackers such as SORT and DeepSORT typically filter out detections below a confidence threshold, whereas ByteTrack first associates high-confidence detections with existing tracklets, then performs a second round of association using low-confidence detections — significantly reducing the ID switch rate (IDS) in occlusion and motion blur scenarios. The method achieved state-of-the-art performance on both the MOT17 and MOT20 benchmarks at the time of publication, requires no additional ReID feature extraction, carries low computational overhead, and is well-suited for real-time driving applications. It provides continuous trajectory data for computing relative velocity and direction of motion.
Depth Anything V2: A "Sense of Distance" via Monocular Depth Estimation
Distance is the critical variable in assessing risk. Ego Vision uses Depth Anything V2 for depth estimation. Monocular depth estimation aims to recover scene depth from a single RGB image — an inherently ill-posed problem, since a single 2D image theoretically corresponds to infinitely many 3D scene configurations. Deep learning methods mitigate this ambiguity by learning statistical priors from large-scale datasets. Depth Anything V2, developed by a team at the University of Hong Kong, builds on V1 by introducing a synthetic data augmentation training strategy and a more refined teacher-student distillation framework, substantially improving depth prediction quality in fine-detail regions such as transparent objects and distant targets. The model estimates the relative distance of objects in a scene from a single RGB image alone, without requiring LiDAR or stereo cameras, greatly lowering the hardware barrier while laying the groundwork for TTC computation.
Decision Logic: From Multi-Dimensional Perception to Precise Action
Ego Vision's real value lies in its decision layer design. Rather than simply braking whenever an obstacle is detected, the system performs integrated reasoning across the following dimensions:
- Detected object class: distinguishing between vehicles, pedestrians, and static obstacles;
- Estimated distance: using the depth model to assess how near or far a target is;
- Time-to-Collision (TTC): combining tracking trajectories with depth information to estimate when a potential collision might occur;
- Traffic light state: red versus green directly influences the go/stop decision;
- Traffic signs: stop signs, speed limit signs, and other regulatory constraints.
Time-to-Collision (TTC) is a core safety metric in autonomous driving and active safety systems, with the basic formula: TTC = current distance ÷ relative closing speed. When TTC falls below a certain threshold (typically 1.5 to 3 seconds), the system triggers braking or an alert. TTC accuracy depends on the combined accuracy of both the distance and velocity estimation components — which is precisely the core motivation behind Ego Vision's combination of depth estimation and multi-object tracking. The depth model provides the distance component; the tracker provides the frame-by-frame velocity component. Neither is sufficient alone.
By fusing all of these factors, the system outputs a clear driving action recommendation. This rule-based and perception-fusion design offers far greater interpretability than a "black-box" end-to-end neural network — every "emergency brake" decision can be traced back to a specific distance or TTC threshold, which is particularly important in safety-critical autonomous driving scenarios.
Engineering Value and Practical Takeaways
The Pragmatic Philosophy of Modular Composition
Ego Vision's most instructive quality is its modular engineering approach. At a time when end-to-end large model solutions are heavily hyped, this project demonstrates that decomposing mature open-source models by function and combining them flexibly can still rapidly produce a fully functional prototype system. Each module is independent and replaceable — for instance, upgrading YOLO11 to a newer detector, or substituting a higher-accuracy depth model for Depth Anything V2, does not destabilize the overall architecture.
A Low-Barrier Learning Path into Autonomous Driving Perception
For learners, projects like this are excellent educational resources for understanding the autonomous driving perception stack. They systematically cover core technical areas including object detection, multi-object tracking, monocular depth estimation, and decision fusion — all built on open-source tools, with no expensive hardware required. Developers can extend the project further, for example by adding trajectory prediction, layering in lane detection, or upgrading the decision logic to a reinforcement learning policy.
Honestly Acknowledging the Project's Limitations
That said, as a personal open-source work, the project has clear limitations: monocular depth estimation outputs relative depth rather than absolute metric distance, which fundamentally constrains the precision of TTC calculation — an inherent shortcoming of this technical approach. Rule-based decision-making struggles to cover the long-tail scenarios encountered on real roads, and four discrete actions are far from sufficient to support the continuous control demands of actual driving. Ego Vision is therefore best positioned as a teaching demo and prototype validation tool, with a considerable gap remaining before it could function as a production-level autonomous driving system.
Conclusion
Ego Vision demonstrates how to organically integrate YOLO11 object detection, ByteTrack multi-object tracking, and Depth Anything V2 depth estimation to rapidly build a driving action prediction system with both perception and decision-making capabilities. It is both an elegant exercise in engineering integration and an ideal entry point for computer vision enthusiasts looking to break into autonomous driving. For developers who want to systematically learn object detection, multi-object tracking, and depth estimation, this open-source project is well worth a deep dive.
Related articles

The Open-Weights Model Debate: Balancing Safety and Openness
An in-depth analysis of the open-weights model debate: public release brings transparency and innovation, but raises safety and misuse risks. Exploring tiered release, red-teaming, and governance challenges.

How Complaining Erodes Your Mind: Understanding the Self-Reinforcing Nature of Attention
Habitual complaining trains your brain to find more negativity, creating a vicious cycle. Learn about the self-reinforcing nature of attention and practical ways to break free from negative loops.

The Depth Perception Challenge for Transparent Objects: How LingBot-Depth Breaks Through with Masked Depth Modeling
Depth perception for transparent and reflective objects has long been a core challenge in robotic grasping. LingBot-Depth uses masked depth modeling to turn sensor failure into supervisory signals, inferring glass depth from RGB context.