A Time-Efficient Cascade for Real-Time Object Detection: With applications for the visually impaired

Xiangrong Chen, Alan L. YuilleWorkshops @ CVPR 2005 · DOI

TL;DR

This paper introduces a "time-aware" cascade design for object detection that explicitly accounts for the computational cost of different classifiers and preprocessing steps. By using a greedy algorithm to optimize for speed without sacrificing accuracy, the authors achieved a 2.5x speedup in real-time text detection, enabling assistive technologies to run at 40 frames per second on mobile hardware.

What Problem Does This Paper Address?

In the mid-2000s, the "cascade" architecture (popularized by Viola and Jones for face detection) was the gold standard for rapid object detection. The idea is simple: use a sequence of increasingly complex tests to quickly reject "easy" background regions and save heavy computation for "hard" candidate regions.

However, most cascade designs made a critical oversight: they assumed every test took the same amount of time. In reality, a simple texture check is much faster than a complex spatial analysis. Furthermore, many algorithms ignored the "hidden" cost of preprocessing (like building integral images or filter maps). For applications like helping the visually impaired navigate city streets, every millisecond counts. The authors set out to bridge the gap between theoretical accuracy and actual wall-clock run time.

Methods

The authors treat cascade design as a formal optimization problem: minimize the average processing time per image region while keeping the false negative rate at zero (on training data) and the false positive rate below a target threshold.

Since finding the globally optimal cascade is an NP-hard problem, they developed a Greedy Algorithm to build the cascade layer by layer:

  1. Time-Weighted Selection: Instead of just picking the most accurate classifier, the algorithm selects the one that maximizes the "expected time remaining normalized by the expected number of regions remaining to be rejected." Essentially, it looks for the "best bang for your buck" in terms of rejection-per-second.
  2. Preprocessing Integration: They formulated a way to bake the cost of feature extraction ($T_{pre}$) into the classifier's cost. If a feature set hasn't been used yet, its initial "startup cost" is high; once computed, subsequent layers using those features become "cheaper."
  3. Asymmetric AdaBoost: They used this to ensure each layer had a 100% detection rate (zero false negatives) on the training set, which is a requirement for the cascade to function correctly.

Datasets

The authors evaluated their method on a text detection task using:

  • Training Set: 15,478 text samples from 1,174 images (a mix of their own data and the ICDAR 2003 benchmark).
  • Negative Samples: 4,000 large images containing no text to provide background "clutter."
  • Test Set: 530 images with a resolution of 1,600 x 1,200, featuring diverse scenes like offices, supermarkets, and city streets.

Key Insights and Ideas

  • Time as a First-Class Citizen: The most important insight is that a "slower" classifier might actually be better for the cascade if it rejects a massive percentage of the background early on.
  • The "Sculpting" Analogy: The authors compare the cascade to carving a sculpture. Early layers should make "large cuts" (quick rejections of obvious non-text) to give the rough shape, while later layers handle the "fine details" (precise classification).
  • More Layers Can Be Faster: Interestingly, the new time-efficient cascade used 10 layers, whereas their previous version used only 4. By breaking the work into more granular, time-optimized steps, the overall system became significantly faster.
  • Amortized Preprocessing: By explicitly accounting for preprocessing time, the algorithm naturally learns when it is "worth it" to compute a new type of feature map.

Key Results

The time-efficient cascade outperformed the authors' previous state-of-the-art detector across the board:

  • Speedup: A consistent 2.5x increase in speed.
  • Real-Time Performance: On a 320x240 image, the system ran in 0.025 seconds (40 FPS). Even on high-resolution 1600x1200 images, it processed a frame in 0.59 seconds (down from 1.54s).
  • Accuracy: Despite the focus on speed, the new method actually improved the detection rate from 89% to 91% and reduced the false positive rate.
  • Hardware Implementation: The system was successfully deployed in the "Smart Telescope," a wearable device for people with low vision that highlights text in the environment in real-time.

Limitations and Future Work

  • Training Complexity: The authors note that the training time for this optimized cascade is more than ten times longer than previous methods. While this is an "off-line" cost, it makes iterating on the model more difficult.
  • Greedy vs. Global: Because the algorithm is greedy, it may still miss the absolute most efficient cascade configuration possible.
  • Multi-Object Detection: The paper focuses on a binary task (text vs. no-text). The authors suggest that extending this time-efficient logic to multi-class detection (e.g., detecting signs, faces, and obstacles simultaneously) is a promising next step.

Summary updated

BibTeX
@inproceedings{chen2005time,
  author = {Xiangrong Chen and Alan L. Yuille},
  title = {{A Time-Efficient Cascade for Real-Time Object Detection: With applications for the visually impaired}},
  booktitle = {Workshops @ CVPR},
  year = {2005},
  doi = {10.1109/cvpr.2005.399},
}

Loading related content...

Figure