---
title: "Tuning Image Classifiers using Human-In-The-Loop"
description: "AutoThreshold is an Expectation-Maximization procedure that re-tunes an image classifier's class-confidence threshold when product photos drift out of distribution and no labelled validation set exists."
url: "https://swe.quest/articles/tuning-image-classifiers-using-human-in-the-loop-f1e427f4f784a749"
canonical: "https://engineering.zalando.com/posts/2021/10/tuning-image-classifiers-using-human-in-the-loop.html"
source: "Zalando Engineering"
published: "2021-10-12"
difficulty: "hard"
kind: "Research"
reading_minutes: 18
tags: ["computer-vision","machine-learning","evals","algorithms","ecommerce"]
---

# Tuning Image Classifiers using Human-In-The-Loop

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2021-10-12, 18 min read, Research. Original: [https://engineering.zalando.com/posts/2021/10/tuning-image-classifiers-using-human-in-the-loop.html](https://engineering.zalando.com/posts/2021/10/tuning-image-classifiers-using-human-in-the-loop.html)

## Summary

AutoThreshold is an Expectation-Maximization procedure that re-tunes an image classifier's class-confidence threshold when product photos drift out of distribution and no labelled validation set exists. Predictions are sorted by confidence. Each iteration, human annotators label a window of m images centred on the current threshold estimate, starting from 1. The threshold is then re-estimated by maximizing a metric such as f-beta on those annotations, repeating until it converges. For a leopard-print classifier, the estimated threshold lands just before negatives start appearing among positives, as confirmed by cumulative-annotation slope plots. Only a small number of labels is needed, and those labels also seed a new training set.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

- binary classifiers and sigmoid outputs
- precision, recall and f-beta
- Expectation-Maximization algorithm ([easy posts on Algorithms](https://swe.quest/tags/algorithms.md?difficulty=easy))
- distribution drift

## Keywords

AutoThreshold, Expectation-Maximization, human-in-the-loop, Zalando, f-beta measure

## Related posts

- [Machine Learning in Content Moderation at Etsy](https://swe.quest/articles/machine-learning-in-content-moderation-at-etsy-3cc89a775afea7a5.md): Etsy Code as Craft · 2024-08-06 · Medium · 5 min read · Machine learning, Threat detection, Model training, E-commerce
  Etsy's Trust & Safety team detects policy-violating listings with a supervised multimodal classifier that combines an ALBERT text encoder and an EfficientNet image encoder.
- [How to train your model dynamically using adversarial data](https://swe.quest/articles/how-to-train-your-model-dynamically-using-adversarial-data-b47b08b7da53daa6.md): Hugging Face · 2022-07-16 · Medium · 5 min read · Model training, Computer vision, Evaluation, Machine learning
  Dynamic adversarial data collection (DADC) has humans craft inputs that fool a trained model, then retrains the model on those examples over repeated rounds, countering the saturation and blind spots of static benchmarks.
- [Opinion Classification with Kili and HuggingFace AutoTrain](https://swe.quest/articles/opinion-classification-with-kili-and-huggingface-autotrain-97ebbffd8c146463.md): Hugging Face · 2022-04-28 · Medium · 18 min read · Machine learning, Model training, Python
  Kili's annotation platform and Hugging Face AutoTrain combine into an active-learning pipeline that classifies about 40,000 Google Play reviews of the Medium app into Subscription, Content, Interface and User Experience, then applies sentiment analysis to the classified reviews.
- [Agile Deliberation: How AI helps humans define the gray areas](https://swe.quest/articles/agile-deliberation-how-ai-helps-humans-define-the-gray-areas-e1d725b81debc18f.md): Google Research · 2026-11-04 · Easy · 8 min read · Computer vision, LLMs, Evaluation, Machine learning
  Agile Deliberation is a human-in-the-loop framework for building image classifiers for subjective categories like "healthy food" or pay-to-play clickbait.
- [Introducing GIST: The next stage in smart sampling](https://swe.quest/articles/introducing-gist-the-next-stage-in-smart-sampling-9551192912caeefa.md): Google Research · 2026-01-23 · Hard · 8 min read · Algorithms, Model training, Machine learning
  GIST (Greedy Independent Set Thresholding) selects training-data subsets that balance max-min diversity in embedding space against monotone submodular utility, with a provable guarantee of at least half the optimal value; reaching above 0.56 of optimal is proven NP-hard.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
