# Enhanced-alignment Measure for Binary Foreground Map Evaluation

E-measure scores binary foreground maps by combining pixel matches with image-level statistics

Deng-Ping Fan, Cheng Gong, Yang Cao, Bo Ren, Ming-Ming Cheng, Ali Borji · arXiv · 2018-5-26

- **Problem** Existing binary foreground map measures score each pixel position almost independently, so they miss image-level statistics. Human vision is sensitive to both global information and local details, which these measures do not capture together.
- **Method** E-measure subtracts each map's mean, multiplies the centered maps so that matching signs count as agreement, then averages.
- **Results** In the image retrieval ranking test on PASCAL-S, E-measure scored a θ of 0.247, versus 0.307 for IOU/F1/JI.

## Why pixel-wise scores rank noise too high

Binary foreground maps are compared with human-labelled ground truth in tasks such as image segmentation, retrieval and salient object detection. The usual choices, IOU, F1 and the Jaccard Index, along with the newer Fbw and VQ, can rank a random Gaussian noise map above a map from a state-of-the-art model.

The F-beta measure combines precision and recall, both built from true positive, false positive and false negative counts, and β sets the balance between them. Setting β to 1 gives F1, and the Jaccard Index equals \\( JI = \\frac{TP}{TP+FN+FP} \\). The authors argue that these count-based scores treat each pixel position almost independently and ignore image-level information.

That blind spot accounts for the poor handling of noise, structure errors and shape differences in the paper's examples.

The contour mapping (CM) measure considers both region and contour, but it is sensitive to noise. S-measure, from Fan et al., models structure through region-level similarity on a 2×2 grid and through object-level terms, but it was built for non-binary maps. Its luminance, contrast and uniform-distribution parts assume that values act as probabilities, which binary maps don't satisfy.

## How centered maps become one score

The key idea is to subtract each map's mean from its pixels, then multiply the two centered maps so that agreement in sign counts as a match. Because the mean comes from the whole image, one term sees local matching and image-level statistics at once. The authors expected this to suit binary maps, whose properties are well defined, unlike the continuous assumptions behind S-measure.

For a map I, the bias matrix is \\( \\phi\_I = I - \\mu\_I \\cdot A \\), where \\( \\mu\_I \\) is the global mean and A is a matrix of ones with the same size as I. The authors compute one bias matrix for the ground truth and one for the foreground map, and they treat the subtraction as signal centering. Removing the mean also removes intrinsic offsets and large numerical differences, so they don't dominate the comparison.

The authors also link the bias matrix to the luminance contrast term used in structural similarity work by Wang et al.

The alignment matrix multiplies the two bias matrices element by element and divides by the sum of their element-wise squares: \\\[ \\xi\_{FM} = \\frac{2\\,\\phi\_{GT} \\circ \\phi\_{FM}}{\\phi\_{GT} \\circ \\phi\_{GT} + \\phi\_{FM} \\circ \\phi\_{FM}} \\\] Each element is positive exactly when the two maps agree in sign at that pixel, so the sign shows whether the pixel is aligned.

Because the bias matrices depend on the global means, the alignment values also carry image-level statistics.

The next step passes the alignment values through a convex mapping, the quadratic \\( f(x)=\\frac{1}{4}(1+x)^2 \\). The authors want the mapping to damp decreases in negative regions and strengthen increases in positive ones, since making two maps more similar can push aligned values up and unaligned values down, and a raw sum doesn't reflect that.

They tried higher-order polynomials and trigonometric functions, but the quadratic gave the best results in their experiments.

The enhanced alignment matrix \\( \\varphi\_{FM} = f(\\xi\_{FM}) \\) is averaged over all pixels to give the score: \\\[ Q\_{FM} = \\frac{1}{w \\times h}\\sum\_{x=1}^{w}\\sum\_{y=1}^{h}\\varphi\_{FM}(x,y) \\\] The paper uses ϕ for the bias matrix and φ for the enhanced alignment matrix, so the two symbols should not be confused. Because the whole map is averaged, each foreground map gets a single E-measure score.

## Ranking agreement with applications and people

