ATLAS NOVA My AtlasVelocer ↗

Technology · Machine learning

Object detection

Computer vision task

Object detection is the computer vision task of finding the objects in an image and saying what each one is.

It answers two questions at once: what is the object, and where is it. The "what" is object classification, which assigns a class label such as car, person or dog. The "where" is object localization, which marks the object's position with a bounding box, a rectangle drawn tightly around it.⁠[1] Detection is the combination of the two; image classification classifies an image or object into one of the predefined categories, while object detection combines classification, localization, and segmentation.⁠[2]

Key facts
62.4R-CNN reached this mAP on VOC 2012, over 50% better than prior best⁠[3]
93.10Best SSD/YOLOv3 leukocyte detector's mean average precision, Wang et al. 2019⁠[4]
88.73Improved YOLO-V3 mAP on RSOD, up from 77.10%, Xu and Wu 2020⁠[5]
7.7UAV-YOLOv8's mean detection accuracy gain over baseline, Wang et al. 2023⁠[6]

Overview

Object detection

A street photograph makes the difference concrete. A classifier fed that photo might return "street." A detector returns a list: a car at these coordinates, a pedestrian at those, a traffic light up there, each with a class and a box. The box is the detector's way of pointing. It is also an approximation: the rectangle is drawn around the object, so background pixels near the edges creep into the region, and that imprecision is one source of error in localization.⁠[2]

A busy night street lined with neon-lit shops and restaurants, with scooters, cars, and pedestrians moving along the road and sidewalks.
A busy night street lined with neon-lit shops and restaurants, with scooters, cars, and pedestrians moving along the road and sidewalks. View full-size image.DZ6 0927 Busy night scene on a bustling city street with scooters cars and pedestrians weaving between neon-lit shops and restaurants by PattayaPatrol. CC BY-SA 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

This matters because a great many systems need to know not just that something is present but where it is. Face detection, pedestrian counting, security systems, vehicle detection and self-driving cars all rest on it. A driverless car has to identify, locate and track nearby objects before it can control its speed; a surveillance system has to pick a suspected person or vehicle out of a scene that no human can watch continuously. The same machinery serves robots identifying nearby objects, systems counting crowds in parks and malls, and tools that scan an object and return information about it.⁠[1]

What makes it hard

The difficulty is not in naming objects but in the sheer variety of how they appear. Objects differ in size, aspect ratio and position, and the same object looks different from another angle, in another pose, under other lighting, against a cluttered background, or partly hidden behind something else. Scale is a particular problem: an object occupying less than about 5% of the image is often missed outright, and objects packed closely together, like a stack of plates, are hard to separate.⁠[1] Detectors are also trained on a fixed resolution and tend to underperform when the input arrives at a different scale, and the imbalance between the many background patches and the few genuine objects skews what the model learns.⁠[2] A detector can only find classes it was trained on, which produces confident mistakes on lookalikes.⁠[1]

Two designs, one trade-off

Modern detectors fall into two families, and the split is about the order of operations. Two-stage detectors first propose: a stage narrows the image down to candidate regions likely to contain something, and a second stage then classifies each candidate and refines its box. One-stage detectors skip the proposal step and predict boxes and classes directly across all positions in a single pass.⁠[2] The trade-off follows from that structure. Two-stage detectors are complex and powerful and generally outperform one-stage detectors in detection accuracy; one-stage detectors are simpler and faster, and YOLOs are adopted in various applications majorly due to their faster inference rather than detection accuracy.⁠[2] Neither property is absolute, and the balance between the two has shifted as architectures have developed, a history taken up later.

Detection = classification (what) + localization (where), and the bounding box is how the "where" is expressed.

History

From handcrafted features to learned ones

Before deep learning, a detector was assembled by hand, in stages, and each stage had to be designed by a person who knew what the object looked like. The first stage found candidate regions: the image was scanned with a window at many positions and several scales, on the reasoning that an object could sit anywhere and be any size. That strategy works in principle but is expensive, because the sweep produces a great many candidate windows and each one must be processed.⁠[1] The second stage turned each candidate into numbers. Features are measurable properties of an image region, such as the direction of edges or the pattern of light and dark, and early detectors computed them with fixed recipes: HOG (histogram of oriented gradients) summarizes the distribution of edge directions in a patch, SIFT (scale-invariant feature transform) finds distinctive keypoints that survive changes of scale, and Haar features compare sums of pixels in adjacent rectangles. The third stage was a classifier, a model that maps a feature vector to a class label, with support vector machines (SVM), deformable part models (DPM) and AdaBoost among the common choices.⁠[1]

The weakness of this pipeline is that every part of it is a guess made in advance. A feature descriptor has to be designed to be robust across appearances, backgrounds, weather and lighting, and doing that well is difficult.⁠[1] Errors compound along the chain: if the region proposal is slightly off, or the features are poorly chosen, the classifier downstream is working from damaged input. Traditional methods built on handcrafted features and shallow trainable architectures tended to stagnate, with gains sought by combining many low-level features with high-level context in ever more complex ensembles rather than by improving the representation itself.⁠[7]

Deep learning changed what the middle stage is. A convolutional neural network (CNN) is a model built from layers of small filters that slide across the image and learn, from examples, which patterns to respond to; the features are no longer designed but learned from data through a general-purpose training procedure.⁠[4] Because the network learns features from data, it produces semantic, high-level, deeper representations, and the same network can be trained end to end from raw pixels to a decision.⁠[7]

A widely influential detector to make this shift was R-CNN, short for Region-based Convolutional Network.⁠[3] It kept the proposal idea but replaced the handcrafted middle: candidate regions were generated bottom-up, and a high-capacity CNN was applied to each one to decide what it contained and to refine its extent. Two further choices mattered. The network was first pre-trained on a large auxiliary task and then fine-tuned on the detection data, which helped greatly when labelled detection data were scarce. On the VOC 2012 benchmark this combination improved mean average precision by more than 50 percent over the previous best result, reaching 62.4 percent.⁠[3] The gain came from combining region proposals with high-capacity CNNs, but applying the network to each candidate region is costly.

Fast R-CNN and then Faster R-CNN attacked that cost. The decisive step was the Region Proposal Network (RPN), a small fully convolutional network that shares the image's convolutional features and, at each position, predicts both object bounds and an objectness score, meaning how likely a region is to contain any object at all rather than background. Because the proposals come from the same features the detector already computed, they are nearly free, and the proposal step stops being the bottleneck. Merging the RPN with the detection network produced a single system that, with the deep VGG-16 model, ran at 5 frames per second on a GPU while reaching state-of-the-art accuracy on PASCAL VOC 2007, 2012 and MS COCO using only 300 proposals per image. The RPN can be thought of as telling the rest of the network where to look.⁠[8]

What this history shows is a change in where the intelligence sits. In the traditional pipeline the knowledge was in the designer's choice of features and the classifier's fixed inputs; in the learned pipeline the knowledge is in the weights, adjusted by training on labelled examples. The proposal-then-decide structure survived the transition, and the detectors built on it are taken up in the next section.

How it works

Two-stage detectors: propose first, then decide

The two-stage design splits detection into two jobs done in sequence. The first stage proposes: it scans the image and produces a set of candidate regions, each a rectangle that might contain an object. The second stage decides: it takes each candidate and predicts the object and its bounding box for the proposed region. Splitting the work this way means the expensive classification step runs only on a selected set of promising regions rather than on every position in the image.⁠[2]

A branching network diagram connects an animal photograph, a convolutional backbone, shared feature maps, region proposals, region feature extraction and labelled dog and cat boxes.
Shared image features support both region proposals and per-region detection. The detection head assigns classes and refines selected boxes. View full-size image.Shared Features in Two-Stage Detection by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The logic behind the split is economy of attention. Most of an image is background, and running a full classifier over all of it wastes computation on empty pavement and sky. In Faster R-CNN, the proposal stage predicts objectness scores rather than object classes, and proposals come from features the detector has already computed.⁠[8] The second stage then spends its capacity on the small number of regions that survived, and two-stage detectors generally reach higher accuracy than designs that skip the proposal step.⁠[2]

