npj Digital Medicine (Dec 2022)

Autoencoders for sample size estimation for fully connected neural network classifiers

  • Faris F. Gulamali,
  • Ashwin S. Sawant,
  • Patricia Kovatch,
  • Benjamin Glicksberg,
  • Alexander Charney,
  • Girish N. Nadkarni,
  • Eric Oermann

DOI
https://doi.org/10.1038/s41746-022-00728-0
Journal volume & issue
Vol. 5, no. 1
pp. 1 – 8

Abstract

Read online

Abstract Sample size estimation is a crucial step in experimental design but is understudied in the context of deep learning. Currently, estimating the quantity of labeled data needed to train a classifier to a desired performance, is largely based on prior experience with similar models and problems or on untested heuristics. In many supervised machine learning applications, data labeling can be expensive and time-consuming and would benefit from a more rigorous means of estimating labeling requirements. Here, we study the problem of estimating the minimum sample size of labeled training data necessary for training computer vision models as an exemplar for other deep learning problems. We consider the problem of identifying the minimal number of labeled data points to achieve a generalizable representation of the data, a minimum converging sample (MCS). We use autoencoder loss to estimate the MCS for fully connected neural network classifiers. At sample sizes smaller than the MCS estimate, fully connected networks fail to distinguish classes, and at sample sizes above the MCS estimate, generalizability strongly correlates with the loss function of the autoencoder. We provide an easily accessible, code-free, and dataset-agnostic tool to estimate sample sizes for fully connected networks. Taken together, our findings suggest that MCS and convergence estimation are promising methods to guide sample size estimates for data collection and labeling prior to training deep learning models in computer vision.