The authors ran ten salient object detection models, three traditional and seven deep, on PASCAL-S, ECSSD, HKU-IS and SOD. Their non-binary outputs were thresholded with an image-dependent adaptive method before evaluation. For the application test, the authors used context-based image retrieval with LIRE and CEDD, and they compared the output order against the order from ground-truth maps.

The θ measure, which is 1 minus the rank correlation ρ, gives 0 for identical orders and 2 for completely reversed orders.

Against the best prior measure, the E-measure improved application ranking by 19.65% on PASCAL, 9.08% on ECSSD, 18.42% on SOD and 9.64% on HKU. Table 2 shows the same pattern in θ: the E-measure scored 0.247 on PASCAL-S, compared to 0.307 for IOU/F1/JI. On SOD the E-measure scored 0.273, compared to 0.342 for IOU/F1/JI. The authors argue that other applications would behave similarly, but only the retrieval application was run.

For the human test, the authors built FMDatabase with 185 images and three ranked maps per image, giving 555 maps. Ten subjects ranked the maps, and only maps on which all viewers agreed were kept. On this set the E-measure scored a θ of 0.121, compared to 0.124 for IOU/F1/JI and 0.140 for S-measure. The margin over IOU/F1/JI is small, so the human result is much weaker evidence than the application result.

## Noise, generic maps and switched ground truths

The SOTA vs. Random Noise test asks whether the mean score of the SOTA maps stays above the score of Gaussian random noise maps. This comparison assumes the mean is robust to one failing model, which the authors take as given. The E-measure and S-measure both had a mis-ranking rate of 0% on all four datasets, while CM's rate was 100.0% on PASCAL-S, ECSSD and HKU-IS.

The authors attribute the E-measure result to combining local pixel matching with global statistics.

In the SOTA vs. Generic Maps test, a centered circle replaces the noise, and the mis-ranking rate counts how often that generic map scores higher. On ECSSD the E-measure's rate was 0.641%, compared to 1.152% for S-measure. On SOD it was 0.571%, compared to 1.714%, and on HKU-IS it was 0.084%, compared to 0.141%. On PASCAL-S the order flips, with 3.093% for the E-measure compared to 2.353% for S-measure.

The authors attribute the PASCAL-S exception to that dataset's richer structural objects, which favors S-measure.

The Ground Truth Switch test checks whether a good map, one with an F1 of at least 0.8, scores lower when a randomly switched ground truth is used. Lower values are better here, so the E-measure's average of 0.0523% is the highest of the listed measures. It compares with 0.0014% for S-measure and 0.00515% for IOU/JI/F1. The authors describe every measure as performing well and call the E-measure's gap 0.05%.

## Limitations

S-measure is slightly better on PASCAL-S, which the authors tie to that dataset's richer structural content. The application test covers only the context-based image retrieval application, and the authors assume other applications give similar results. The new dataset holds 740 maps, made up of 185 ground-truth maps and 555 human-ranked maps.

The mapping function was selected among a few forms, and the quadratic was best only in the authors' experiments. The mis-ranking tests depend on the mean score of the SOTA models being robust to a single poor model, which the authors assume. The ground truth switch test is where the E-measure's average is highest among the listed measures.

## Paper info