R-CNN established the pattern. Candidate regions were generated bottom-up by a separate proposal method, and a convolutional network was applied to each region in turn to localize and classify it. The results were strong for their time, but the cost was structural: a full network pass per candidate, hundreds of times over, with little computation shared between them.⁠[3] Advances like SPPnet and Fast R-CNN reduced the running time of detection networks, exposing region proposal computation as a bottleneck.⁠[8]

Fast R-CNN reduced the running time of these detection networks.⁠[8] Faster R-CNN went further and removed the separate proposal algorithm altogether. Its Region Proposal Network (RPN) is a small fully convolutional network that shares the image's features and, at each position, predicts both object bounds and an objectness score, the likelihood that a region contains any object rather than background. Because proposals come from features the detector has already computed, they are nearly free, and the proposal step stops limiting the system. Merging the RPN with the detection network gave a single trainable system; for the very deep VGG-16 model it ran at 5 frames per second on a GPU while reaching state-of-the-art accuracy on PASCAL VOC 2007, 2012 and MS COCO with only 300 proposals per image.⁠[8]

R-FCN, short for Region-based Fully Convolutional Network, attacked the remaining per-region cost from another angle. In Fast and Faster R-CNN, a costly per-region subnetwork still runs separately on each region, hundreds of times per image.⁠[9] R-FCN instead makes almost all of the computation shared across the whole image by producing position-sensitive score maps, feature maps that encode, for each part of an object, how strongly that part appears at each location. The design has to resolve a tension: image classification wants features that do not care where in the picture a pattern falls, while detection needs to know exactly where things are. Position-sensitive maps supply that location sensitivity without a per-region subnetwork, which lets the detector adopt fully convolutional image classifier backbones such as ResNets. With a 101-layer ResNet it reached 83.6 percent mAP on the PASCAL VOC 2007 set at 170 ms per image, between 2.5 and 20 times faster than its Faster R-CNN counterpart.⁠[9]

The trade-off this family makes is deliberate. Accuracy comes first, and speed is recovered by engineering: sharing features, replacing the external proposal algorithm, and removing repeated per-region work. Two-stage detectors are complex and powerful, and generally outperform single-stage detectors in accuracy, though with YOLO and its architectural successors detection accuracy has improved significantly and is sometimes better than two-stage detectors.⁠[2] The choice between the families is therefore a choice about which error hurts more, a missed detection or a late one.

Two-stage detection spends its computation where objects are likely to be: propose cheaply, then classify and refine only the survivors.

One-stage detectors: everything in a single pass

The two-stage family spends its effort in sequence: find candidates, then examine them. The one-stage family collapses that sequence. A single network looks at the image once, and at every position where an object might sit it predicts, in the same forward pass, a box and a class with a probability for each class. There is no separate proposal step and no second network waiting on the first.⁠[2] The whole detection problem is recast as regression, meaning the model outputs continuous numbers, the coordinates of a box, directly from the image pixels rather than choosing among predefined answers.⁠[4]

The appeal is arithmetic. A two-stage detector runs a classifier on a few hundred candidate regions; a one-stage detector evaluates every spatial position at once, but each evaluation is cheap and they all happen together inside one network. The architecture is simpler, easier to implement, and produces its answer in a single shot, which is why it is often the practical choice when a system has to keep up with a live camera feed.⁠[2] The cost is that the model must learn to separate objects from a vast sea of background patches on its own, without a proposal stage having already filtered the easy negatives away. That imbalance is a recurring difficulty for the family, and it is taken up later.

Grids, cells and confidence

The best-known one-stage design, YOLO (You Only Look Once), makes the mechanism concrete. The network divides the input image into an S×S grid of cells. The cell whose centre falls on an object's true location is the one held responsible for detecting that object. Each cell proposes a fixed number of bounding boxes, and for each box it outputs a confidence score, defined as the probability that the cell contains an object multiplied by the overlap between the predicted box and the true one.⁠[5] Overlap here is measured by IoU, the intersection over union: the area the two boxes share divided by the area they cover together, a number from 0 for no overlap to 1 for a perfect match. A cell with no object in it should report confidence near zero, and the training signal pushes it that way.

This formulation is what makes the single pass possible. Instead of asking "which regions deserve a closer look," the network asks, at every cell simultaneously, "is there an object centred here, and if so, what is it and how big is its box." The answers come out together, and a post-processing step keeps the strongest ones. The design is not the only one-stage approach; the Single Shot Multibox Detector (SSD) belongs to the same family, and it detects by combining predictions from several feature maps of different resolutions rather than from a single grid.⁠[4] Both share the defining property: no region proposal network, and location and category predicted directly.⁠[5]

The speed-accuracy trade-off, in numbers

The trade-off between the two families is real but not fixed, and the numbers show why the choice depends on the job. On the measures reported in one comparison, YOLO reached a detection accuracy of 63.4 against 70 for Fast R-CNN, a clear deficit; but its inference time was around 300 times faster.⁠[2] A system that must process video in real time cannot spend 300 times longer per frame to gain a few points of accuracy, and a system that inspects a single photograph offline can. That is the whole argument in miniature: two-stage detectors generally win on accuracy, one-stage detectors on speed, and which matters more is a property of the application rather than of the algorithms.⁠[2]

The gap has also narrowed as the one-stage family matured. YOLO was not the first single-shot detector, but its successors, and the family of single-stage designs around it, have improved accuracy substantially, to the point where it is sometimes better than that of two-stage detectors.⁠[2] The reason is architectural: later versions added mechanisms for handling objects at different sizes and for extracting richer features, and those changes are covered in the next section. What matters here is that "one-stage means less accurate" was a description of an early state, not a law.

What the single pass buys in practice

The value of the single pass shows up most clearly where the detector has to run on modest hardware or keep pace with a moving scene. In a study that treated the recognition of white blood cells under a microscope as a detection problem, two one-stage detectors, SSD and YOLOv3, were trained on 14,700 annotated images and tested on 1,120 more. The better of the two reached a mean average precision of 93.10 percent while taking 53 milliseconds per image on a desktop graphics card, about 19 frames per second. The second-best model gave up only 0.6 percent of that accuracy but ran at 14 milliseconds per image, roughly 70 frames per second.⁠[4] That pairing, a small accuracy sacrifice for a large speed gain, is the trade-off in its most concrete form, and it is why a laboratory or a production line can choose the variant that fits its throughput.

A different study, on detecting targets in aerial and satellite imagery, made the same point from the other direction. YOLO-V3, a one-stage detector, was chosen as the starting model because one-stage algorithms obtain location and category predictions directly and usually achieve higher detection speed than two-stage ones; the work then had to improve its accuracy for the particular difficulty of small, densely packed remote-sensing targets.⁠[5] The choice of a fast base and the subsequent effort to raise its accuracy is the pattern the family invites: start from speed, then buy back accuracy where the task demands it.

The one-stage idea, then, is a bet that a single well-trained network can do the proposing and the deciding at once, and that the resulting speed is worth the accuracy it costs. The bet has paid off often enough that the family now spans many designs, and the machinery that lets a single pass handle objects of very different sizes, the part that decides whether a small distant car is found at all, is where the next section begins.

One-stage detection predicts boxes and classes at every position in one forward pass, trading some accuracy for speed that two-stage designs cannot match.

Anchors, feature pyramids and multi-scale detection

A one-stage detector predicts boxes at every position, but it cannot predict arbitrary boxes from nothing. It needs a starting guess, and the anchor box is that guess: a rectangle of a preset width and height, placed at each position in a feature map, which the network then adjusts and scores. Anchors come in several sizes and aspect ratios at each location, so that a tall pedestrian and a wide bus are both within reach of some starting rectangle. YOLO-V2 introduced the anchor box concept and ran k-means on the dataset to generate appropriate prediction boxes.⁠[5]

