Learning image quality assessment by reinforcing task amenable data selection

Shaheer U. Saeed, Yunguan Fu, Zachary M. C. Baum, Qianye Yang, Mirabela Rusu, Richard E. Fan, Geoffrey A. Sonn, Dean C. Barratt, Yipeng HuarXiv 2021

TL;DR

Instead of relying on subjective human labels to judge if a medical image is "good enough" for AI training, this paper introduces a reinforcement learning framework that evaluates image quality based on task amenability. By co-training a quality-control network alongside a task predictor, the system automatically filters out detrimental images, significantly boosting classification and segmentation performance on clinical ultrasound data.

What Problem Does This Paper Address?

In medical imaging, poor image quality (due to artifacts, shadows, or poor field-of-view) can severely degrade the performance of downstream machine learning models. Traditional Image Quality Assessment (IQA) methods typically rely on general-purpose metrics or subjective human grading.

However, the authors argue that general-purpose IQA is fundamentally flawed for deep learning pipelines: an image with visible noise might still contain perfectly clear boundaries for a segmentation network, while a visually "clean" image might lack the specific features needed for accurate classification. Furthermore, collecting human quality labels is expensive, highly variable, and doesn't always correlate with actual model performance.

This paper addresses this gap by defining image quality through the lens of task amenability—how useful an image actually is for a specific target task—and proposes a way to learn this metric automatically without requiring human-labeled quality datasets.

Methods

The authors propose a meta-learning approach that simultaneously trains two neural networks: a Task Predictor and a Controller (the IQA agent).

Fig. 1: Illustration of the training for controller and task predictor networks.

The framework operates as a Reinforcement Learning (RL) loop using the Deep Deterministic Policy Gradient (DDPG) algorithm:

  1. Action: For a given mini-batch of training images, the Controller outputs a quality score between 0 and 1, which dictates a binary decision: whether to keep or reject the image.
  2. Task Optimization: The Task Predictor is updated using only the controller-selected images.
  3. Reward: The Controller receives a reward based on how well the Task Predictor performs on a validation set.

To eliminate the need for human quality labels, the authors designed three different reward formulations. Crucially, two of these strategies (weighted and selective validation) calculate rewards directly from unlabelled validation sets, allowing the controller to learn what a "good" image looks like entirely on its own.

Datasets

The method was validated on a clinical dataset consisting of:

  • 6,712 transrectal ultrasound images sampled from 259 prostate cancer patients (acquired during SmartTarget clinical trials).
  • Task Labels: Ground-truth binary classification labels (presence vs. absence of the prostate gland) and manual pixel-wise segmentation masks.
  • IQA Labels (for evaluation only): Subjective binary task-amenability labels provided by three trained biomedical researchers to serve as a human baseline.

Key Insights and Ideas

  • AI and Humans Disagree on Quality: When comparing the Controller's selections to human subjective labels, the agreement was surprisingly low (Cohen's kappa values ranged from 0.30 to 0.75). This confirms that neural networks perceive "task-amenable" quality differently than human experts.
  • Self-Supervised Quality Control is Viable: The weighted reward strategy performed on par with the strategy using a human-curated "clean" validation set. This means deep models can successfully learn to filter out bad data without any human intervention or prior knowledge of what constitutes a "bad" image.
  • The Rejection Sweet Spot: Discarding data is a double-edged sword. While removing low-amenability images improves model accuracy, discarding too many samples eventually starves the network of data, leading to a drop-off in performance.
Fig. 2: Examples of ultrasound images in this study. Top-left (green): task- amenable images that contain prostate gland (shaded in red); Bottom-left (red): images with poor task amenability that are difficult to recognise prostate glands (for classification) and their boundaries (for segmentation); Top-right (yellow), images that are likely to contain prostate glands (blue arrows) but identifying the complete gland boundaries for segmentation is challenging; and Bottom-right (blue): images that contain visible noise and artefacts (orange arrows), but may be amenable to both classification and segmentation tasks.

Key Results

The RL-driven data selection yielded substantial performance gains over standard, non-selective baselines across both target tasks:

  • Prostate Presence Classification: The baseline network achieved an accuracy of 0.897 ± 0.010. By using the RL controller to discard the worst 5% of images, accuracy rose to 0.935 ± 0.014 (fixed validation) and 0.926 ± 0.012 (weighted validation, no human labels).
  • Prostate Segmentation: The baseline U-Net achieved a mean Dice score of 0.815 ± 0.018. Discarding the worst 15% of images boosted the Dice score significantly to 0.893 ± 0.018 using the weighted validation strategy.

Limitations and Future Work

A notable limitation observed in the experiments is the "peak-and-drop" phenomenon: performance degrades if the rejection ratio is set too high. The authors suggest this could be caused by RL overfitting, prediction variance, or inherent dataset limitations (e.g., if the overall dataset is already high quality, discarding data yields diminishing returns).

Future work includes exploring alternative RL optimization algorithms, evaluating the framework on different imaging modalities (like MRI or CT), and adapting the controller to provide real-time quality feedback to clinicians during live ultrasound scanning to help them re-acquire poor frames immediately.

Summary updated

BibTeX
@misc{saeed2021learning,
  author = {Shaheer U. Saeed and Yunguan Fu and Zachary M. C. Baum and Qianye Yang and Mirabela Rusu and Richard E. Fan and Geoffrey A. Sonn and Dean C. Barratt and Yipeng Hu},
  title = {{Learning image quality assessment by reinforcing task amenable data selection}},
  year = {2021},
  eprint = {2102.07615},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.07615},
}
Figure