TY - JOUR
T1 - Hidden variables in deep learning digital pathology and their potential to cause batch effects
T2 - Prediction model study
AU - Schmitt, Max
AU - Maron, Roman Christoph
AU - Hekler, Achim
AU - Stenzinger, Albrecht
AU - Hauschild, Axel
AU - Weichenthal, Michael
AU - Tiemann, Markus
AU - Krahl, Dieter
AU - Kutzner, Heinz
AU - Utikal, Jochen Sven
AU - Haferkamp, Sebastian
AU - Kather, Jakob Nikolas
AU - Klauschen, Frederick
AU - Krieghoff-Henning, Eva
AU - Fröhling, Stefan
AU - von Kalle, Christof
AU - Brinker, Titus Josef
N1 - Publisher Copyright:
© Max Schmitt, Roman Christoph Maron, Achim Hekler, Albrecht Stenzinger, Axel Hauschild, Michael Weichenthal, Markus Tiemann, Dieter Krahl, Heinz Kutzner, Jochen Sven Utikal, Sebastian Haferkamp, Jakob Nikolas Kather, Frederick Klauschen, Eva Krieghoff-Henning, Stefan Fröhling, Christof von Kalle, Titus Josef Brinker.
PY - 2021/2
Y1 - 2021/2
N2 - Background: An increasing number of studies within digital pathology show the potential of artificial intelligence (AI) to diagnose cancer using histological whole slide images, which requires large and diverse data sets. While diversification may result in more generalizable AI-based systems, it can also introduce hidden variables. If neural networks are able to distinguish/learn hidden variables, these variables can introduce batch effects that compromise the accuracy of classification systems. Objective: The objective of the study was to analyze the learnability of an exemplary selection of hidden variables (patient age, slide preparation date, slide origin, and scanner type) that are commonly found in whole slide image data sets in digital pathology and could create batch effects. Methods: We trained four separate convolutional neural networks (CNNs) to learn four variables using a data set of digitized whole slide melanoma images from five different institutes. For robustness, each CNN training and evaluation run was repeated multiple times, and a variable was only considered learnable if the lower bound of the 95% confidence interval of its mean balanced accuracy was above 50.0%. Results: A mean balanced accuracy above 50.0% was achieved for all four tasks, even when considering the lower bound of the 95% confidence interval. Performance between tasks showed wide variation, ranging from 56.1% (slide preparation date) to 100% (slide origin). Conclusions: Because all of the analyzed hidden variables are learnable, they have the potential to create batch effects in dermatopathology data sets, which negatively affect AI-based classification systems. Practitioners should be aware of these and similar pitfalls when developing and evaluating such systems and address these and potentially other batch effect variables in their data sets through sufficient data set stratification.
AB - Background: An increasing number of studies within digital pathology show the potential of artificial intelligence (AI) to diagnose cancer using histological whole slide images, which requires large and diverse data sets. While diversification may result in more generalizable AI-based systems, it can also introduce hidden variables. If neural networks are able to distinguish/learn hidden variables, these variables can introduce batch effects that compromise the accuracy of classification systems. Objective: The objective of the study was to analyze the learnability of an exemplary selection of hidden variables (patient age, slide preparation date, slide origin, and scanner type) that are commonly found in whole slide image data sets in digital pathology and could create batch effects. Methods: We trained four separate convolutional neural networks (CNNs) to learn four variables using a data set of digitized whole slide melanoma images from five different institutes. For robustness, each CNN training and evaluation run was repeated multiple times, and a variable was only considered learnable if the lower bound of the 95% confidence interval of its mean balanced accuracy was above 50.0%. Results: A mean balanced accuracy above 50.0% was achieved for all four tasks, even when considering the lower bound of the 95% confidence interval. Performance between tasks showed wide variation, ranging from 56.1% (slide preparation date) to 100% (slide origin). Conclusions: Because all of the analyzed hidden variables are learnable, they have the potential to create batch effects in dermatopathology data sets, which negatively affect AI-based classification systems. Practitioners should be aware of these and similar pitfalls when developing and evaluating such systems and address these and potentially other batch effect variables in their data sets through sufficient data set stratification.
KW - Artifacts
KW - Artificial intelligence
KW - Clinical pathology
KW - Convolutional neural networks
KW - Deep learning
KW - Digital pathology
KW - Machine learning
KW - Neural networks
KW - Pathology
KW - Pitfalls
UR - http://www.scopus.com/inward/record.url?scp=85099258707&partnerID=8YFLogxK
U2 - 10.2196/23436
DO - 10.2196/23436
M3 - Article
C2 - 33528370
AN - SCOPUS:85099258707
SN - 1439-4456
VL - 23
JO - Journal of Medical Internet Research
JF - Journal of Medical Internet Research
IS - 2
M1 - e23436
ER -