The anchor is a compromise, and its limits are built in. The set of sizes and shapes is fixed before training begins, so an object whose proportions fall between two anchors is served less well than one that matches. The assignment of which anchor is responsible for which object is also a hand-made rule, usually based on how much the anchor and the object overlap. FoveaBox was designed to remove this dependence altogether. It is an anchor-free detector: instead of matching objects to preset rectangles, it learns directly, at each position, whether an object exists there and what its box coordinates are, with the scale of the target tied naturally to the resolution of the feature map the prediction comes from. The authors' argument is that anchor design carries hyperparameters that are sensitive to final performance, and that dropping anchors removes that sensitivity along with the computation they require.⁠[10]

Why one scale is not enough

Anchors solve the shape problem at a single resolution. They do not solve the size problem, because a feature map computed at one resolution sees the image at one level of detail. Deep layers of a convolutional network have large receptive fields and rich semantic content: they know a patch of pixels looks like a car. But they have been downsampled many times, so a small object has been reduced to a handful of cells, or to none. Shallow layers keep fine detail and precise positions but understand little about what they are looking at. A detector that reads only from the deep end will find large objects and miss small ones; one that reads only from the shallow end will localize well and classify poorly.

The feature pyramid resolves this by using both ends at once. The idea is to build a set of feature maps at several resolutions, coarse and semantic at the top, fine and detailed at the bottom, and to make predictions from each level. YOLO-V3 does exactly this: it downsamples the input five times, takes the last three downsampled layers, and predicts at three scales of 13×13, 26×26 and 52×52, which are responsible for large, medium and small targets respectively.⁠[5] To keep the fine levels from being semantically poor, the coarse maps are upsampled and concatenated with the finer ones, so that deep semantic information flows down into the high-resolution predictions. This fusion is what lets the network detect small targets more effectively than its predecessors.⁠[5]

The pyramid also has a cost, and it can be attacked directly. Computing features at every scale of a finely sampled image pyramid is the computational bottleneck of many detectors. One approach showed that features at octave-spaced scales are enough to approximate a finely sampled pyramid by extrapolation, an approximation that is far cheaper than computing each scale outright and that gave considerable speedups with negligible loss in detection accuracy across three different recognition systems, tested on pedestrian detection and on general object detection.⁠[11] The pyramid, in other words, does not have to be built at full density to do its job.

Scale handling as the lever for small objects

Put together, anchors and pyramids are the machinery that decides whether a small object is found at all. The anchor supplies a starting shape; the pyramid supplies a level of representation at which that object still occupies enough cells to be seen. When a target is small and the background is complex, both parts need strengthening. In remote sensing imagery, where targets are small, densely distributed and set against cluttered backgrounds, an improved YOLO-V3 kept the pyramid idea but extended the detection scales from three to four and replaced part of the feature extraction network with densely connected units, so that shallow and deep information were fused more thoroughly. On the RSOD dataset this raised mean average precision from 77.10 percent to 88.73 percent over the original YOLO-V3, with the gain on aircraft, mostly small targets, reaching 12.12 percent, and detection speed was not significantly reduced.⁠[5]

The same lesson appears wherever small objects dominate. An extra high-resolution pyramid level, built with a module that super-resolves features and extracts regional detail at the same time, was proposed specifically for small object detection, on the reasoning that feature coupling across scales still impairs performance on objects only a few pixels across.⁠[12] In these designs the pyramid is modified to handle small objects, and the scale at which a prediction is made matters alongside the classifier.

Anchors give the detector a starting shape; the feature pyramid gives it a level of detail at which small objects still exist. Most small-object gains come from changing the second.

Training a detector: data, labels and loss

A detector is not programmed with a description of a car. It is shown many pictures of cars, together with the correct answer for each, and it adjusts its internal weights until its answers match. This is supervised learning: training in which every example arrives paired with a target output, so that the model's error can be measured and corrected. The target output for detection is not a single label but a set of objects, each with a class and a box, and producing those targets by hand is the part of the pipeline that no architecture removes.

A circular four-step training diagram connects predictions, classification and box losses, gradients and weight updates beside annotated mug images and an IoU inset.
Annotated images provide target classes and boxes for computing detection losses. Backpropagation and weight updates repeat as the detector is fine-tuned. View full-size image.Supervised Detector Training Loop by Atlas Nova. Illustration generated with AI for this article and checked against its text.

Annotation

Annotation is the process of attaching that target information to raw data. For images, developers add metadata to the dataset, marking where each object is and what it is, and the marking can take several forms: a bounding box around the object, a polygon or polyline tracing its outline, a mask covering its pixels, or landmarks marking specific points on it.⁠[1] The choice is a trade between precision and effort.

The effort is the sticking point. Annotation is time-consuming and demands a great deal of manual work, which is why automatic and self-supervised approaches to producing labels have drawn interest. Tools exist to make the manual part less painful, and a review of the literature found LabelImg, CVAT, VOTT and LabelMe to be the most frequently used among those it surveyed. Video can be annotated too, either frame by frame or as a stream, which multiplies the work by the number of frames.⁠[1] The scale involved is easy to underestimate: one study of white blood cell recognition trained its detectors on 14,700 annotated images and evaluated them on a further 1,120.⁠[4] Every one of those images had to be marked before training could begin.

Starting from a pre-trained model

Training a detector from random weights requires a very large labelled set, which most specific tasks do not have. Transfer learning avoids that by starting from a network already trained on a broad dataset and adapting it to the new task. The usual procedure is to initialize the network with weights pre-trained on a large general dataset, then fine-tune all its layers on the task's own, smaller dataset. In the leukocyte work, the detectors were initialized from models pre-trained on ImageNet and then fine-tuned on the blood cell images, and the training loss of both detector families fell steadily as iterations increased.⁠[4]

The loss, and what it has to balance

Training proceeds by measuring the difference between the detector's output and the target, a quantity called the loss, and adjusting the weights to reduce it. For a detector the loss has to cover two different jobs at once: assigning the right class, and placing the box in the right spot. The box part is where the geometry enters, and the natural measure of box quality is overlap. IoU, the intersection over union introduced earlier, compares the predicted box with the true one, and a loss built on it pushes the prediction toward the target directly rather than penalizing each coordinate separately.

Plain IoU has a blind spot. When two boxes do not overlap at all, the measure is zero and carries no information about which direction to move, so the gradient that should correct the box vanishes. Later work addressed this by folding additional geometric factors into the loss: the overlap area, the normalized distance between the two boxes' central points, and their aspect ratio, combined into a single measure to better distinguish difficult regression cases. Training with this combined loss produced consistent gains in average precision and average recall compared with widely used coordinate-distance losses and simpler IoU-based losses, and the loss was applied to detectors including YOLO v3, SSD and Faster R-CNN.⁠[13] The lesson is that how box error is measured shapes what the network learns, not merely how it is scored.

The other half of the loss is harder to balance than it looks. At every position a one-stage detector evaluates, the overwhelming majority of positions contain background, and only a few contain an object. This foreground-background imbalance means a naive loss is dominated by the easy negatives, and a model can score well by learning to say "nothing here" almost everywhere. The problem is broad enough to have been given its own problem-based taxonomy.⁠[14]

A detector, then, is the product of three things that are easy to conflate: the examples it was shown, the labels attached to them, and the function that told it how wrong it was. Architecture sets the ceiling, but data and loss decide whether the model reaches it. The next question, how anyone knows whether it did, is a matter of measurement.

Uses

Where detectors are put to work

The same core machinery, a class and a box, serves a surprising range of jobs, and the differences between those jobs explain most of the variation in how detectors are built. A surveillance camera and a microscope both need to find objects and name them, but one must run continuously on live video while the other can take its time on a still frame. Looking at where detection is deployed shows which constraints pull hardest in each setting.

A surveillance camera is mounted on the wall of a building beside a shop front with a 'WELLNESS · BEAUTY' sign, next to a tall green-and-blue Aral petrol station sign.
A surveillance camera is mounted on the wall of a building beside a shop front with a 'WELLNESS · BEAUTY' sign, next to a tall green-and-blue Aral petrol station sign. View full-size image.Surveillance camera in Königsdorf by Holzklöppel. CC BY-SA 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.
Figure 1. Detection accuracy and time for four detectors on tomato diseases and pests. Accuracy in percent and detection time in milliseconds per image for four detectors on the same tomato dataset. The source states: “SSD 84.32 25.69 Faster R-CNN 90.67 2868.94 Yolo V3 88.31 21.18 Improved Yolo V3 92.39 20.39” (Liu & Wang (2020)).⁠[18]