- **Authors**: Deng-Ping Fan, Cheng Gong, Yang Cao, Bo Ren, Ming-Ming Cheng, Ali Borji
- **Venue**: arXiv · Preprint
- **First published**: 2018-5-26
- **Added**: 2026-11-12
- **Updated**: 2018-7-24
- **Version**: v2
- **arXiv**: 1805.10421
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1805.10421v2) · [PDF ↗](https://arxiv.org/pdf/1805.10421v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Deng-Ping Fan, Cheng Gong, Yang Cao, Bo Ren, Ming-Ming Cheng, Ali Borji (2018). Enhanced-alignment Measure for Binary Foreground Map Evaluation. arXiv:1805.10421v2. https://arxiv.org/abs/1805.10421v2

**BibTeX**

```
@misc{fan2018enhanced,
  title = {{Enhanced-alignment Measure for Binary Foreground Map Evaluation}},
  author = {Deng-Ping Fan and Cheng Gong and Yang Cao and Bo Ren and Ming-Ming Cheng and Ali Borji},
  year = {2018},
  eprint = {1805.10421},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.10421v2}
}
```

## Related papers

- [Structure-measure: A New Way to Evaluate Foreground Maps](https://refivu.com/en/papers/66f23442-e0d8-4496-ab4e-14cc3ce84c90-structure-measure-a-new-way-to-evaluate-foreground.md)
- [Rethinking RGB-D Salient Object Detection: Models, Data Sets, and Large-Scale Benchmarks](https://refivu.com/en/papers/5abc609e-361c-4e17-87a0-9ee4d3898f77-rethinking-rgb-d-salient-object-detection-models-data.md)

## Other paper commentary

- [MS-Celeb-1M: A Dataset and Benchmark for Large-Scale Face Recognition](https://refivu.com/en/papers/29204d8b-e10a-438d-99d3-3f2ae9ee3cd4-ms-celeb-1m-a-dataset-and-benchmark-for.md)
- [MOT16: A Benchmark for Multi-Object Tracking](https://refivu.com/en/papers/b140c8bc-846b-4f50-973f-76ab17fb435b-mot16-a-benchmark-for-multi-object-tracking.md)
- [EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classification](https://refivu.com/en/papers/6d2c7153-052d-419e-be70-b7562167c83a-eurosat-a-novel-dataset-and-deep-learning-benchmark.md)
- [The Arcade Learning Environment: An Evaluation Platform for General Agents](https://refivu.com/en/papers/2c89eed5-9dfb-4243-8466-0655582e3266-the-arcade-learning-environment-an-evaluation-platform-for.md)
- [The Ethics of AI Ethics -- An Evaluation of Guidelines](https://refivu.com/en/papers/36e5de78-c499-4b96-ba0a-9d2daff8bde8-the-ethics-of-ai-ethics-an-evaluation-of.md)
- [AID: A Benchmark Dataset for Performance Evaluation of Aerial Scene Classification](https://refivu.com/en/papers/7ff42b05-661d-4b69-9f82-81042fe1d6b3-aid-a-benchmark-dataset-for-performance-evaluation-of.md)
- [A Survey on Multimodal Large Language Models](https://refivu.com/en/papers/3b7ae094-f8ab-4e29-a2fd-d41b1efe8cc0-a-survey-on-multimodal-large-language-models.md)
- [ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware](https://refivu.com/en/papers/40299bf6-79d4-4e50-829c-39acb400238f-proxylessnas-direct-neural-architecture-search-on-target.md)
- [How to Fine-Tune BERT for Text Classification?](https://refivu.com/en/papers/b42bc4b9-8309-43db-89e9-41cd1d0ec800-how-to-fine-tune-bert-for-text-classification.md)
- [Beyond Correlation Filters: Learning Continuous Convolution Operators for Visual Tracking](https://refivu.com/en/papers/cc3e5d8d-4cc2-494c-bc24-c9b0fd010736-beyond-correlation-filters-learning-continuous-convolution.md)
- [Representation Engineering: A Top-Down Approach to AI Transparency](https://refivu.com/en/papers/f6b6fa1e-01cf-4bad-a9dc-8b83f1107927-representation-engineering-a-top-down-approach-to-ai.md)
- [ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Models](https://refivu.com/en/papers/5b5ce3e2-3dd3-4814-b5fc-ab7233717cda-zoo-zeroth-order-optimization-based-black-box-attacks.md)

## Terms in this paper

- [ECSSD](https://refivu.com/en/terms/e4dd55b061d8-ecssd)
- [HKU-IS](https://refivu.com/en/terms/9205b4e88ccc-hku-is)
- [PASCAL-S](https://refivu.com/en/terms/3972e9e0c1fc-pascal-s)
- [SOD](https://refivu.com/en/terms/7247fcb0a05d-sod)
- [S-measure](https://refivu.com/en/terms/83c6c4b82a55-s-measure)
- [E-measure](https://refivu.com/en/terms/4fddc46516a7-e-measure)
- [Hadamard product](https://refivu.com/en/terms/f2bf6fe21cdb-hadamard-product)
- [mapping function](https://refivu.com/en/terms/75f2f65a2859-mapping-function)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/668b22a3-321a-4e3f-9465-2c7d6fb8ea23-enhanced-alignment-measure-for-binary-foreground-map)
