A non-transitory computer-readable medium storing instructions that, when executed by a processor, perform a method of using a machine learning model to verify slide and block quality for testing, the method comprising:
- applying a machine learning model to determine an amount or a percentage of tissue with an attribute from a digital image;
- and
- outputting a quality score corresponding to the determined amount or percentage of tissue with the attribute being below a predetermined value, wherein the quality score is equal to zero when the determined amount or percentage of tissue with the attribute is greater than the predetermined value and the quality score is a linear combination of a value of the attribute and one or more additional attribute values when the determined amount or percentage of tissue with the attribute is less than or equal to the predetermined value.