Watching and driving

Video surveillance is an important application area for object detection. Most public spaces, metro stations, parks, schools and shopping centres, are covered by cameras that no human can watch continuously, and detection is what lets a system pick out and track a particular person or vehicle in a scene at once.⁠[1] Traffic is the other large cluster. Detecting and recognising traffic signs, pedestrians, traffic lights and vehicles has been studied extensively with the YOLO family, and a systematic review of that work found vehicular security and intelligent, autonomous vehicles to be the most common applications, with most sign datasets drawn from Germany and China.⁠[15]

Autonomous driving raises the stakes further, because a car must perceive its surroundings accurately enough to plan a path and avoid collisions. Two-dimensional detection alone does not supply the depth that those tasks need, which is why 3D object detection methods add a third dimension that reveals an object's size and location in space; their accuracy is still being improved. The perception system takes in sensor data and turns it into semantic information the driving software can act on, and detection is the fundamental function within it.⁠[16]

Faces, identity and public health

Face detection was the first application area in human object detection, and it remains a gateway to many others: recognising a person, reading a smile in real time through a camera, estimating age, or applying facial makeup, and it has helped carry object detection into different application areas.⁠[1]

The Covid-19 pandemic pushed one variant of face detection into sudden prominence. A model built to check whether people in a camera feed are wearing masks paired a single-shot detector for finding faces with a lightweight classifier for deciding whether each face is covered, and the design was deliberately resource-efficient so that it could run on embedded devices such as a Jetson Nano or a Raspberry Pi rather than a server. The reported accuracy was 0.9264 with an F1 score of 0.93.⁠[17] The pairing is instructive: a general-purpose detector finds the face, and a small, specialised classifier makes the judgement, each doing the part it is good at.

Biometrics uses detection for a related purpose. Authentication by fingerprint, DNA, retina or ear relies on recognising an individual's biological features, and object detection techniques have been applied to that analysis in past research.⁠[1]

Robots, fields and factories

Robots use detection as a first step toward acting. Object detection is the primary task a mobile robot performs to identify nearby objects and then do something with that knowledge: provide information, open or close a door, sound an alarm.⁠[1]

Agriculture applies the same logic to plants. Tomato crops suffer from a range of diseases and pests, and identifying them early matters because treatment after symptoms appear is a passive remedy that often comes too late and encourages excessive pesticide use. A detector trained on images of diseased and infested leaves can locate and classify the problem directly from a photograph, and the aim is accurate, real-time detection in the natural environment.⁠[18]

Linking detection algorithms to site video lets a firm analyse productivity and watch for safety problems automatically, but doing so requires an image dataset of construction machines, which was not readily available because construction images are hard to access and slow to annotate.⁠[19]

Looking down and looking closely

Remote sensing and aerial photography place the detector far from its targets, and that distance changes the problem. In UAV imagery the field of view is wide and the flying altitude high, so a large share of the objects are small and the backgrounds complex, while the platform itself has limited resources for computation and storage.⁠[6] A detector for this setting has to balance performance against what the hardware can carry, which is a different balance from the one a data centre strikes.

Medicine offers the opposite extreme: the camera is close, the objects are numerous, and the cost of a mistake is high. Microscopic examination of peripheral blood is standard practice for diagnosing and monitoring major diseases, but the work relies on skilled technicians inspecting smears by eye, which is time-consuming, labour-intensive and subject to observer bias. Treating the recognition of white blood cells as a detection problem, rather than as classification of pre-cropped cells, lets a model take a raw microscope image and report both the type and the location of each cell in one pass, and it avoids the subjectivity of manual inspection.⁠[4]

Assistance and access

Some of the most direct uses serve people rather than systems. Devices for obstacle recognition and wearable aids help visually impaired people navigate, and when combined with natural language processing they can alert a user to nearby objects and describe them in the user's own language. Consumer tools follow a similar pattern: an application that scans an object and returns web links about it replaces typed input with a camera pointed at the thing itself.⁠[1]

A surveillance system that misses a suspect has failed at its purpose; a mask checker that flags a covered face wastes an usher's time; a blood cell detector that mislabels a cell sends a technician down the wrong path.

Every deployment fixes a priority, speed or accuracy, and the detector is built and tuned around that choice.

Research

Measuring how well a detector works

A detector's output is a list of boxes with class labels, and the true answer is another list. Comparing them is not a matter of counting matches, because a box can be nearly right, and a detector can be right about an object while being wrong about what it is. Evaluation therefore has to answer two separate questions, whether the box is in the right place and whether the label is correct, and then combine them into a number that can be compared across models.

Five boxed cubes and an empty predicted box appear above precision and recall formulas, a shaded precision-recall plot and a two-class mAP calculation.
A counted example distinguishes correct detections, false positives and missed objects. Separate examples show a precision-recall curve and the averaging of class AP values into mAP. View full-size image.Precision Recall and Mean Average Precision by Atlas Nova. Illustration generated with AI for this article and checked against its text.

Overlap as the measure of a box

In practice a prediction counts as correct if its IoU with the true box exceeds a threshold, and the threshold is a choice rather than a fact. A loose threshold of 0.5 accepts a box that is roughly in the right place, while a stricter one demands a tighter fit. The threshold used to define a correct detection also defines the quality of the detector being trained, since it decides which predictions are treated as positives during learning; a common threshold of 0.5 admits noisy, low-quality detections, and performance can degrade rather than improve when the threshold is raised, a paradox that later architectures were designed to address.⁠[20]

Precision, recall and the curve between them

Two ratios summarise the errors. A detector that reports only the objects it is sure about can have high precision and poor recall; one that reports everything can have high recall and poor precision.

Average Precision (AP) summarises that curve as a single number, the average detection precision across the range of recall values, computed separately for each object class.⁠[2] Because it is computed per class, a detector's performance on cars and on pedestrians are separate figures, which matters when a model is strong on large, common objects and weak on rare ones.

To compare whole models across many categories, the per-class figures are averaged into mean Average Precision (mAP), the mean of the Average Precision values over all object categories, and this is the standard summary metric in detection.⁠[2]

Benchmarks and the datasets behind them

A metric is only meaningful against a fixed set of images with fixed annotations, and the standard datasets exist to supply that. PASCAL VOC is a long-running benchmark for visual object classification, segmentation and detection; its class list grew from 4 classes in 2005 to 20 in 2007, and its training set comprises roughly 11,530 images containing 27,540 regions of interest and 6,929 segmentations. MS COCO (Common Objects in Context) was designed for classification, detection and instance segmentation together, and it holds fewer categories than one might expect, 91 in all, but many instances within each, with multiple objects of differing characteristics appearing in a single image.⁠[2]

Scale is the point of the largest sets. Open Images V4 contains 9.2 million images with 15.4 million bounding boxes across 600 object classes, roughly fifteen times more boxes than the next largest datasets, and its images average eight annotated objects each, often in complex scenes.⁠[21] A dataset of that size changes what can be measured, since a model's performance can be tracked as training data grows rather than only at a single fixed quantity. Domain-specific benchmarks do the same for specialised imagery: DOTA, built for object detection in aerial images, holds 1,793,658 object instances in 18 categories with oriented bounding boxes, drawn from 11,268 aerial images, and was used to evaluate ten state-of-the-art algorithms across more than seventy configurations.⁠[22]

Annotation formats are a quieter problem. Different tools record a box's location and size in different ways, and a lack of consensus on representation complicates the comparison of methods; one response was an open-source toolkit supporting several annotation formats and fifteen performance metrics so that algorithms can be evaluated consistently across datasets.⁠[23] A number is only comparable if the thing being measured was recorded the same way.

Two numbers, not one

