Intersection over Union
Intersection over Union is the ratio of the intersection area or volume of two regions to the area or volume of their union.
Math and Architectures of Deep Learning
A bounding-box overlap metric used to match proposed regions to ground-truth boxes.
- How it is used
- Matches anchors to ground-truth boxes for RPN labels and filters duplicate proposals during non-maximal suppression.
- How deep it goes
- Defines overlap over union, explains its geometric interpretation, and gives threshold-based anchor-labeling and PyTorch computation procedures.
- Examples
- Uses overlapping bounding-box geometry, GT-to-anchor score matrices, and torchvision.ops.box_iou and nms calls.
- What you can do after
- Apply it via torchvision.ops to assign anchor labels and suppress overlapping region proposals.
Read how Math and Architectures of Deep Learning explains Intersection over Union →
Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI
A measure of overlap between a predicted region and a ground-truth region, calculated as their intersection area divided by their union area.
- How it is used
- Measures bounding-box localization accuracy and agreement, and supports selection of detections for human review.
- How deep it goes
- Defines area overlap and works through annotation, agreement, sampling, and chance-adjustment uses without deriving the metric.
- Examples
- Illustrates overlapping bounding boxes, multiple annotator boxes, and a chance adjustment for an object covering 10% of an image.
- What you can do after
- Evaluate bounding-box localization and annotator agreement, and identify uncertain detections for review.
Also covered in
- Deep Learning with R, Third Edition
- Fight Fraud with Machine LearningIn early access (MEAP)
- Inside Deep Learning: Math, Algorithms, Models
What to know first
- bounding boxA bounding box is a coordinate-defined rectangular region in two or more dimensions that encloses or localizes an object, area, or set of points.
- convolutional neural networkA convolutional neural network is a neural-network architecture that processes structured inputs with convolutional operations, typically using learned local filters to capture patterns.
- feature mapA neural-network feature map is a spatially organized array of activation values representing learned features at different locations or channels.
- Region Proposal NetworkA Region Proposal Network is a neural-network module that generates candidate object regions from image features for a two-stage detector.
Related concepts
- active learninguses · Active learning is a machine-learning approach in which a learner selects informative data examples for labeling or feedback to improve a model.
- f-scorecontrasts with · An F-score is a classification metric that combines precision and recall through a weighted harmonic mean; F1 weights them equally.
- bounding boxmeasures · A bounding box is a coordinate-defined rectangular region in two or more dimensions that encloses or localizes an object, area, or set of points.
- segmentation maskmeasures · A segmentation mask is an image-shaped array that assigns each pixel or spatial element to a class, object, region, or corresponding segmentation value.
Questions about Intersection over Union
What is Intersection over Union?
Intersection over Union is the ratio of the intersection area or volume of two regions to the area or volume of their union.
Which Manning books explain Intersection over Union?
Math and Architectures of Deep Learning and Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI.
What should I know before learning Intersection over Union?
Manning books that teach Intersection over Union usually introduce bounding box, convolutional neural network, feature map and Region Proposal Network first.
What is the difference between Intersection over Union and f-score?
Intersection over Union is the ratio of the intersection area or volume of two regions to the area or volume of their union. An F-score is a classification metric that combines precision and recall through a weighted harmonic mean; F1 weights them equally.
What is Intersection over Union also called?
Intersection over Union is also called IoU.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