Performance is therefore reported as a pair, detection accuracy and inference time, and the pair is what a designer actually chooses between.⁠[2] The same pairing appears in benchmark results, where speed and accuracy are evaluated for each configuration rather than accuracy alone.⁠[22] Reporting both is an admission that detection has no single best model, only models suited to particular constraints, and the measured results from real tasks, where the two numbers are always quoted together, are taken up in the next section.

mAP summarises a precision-recall curve averaged over classes; it means little without the IoU threshold, the dataset and the inference time reported beside it.

Evidence from real detection tasks

Benchmarks report a number on a fixed dataset. A real task reports a number on the images the system will actually see, and the difference between the two is where the practical lessons live. Looking at a handful of completed detection projects, each in a different domain, shows what the same machinery does when it meets a specific kind of object, a specific kind of background, and a specific budget for time and hardware.

A circular microscope field of stained blood cells, mostly pink red blood cells with a few small purple-stained white blood cells visible.
A circular microscope field of stained blood cells, mostly pink red blood cells with a few small purple-stained white blood cells visible. View full-size image.Happy neutrophil by Markgirton. CC BY 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

Cells under a microscope

Blood cell recognition is a good place to start because the task has a natural answer key: a trained technician can say what each cell is, and the cells are the objects. The traditional approach treated the problem as classification, cropping each cell out by hand or by segmentation before feeding it to a model, which meant the input had to be prepared for the model rather than taken as it came from the microscope. Treating it as detection instead let the model accept the raw image and return both the type and the location of every cell in one pass, which is what a laboratory would actually need.⁠[4]

Two one-stage detectors, SSD and YOLOv3, were trained on 14,700 annotated images covering eleven categories of peripheral leukocytes and evaluated on 1,120 further annotated images plus 7,868 labelled single-object images. The best model reached a mean average precision of 93.10% and a mean accuracy of 90.09%, at 53 milliseconds per image on a desktop graphics card, about 19 frames per second. The second-best model gave up only 0.6% of mean average precision but ran at 14 milliseconds per image, roughly 70 frames per second.⁠[4] That pairing is the speed-accuracy trade-off made concrete: a laboratory that processes slides in batches can take the more accurate model, and one that needs to keep pace with a live feed can take the faster one for almost no loss.

The per-class results carried a lesson of their own. The mature white cells were detected more precisely than the immature ones; with the best model, average precision for eosinophils and basophils sat close to 100%, while promyelocytes, myelocytes and metamyelocytes stayed around 87%.⁠[4] A high overall score, in other words, can sit on top of a weak spot that matters clinically.

Targets seen from far away

Remote sensing inverts several of the assumptions that hold for a photograph taken at arm's length. The targets are small, they are packed densely, the background is cluttered, and the scales of the targets are usually different. An improved YOLO-V3 was built for this setting by strengthening the feature extraction network with densely connected units and by extending the detection scales from three to four, so that shallow detail and deep meaning were fused more thoroughly and small targets had a level at which they still occupied enough cells to be found.⁠[5]

On the RSOD dataset the change raised mean average precision from 77.10% to 88.73% over the original YOLO-V3, and the gain on aircraft, which are mostly small targets, reached 12.12%; detection speed was not significantly reduced. The comparison against other detectors on the same data put the improved model ahead of Faster R-CNN, SSD, YOLO-V3 and YOLO-V3 tiny in accuracy.⁠[5] What the numbers show is where the improvement came from: not a new classifier, but a better representation of small objects at several scales, which is the lever the previous section identified.

Aerial photography from a drone adds a constraint that satellite imagery does not have. The platform is small, so the model must fit within limited computation and storage while still finding objects that occupy very few pixels in a wide field of view. UAV-YOLOv8 was built on YOLOv8 with three changes: a loss function that reallocates gradient toward samples of ordinary quality rather than letting extreme easy or extreme hard samples dominate, an attention mechanism in the backbone that raises the model's focus on critical information, and a feature-processing module with two additional detection scales to fuse shallow and deep features. The result was a mean detection accuracy 7.7% higher than the baseline model, achieved without increasing the model's size or parameters. The cost appeared elsewhere: the additional detection layers nearly doubled the computational load, from 28.7 billion to 53 billion floating-point operations, and very small objects such as bicycles were still detected poorly.⁠[6] A gain in accuracy on a constrained platform is real, but it is paid for in computation, and the payment is visible in the same report that claims the gain.

Leaves in a greenhouse

Tomato crops are attacked by a range of diseases and pests, and identifying them early matters because treatment after symptoms appear is a passive remedy that often arrives too late and encourages heavy pesticide use. An improved YOLO-V3 was trained on images of diseased and infested tomato leaves collected in the real natural environment rather than in a studio, with an image pyramid to fuse features at different levels, clustering of the object box dimensions to add anchor boxes, and training on images of several sizes so the model would adapt to different resolutions.⁠[18]

The reported detection accuracy was 92.39% with a detection time of only 20.39 milliseconds, and the improved model beat SSD, Faster R-CNN and the original YOLO-V3 on both accuracy and speed. The speed matters as much as the accuracy here, because the intended use is a patrol robot working around the clock in a greenhouse, capturing lesions in real time; a model that took a second per image would miss the plants it rolled past.⁠[18] The accuracy figure is also a reminder of what such a number covers: it is measured on the diseases and pests the dataset contained, in the conditions in which they were photographed.

Faces in a crowd

The Covid-19 pandemic turned a familiar detection problem into an urgent one. A model called SSDMNV2 paired a single-shot detector for finding faces with a lightweight classifier, MobileNetV2, for deciding whether each face was covered, and the design was deliberately resource-efficient so that it could run on embedded devices such as a Jetson Nano or a Raspberry Pi rather than a server. It reported an accuracy of 0.9264 and an F1 score of 0.93.⁠[17] The architecture is the point: a general-purpose detector locates the face, and a small specialised classifier makes the judgement, each doing the part it is suited to. Splitting the work that way is what let the system fit on hardware a doorway or a gate could afford.

Machines on a site

Construction firms would like to link detection to site video to analyse productivity and watch for safety problems, but doing so requires an image dataset of construction machines, and none was readily available because construction images are hard to obtain and slow to annotate. The Alberta Construction Image Data Set was built to fill that gap: 10,000 images covering 10 types of construction machine, each annotated with the machine type and its position.⁠[19]

Four existing detectors were then trained on it, and the spread of results is instructive. The two-stage designs came out slightly ahead on accuracy, with mean average precision of 88.8% for R-FCN-ResNet101 and 89.2% for Faster-RCNN-ResNet101 versus 87.8% for YOLO-v3 and 83.0% for Inception-SSD, at an average detection speed of 16.7 frames per second across the four.⁠[19] The larger lesson is about where the effort went: the bottleneck in the project was assembling and annotating the data, not choosing among detectors that already existed.

Read together, these projects point to a consistent shape. The architecture is chosen to fit a constraint, whether that is speed, computation on a drone, or memory on an embedded device such as a Jetson Nano or Raspberry Pi.⁠[6][17] The real work then goes into the data and into the part of the representation the task stresses, small objects in aerial imagery, rare cell types in a blood smear, real greenhouse conditions for a leaf. The measured numbers are the evidence that the work succeeded, and they are always reported as a pair, accuracy and time, because neither alone describes a detector anyone can use.

Real deployments report accuracy and inference time together, and the gains that matter usually come from the data and the scale handling, not from swapping one detector for another.

Risks and limits

What detectors still get wrong

A detector that scores well on a benchmark can still fail on the image in front of it, and the failures are not random. They cluster around a few conditions, and knowing which conditions is more useful than knowing the average score, because the average hides them. The per-class results from the blood cell study make the point: the best model overall led with a mAP of 93.1% and outperformed other models for AP of 7 of 11 WBC types, yet its AP for lymphocyte was lower than YOLOv3_416×416 by 6.3%.⁠[4]

Size and crowding

Scale is the most stubborn of the failure modes. An object that occupies less than about 5% of the image is often missed outright, because at that size it has been reduced to too few pixels for the network to extract a reliable pattern from. Image pyramids make detection of small as well as large objects simple and effective, but regardless of recent advancements, accuracy on small objects is still challenging. Objects arranged closely together, like a stack of plates, are very difficult to detect.⁠[1] Dense scenes stress the same weakness from a different direction: the model has to decide not only that objects are present but how many, and where one ends and the next begins.

Pose, viewpoint and the limits of training

An object looks different from every angle, in every pose, under every lighting condition, against every background, and partly hidden behind whatever happens to be in front of it. A detector trained on one view of a thing does not automatically recognise the same thing seen from another, and some methods are limited to detecting a single class of object from a specific viewpoint, failing when the pose or angle changes.⁠[1] The deeper problem is that a detector can only find the classes it was trained on. A model built to find balls will find a ball, and it will also sometimes report an orange as a ball, because an orange has approximately the same shape.⁠[1] The failure is not a bug in the model's reasoning; it is the model doing exactly what it was taught, on an input it was never taught to reject. Anything outside the training set is either missed or forced into the nearest known category, and the detector has no way to say that the nearest known category is wrong.

Weather and illumination compound all of this. Real images carry variations in lighting, occlusion, noise, camera distortion and background clutter, and each of these degrades the features the detector relies on.⁠[1] Thermal cameras are used in surveillance precisely because ordinary colour cameras perform poorly at night and in rain or fog, and a study that retrained standard detectors on thermal imagery recorded at night in clear weather, rain and fog achieved excellent average detection accuracy across all test scenarios, with YOLOv3 significantly faster than the other detectors.⁠[24] The environment is not a nuisance to be averaged away; it changes what the sensor can see.

Imbalance, in the data and in the loss

Two kinds of imbalance pull a detector off course. The first is in the loss: at every position a one-stage detector evaluates, the overwhelming majority contain background, so a naive training signal is dominated by easy negatives and a model can score well by learning to say "nothing here" almost everywhere. This foreground-background imbalance has been given its own taxonomy, alongside imbalance between classes and between objects of different scales, with a unifying critical perspective on the solutions in the literature.⁠[14] The second is in the data itself. A class that appears rarely in the training set gives the model few examples to learn from, and the blood cell results show what that costs: the mature cells were detected more precisely than the immature ones, with average precision near 100% for eosinophils and basophils but around 87% for promyelocytes, myelocytes and metamyelocytes.⁠[4]

The cost of the data, and of the machine

None of this is fixed by architecture alone, because the training set has to be built by hand. Annotation is time-consuming and demands a great deal of manual effort, which is why automatic and self-supervised approaches to producing labels have drawn interest.⁠[1] The scale involved is easy to underestimate: the leukocyte detectors were trained on 14,700 annotated images and evaluated on 1,120 more, and every one of those images had to be marked before training could begin.⁠[4] A construction monitoring effort faced the same problem: an effective image dataset of construction machines was not available due to limited accessibility of construction images, the time-and-labor-intensiveness of manual annotations, and the required knowledge base.⁠[19] Where data are scarce, detectors can be adapted from a pre-trained model rather than trained from scratch, a route covered later.

Computation is the other constraint, and it bites hardest where detection is most useful. Some detectors are robust and fast but require high-efficiency resources, and micro-systems have very limited processing power, which makes the task difficult on the hardware such systems actually carry.⁠[1] Aerial platforms make the tension explicit: a drone has a wide field of view and a high proportion of small objects, while the platform itself has limited resources for computation and storage, so a model must be both accurate and small. The UAV-YOLOv8 work shows the trade in the open: accuracy rose 7.7% over its baseline with fewer parameters, but the added detection layers raised FLOPs from 28.7 billion to 53 billion, and very small objects such as bicycles were still detected poorly.⁠[6] A gain on a constrained platform is real, and it is paid for in computation that the platform may not have to spare.

What these failures share is that they are conditions rather than accidents. Small size, crowding, unfamiliar pose, bad weather, a class never seen in training, a rare category, a thin dataset, a small chip: each one stresses a specific part of the pipeline, and each one is visible in advance to anyone who asks what the system will actually be pointed at. The remaining question, how a detector should report its own confidence when it is unsure, is taken up later.

Detectors fail in patterned ways: too small, too crowded, too unfamiliar, too rare in training, or too expensive for the hardware. Each is predictable from the task, not from the average score.

Uncertainty and the cost of a wrong box

A detector's output is a box and a label, and both are guesses. The box is an approximation of the object's true extent, and the label is a choice among classes the model was trained on. For many uses the guess is enough. For a system that has to act on the guess, the guess alone is not enough, because the system also needs to know how much to trust it. A self-driving car that treats a confident box and a doubtful one identically has no way to slow down, brake or defer when the evidence is thin.⁠[25]

A boxed parcel branches into narrow and wide density curves above a calibration comparison and a standard-deviation rescaling formula.
A predicted edge can have a narrow or wide uncertainty distribution around the same mean. Calibration checks whether predicted spreads track observed errors and can rescale them using separate calibration data. View full-size image.Box Coordinate Uncertainty and Calibration by Atlas Nova. Illustration generated with AI for this article and checked against its text.

The standard way to supply that information is to make each prediction a distribution rather than a single number. Instead of outputting one coordinate for a box edge, the network outputs a mean and a spread, typically by adding a branch that predicts a standard deviation alongside the value it already produced.⁠[25] The spread is the model's own statement of how uncertain it is about that coordinate. A narrow spread says the prediction is stable; a wide one says the model is guessing.

What calibration means for a spread

A predicted spread is only useful if it is honest, and honesty has a name. A model is calibrated when the uncertainty it reports matches the error it actually makes: among all the predictions where it claims a given level of uncertainty, the real errors should be about that large. In classification the same idea is stated with probabilities, where a classifier is calibrated if, when it says a label with probability p, it is right about p of the time. Modern deep networks tend to be overconfident rather than well calibrated, and a simple rescaling of their outputs can restore reasonable calibration.⁠[25]

Regression, where the output is a continuous quantity such as a box coordinate, is harder to define this way, and the obvious definitions have a flaw. One widely used approach judges calibration by taking percentiles of each predicted distribution and checking that the true values fall below them at the expected rate across the whole dataset. The trouble is the averaging: because the check pools all examples together, a predicted uncertainty that is entirely uncorrelated with the real error can still pass it, which means the measure cannot tell an informative uncertainty estimate from a useless one.⁠[25] A definition that cannot distinguish those two cases is not measuring what it claims to measure.

The alternative is to keep the classification idea and swap the misclassification probability for the mean square error, so that each prediction is judged on whether its stated uncertainty matches its own error rather than the dataset's average behaviour. On that basis a simple correction, rescaling the predicted uncertainty by a constant factor fitted on a separate set of examples, performed as well as far more complex calibration methods.⁠[25] The finding matters less for the specific correction than for what it shows: the uncertainty a detector reports can be checked and corrected, and the check has to be done per prediction, not per dataset.

Why the box error is the one that hurts

Detection adds a second kind of error that classification does not have. A label can be wrong, and a box can be wrong, and the two failures have different consequences. A box that is slightly too large includes background pixels; one that is slightly too small clips the object; one that is displaced puts the object somewhere it is not. In a safety-critical setting the displacement is what matters, because downstream decisions are made from the coordinates. A self-driving car agent needs to take the confidence of its predictions into account, and a box whose stated uncertainty is small but whose true error is large gives the system false confidence in exactly the quantity it depends on.⁠[25]

This is why the calibration question is not academic. A detector that reports a wide spread on a doubtful box lets the surrounding system treat that box cautiously, and one that reports a narrow spread on the same box removes the caution. The value of an uncertainty estimate lies entirely in whether the spread tracks the error, which is what the per-prediction definition is built to test.⁠[25] A detector that is accurate on average but badly calibrated is, in this respect, worse than a less accurate one whose doubts are honest, because the second can be trusted to know when it does not know.

A box without an honest uncertainty estimate is a number the rest of the system has no way to discount.

Later developments

Newer directions: transformers, few-shot and efficiency

The designs covered so far share a habit: they enumerate. Anchors enumerate candidate shapes, grids enumerate candidate positions, and the network then sorts through what it has enumerated. A newer family asks whether the enumeration is needed at all, and a second line of work asks whether a detector must be trained on thousands of examples of each class. Both questions push against assumptions the earlier sections treated as fixed.

A diagram on a black background with boxes labeled 'MLP Head', 'Transformer Encoder', '[CLS]' and 'Patch Embeddings', plus small grids of image patches with diagonal white strokes and a '+' symbol.
A diagram on a black background with boxes labeled 'MLP Head', 'Transformer Encoder', '[CLS]' and 'Patch Embeddings', plus small grids of image patches with diagonal white strokes and a '+' symbol. View full-size image.Vision Transformer by Daniel Voigt Godoy. CC BY 4.0, via Wikimedia Commons. Scaled to 960 pixels wide; no crop or other changes by Atlas Nova.

Attention instead of enumeration

A transformer is a network built on attention, a mechanism that lets every part of its input weigh every other part directly rather than through a fixed local window. It became the dominant model in natural language processing, where it could be pre-trained on large amounts of text and then fine-tuned to narrower tasks, and the vision transformer showed that a pure transformer applied to image patches could compete with convolutional networks on classification.⁠[26] Detection was the harder test, because it needs fine spatial detail rather than a single label for the whole picture.

DETR (Detection Transformer) was introduced by Carion et al., who brought the transformer model into the field of computer vision and achieved desirable results, providing a new research idea for object detection.⁠[6] DINO, a later member of that family, improved on its predecessors with a contrastive approach to denoising during training, a mixed method for initializing the queries the model uses to probe the image, and a scheme that looks forward twice when predicting boxes. On COCO with a ResNet-50 backbone and multi-scale features it reached 49.4 AP in 12 training epochs and 51.3 AP in 24, gains of 6.0 and 2.7 AP over the previous best DETR-like model; pre-trained on the Objects365 dataset with a larger backbone it reached 63.2 AP on the COCO validation set and 63.3 AP on the test-dev split.⁠[27]

The broader survey literature now groups detectors into three families by how they identify objects: anchor-based, anchor-free, and transformer-based.⁠[28]

Dropping the anchor

Detectors can be grouped into three families by how they identify objects: anchor-based, anchor-free, and transformer-based.⁠[28] Rather than matching objects to preset rectangles, an anchor-free detector learns directly, at each position, whether an object exists there and what its box coordinates are. FoveaBox does this by predicting category-sensitive maps of object existence and a category-agnostic box for each position that might hold something, with the scale of the target tied naturally to the resolution of the feature map the prediction comes from. FoveaBox avoids all computation and hyper-parameters related to anchor boxes, which are often sensitive to the final detection performance.⁠[10] The motivation is the same one that drives the transformer work: the hand-built scaffolding around the learning is a place where a designer's guesses can limit what the model achieves.

Learning from a handful of examples

A detector trained on a large labelled set knows the classes in that set and little else. Teaching it a new class normally means collecting and annotating many examples, which is exactly the cost that makes detection expensive to deploy in a narrow domain. Few-shot object detection is the task of learning a new class from only a few examples of it.

The intuitive approach is meta-learning, training a model to learn quickly from small samples. A simpler alternative turned out to work better. Fine-tuning only the last layer of an existing detector on the rare classes, leaving the rest of the network as it was, outperformed the meta-learning methods by roughly 2 to 20 points on the benchmarks of the time, and in some cases doubled the accuracy of the prior methods. Fine-tuning only the last layer of existing detectors on rare classes outperformed the meta-learning methods by roughly 2 to 20 points on current benchmarks and sometimes even doubled the accuracy of the prior methods. The same work noted that with so few examples the variance between one sample of training images and another is large, which makes existing benchmarks unreliable, and it rebuilt the evaluation protocols by sampling multiple groups of training examples to get stable comparisons across PASCAL VOC, COCO and LVIS.⁠[29] A number measured on a handful of examples is only meaningful if the handful was chosen fairly.

Fitting on smaller machines

The third direction is not about accuracy at all. A detector that runs on a server is judged by its scores; one that runs on a drone, a phone or a doorbell camera is judged by whether it fits. The YOLO line has tracked this pressure: YOLO variants are underpinned by the principle of real-time and high-classification performance based on limited but efficient computational parameters, and the variants evolve addressing requirements such as the need for fast detection, high accuracy, and deployment onto constrained edge devices.⁠[30] The pattern is visible in the reviews that chart the series from its first version to the recent ones, which examine each version's contributions to enhancing speed, detection accuracy, and computational efficiency.⁠[31]

Efficiency is not a single number. A model can be small in parameters and slow in practice, or large and fast on hardware suited to its operations, which is why the trade-offs are reported as pairs rather than as a single score. The recurring theme across all three directions is that the field has stopped treating one architecture as the answer. The choice follows from the constraint, and the constraint is set by the job.

Key studies

YearStudySampleDesignFinding
2016Dai et al.⁠[9]PASCAL VOC 2007 test setdetector benchmarkR-FCN reached 83.6% mAP with a 101-layer ResNet at 170 ms per image.
2016Girshick et al.⁠[3]PASCAL VOC 2012 detection benchmarkdetector benchmarkR-CNN improved mean average precision by more than 50 percent over the previous best, reaching 62.4 percent.
2019Wang et al.⁠[4]14,700 training images, 1,120 test images and 7,868 single-object images across 11 leukocyte categoriescomparative detection experimentThe best model reached a mean average precision of 93.10% and a mean accuracy of 90.09% at 53 ms per image.
2020Liu & Wang⁠[18]15,000 images with 146,912 bounding boxes across 12 tomato disease and pest classescomparative experiment with four detectorsThe improved YOLO V3 reached 92.39% accuracy at 20.39 ms per image, versus 90.67% at 2868.94 ms for Faster R-CNN.
2020Wang et al.⁠[29]rare classes in PASCAL VOC, COCO and LVIS benchmarksfew-shot detection benchmark studyFine-tuning only the last layer beat meta-learning methods by roughly 2 to 20 points.
2020Kong et al.⁠[10]RetinaNet anchor configurations from 1 to 12 anchors per locationablation sweepIncreasing beyond 6 to 9 anchors per location showed no further gains.
2020Xu & Wu⁠[5]RSOD and UCS-AOD remote sensing datasetsXu and Wu compared their model with Faster R-CNN, SSD, YOLO-V3 and YOLO-V3 tiny on the RSOD and UCS-AOD datasets, and their model was more accurate than all four.The improved YOLO-V3 raised mAP from 77.10% to 88.73% on RSOD, and aircraft mAP rose by 12.12%.
2021Xiao & Kang⁠[19]10,000 images of 10 construction machine typesdataset construction and detector comparisonFaster-RCNN-ResNet101 reached 89.2% mAP, and the four algorithms averaged 16.7 frames per second.
2021Cai & Vasconcelos⁠[20]KITTI car detection test setdetector benchmarkCascade R-CNN improved the baseline by 0.87 points for the Moderate regime and 1.9 points for the Hard regime.
2022Zheng et al.⁠[13]YOLACT on MS COCO 2017 validation setloss and suppression comparisonCIoU loss and Cluster-NMS gave +1.7 AP and +6.2 AR100 for object detection at 27.1 FPS on one NVIDIA GTX 1080Ti GPU.
2022Zhang et al.⁠[27]COCO val2017 and test-devdetector benchmarkDINO reached 49.4 AP in 12 epochs and 51.3 AP in 24 epochs with a ResNet-50 backbone.
2023Wang et al.⁠[6]VisDrone2019 aerial images with many small objectsmodel comparison experimentThe improved model's mAP was 7.7% higher than the baseline YOLOv8s.

See also

References

  1. Kaur, J., & Singh, W. (2022). Tools, techniques, datasets and application areas for object detection in an image: a review. Multimedia Tools and Applications, 81(27), 38297-38351. doi:10.1007/s11042-022-13153-y
  2. Diwan, T., Anirudh, G., & Tembhurne, J. V. (2023). Object detection using YOLO: challenges, architectural successors, datasets and applications. Multimedia Tools and Applications, 82(6), 9243-9275. doi:10.1007/s11042-022-13644-y
  3. Girshick, R., Donahue, J., Darrell, T., & Malik, J. (2016). Region-Based Convolutional Networks for Accurate Object Detection and Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 38(1), 142-158. doi:10.1109/tpami.2015.2437384
  4. Wang, Q., Bi, S., Sun, M., Wang, Y., Wang, D., & Yang, S. (2019). Deep learning approach to peripheral leukocyte recognition. PLOS ONE, 14(6), e0218808. doi:10.1371/journal.pone.0218808
  5. Xu, D., & Wu, Y. (2020). Improved YOLO-V3 with DenseNet for Multi-Scale Remote Sensing Target Detection. Sensors, 20(15), 4276. doi:10.3390/s20154276
  6. Wang, G., Chen, Y., An, P., Hong, H., Hu, J., & Huang, T. (2023). UAV-YOLOv8: A Small-Object-Detection Model Based on Improved YOLOv8 for UAV Aerial Photography Scenarios. Sensors, 23(16), 7190. doi:10.3390/s23167190
  7. Zhao, Z. Q., Zheng, P., Xu, S. T., & Wu, X. (2019). Object Detection With Deep Learning: A Review. IEEE Transactions on Neural Networks and Learning Systems, 30(11), 3212-3232. doi:10.1109/tnnls.2018.2876865
  8. Ren, S., He, K., Girshick, R., & Sun, J. (2017). Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(6), 1137-1149. doi:10.1109/tpami.2016.2577031
  9. Dai, J., Li, Y., He, K., & Sun, J. Z. (2016). R-FCN: Object Detection via Region-based Fully Convolutional Networks. arXiv. doi:10.48550/arxiv.1605.06409 Free full text
  10. Kong, T., Sun, F., Liu, H., Jiang, Y., Li, L., & Shi, J. (2020). FoveaBox: Beyound Anchor-Based Object Detection. IEEE Transactions on Image Processing, 29, 7389-7398. doi:10.1109/tip.2020.3002345
  11. Dollar, P., Appel, R., Belongie, S., & Perona, P. (2014). Fast Feature Pyramids for Object Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(8), 1532-1545. doi:10.1109/tpami.2014.2300479
  12. Deng, C., Wang, M., Liu, L., Liu, Y., & Jiang, Y. (2022). Extended Feature Pyramid Network for Small Object Detection. IEEE Transactions on Multimedia, 24, 1968-1979. doi:10.1109/tmm.2021.3074273
  13. Zheng, Z., Wang, P., Ren, D., Liu, W., Ye, R., Hu, Q., & Zuo, W. (2022). Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance Segmentation. IEEE Transactions on Cybernetics, 52(8), 8574-8586. doi:10.1109/tcyb.2021.3095305
  14. Oksuz, K., Cam, B. C., Kalkan, S., & Akbas, E. (2021). Imbalance Problems in Object Detection: A Review. IEEE Transactions on Pattern Analysis and Machine Intelligence, 43(10), 3388-3415. doi:10.1109/tpami.2020.2981890
  15. Flores-Calero, M., Astudillo, C. A., Guevara, D., Maza, J., Lita, B. S., Defaz, B., Ante, J. S., Zabala-Blanco, D., & Armingol Moreno, J. M. (2024). Traffic Sign Detection and Recognition Using YOLO Object Detection Algorithm: A Systematic Review. Mathematics, 12(2), 297. doi:10.3390/math12020297
  16. Arnold, E., Al-Jarrah, O. Y., Dianati, M., Fallah, S., Oxtoby, D., & Mouzakitis, A. (2019). A Survey on 3D Object Detection Methods for Autonomous Driving Applications. IEEE Transactions on Intelligent Transportation Systems, 20(10), 3782-3795. doi:10.1109/tits.2019.2892405
  17. Nagrath, P., Jain, R., Madan, A., Arora, R., Kataria, P., & Hemanth, J. (2021). SSDMNV2: A real time DNN-based face mask detection system using single shot multibox detector and MobileNetV2. Sustainable Cities and Society, 66, 102692. doi:10.1016/j.scs.2020.102692
  18. Liu, J., & Wang, X. (2020). Tomato Diseases and Pests Detection Based on Improved Yolo V3 Convolutional Neural Network. Frontiers in Plant Science, 11. doi:10.3389/fpls.2020.00898
  19. Xiao, B., & Kang, S. C. (2021). Development of an Image Data Set of Construction Machines for Deep Learning Object Detection. Journal of Computing in Civil Engineering, 35(2). doi:10.1061/(asce)cp.1943-5487.0000945
  20. Cai, Z., & Vasconcelos, N. (2021). Cascade R-CNN: High Quality Object Detection and Instance Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 43(5), 1483-1498. doi:10.1109/tpami.2019.2956516
  21. Kuznetsova, A., Rom, H., Alldrin, N., Uijlings, J., Krasin, I., Pont-Tuset, J., Kamali, S., Popov, S., Malloci, M., Kolesnikov, A., Duerig, T., & Ferrari, V. (2018). The Open Images Dataset V4: Unified image classification, object detection, and visual relationship detection at scale. arXiv. doi:10.48550/arxiv.1811.00982 Free full text
  22. Ding, J., Xue, N., Xia, G. S., Bai, X., Yang, W., Yang, M. Y., Belongie, S., Luo, J., Datcu, M., Pelillo, M., & Zhang, L. (2022). Object Detection in Aerial Images: A Large-Scale Benchmark and Challenges. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(11), 7778-7796. doi:10.1109/tpami.2021.3117983
  23. Padilla, R., Passos, W. L., Dias, T. L. B., Netto, S. L., & da Silva, E. A. B. (2021). A Comparative Analysis of Object Detection Metrics with a Companion Open-Source Toolkit. Electronics, 10(3), 279. doi:10.3390/electronics10030279
  24. Kristo, M., Ivasic-Kos, M., & Pobar, M. (2020). Thermal Object Detection in Difficult Weather Conditions Using YOLO. IEEE Access, 8, 125459-125476. doi:10.1109/access.2020.3007481
  25. Levi, D., Gispan, L., Giladi, N., & Fetaya, E. (2022). Evaluating and Calibrating Uncertainty Prediction in Regression Tasks. Sensors, 22(15), 5540. doi:10.3390/s22155540
  26. Beal, J., Kim, E. S., Tzeng, E., Park, D. H., Zhai, A., & Kislyuk, D. (2020). Toward Transformer-Based Object Detection. arXiv. doi:10.48550/arxiv.2012.09958 Free full text
  27. Zhang, H., Li, F., Liu, S., Zhang, L., Su, H., Zhu, J. J., Ni, L. M. s., & Shum, H. (2022). DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection. arXiv. doi:10.48550/arxiv.2203.03605 Free full text
  28. Amjoud, A. B., & Amrouch, M. (2023). Object Detection Using Deep Learning, CNNs and Vision Transformers: A Review. IEEE Access, 11, 35479-35516. doi:10.1109/access.2023.3266093
  29. Wang, X., Huang, T. E., Darrell, T. J., Gonzalez, J. E., & Yu, F. (2020). Frustratingly Simple Few-Shot Object Detection. arXiv. doi:10.48550/arxiv.2003.06957 Free full text
  30. Hussain, M. (2023). YOLO-v1 to YOLO-v8, the Rise of YOLO and Its Complementary Nature toward Digital Manufacturing and Industrial Defect Detection. Machines, 11(7), 677. doi:10.3390/machines11070677
  31. Sapkota, R., Flores-Calero, M., Qureshi, R., Badgujar, C., Nepal, U., Poulose, A., Zeno, P., Vaddevolu, U. B. P., Khan, S., Shoman, M., Yan, H., & Karkee, M. (2025). YOLO advances to its genesis: a decadal and comprehensive review of the You Only Look Once (YOLO) series. Artificial Intelligence Review, 58(9). doi:10.1007/s10462-025-11253-3

Cite this page: Atlas Nova editors. (2026). Object detection. Atlas Nova. https://velocer.io/atlas/object-detection/