Automated assay evaluation and normalization for image processing

The HSD color model-based stain titer normalization addresses variations in hematoxylin concentration, enhancing the accuracy and consistency of digital pathology image analysis by aligning and scaling color-density distributions, thus preserving the integrity of biological indicators.

JP7559134B2Active Publication Date: 2024-10-01VENTANA MEDICAL SYSTEMS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023073117
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2017-08-04
Filing Date
2023-04-27
Publication Date
2024-10-01
Estimated Expiration
2038-08-02

AI Technical Summary

Technical Problem

Digital pathology imaging algorithms struggle with variations in hematoxylin stain concentration, leading to errors in image processing due to fluctuations in stain titer, which can distort biological indicators like PD-1 expression levels in cancer immunotherapy and complicate the analysis of stains colocalized with hematoxylin.

Method used

A method and system for normalizing stain titer by aligning and scaling color-density distribution coordinates using a Hue Saturation Density (HSD) color model, employing predetermined parameter values to adjust images to a consistent stain density range, particularly for hematoxylin stains, ensuring accurate downstream processing and analysis.

Benefits of technology

The method enhances the robustness of image processing by maintaining the integrity of biological indicators, improving the consistency of stain analysis across different slides, and ensuring accurate detection of cellular features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007559134000015
    Figure 0007559134000015
  • Figure 0007559134000016
    Figure 0007559134000016
  • Figure 0007559134000017
    Figure 0007559134000017
Patent Text Reader

Abstract

To provide a method for normalizing a titer level of a stain in an image of a biological sample.SOLUTION: A method of normalizing titer of a first stain in a query image for titer of the first stain in a template image comprises the steps of: deriving color / density distribution coordinates in the query image in a color model including a density component; providing conversion color distribution coordinates by aligning the derived color distribution coordinates in the query image with the color distribution coordinates of the template image; providing conversion density distribution coordinates by scaling the derived density distribution coordinates in the query image with the density distribution coordinates in the template image; and reconstructing an RGB image by performing inverse conversion on the query image in the color model including the density component by using the weighted conversion color / density distribution coordinates.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001]

[0004] The present disclosure relates to an automated system and method for assessing the titer of a stain in an image of a biological sample and normalizing the titer of the stain to the titer of the same stain in a template image. [Background technology]

[0002] Digital pathology involves the scanning of whole pathology tissue or pathology glass slides into digital images that can be interpreted on a computer screen. These images are then processed by imaging algorithms or interpreted by a pathologist. For examination of tissue sections (which are essentially transparent), tissue sections are prepared by using colored histochemical stains that selectively bind to cellular components. The use of color enhancement or stained cellular structures by clinicians or computer-aided diagnosis (CAD) algorithms identifies morphological markers of disease and directs treatment accordingly. Observing assays enables a variety of processes such as diagnosing disease, evaluating response to treatment, and developing new medicines to combat disease.

[0003]

[0002] Immunohistochemical (IHC) slide staining allows the identification of proteins in cells in tissue sections and is therefore widely used to study various types of cells, including cancer cells and immune cells, in biological tissues. Thus, IHC staining can be used in research to understand the distribution and localization of differentially expressed biomarkers of immune cells (such as T cells or B cells) in cancer tissues and can be used in immune response studies. For example, tumors often contain infiltrates of immune cells, which may suppress the appearance of the tumor or may contribute to the growth of the tumor.

[0004]

[0003] In-situ hybridization (ISH) can be used to determine the presence or absence of genetic abnormalities or conditions, such as the amplification of oncogenes, in cells that appear morphologically malignant when viewed under a microscope. In-situ hybridization (ISH) employs labeled DNA or RNA probe molecules that are antisense to a target gene sequence or transcript to detect or identify a target gene of interest in a nucleic acid in a cell or tissue sample. ISH is performed by exposing a cell or tissue sample fixed on a glass slide to a labeled nucleic acid probe that can specifically hybridize to a given target gene in the cell or tissue sample. Multiple target genes can be analyzed simultaneously by exposing the cell or tissue sample to multiple nucleic acid probes labeled with multiple different nucleic acid tags. By utilizing labels with different emission wavelengths, simultaneous multicolor analysis can be performed in one step on a single target cell or tissue sample. For example, the INFORM HER2 Dual ISH DNA Probe Cocktail Assay by Ventana Medical Systems, Inc. is intended to determine the status of the HER2 gene by enumerating the ratio of the HER2 gene to chromosome 17. The HER2 and chromosome 17 probes are detected by using dual-color ISH in formalin-fixed, paraffin-embedded human breast cancer tissue specimens. Summary of the Invention [Problem to be solved by the invention]

[0005]

[0005] While most digital pathology imaging algorithms are designed to work with a constant staining concentration, the actual slides that are processed may have a wide variation in hematoxylin concentration or titer levels. Without wishing to be bound by any particular theory, it is believed that such variations in stain color and intensity can result in the appearance of hematoxylin stains in a slide. It is believed that image processing algorithms that are not designed to account for such rapid variations in stain titer may encounter errors, as the image may become too dark or too light. In fact, processing algorithms are typically adjusted to work within a given stain concentration, and may fail if the concentration falls outside this range. By using the disclosed image normalization systems and methods, the concentration (or titer) in an image may be adjusted to be within a given stain concentration range of any image processing algorithm. In this way, the disclosed systems and methods for automated stain normalization allow for suppression of stain color and intensity variations. The automated systems and methods disclosed herein also allow for extensive downstream processing of acquired images, for example, for scoring biological samples or quantifying features in tissue images.

[0006]

[0006] Although it is possible to normalize all stains in an acquired image, it is often undesirable to do so, since the intensity of a particular stain may be related to a specific biological indicator. For example, as a target for cancer immunotherapy, programmed death 1 (PD-1) is expressed on T cells and functions as an inhibitory receptor that downregulates the immune system. The expression level of PD-1 can be characterized by DAB stain intensity. Therefore, normalization of DAB is undesirable, since it may distort the PD-1 expression level information in tissue samples. There may also be situations where the stain is always colocalized with a counterstain that marks the nucleus (e.g., estrogen receptor (ER)). In such cases, it is not possible to extract a pure DAB color distribution and use it for normalization, since DAB may appear in a mixture with the counterstain hematoxylin (HTX). Applicants have found that hematoxylin, which marks the nuclei of cells, allows for robust normalization across different slides. Applicants believe that the systems and methods described herein allow for normalization of pure hematoxylin stains as well as hematoxylin stains co-localized with other stains, which has not previously been addressed. [Means for solving the problem]

[0007]

[0007] One aspect of the present disclosure is a method for normalizing a titer of a first stain in a query image to a titer of the first stain in a template image, where the query image is an image of a biological sample stained with at least a first stain, the method comprising the steps of: (i) deriving color-density distribution coordinates in the query image in a color model including a concentration component; (ii) aligning the derived color distribution coordinates in the query image with the color distribution coordinates of the template image to provide transformed color distribution coordinates; (iii) scaling the derived concentration distribution coordinates in the query image with the concentration distribution coordinates of the template image to provide transformed concentration distribution coordinates; and (iv) reconstructing an RGB image by inverse transforming the query image in the color model including a concentration component using the weighted transformed color-density distribution coordinates, where the alignment and scaling utilize predetermined parameter values ​​specific to the estimated titer level of the query image. Without wishing to be bound by any particular theory, it is believed that the use of predefined parameter values ​​or look-up tables of alignment and scaling parameters allows for robust identification of normalization parameters, such as in cases where there are insufficient pixels of a pure stain to derive reliable stain color or intensity statistics. In some embodiments, the color model that includes a density component is an HSD color model.

[0008] In some embodiments, the predetermined parameter values ​​are derived mean, angle, and scaling parameters determined at a known first stain titer level. In some embodiments, the predetermined parameter values ​​are stored in a database that includes parameter values ​​of at least the first stain at multiple titer levels, and the estimated first stain titer level in the query image is matched to one of the multiple titer levels such that optimal parameter values ​​are selected to perform the registration and scaling. In embodiments, the first stain is hematoxylin and the predetermined parameter value corresponds to an estimated hematoxylin titer level in the query image. In some embodiments, the estimated titer level is determined prior to normalization. In some embodiments, the estimated titer level is determined during normalization (e.g., after transforming the RGB query image to a color model that includes a density component (e.g., an HSD color model) and prior to derivation of per-pixel transformed coordinates).

[0009] In some embodiments, the estimated titer level of the query image is determined by computing a weighted average (or modal) titer score for the query image based on the derived first stain color and intensity features. In some embodiments, the weighted average score is computed by (a) deriving a plurality of first stain image features from each of a set of patches in the query image, and (b) classifying the plurality of image features derived from each of the image patches using a trained titer discrimination classifier. In some embodiments, the titer discrimination classifier is a multi-class classifier trained on the first stain color and intensity features derived from the standardized samples using the first stain titer level as a class indicator. In some embodiments, the set of patches is derived by extracting a predetermined number of FOVs (e.g., 50 FOVs) from the query image, (b) computing a set of patches for each extracted FOV, and (c) retaining patches from the set of patches for each extracted FOV that meet a threshold patch criterion. In some embodiments, the first stain is hematoxylin and the criteria include: (i) more than 70% of the pixels in the patch must have a hematoxylin signal (obtained by color deconvolution) higher than 0; (b) more than 50% of the pixels must have some staining; and (c) more than ⅓ of the pixels must be located in “cell-like” structures as determined by difference Gaussian filtering.

[0010]

[0010] In some embodiments, the weighted transformed color-intensity distribution coordinates are derived by (i) computing a probability that a pixel in the patch is a first stain pixel (i.e., the pixel has a first stain), and (ii) weighting the transformed color-intensity distribution coordinates with the computed probability. In some embodiments, the alignment includes shifting and rotating the derived color distribution coordinates in the query image to have the same mean and orientation as the template color distribution coordinates. In some embodiments, the scaling includes transforming the derived intensity distribution coordinates to have the same weighted mean and weighted standard deviation as the intensity of the first stain pixel in the template image. In some embodiments, the color-intensity distribution coordinates are derived for each pixel of a set of patches in the query image.

[0011] In some embodiments, the method further comprises separating the RGB images prior to normalization and / or titer assessment. In some embodiments, the method further comprises extracting nuclei, membranes, morphology, and / or other cellular features from cells stained with at least the first stain. In some embodiments, the extracted nuclei, membranes, morphology, and / or other cellular features are used for cell classification, such as classifying cells as tumor cells. In some embodiments, in the case of color registration during RGB reconstruction, instead of employing the original HTX color reference vectors used for color deconvolution, a normalized average RGB OD vector from pure HTX pixels in the template image is used for reconstruction.

[0012] Another aspect of the present disclosure is a method for examining titers of a first stain in whole slide images of a biological sample stained with one or more stains and normalizing the whole slide images to the titer of the first stain, the method comprising the steps of: (i) calculating a weighted average titer score for the whole slide images based on the derived first stain image features; i) if the calculated weighted average score is not within a predetermined titer range, normalizing the whole slide image to the template image, where the whole slide image is normalized by: (a) matching the color-density distribution of the whole slide image with the color-density distribution of the template image, the color-density distributions of both the whole slide image and the template image being derived in a color model including a density component; and (b) reconstructing an RGB image by inverse transforming the whole slide image in the color model including a density component using the weighted transformation coordinates. In some embodiments, the predetermined titer range is from about 3 to about 6. In some embodiments, the color model including a density component is an HSD color model.

[0013] In some embodiments, the weighted average score is computed by: (a) deriving a plurality of first stain image features from each of a set of image patches in the full slide image; and (b) classifying the plurality of image features derived from each of the image patches by using a trained feature identification classifier. In some embodiments, the set of image patches is derived by: extracting a predetermined number of FOVs from the full slide image; (b) computing a set of patches for each extracted FOV; and (c) retaining patches from the set of patches for each extracted FOV that meet a threshold patch criterion. In some embodiments, the first stain image features are stain color features and stain intensity features.

[0014] In some embodiments, the color-intensity distribution of the entire slide image is calculated by (i) performing a transformation (e.g., an HSD transformation) within the image patches of the entire slide image to obtain the color-intensity distribution coordinates (c x ,c y ,D), and (ii) deriving the resulting color distribution coordinates (c x ,c y ) to obtain the aligned color coordinates (cx ',c y The weighted transformed coordinates are aligned with the color-density distributions of the template image by (i) calculating a probability that a pixel in the image patch is a first stain pixel, (ii) calculating the probability that the pixel in the image patch is a first stain pixel, and (iii) scaling the density distribution (D) obtained from the whole slide image to have the same weighted mean and weighted standard deviation as the template density distribution to provide a scaled density distribution (D') for each pixel of each image patch. In some embodiments, the weighted transformed coordinates are aligned with the color-density distributions of the template image by (i) calculating a probability that a pixel in the image patch is a first stain pixel, and (ii) calculating the aligned color distribution coordinates and scaled density distribution coordinates (c x ',c y In some embodiments, for color registration during RGB reconstruction, instead of taking the original HTX color reference vectors used for color deconvolution, a normalized average RGB OD vector from pure HTX pixels in the template image is used for reconstruction.

[0015] In some embodiments, matching the derived color-density distribution to the template color-density distribution utilizes predetermined statistical parameters, where the predetermined statistical parameters are selected to be specific to the titer level that approximates the weighted average titer score of the whole slide image. For example, if the first stain has an estimated titer level of 3, the method retrieves the predetermined statistical parameters from the database that correspond to the first stain at a known titer level of 3. In some embodiments, the first stain is hematoxylin. In some embodiments, the first stain is hematoxylin and the predetermined statistical parameters are used to align and scale the derived color-density distribution coordinates from the whole slide image to the template image.

[0016] Another aspect of the present disclosure is an imaging system that normalizes a titer of a first stain in a query image to a titer of the first stain in a template image, the query image being an image of a biological sample stained with at least the first stain. An imaging system comprising: (i) an image acquisition device; (ii) one or more processors; and (iii) a memory coupled to the processor and storing computer executable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations including: (a) deriving color-density distribution coordinates for each pixel of a generated patch in a query image in a color model including density components; (b) providing transformed color-density distribution coordinates by transforming the derived color-density distribution coordinates for each pixel of the generated patch using predefined alignment and scaling parameter values ​​specific to an estimated titer level of the query image; and (c) reconstructing an RGB image by inverse transforming the query image in the color model including density components using the transformed color-density distribution coordinates weighted by pixel probability values. In some embodiments, the imaging system further comprises a staining device. In some embodiments, the biological sample is stained with at least two stains. In some embodiments, the first stain is hematoxylin. In some embodiments, the color model including density components is an HSD color model.

[0017] In some embodiments, the transformation of the color-intensity distribution coordinates derived for each pixel of the generated patch includes (a) transforming the color distribution coordinates (c) derived for each pixel of the generated patch to have the same mean and orientation as the template color coordinates. x ,c y ) is shifted and rotated to obtain the transformed color coordinates (c x ',c y(b) scaling the resulting intensity distribution (D) for each pixel of the generated patch to have the same weighted mean and weighted standard deviation as the template intensity distribution to provide a transformed intensity distribution (D') for each pixel of the generated patch. In some embodiments, the patches are generated by extracting a predetermined number of FOVs from the query image, (b) generating a set of patches for each extracted FOV, and (c) retaining patches from the set of patches for each extracted FOV that satisfy a threshold patch criterion.

[0018]

[0018] In some embodiments, the weighted transformed color-density distribution coordinates are derived by (i) calculating a probability that the pixel is a first stain pixel, and (ii) weighting the transformed color-density distribution coordinates with the calculated probability.

[0019] In some embodiments, the alignment and scaling parameter values ​​specific to the first stain at a plurality of titer levels are stored in memory. In some embodiments, the estimated titer level of the query image is determined by computing a weighted average titer score for the query image based on the derived first stain color-intensity features, and the selected alignment and scaling parameters approximate the weighted average titer score for the query image. In some embodiments, the weighted average score is computed by (a) deriving a plurality of first stain image features from the generated patches in the query image, and (b) classifying the plurality of image features derived from each of the generated patches by using a trained titer discrimination classifier. In some embodiments, the titer discrimination classifier is a multi-class classifier trained on the first stain color-intensity features derived from the standardized samples by using the first stain titer level as a class indicator.

[0020]

[0020] Another aspect of the present disclosure is a non-transitory computer readable medium for examining a titer of a first stain in a whole slide image of a biological sample stained with one or more stains and normalizing the whole slide image to the titer of the first stain, the non-transitory computer readable medium including: (i) calculating a weighted average titer score of the whole slide image based on the derived first stain image features; and (ii) normalizing the titer of the whole slide image of the first stain to the titer of the first stain in the template image, the whole slide image being characterized by: (a) deriving color-intensity distribution coordinates in the query image within a color model including an intensity component. (b) aligning color distribution coordinates in the derived query image with color distribution coordinates of the template image to provide transformed color distribution coordinates, the aligning comprising shifting and rotating the color distribution coordinates in the derived query image to have the same mean and orientation as the template color distribution coordinates, the aligning step utilizing predefined alignment parameters aligned with the computed weighted average titer score of the entire slide image; (c) scaling concentration distribution coordinates in the derived query image with concentration distribution coordinates of the template image to provide transformed concentration distribution coordinates, the scaling comprising transforming the derived concentration distribution coordinates to have the same weighted mean and weighted standard deviation as the template concentration distribution coordinates, the scaling step utilizing predefined scaling parameters aligned with the computed weighted average titer score of the entire slide image; and (d) reconstructing an RGB image by inverse transforming the query image in a color model that includes a concentration component using the weighted transformed color-intensity distribution coordinates. In some embodiments, the first stain is hematoxylin. In some embodiments, the biological sample is stained with one or more stains in an immunohistochemistry assay and / or an in-situ hybridization assay. In some embodiments, the color model that includes a concentration component is an HSD color model.

[0021] In some embodiments, the first stain in the whole slide image is normalized to the titer of the first stain in the template image if the calculated weighted average titer score falls outside a predetermined threshold titer score range. In some embodiments, the predetermined threshold titer score is in the range of about 3 to about 6. In some embodiments, the weighted average titer score for the whole slide image based on the derived first stain image features is calculated by: (a) extracting a predetermined number of FOVs from the whole slide image; (b) computing a set of patches for each extracted FOV; (c) deriving a plurality of first stain color-intensity features from each patch in the set of patches; (d) classifying the derived plurality of first stain color-intensity features using a trained titer classifier; and (e) computing a weighted average score based on the classification results from all the patches.

[0022]

[0022] In some embodiments, the non-transitory computer readable medium further comprises instructions for identifying regions of interest. In some embodiments, the non-transitory computer readable medium further comprises instructions for separating the input image into individual channel images for each stain. In some embodiments, the non-transitory computer readable medium further comprises instructions for deriving additional features of cells or nuclei after normalization. In some embodiments, the non-transitory computer readable medium further comprises instructions for scoring the biological sample, the scoring being specific to the particular assay in which the biological sample was stained.

[0023] The patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.

[0024] For a general understanding of the features of the present disclosure, reference is made to the drawings, in which like reference numerals are used to identify identical elements throughout. [Brief description of the drawings]

[0025] [Figure 1]

[0025] FIG. 1 illustrates a representative digital pathology system comprising an image acquisition device and a computer system. [Diagram 2]

[0026] FIG. 1 illustrates various modules that may be utilized in a digital pathology system or digital pathology workflow. [Figure 3A]

[0027] FIG. 1 shows an overview of the steps for assessing the titer of stain in an image. [Figure 3B]

[0028] FIG. 1 shows an overview of the steps for normalizing the titers of stains in a query image to those of stains in a template image. [Figure 3C]

[0029] FIG. 1 shows an overview of the steps for image normalization after assessing stain titer. [Figure 3D]

[0030] FIG. 1 shows an overview of the steps for assessing stain titers as part of the normalization process. [Figure 4]

[0031] FIG. 13 is a diagram showing an example of FOV selection. [Diagram 5]

[0032] FIG. 5A shows that the RGB camera signal can be viewed as a 3D coordinate space, with the camera limits restricting the space to a cube (the RGB cube) and showing a triangle with a constant overall intensity equal to the maximum of the individual channel intensities.

[0033] FIG. 5B shows the resulting plane upon which the RGB data is projected. [Figure 6]

[0034] FIG. 1 illustrates the steps of normalizing the titer of a stain in a query image to the titer of the same stain in a template image. [Figure 7]

[0035] FIG. 1 shows an exemplary whole slide (low magnification) image after 50 FOVs were overlaid onto the whole slide image, with 50 FOVs (red squares) selected as closest to the 80% hematoxylin level for the whole slide. [Figure 8]

[0036] Examples of colour normalisation where a query image of titer 1 is normalised to have template titer 4 (Figs. 8(a) and 8(b)) and a query image of titer 9 is normalised to have template titer 4 (Figs. 8(c) and 8(d)). [Figure 9]

[0037] FIG. 9(A) shows the FOVs including HERs of titer 1 for the query dataset (FIG. 9(A)) and the training set (FIG. 9(B)) (see Table 2 herein). [Figure 10]

[0038] FIG. 1 shows the average variation in the number of unstained cells across three different blocks (81 total slide images). [Figure 11]

[0039] FIG. 1 shows estrogen receptor (ER) stained breast cancer images with different hematoxylin stains, where slides from three different clinical laboratories were scanned at 20x magnification. [Figure 12]

[0040] An example of FOV selected in WSI (Figure 12(a)), a sample FOV from a slide of titer 1 (Figure 12(b)), a sample FOV from a slide of titer 9 (Figure 12(c)), a sample FOV from a template slide (Figure 12(d)), a normalized sample FOV from a slide of titer 1 (Figure 12(e)), and a normalized sample FOV from a slide of titer 9 (Figure 12(f)). [Figure 13]

[0041] FIG. 13(A) shows a comparison of the HER2 tumor cell detection algorithm output before and after stain normalization, showing cell count comparison (FIG. 13(A)) and output consistency comparison (FIG. 13(B)). DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026]

[0042] Unless expressly specified otherwise, in any method claimed herein that includes two or more steps or actions, it is to be understood that the order of the steps or actions is not necessarily limited to the order in which the steps or actions are recited.

[0027]

[0043] As used herein, the singular terms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Similarly, the word "or" is intended to include "and" unless the context clearly dictates otherwise. The term "includes" is defined inclusively, such that "includes A or B" means including A, B, or A and B.

[0028]

[0044] In this specification and in the claims, "or" shall be understood to have the same meaning as "and / or" as defined above. For example, when separating items in a list, "or" or "and / or" shall be construed as being inclusive, including at least one, but not less than one, of the number or list of elements, and optionally including additional off-list items. Only terms expressly specified otherwise, such as "only one of" or "exactly one of," or the term "consisting of" as used in the claims, shall denote the inclusion of exactly one element of the number or list of elements. In general, the term "or" herein shall only be interpreted as indicating exclusive alternatives (i.e., "one or the other but not both") when preceded by exclusive terms such as "either," "one of," "only one of," or "exactly one of." As used in the claims, "consisting essentially of" shall have its original meaning as used in the field of patent law.

[0029]

[0045] The terms "comprising," "including," "having," and the like are used interchangeably and have the same meaning. Similarly, the terms "comprises," "includes," "has," and the like are used interchangeably and have the same meaning. Specifically, each of these terms is defined consistent with the general definition of "comprising" in U.S. patent law and is therefore interpreted as an open term meaning "at least the following" and not excluding additional features, limitations, aspects, and the like. Thus, for example, "a device having components a, b, and c" means that the device comprises at least components a, b, and c. Similarly, the phrase "a method involving steps a, b, and c" means that the method includes at least steps a, b, and c. Additionally, although steps and processes may be described herein in a particular order, one of ordinary skill in the art will recognize that the order of steps and processes may be varied.

[0030]

[0046] It is to be understood that, in this specification and in the claims, the phrase "at least one" refers to one or more elements in a list and means at least one element selected from any one or more of the elements in the list of elements, but does not necessarily include at least one of each and every element specifically listed in the list of elements, nor does it exclude any combination of elements in the list of elements. Also, by this definition, elements other than those elements may be optionally present, whether or not related to the elements specifically identified in the list of elements to which the phrase "at least one" refers. Thus, as one non-limiting example, "at least one of A and B" (or, equivalently, "at least one of A or B" or "at least one of A and / or B") can represent, in one embodiment, at least one (optionally, two or more) A (with B absent (optionally including elements other than B)), in another embodiment, at least one (optionally, two or more) B (with A absent (optionally including elements other than A)), in yet another embodiment, at least one (optionally, two or more) A and at least one (optionally, two or more) B (optionally including other elements), etc.

[0031]

[0047] As used herein, the term "biological sample" or "tissue sample" refers to any sample containing biological molecules (such as proteins, peptides, nucleic acids, lipids, carbohydrates, or combinations thereof) obtained from any organism, including viruses. Other examples of organisms include mammals (e.g., domestic animals such as humans, cats, dogs, horses, cows, and pigs, and laboratory animals such as mice, rats, and primates), insects, annelids, arachnids, marsupials, reptiles, amphibians, bacteria, and fungi. Biological samples include tissue samples (e.g., tissue sections and needle biopsy specimens of tissue), cell samples (e.g., cytological smears such as Pap smears or blood smears, or samples of cells obtained by microdissection), or cell fractions, cell debris, or cell organelles (e.g., cells lysed and cellular components separated, such as by centrifugation). Other examples of biological samples include blood, serum, urine, semen, fecal material, cerebrospinal fluid, interstitial fluid, mucus, tears, sweat, pus, biopsy tissue (e.g., obtained by surgical or needle biopsy), nipple aspirate, earwax, breast milk, vaginal fluid, saliva, a swab (such as an oral swab), or any material containing a biomolecule derived from a first biological sample. In certain embodiments, the term "biological sample" as used herein refers to a sample (homogenized or liquefied sample) made from a tumor or a portion thereof obtained from a subject.

[0032]

[0048] As used herein, the term "biomarker" or "marker" refers to a measurable indicator of some biological state or condition. In particular, a biomarker may be a protein or peptide (e.g., a surface protein) that can be specifically stained and is indicative of a biological characteristic of a cell (e.g., a cell type or a physiological state of a cell). An immune cell marker is a biomarker that selectively indicates a characteristic related to a mammalian immune response. A biomarker may be adapted to determine the body's response to a disease or illness treatment or to determine whether a subject is susceptible to a disease or illness. In the context of cancer, a biomarker refers to a biological substance that indicates the presence or absence of cancer in the body. A biomarker may be a molecule secreted by a tumor or a specific response of the body to the presence of cancer. Genetic, epigenetic, proteomic, glycomic, and imaging biomarkers can be used for cancer diagnosis, prognosis, and epidemiology. Such biomarkers can be tested in non-invasively collected biological fluids such as blood or serum. Several gene and protein-based biomarkers are already used in patient care, including, but not limited to, AFP (liver cancer), BCR-ABL (chronic myeloid leukemia), BRCA1 / BRCA2 (breast / ovarian cancer), BRAF V600E (melanoma / colon cancer), CA-125 (ovarian cancer), CA19.9 (pancreatic cancer), CEA (colon cancer), EGFR (non-small cell lung cancer), HER-2 (breast cancer), KIT (gastrointestinal stromal system major), PSA (prostate specific antigen), S100 (melanoma), and many others. Biomarkers may be useful as diagnostics (to identify early cancer) and / or prognostic methods (to predict the progression of cancer and / or predict a subject's response to a particular treatment and / or the likelihood of cancer recurrence).

[0033]

[0049] As used herein, the term "blob" refers to a group of connected pixels around an identified nucleus center / seed, which represents a nucleus.

[0050] As used herein, the term "color channel" refers to a channel of an image sensor. For example, an image sensor may have three color channels, such as red (R), green (G), and blue (B).

[0034]

[0051] As used herein, the term "field of view (FOV)" refers to a portion of an image having a predetermined size and / or shape. In some embodiments, the FOV is a region of a digital image that is otherwise used for manual or automated inspection and analysis. The FOV may be selected automatically or manually by analysis of certain characteristics of the digital image (e.g., evaluation of intensity values ​​of pixels of the digital image).

[0035]

[0052] As used herein, the term "image data" includes raw or pre-processed image data acquired from a biological tissue sample, such as by an optical sensor or sensor array, as understood herein. In particular, image data may include a matrix of pixels. As used herein, the term "immunohistochemistry" refers to a method for detecting the interaction of an antigen with a specific binding agent, such as an antibody, to determine the presence or distribution of the antigen in a sample. The sample is contacted with an antibody under conditions that allow antibody-antigen binding. The antibody-antigen binding can be detected by a detectable label conjugated to the antibody (direct detection) or by a detectable label conjugated to a secondary antibody that specifically binds to the primary antibody (indirect detection). As used herein, a "mask" is a derivative of a digital image, where each pixel of the mask is represented as a binary value (e.g., "1" or "0" (or "true" or "false")). By overlaying the mask on the digital image, a separate processing step applied to the digital image hides, deletes, or ignores or removes all pixels of the digital image that are mapped to a particular one of the binary mask pixels. For example, a mask may be generated from an original digital image by assigning an intensity value above a true or false threshold to all pixels in the original image, and removing all pixels that are overlapped by "false" masked pixels.

[0036]

[0053] A "multichannel image", as understood herein, includes a digital image obtained from a biological tissue sample in which different biological structures, such as nuclei and tissue structures, are simultaneously stained with specific fluorescent dyes, quantum dots, chromogens, etc., whose fluorescence or detectability in different spectral bands constitutes one of the channels of the multichannel image.

[0037]

[0054] As used herein, the term "RGB color space" refers to any additive color space based on the Red-Green-Blue (RGB) color model. A particular RGB color space is defined by three chromaticities of additive primaries, red, green, and blue, and is capable of generating any chromaticity that is in the triangle defined by these primaries. A full specification of an RGB color space also requires a white point chromaticity and a gamma correction curve.

[0038]

[0055] As used herein, a "template image" refers to an image with known characteristics that is used as a reference, where the staining of this image has been determined to be suitable for subsequent analysis so that other images will resemble the image.

[0039]

[0056] As used herein, the term "titer" refers to the concentration or amount of stain in a sample. Generally, titer level values ​​range from about 1 to about 9, with 1 representing the lowest staining intensity and 9 representing the highest staining intensity. There are many physical processes that are associated with titer, such as staining time, concentration, etc.

[0040]

[0057] As used herein, the term "unmixed image" includes a gray value or scalar image obtained for one channel of a multi-channel image. Unmixing a multi-channel image results in one unmixed image for each channel.

[0041]

[0058] U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications, and non-patent applications that are the subject of reference herein and / or appearing in the Application Data Sheets. All publications are incorporated herein by reference in their entirety. As necessary to adopt concepts from the various patents, applications and publications, aspects of the embodiments may be modified to provide further embodiments.

[0042]

[0059] overview

[0060] The performance of image analysis algorithms on digital pathology whole slide images (WSIs) can be hindered by stain variation between images. To overcome such difficulties, many stain normalization methods have been proposed in which normalization is applied to all stains in an image. However, in the case of immunohistochemistry (IHC) images, there are situations in which normalization of all stains in an image is not desirable or feasible, especially when stain variation is related to a specific biological indicator. In contrast, it is desirable for the counterstain (usually hematoxylin (HTX)) to always be consistent between images for robust nuclei detection. In this work, a framework is disclosed to normalize HTX stains of IHC WSIs by registration to a template IHC WSI. For this, a hue saturation density (HSD) model is utilized to align the color component distribution of the image with the template. The density components are then shifted and scaled to match the template. To preserve non-HTX stains, pixels with pure HTX stains are distinguished from pixels with a mixture of HTX and non-HTX stains, and a different normalization method is applied accordingly (see Example 3).

[0043]

[0061] Applicants have developed a pre-processing system and method that estimates whether a slide is in a desired titer range for processing. The system and method also functions to match the titer of the stain in the query image with the titer of the stain in the template image. Applicants believe that the system and method described herein can be used to resolve discrepancies between HTX stains due to pre-analytical conditions. For example, as shown in FIG. 11, three ER-stained breast cancer images from three clinical laboratories exhibit different HTX stain hues and intensities. It is difficult for an image processing algorithm to have a consistent sensitivity to the negative tumor cell discrimination between such images.

[0044]

[0062] To overcome this, the systems and methods described herein employ a pre-processing framework that normalizes HTX stains only to a given template WSI. The proposed framework performs the normalization by coordinate alignment in a color module that incorporates a density component (e.g., a Hue Saturation Density (HSD) color space). Although this disclosure may refer to an HSD transform, it will be appreciated by those skilled in the art that any other suitable color space transform (now known or hereafter discovered) may be utilized, provided that the color space incorporates density information (e.g., a density component that is linearly related to the amount of stain). In some embodiments, the color module that incorporates a density component allows for the derivation of density coordinates (or density information) that are linearly related to the amount of stain. In some embodiments, the color module that incorporates a density component allows for the derivation of color coordinates (or color information) that are independent of the amount of stain.

[0045]

[0063] To meet the single-stain normalization requirements of IHC image analysis, a robust color distribution derivation with customized HTX pixel selection and special processing of stain-mixed pixels was developed. To quantify the impact of this pre-processing step on the imaging algorithm, applicants demonstrated the results of the IHC stained cell detection algorithm on images with and without normalization, thereby demonstrating that the proposed method exhibits more consistent detection performance across different HTX concentration levels.

[0046]

[0064] A digital pathology system 200 for imaging and analyzing specimens is shown in FIG. 1. The digital pathology system 200 includes an imaging device 12 (e.g., a microscope slide containing a specimen). The imaging device 12 and the computer may be communicatively coupled together (e.g., directly or indirectly via the network 20) ​​by including a digital image processing device (a device having a means for scanning) and a computer 14. The computer system 14 may include a desktop computer, a laptop computer, a tablet, or the like, digital electronic circuitry, firmware, hardware, memory 602, a computer storage medium, a computer program or instruction set (e.g., when a program is stored in a memory or a storage medium), a processor (including a programmed processor), and / or the like. The computer system 14 shown in FIG. 1 may include a computer including a display device 16 and a housing 18. The computer system may store digital images in binary format (locally, such as in a memory, a server, or another network-connected device). The digital image may also be divided into a matrix of pixels. A pixel may include one or more bits of digital value defined by a bit depth. Those skilled in the art will appreciate that other computer devices or systems may be utilized and that the computer systems described herein may be communicatively coupled to additional components (e.g., specimen analyzers, microscopes, other imaging systems, automated slide preparation equipment, etc.). Some of these additional components, as well as the various computers, networks, etc. that may be utilized, are described elsewhere herein.

[0047]

[0065] In general, the imaging device 12 (or other image source with pre-scanned images stored in memory) may include, but is not limited to, one or more image capture devices. The image capture devices may include, but are not limited to, a camera (e.g., analog camera, digital camera, etc.), optical elements (e.g., one or more lenses, a sensor focusing lens group, a microscope objective lens, etc.), an image sensor (e.g., a charge-coupled device (CCD), a complementary metal oxide semiconductor (CMOS) image sensor, etc.), photographic film, etc. In digital embodiments, the image capture device may include multiple lenses that cooperate to provide on-the-fly focusing. An image sensor (e.g., a CCD sensor) can capture a digital image of the specimen. In some embodiments, the imaging device 12 is a bright field imaging system, a multispectral imaging (MSI) system, or a fluorescent microscope system. The digitized tissue data may be generated by an image scanning system, such as, for example, an iSCAN CORE by VENTANA MEDICAL SYSTEMS, Tucson, Ariz, or other suitable imaging equipment. Additional imaging devices and systems are described elsewhere herein. As will be appreciated by those skilled in the art, a digital color image captured by imager 12 is conventionally composed of primary color pixels. Each colored pixel is coded on three digital components, each containing the same number of bits. Each component corresponds to a primary color (typically red, green, or blue), also referred to by the term "RGB" components.

[0048]

[0066] FIG. 2 provides an overview of the various modules utilized in the digital pathology system of the present disclosure. In some embodiments, the digital pathology system employs a computing device 200 or computer-implemented method having one or more processors 203 and at least one memory 201, which stores non-transitory computer-readable instructions that, upon execution by the one or more processors, cause the one or more processors to execute instructions (or stored data) in one or more modules (e.g., modules 202 and 205-212). Alternatively, these instructions may be stored on a non-transitory computer-readable medium (201) or computer usable medium. In some embodiments, the non-transitory computer-readable medium 201 may include all computer-readable media except for fluctuating propagating signals.

[0049]

[0067] 2 and 3A, the present disclosure provides a computer-implemented method for assessing or estimating the titer of a stain in an acquired image, comprising: (a) an image acquisition module 202; (b) generating or receiving multi-channel image data, e.g. of an acquired image or of a biological sample stained with one or more stains, by operation of a separation module 205; (b) generating image channel images corresponding to one or more stain channels by operation of a separation module 205; (c) generating FOVs for a test image and selecting from all generated FOVs those FOVs that satisfy a predefined criterion (step 250), by operation of a FOV generation module 206; generating a set of patches within each retained FOV and retaining those patches that satisfy a predefined criterion indicative of the presence or absence of a stain whose titer is to be assessed by operation of a patch generation and retention module 207 (step 251); deriving stain color and stain intensity features for the stain whose titer is to be estimated by operation of a feature extraction module 208 (step 252); In some embodiments, the stain is hematoxylin.

[0050]

[0068] Also, with reference to FIG. 2 and FIG. 3B, the present disclosure provides a computer-implemented method for normalizing a titer of a stain in an acquired image to a titer level in a template image, comprising: (a) generating or receiving, via operation of an image acquisition module 202, multi-channel image data (e.g., an acquired image) of a biological sample stained with one or more stains; (b) generating, via operation of a separation module 205, image channel images corresponding to one or more stain channels; and (c) generating, via operation of an FOV generation module 206, an FOV for a test image and selecting, from among all the generated FOVs, an FOV that meets a predetermined criterion. The method includes: generating a set of patches within each of the retained FOVs (step 260); operating a patch generation module 207 to generate a set of patches within each of the retained FOVs and retaining patches that meet certain predefined criteria indicative of the presence or absence of the stain for which the titer is normalized (step 261); operating a transformation module 210 to compute transformed coordinates (step 262); operating a classification module 211 to determine the probability that a pixel in the test image belongs to a pixel class indicative of the stain for which the titer is normalized (step 263); and operating a transformation module 201 to reconstruct an RGB image using the weighted transformed coordinates (step 264). In some embodiments, the transformation module 210 is an HSD transformation module. In some embodiments, the stain is hematoxylin. It will also be appreciated by those skilled in the art that additional modules or databases may be incorporated into the workflow. As described in more detail herein, in some embodiments, specific parameters for performing the HSD transformation may be retrieved from an HSD parameter database 212, as opposed to deriving these parameters during the normalization process. Similarly, an image processing module may operate to apply specific filters to the acquired images or to identify specific histological and / or morphological structures within the tissue sample, and a region of interest selection module may be utilized to select particular portions of the images for analysis.

[0051]

[0069] In some embodiments, prior to normalization, a stain titer assessment or estimation is performed. With reference to FIG. 3C, after acquisition of a whole slide image (step 270), the titer of the stain in the sample is estimated. It is then determined whether the estimate of the stain's titer falls within a predefined titer threshold (e.g., a threshold in the range of 3-6). If the titer falls within the predefined titer threshold (step 271), the image is ready for further processing (step 273). On the other hand, if the titer does not fall within the predefined titer threshold (step 272), the stain's titer is normalized to that of the template image (step 273).

[0052]

[0070] In other embodiments, stain titer assessment is performed during the normalization process (see, e.g., FIG. 3D). For example, in some embodiments, operation of feature extraction module 208 and titer classification module 209 may provide an estimate of stain titer for the test image during normalization (step 281) such that appropriate parameters associated with stain titer may be retrieved from HSD parameter database 212 and used by HSD conversion module 211. Thus, titer assessment may be performed prior to normalization to ascertain whether stain titer normalization is required (see FIG. 3C) or during normalization (FIG. 3D) to retrieve appropriate HSD parameters for alignment and scaling of derived color and density distribution coordinates.

[0053]

[0071] The methods described herein may be applied equally to query images and test images, so where particular references refer to generating an FOV in a query image, these procedures may be applied to template images as well.

[0054]

[0072] Image Acquisition Module

[0073] As a first step, referring to Figure 2, the digital pathology system 200 operates the image acquisition module 202 to capture an image or image data of a biological sample having one or more stains. In some embodiments, the received or acquired image is an RGB image or a multispectral image. In some embodiments, the captured image is stored in the memory 201.

[0055]

[0074] The image or image data (used interchangeably herein) may be acquired, for example in real time, by using the imaging device 12. In some embodiments, the image is acquired from an instrument such as a microscope capable of capturing image data of a microscope slide containing a specimen, as described herein. In some embodiments, the image is acquired using a 2D scanner, such as one capable of scanning image tiles. Alternatively, the image may be an image previously acquired (e.g., scanned) and stored in memory 201 (and then retrieved from a server over network 20).

[0056]

[0075] A sample may be stained by application of one or more stains, and the resulting image or image data includes signals corresponding to each of the one or more stains. Thus, while the systems and methods described herein may estimate or normalize to a single stain (e.g., hematoxylin), the number of stains in a biological sample is not limited. Indeed, a biological sample may be stained to include two or more stains in addition to or as part of any counterstains in a multiplex assay.

[0057]

[0076] Those skilled in the art will appreciate that tissue samples may be stained for different nuclear and / or cell membrane biomarkers. Methods for staining tissue structures and guides for the selection of suitable stains for various purposes are described, for example, in Sambrook et al., "Molecular Cloning: A Laboratory Manual", Cold Spring Harbor Laboratory Press (1989) and Ausubel et al., "Current Protocols in Molecular Biology", Greene Publishing, New York, 1999. Associates and Wiley-Intersciences (1987), the disclosure of which is incorporated herein by reference. As a non-limiting example, for detection of breast cancer, in some embodiments, a tissue sample is stained in an IHC assay for the presence or absence of one or more biomarkers, including an estrogen receptor marker, a progesterone receptor marker, a Ki-67 marker, or a HER2 marker. Thus, in some embodiments, the biomarker image used as input is an IHC image that includes a signal corresponding to the presence or absence of at least one of an estrogen receptor (ER) marker, a progesterone receptor (PR) marker, a Ki-67 marker, or a HER2 marker. As another non-limiting example, for detection of non-small cell lung cancer, in some embodiments, a tissue sample is stained in an IHC assay for the presence or absence of one or more biomarkers, including a PD-L1 biomarker. Thus, in some embodiments, the biomarker image used as input is an IHC image that includes a signal corresponding to the presence or absence of a PD-L1 marker, a CD3 marker, and a CD8 marker. In some embodiments, the computer-implemented method further comprises scoring the classified nuclei.

[0058]

[0077] Chromogenic stains include hematoxylin, eosin, fast red, or 3,3'-diaminobenzidine (DAB). It will also be appreciated by those skilled in the art that any biological sample may be stained with one or more fluorophores. In some embodiments, the tissue sample is stained with a primary stain (e.g., hematoxylin). In some embodiments, the tissue sample is stained in an IHC assay for a particular biomarker.

[0059]

[0078] A typical biological sample is processed in an automated staining / assay platform that applies a stain to the sample. There are various commercial products on the market that are suitable for use as staining / assay platforms, such as the Discovery™ product from Ventana Medical Systems, Inc. (Tucson, AZ). The camera platform can also be a bright field microscope (such as the VENTANA iScan HT product from Ventana Medical Systems, Inc.) or any microscope that has one or more objective lenses and a digital imaging device as well as a set of spectral filters. Other techniques for capturing images at various wavelengths can also be used. Other camera platforms suitable for imaging stained biological specimens are known in the art and are commercially available from companies such as Zeiss, Canon, and Applied Spectral Imaging. Such platforms can also be easily adapted for use in the systems, methods, and devices of the present disclosure.

[0060]

[0079] In some embodiments, the input image is masked such that only tissue regions are present in the image. In some embodiments, a tissue region mask is generated to mask non-tissue regions from the tissue regions. In some embodiments, the tissue region mask is formed by identifying tissue regions and excluding background regions (e.g., regions of the whole slide image corresponding to glass without a sample, such as where only white light from the imaging source is present). Those skilled in the art will appreciate that in addition to masking non-tissue regions from tissue regions, the tissue masking module may mask other areas of interest as desired, such as portions of tissue identified as belonging to a particular tissue type or a region suspected of being a tumor. In some embodiments, segmentation techniques are used to mask tissue regions from non-tissue regions in the input image to generate a tissue region masked image. Suitable segmentation techniques are known from the prior art (see "Digital Image Processing", Third Edition, Rafael C. Gonzalez, Richard E. Woods, chapter 10, page 689 and "Handbook of Medical Imaging", Processing and Analysis, Isaac N. Bankman Academic Press, 2011). 000, chapter 2). In some embodiments, image segmentation techniques are utilized to identify the digitized tissue data and the slide in the image, with the tissue corresponding to the foreground and the slide corresponding to the background. In some embodiments, the component computes an area of ​​interest (AoI) in the entire slide image to detect all tissue regions in the AoI while limiting the amount of background non-tissue area that is analyzed. For example, a wide range of image segmentation techniques (e.g., HSV color-based image segmentation, Lab image segmentation, mean-shift color image segmentation, region growing, level setting methods, fast marching methods, etc.) may be used to determine the boundaries between the tissue data and the non-tissue or background data. The component may also generate a tissue foreground mask based at least in part on the segmentation that may be used to identify portions of the digitized slide data that correspond to the tissue data. Alternatively, the component may generate a background mask that may be used to identify portions of the digitized slide data that do not correspond to the tissue data.

[0061]

[0080] This identification may be possible through image analysis operations such as edge detection. A tissue region mask may be used to remove non-tissue background noise in the image (e.g., non-tissue regions). In some embodiments, generating the tissue region mask includes, but is not limited to, one or more of the following operations: computing the intensity of the low-resolution input image, generating an intensity image, applying a standard deviation filter to the intensity image, generating a filtered intensity image, and applying a threshold to the filtered intensity image, such that pixels with intensity above a given threshold are set to 1 and pixels below the threshold are set to 0 to generate the tissue region mask. For additional information and examples regarding generating a tissue region mask, see "An Image Processing Method and System," supra. No. 6,393,962, entitled "Image Processing Method and System for Analyzing a Multi-Channel Image Obtained from a Biological Tissue Sample Being Stained by Multiple Stains," PCT / EP / 2015 / 062015, the entire disclosure of which is incorporated herein by reference.

[0062]

[0081] In some embodiments, a region of interest identification module may be used to select a portion of the biological sample from which image or image data is to be acquired. FIG. 4 is a flow chart illustrating the steps of region selection. In step 420, the region selection module receives an identified region of interest or field of view. In some embodiments, the region of interest is identified by a user of the disclosed system or another system communicatively coupled to the disclosed system. Alternatively, in other embodiments, the region selection module retrieves the location or identification of the region of interest from a storage / memory. In some embodiments, as shown in step 430, the region selection module automatically generates the FOV or ROI, for example, by a method described in PCT / EP2015 / 062015, the entire disclosure of which is incorporated herein by reference. In some embodiments, the region of interest is automatically determined by the system based on some predefined criteria or characteristics in or on the image (e.g., in the case of a biological sample stained with three or more stains, identifying an area of ​​the image that contains only two stains). In step 440, the region selection module outputs the ROI.

[0063]

[0100] Separation Module

[0082] After image acquisition, system 200 receives as input (e.g., step 280) a multiplexed image, which includes signals corresponding to one or more stain channels, as described herein. Prior to further processing and analysis, this initial image is first separated into its constituent channels, such as by separation module 205. Each separation channel corresponds to a particular stain or signal. Hereinafter, the separation image is referred to as a "channel image" and may be used as an input for each of the modules described herein.

[0064]

[0083] For example, in a sample containing one or more stains and hematoxylin, individual images may be generated for each of the one or more stains and hematoxylin channels. Without wishing to be bound to any particular theory, these channels may be referred to as structural image channels, as they are believed to highlight different tissue structures in the tissue image. In some embodiments, the separation provides at least one hematoxylin image channel image. In some embodiments, the acquired image is separated into separate channels that represent the local amount of hematoxylin and highlight nuclear regions in the image. As will be appreciated by those skilled in the art, features extracted from these channels are useful for representing various biological structures present in any image of tissue.

[0065]

[0084] The multispectral image provided by the imaging system 202 is a weighted mixture of fundamental spectral signals associated with individual biomarkers and noise components. At any particular pixel, the mixture weight is proportional to the biomarker expression of the fundamental co-localized biomarkers at a particular location in the tissue and the background noise at that location. Thus, the mixture weight varies from pixel to pixel. The spectral classification method disclosed herein decomposes the multi-channel pixel value vector at each and every pixel into a set of constituent biomarker endmembers or components and estimates the proportion of the individual constituent stains for each biomarker.

[0066]

[0085] Methods of unmixing are well known to those skilled in the art, and any method now known or later discovered may be used to "unmix" the multiplexed image into a vascular channel image. In general, the unmixing process involves extracting stain-specific channels and determining the local concentration of each stain by using well-known reference spectra for standard tissue and stain combinations. Unmixing may involve using reference spectra received from a control image or estimated from the image under observation. Unmixing the component signals of each input pixel allows for the retrieval and analysis of stain-specific channels, such as vascular and nuclear channels. The terms "unmixing" and "color deconvolution" (or "deconvolution"), etc. (e.g., "deconvolving", "unmixed") are used interchangeably in the art.

[0067]

[0086] In some embodiments, the multiplexed images are separated by the separation module 205 using linear classification. Linear separation is described, for example, in Zimmermann, “Spectral Imaging and Linear Unmixing in Light Spectral Imaging and Linear Separation in Optical Microscopy, Adv Biochem Engin / Biotechnol (2005) 95:245-265 and C.L. Lawson and R.J. Hanson, Solving least squares Problems, Prentice Hall, 1974, Chapter 23, p. 161, the entire disclosures of which are incorporated herein by reference. In linear stain separation, the measured spectrum (S(λ)) at any pixel is considered to be a linear mixture of the stain spectral components, equal to the sum of the proportions or weights (A) of the color metrics (R(λ)) of the individual stains expressed at that pixel.

[0068]

[0087] S(λ)=A1·R1(λ)+A2·R2(λ)+A3·R3(λ)····A i ·R i (λ)

[0088] This can be more generally expressed in matrix form as follows:

[0069]

[0089] S(λ)=ΣA i ·R i (λ) or S=R A

[0090] If there are M acquired channel images and N individual stains, then the columns of the M x N matrix R are the optimal color system derived herein, the N x 1 vector A is the unknown fraction of the individual stains, and the M x 1 vector S is the measured multichannel spectrum vector at a pixel. In these equations, the signal (S) at each pixel is measured during acquisition of the multiplexed image, and the reference spectrum (i.e., optimal color system) is derived as described herein. The contributions of the various stains (A i ) can be determined by calculating the respective contributions for each point in the measured spectrum. In some embodiments, the solution is found using an inverse least squares fitting technique that minimizes the squared difference between the measured and calculated spectra by solving the following set of equations:

[0070]

[0091] [∂Σ j {S(λ j )-Σ i A i ·R i (λ i )}2] / ∂A i =0

[0092] In this equation, j represents the number of detection channels and i is equal to the number of stains. In the solution of linear equations, constrained separations can often force the weights (A) to sum to one.

[0071]

[0093] In other embodiments, separation is achieved using the method described in WO2014 / 195193, entitled "Image Adaptive Physiologically Plausible Color Separation," filed May 28, 2014, the entire disclosure of which is incorporated herein by reference. In general, WO2014 / 195193 describes a method for separation by separating the component signals of an input image using iteratively optimized criterion vectors. In some embodiments, image data from an assay is correlated with an expected or ideal result specific to the characteristics of the assay to determine a quality criterion. In the case of low quality images or low correlation to the ideal result, one or more criterion column vectors of matrix R are adjusted, and separation is repeated iteratively using the adjusted criterion vectors until the correlation indicates a high quality image consistent with physiological and anatomical requirements. Anatomical, physiological, and assay information may be used to define rules that are applied to the measured image data to determine the quality criterion. This information includes how the tissue was stained, structures within the tissue that may or may not be intended to be stained, and relationships between structures, stains, and markers that are specific to the assay being processed. The result of the iterative process is stain eigenvectors that can generate images that accurately identify structures of interest and biologically relevant information, and are free of any noisy or unwanted spectra, making them suitable for analysis. The reference vectors are adjusted in a search space. The search space defines the various values ​​that the reference vectors can take to represent the stains. The search space may be determined by scanning a variety of representative training assays that contain known or commonly occurring problems and determining a high-quality set of reference vectors for the training assays.

[0072]

[0094] In another embodiment, separation is achieved using the method described in WO2015 / 124772, entitled "Group Sparsity Model for Image Unmixing," filed February 23, 2015, the entire disclosure of which is incorporated herein by reference. In general, WO2015 / 124772 describes separation using a group sparsity framework, where some of the stain contributions from multiple co-location markers are modeled in the "same group" and some of the stain contributions from multiple non-co-location markers are modeled in the "different group," so that co-localization information of multiple co-location markers is provided to a modeling group sparsity framework, and a least squares solution within each group is obtained by solving the modeling framework using group lasso. This least squares solution corresponds to the separation of the co-location markers, and produces a sparse solution between groups that corresponds to the separation of the non-co-location markers. Furthermore, WO2015 / 124772 describes a method of separating by inputting image data obtained from a biological tissue sample, reading from an electronic memory reference data representing stain colors for each of a plurality of stains, reading from the electronic memory colocation data representing each stain group, each of which includes stains that may be located in the biological tissue sample and each of which constitutes a group of the group regularization criterion, at least one of which has a size of 2 or more, and calculating a solution to the group regularization criterion by using the reference data as a reference matrix to obtain a separated image. In some embodiments, the method of separating the images may include the steps of generating a group sparsity model in which a portion of the stain contributions from the colocalized markers are assigned in a single group and a portion of the stain contributions from the non-colocalized markers are assigned in a separate group, and solving the group sparsity model using a separation algorithm to obtain a least squares solution within each group.

[0073]

[0095] FOV Extraction Module

[0096] In some embodiments, the entire slide image, or a region thereof, is subdivided into multiple FOVs to generate an FOV sampling grid (steps 250 or 260). The FOV sampling grid is generated to have a set of representative regions within the image that are comparable to each other. In some embodiments, the FOVs are distributed across the image to capture a representative sample of the relevant regions to be analyzed. One way this may be achieved is to automatically or manually generate a regularly spaced grid of FOVs to provide an unbiased structured sampling of the entire image. In some embodiments, the grid encompasses the entire image. In other embodiments, the grid does not encompass the entire image.

[0074]

[0097] Typically, the FOV size is chosen so that the FOV can be presented on the computer screen at full resolution. For example, if the computer screen has a resolution of 1000x1000 pixels and the pixels in the entire slide image are 0.5 micrometers by 0.5 micrometers, then a good candidate FOV size is also 1000x1000 pixels or 0.5 mm by 0.5 mm in size.

[0075]

[0098] In some embodiments, a predetermined number of FOVs are extracted from the entire slide image. In some embodiments, the predetermined number of FOVs ranges from 25 to 100. In other embodiments, the predetermined number of FOVs is approximately 50. In some embodiments, the predetermined number of FOVs is selected based on characteristics of stains in the image. In some embodiments, the predetermined FOVs are selected based on a predetermined stain intensity level (e.g., hematoxylin intensity level).

[0076]

[0099] In some embodiments, the channel for the stain for which titer is being assessed is used to derive an image histogram (e.g., if the stain for which titer is being assessed is hematoxylin, an image histogram corresponding to the hematoxylin channel will be generated). In some embodiments, for each FOV in the generated grid, the average pixel intensity is calculated (using the derived histogram) and those FOVs that meet a certain predefined average stain intensity are retained. In other embodiments, the average pixel intensity is calculated for each FOV and those FOVs that fall within a predefined top percentage of average pixel intensity are retained. In some embodiments, the stain is hematoxylin and those FOVs that meet an 80% intensity level for hematoxylin are selected. In some embodiments, this is done based on the assumption that relatively strong hematoxylin stains represent stains in cell nuclei. In some embodiments, the 80th percentile is chosen empirically to limit the risk of bias due to extremely high hematoxylin outliers.

[0077]

[0100] Patch generation and maintenance module

[0101] Once the FOVs have been extracted from the image, a set of patches is generated for each FOV. (Steps 251 and 261). Similar to FOV generation, the patches may be generated by generating a sampling grid, i.e., automatically or manually generating a regularly spaced grid of patches to provide unbiased structured sampling within the FOV. In some embodiments, the patches have (x,y) dimensions ranging from about 5% to about 2% of the size of the FOV dimensions. For example, if the FOV has a size of 1000 pixels by 1000 pixels, each patch within the FOV may have a size of 100 pixels by 100 pixels. It will be appreciated by those skilled in the art that multiple non-overlapping patches will be derived for each FOV.

[0078]

[0102] In some embodiments, the patches generated are "superpixel" The shape of the superpixel is a subarea of ​​an image that encompasses multiple adjacent pixels. "Superpixels" divide an image into free-form, non-intersecting image patches. In some embodiments, the shape may be chosen such that each superpixel fills a target size range and contains primarily one type of tissue or cell. Superpixels may be generated by a number of methods, including "graph-based algorithms," "gradient ascent-based algorithms," SLIC algorithms, mean shift, and regularized cuts. Thus, according to embodiments, a superpixel generation procedure may be applied to an image to generate patches, each of which is a superpixel. According to embodiments, simple linear iterative clustering is used to identify sets of adjacent pixels (i.e., superpixels) to be used as "patches." Simple Linear Iterative Clustering (SLIC) is an adaptation of K-means for superpixel generation, with two important differences: (i) the number of distance calculations in the optimization is dramatically reduced by restricting the search space to a region proportional to the superpixel size (which reduces the complexity and is believed to be linear in the number of pixels independent of the number of superpixels k), and (ii) a weighted distance measure controls the size and closeness of the superpixels while combining color and spatial proximity (see Achanta et al., "SLIC Superpixels Compared to State-of-the-Art Superpixel Methods," IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 34, No. 11, November 2012, the entire disclosure of which is incorporated herein by reference). For example, the region proportional to the superpixel size may be the same as a predefined upper bound on the superpixel area used to identify the superpixels.

[0079]

[0103] In some embodiments, the number of patches in the FOV that meet certain predefined criteria is Only patches with no cells (background patches) are kept for separate analysis, for example, patches without any cells (background patches) would not carry any useful information for titer level determination, as they would not have any stain.

[0080]

[0104] In some embodiments, the first requirement is that all pixels in the patch A predetermined percentage of the stained pixels should have a signal corresponding to the stain for which the titer is being assessed, which is determined using the image channel of that stain (e.g., if the stain is hematoxylin, then the hematoxylin channel is utilized). In some embodiments, the predetermined percentage of stained pixels is at least 60%. In other embodiments, the predetermined percentage of stained pixels is at least 65%. In yet other embodiments, the predetermined percentage of stained pixels is at least 70%. In another embodiment, the predetermined percentage of stained pixels is at least 75%. For example, if the patch size is 100 pixels by 100 pixels and the threshold percentage is set at 70%, then the number of stained pixels in the patch is at least 60%. Of the 10,000 pixels, 7,000 should be representative of the stain being evaluated (in the case of hematoxylin).

[0081]

[0105] In some embodiments, another requirement is that some of all pixels A certain percentage of pixels must have some kind of dye applied to them. A pixel is considered "white" if each of the three color channels in the RGB color space has a value greater than 200 (assuming each channel has 8 bits). Those skilled in the art will appreciate that if an RGB image is 24 bits, then each channel (i.e., red, green, and blue) has 8 bits, and the image is composed of three images, one for each channel. Each image can store discrete pixels at conventional luminance intensities from 0 to 255. In some embodiments, the certain percentage of pixels must have some kind of dye applied to them is at least 40%. That is, at least 40% of the pixels must have RGB channel values ​​less than 200 each. In other embodiments, the certain percentage of pixels must have some kind of dye applied to them is at least 45%. In yet other embodiments, the certain percentage of pixels must have some kind of dye applied to them is at least 50%. In another embodiment, the certain percentage of pixels must have some kind of dye applied to them is at least 60%.

[0082]

[0106] Yet another requirement is that a certain percentage of all pixels must be "cell-like." In some embodiments, the predetermined percentage of all pixels that need to be located in cell-like structures is at least 25% of all pixels in the acquired image or any selected portion thereof. In other embodiments, the predetermined percentage is at least 30%. In yet other embodiments, the predetermined percentage is in the range of about 30% to about 35%.

[0083]

[0101] In some embodiments, Difference of Gaussians (DoG) filtering is used to identify such cell-like structures. In general, Difference of Gaussians is a feature enhancement algorithm that involves subtracting a blurred version of an original image from another relatively sharp version. In the simple case of grayscale images, the blurred image is obtained by convolving the original grayscale image with Gaussian kernels with different standard deviations. Blurring an image with a Gaussian kernel is thought to suppress only high frequency spatial information. By subtracting one image from the other, spatial information that exists between the range of frequencies preserved in the two blurred images is preserved. Thus, Difference of Gaussians is a bandpass filter that discards all but a few spatial frequencies present in the original grayscale image.

[0084]

[0102] In some embodiments, a multi-scale DoG is implemented to detect "speckle-like" structures with a certain radius range by considering a Gaussian kernel with a gradually decreasing standard deviation and considering the difference between the images obtained after filtering with two successive Gaussians. In some embodiments, the 0th layer of the multi-scale DoG corresponds to the image obtained after taking the difference between the image filtered with the coarsest Gaussian (the Gaussian with the largest standard deviation) and the image filtered with the next coarsest Gaussian (the Gaussian with the next highest standard deviation) (referred to herein as the "Gaussian difference image" or "DoG image"). For example, the DoG image of the 0th layer may be computed as the Gaussian difference of a first Gaussian filter pair including a first filter with a standard deviation of 1 and a second Gaussian filter with a standard deviation of 2. The DoG image of the 1st layer may be computed as the Gaussian difference of a second Gaussian filter pair including a first filter with a standard deviation of 2 and a second Gaussian filter with a standard deviation of 3. The second layer DoG image may be computed as a Gaussian difference of a third Gaussian filter pair, the third Gaussian filter pair including a first filter with a standard deviation of 3 and a second Gaussian filter with a standard deviation of 4. The standard deviation need not be an integer value, and other standard deviation values ​​in a similar range may be used in other embodiments of the present disclosure. The radius and shape of the Gaussian filter kernel may be selected such that the filter pair produces a large DoG for speckles of expected size and shape.

[0085]

[0103] In another embodiment, a generalized Laplacian of Gaussian filter may be used to detect blobs and therefore cell-like structures in an image. Such an approach is described in Kong, "A Generalized Laplacian of Gaussian Filter for Blob Detection and Its Applications," IEEE Trans Cybern. 2013 Dec;43(6):1719-33, the entire disclosure of which is incorporated herein by reference.

[0086]

[0104] Feature Extraction Module

[0105] After patches containing data indicative of stains are retained using the patch generation and retention module 207 (step 251), color and intensity features indicative of the stain whose titer is being evaluated are derived (step 252).

[0087] In some embodiments, the color derived features include color ratio R / (R+G+B) or color principal components. In other embodiments, the color derived metrics include local statistics (mean / median / variance / standard deviation) of color and / or color intensity correlations in local image windows, respectively. In some embodiments, the features include mean, median, first quartile, third quartile, first invariant moment, and standard deviation values ​​derived from (a) the first stain channel image after color deconvolution, (b) a low-pass version of the whole slide image, (c) the absorbance image, and (d) the L and B image channels by LAB decomposition. In some embodiments, these features are derived from image histograms of said derived images or image channel images, respectively. As will be appreciated by those skilled in the art, an image histogram typically represents a histogram of pixel intensity values. This histogram is a graph showing the number of pixels of the image at each of the different intensity values ​​found in the image. For an 8-bit grayscale image, there are 256 possible different intensities, so the histogram will graphically display 256 numbers showing the distribution of pixels between these grayscale values. Histograms can also be obtained from color images: for example, separate histograms are obtained for the red, green, and blue channels.

[0088]

[0107] In some embodiments, a resultant image histogram derived from the separated image channel images may be used to calculate features including, but not limited to, the mean, median, first quartile value, and third quartile value, and in some embodiments, standard deviation is calculated as a feature based on the histogram of intensity values ​​derived from the stain channel image.

[0089]

[0108] In some embodiments, an absorbance image is computed from within an optical density domain representation of an RGB image of the acquired image, hi some embodiments, a histogram of the absorbance image is generated and utilized to derive the mean, median, 1st quartile, 3rd quartile, and standard deviation values.

[0090]

[0109] The LAB color space includes one luminance channel L and two color channels A and B. In the L*a*b color space, the "L" channel represents the luminance of a pixel, the "A" channel represents the red and green components of the pixel, and the "B" channel represents the blue and yellow components of the pixel. In some embodiments, the mean, median, first quartile, and third quartile values ​​are calculated. Histograms of the L and B channels are used in the calculation. In some embodiments, the first invariant moment is calculated from histograms of intensity values ​​derived from the L and B channels after the LAB decomposition.

[0091]

[0110] In some embodiments, a low-pass filter may be applied to the stain channel image, e.g., by smoothing the first stain channel image, replacing each pixel value with a pixel value that averages or represents the pixel values ​​of a local neighborhood around each pixel. In some embodiments, a histogram of the low-pass filtered first stain channel image is used to calculate the mean, median, first quartile, and third quartile values.

[0092]

[0111] In some embodiments, the features include first and third quartiles derived from the image histogram. The first and third quartiles are descriptive statistics that are a measure of location in the data set. In some embodiments, the first and third quartiles are derived by sorting the pixel intensity data of the histogram, such as in ascending order. The first or lower quartile is the value that cuts off the first 25% of the pixel intensity values ​​when sorted in ascending order. The pixel intensity data value in the middle of this list (or the average of the middle two values ​​of the list) represents the first quartile. Similarly, the third or upper quartile is the value that cuts off the first 75%. The pixel intensity data value in the middle of this list (or the average of the middle two values ​​of the list) represents the third quartile.

[0093]

[0112] In some embodiments, the features include the first invariant moment. An image moment is some predefined weighted average (moment) of the pixel intensities of an image or a function of such a moment, and is usually chosen to have some attractive property or interpretation. A color moment is a measure that characterizes the color distribution in an image. The first color moment is interpreted as the average color in an image and can be calculated using the following formula:

[0094]

[0113]

[0095]

number

[0096]

[0114] where N is the number of pixels in the image and p ij is the value of the jth pixel of the image in the ith color channel.

[0115] In some embodiments, the feature is the standard deviation value of the image histogram, calculated by first deriving the mean pixel intensity value from the histogram and then taking the square root of the mean pixel intensity value.

[0097]

[0116] Titer Sorting Module

[0117] Following derivation of stain color and intensity features using the feature extraction module 208 (step 252), the derived features may be provided to a classification module to compute the titer level of stain in each derived image patch (steps 253 and 254).

[0098]

[0118] The machine learning algorithm (classifier) ​​may include an ensemble learning method that incorporates multiple machine learning methods described herein to obtain better predictive performance than could be achieved by any of the machine learning methods described herein. Ensemble learning methods include Bayesian optimal classifiers, bootstrap aggregating ("bagging"), boosting, Bayesian model averaging, Bayesian model combination, cross-validation selection ("bucket Ensemble learning methods include, but are not limited to, random forests, stacking (stacked generalization), and random forests. In some embodiments, ensemble learning methods include random forests, which operate by constructing multiple decision trees and outputting a class that is the mode of the individual trees' classes (classification) or average prediction (regression).

[0099]

[0119] As used herein, a "classifier" is program logic capable of identifying which of a set of categories (object classes) a new observation (object) belongs to by analyzing the characteristic values ​​(also referred to as "object feature values" or "explanatory variables") of the new observation to be categorized. A classifier may be derived based on a training set of data containing observations whose category membership is known (here, training images derived from slides with known stain titer levels). In some embodiments, a classifier is derived by applying a supervised learning technique (e.g., training an untrained version of the classifier on a training set of correctly identified stain titer levels, whereby the number and type of object classes are known in advance).

[0100]

[0120] In some embodiments, the classifier is a random forest classifier. For example, the random forest classifier may be trained by (i) generating a training set of digital images with different known titer levels, (ii) using at least modules 205-208 to extract image features indicative of a first stain (e.g., stain color and intensity features) from the training set of digital images as described herein, and (iii) training the random forest classifier to identify titer levels based on a set of extracted features (such as those described above with respect to stain color and stain intensity features) using the titer levels as class indicators. The trained random forest classifier may then be applied to classify (step 253) the derived stain color and intensity features in derived image patches of test images to determine an estimated titer value for the particular patch. In some embodiments, training images are utilized. Training slides / images may be generated from any tissue sample. In some embodiments, the training is tissue specific and only hematoxylin stain is applied.

[0101]

[0121] In some embodiments, a plurality of training images with different titer levels are provided to the classifier for training. Each training digital image may be an RGB image with a predefined titer score known to pinpoint the titer of the first stain. For each training digital image, the system computes a plurality of image features indicative of the first stain (as described herein). Here, the stain color and stain intensity features and associated slide titer levels are used to train a random forest classifier.

[0102]

[0122] Once the classifier 209 has been trained, it is used to classify (step 253) patches in the test image with unknown titer levels. The output of the classifier is a numerical score for each patch, i.e., an estimated titer score for each patch, ranging from 1 to 9, with 1 representing the lowest level (lightest staining) and 9 representing the highest level (darkest staining) (these may be integers or decimals respectively).

[0103]

[0123] Then, in some embodiments, a score for the entire slide image is obtained from the individual titer scores of each patch (step 254). In some embodiments, the score for the entire slide image is a weighted average of the titer scores from the classified patches. For example, if 50 patches are considered, and 20 of these patches have a titer score of 1 and 30 of these patches have a titer score of 9, then ((20*1)+(30*9)) / 50=5.8, where the score of 5.8 represents the weighted average score for the entire slide image (test image). In some embodiments, an alternative method of calculating the score is to take the mode of the patch score histogram. For example, out of 50 patches, 10 patches have a score of 1, 10 patches have a score of 3, and 30 patches have a score of 4, then the mode score for the entire slide is 4.

[0104]

[0124] With reference to FIG. 3C, in some embodiments, this weighted average score (or mode score) may be compared to a pre-defined titer threshold. If the weighted average (mode) score is within the limits defined by the pre-defined titer threshold, then no normalization is required (step 271). On the other hand, if the weighted average score is not within the limits defined by the pre-defined titer threshold (step 272), then normalization may be required, as described elsewhere herein. In some embodiments, the pre-defined titer threshold is in the range of about 3.5 to about 6.5.

[0105]

[0125] HSD Conversion Module

[0126] According to some aspects of the present disclosure, the HSD conversion module 210 may be utilized to normalize the titers of stains in an input image (the "query" image) relative to the titers of stains in a template image, and the resulting normalized image may then be used for further processing, for example, to identify, classify, and score nuclear and / or morphological features.

[0106]

[0127] 3B, the HSD conversion module 210 is responsible for (i) deriving (in the HSD color model) initial color and density distribution coordinates for each pixel in each retained patch in the query image (step 262), (ii) aligning the color and density distribution coordinates derived from the query image with the template color and density distribution coordinates to determine the transformed coordinates for each pixel in each retained patch in the query image (step 263), and (iii) upon receipt of the stain probability values ​​from the HSD classification module 211, recovering RGB from the query image in the HSD color model by using the final transformed coordinates for each pixel in each patch weighted by the received probability values ​​(step 264). Each of these steps will be described in more detail herein.

[0107]

[0128] As described herein, there are circumstances in which titer normalization is performed without first testing the titer of the stain. That is, the titer testing step may not be performed prior to normalization, but rather during normalization, such that an estimated titer of the stain on the slide may be established for suitable alignment and scaling parameters may be derived or retrieved, as described elsewhere herein. In these circumstances, the operation of the HSD conversion module 210 is preceded by the operation of the FOV generation module 206 and the patch generation and retention module 207. As described herein, it is within the retained patches that the HSD coordinates of the pixels of the image are computed. The procedures of steps 250 and 251 as outlined herein may be repeated for the normalization steps 260 and 261, respectively. The acquired image may be divided into a grid of FOVs without repeating the procedures as outlined herein. Of the entire grid of FOVs, those FOVs that meet a threshold criterion (e.g., 80% stain intensity level) are retained. Within each of the retained FOVs, patches that meet some predefined criterion of stain are generated and retained, as described herein.

[0108]

[0129] HSD coordinates (c x ,c y ,D) Derivation

[0130] The Hue Saturation Density (HSD) color model is derived from the Hue Saturation Intensity color model. The idea behind the HSD color model is to apply the RGB-HSI (hue-saturation-intensity) transformation to the optical density (OD) of the individual RGB channels instead of intensity. As will be appreciated by those skilled in the art, the RGB color model is obtained by direct use of the three intensities obtained by a color camera. Since the color components of the HSD model are independent of the amount of stain, the resulting color space is believed to better distinguish the absorption characteristics of different stains. By separating the intensity from the RGB data, the HSI color model is obtained. Without wishing to be bound by any particular theory, it is believed that most of the intensity variations seen in transmitted light microscopy are due to variations in stain concentration. The HSD transformation is therefore defined as the RGB-HSI transformation applied to the optical density values ​​rather than the intensity of the individual RGB channels.

[0109]

[0131] The HSD model uses two color components (c x ,c y ) and density components (D, which are linearly related to the amount of stain). If you do not wish to be bound by any particular theory, the theoretical RGB intensities obtained from varying stain concentrations can be expressed as the color (c x ,c y ) plane. As a result, the color data of a pixel stained with a particular stain (e.g., hematoxylin) constitutes a certain distribution, and F(c x ,c y )

[0110]

[0132] Referring to FIG. 6A, after FOV and patch generation (steps 601 and 602), the HSD coordinates of each pixel in each retained patch are calculated (step 603). This results in color-intensity distribution coordinates (c x ,c y ,D) are given for each pixel. This is achieved by performing an HSD transformation of the input RGB image. As a first problem, those skilled in the art will appreciate that the detected intensity of light transmitted through the specimen and the amount of stain (A) with an absorption coefficient c are governed by the Beer-Lambert law I = I0 e -A·cAnd the optical densities (OD) of the red, green, and blue spectral bands are defined by equation (1):

[0111]

[0133]

[0112]

number

[0113] where ch∈{R,G,B} (1)

[0134] Channel optical density D ch is linearly dependent on the amount of stain, given the absorption value of the stain in channel ch. In some embodiments, the total intensity of the RGB signals is defined as in equation (2):

[0114]

[0135]

[0115]

number

[0116]

[0136] Similarly, the overall measure of OD can be defined as in equation (3):

[0137]

[0117]

number

[0118]

[0138] With reference to FIG. 5A, the origin of the RGB space represents black (i.e., all three principal intensities are zero) and the farthest corner of the cube represents white (all principal intensities are at maximum). The lines connecting these extremes represent all grey values. Each composite colour is represented by a point on this cube. The intensity of a composite colour is expressed as I=(I R +I G +I B) / 3 (the average of the three principal intensities). In the RGB cube, each plane perpendicular to the grayscale diagonal has the property that the points on that plane have equal intensity (Figure 5A shows one such plane). The points on such a plane are restricted to a triangular area whose size depends linearly on the value of I for the particular plane. The grayscale diagonal intersects this triangle at the centroid. By normalizing this equilateral triangle of color to a standardized size, the coordinates of the points on this plane can be made independent of intensity.

[0119]

[0139] Referring again to FIG. 5A, the color triangle is a 2D coordinate system (c) with the centroid at the origin and the positive x-axis passing through the corner with the greatest red intensity. x ,c y ) can be defined. Every point in RGB space can be transformed into intensity-independent color coordinates. For every two RGB points with the same color coordinates, the ratio of RGB intensities is the same. Calculating the color coordinates requires the projection of the RGB data onto a triangle (see Figures 5A and 5B).

[0120]

[0140] Using the projections of FIGS. 5A and 5B for the optical densities of the three channels (see equation (3)), the RGB-to-HSD transformation is defined as follows:

[0121]

number

[0122]

[0141]

[0123]

number

[0124]

[0142] In the case of the HSD model, the resulting (c x ,c y ) plane, C R , C G , and C BIt has the property that a single point is obtained from the RGB points with the same ratio between them, so all the information about the absorption curve is represented in one plane.

[0125]

[0143] The optical density of a channel can be defined as:

[0144]

[0126]

number

[0127]

[0145] Here, I 0,ch is the intensity of channel ch in the absence of stain.

[0146] An overall measure of optical density can be defined as:

[0128]

number

[0129]

[0147] Transformation coordinates (c x ',c y ',D) derivation

[0148] After deriving the HSD coordinates, i.e., performing the RGB image-to-HSD transformation, we calculate the transformed coordinates (c x ',c y In general, the color distribution coordinates (c x ,c y ) is aligned with the color distribution coordinates in the template image to obtain the color distribution transformation coordinates (c x ',c y The intensity distribution coordinates (D) of each pixel in each patch of the test image are aligned (scaled) with the intensity distribution coordinates in the template image to give the intensity distribution transformed coordinates (D') (step 605). The steps of alignment (including derivation of parameters to perform the alignment) and scaling are described herein.

[0130]

[0149] Transformation of derived coordinates

[0150] Transform the color-intensity distribution coordinates of the test image to match the corresponding class distribution in the template image (step 604), (c x ,c y ) plane is performed. To represent the color distribution, F(c x ,c y ) is used.

[0131]

[0151] F(T(c x ,c y ))~F template (c x ,c y )

[0152] The procedure of color distribution localization involves two steps: (1) extraction of statistical parameters from the template slide and (2) transformation of the 2D color distribution, as described below.

[0132]

[0153] Statistical parameter derivation / HSD parameter database

[0154] The statistical parameters are required for the derivation of the transformation coordinates for both the registration and scaling steps described herein. The statistical parameters may be derived or recalculated from the HSD parameter database 212.

[0133]

[0155] In some embodiments, the derived statistical parameters include the mean (μ) and angle (φ) of the stain class distribution in the template image. x The angle (φ) of the stain class distribution (e.g., hematoxylin) with respect to the axis is derived by calculating the principal eigenvector. In some embodiments, (c x ,c yThe first eigenvector of the covariance matrix of the pair is solved, and the angle is solved in 2D color space. In some embodiments, the statistical parameters also include a scaling parameter. In some embodiments, the scaling parameter is F template After translating the entire distribution to the origin (see Figures 5A and 5B), a rotation step along an angle (φ) x Finally, the scaling parameter c x axis and c y The statistical parameters are defined after projection of the rotation distribution onto each of the axes, and include the minimum, 1st, 25th, 50th, 75th, and 90th percentiles, and maximum of the projection values ​​along each axis. For a method of deriving each of the statistical parameters, see J. A. van der Laak, "Hue-saturation-density (HSD) model for stain recognition." "Hue Saturation Density (HSD) Model for Stain Recognition in Digital Images from Transmitted Light Microscopy," Cytometry, vol. 39, no. 4, pp. 275-284, 2000, the entire disclosure of which is incorporated herein by reference.

[0134]

[0156] Those skilled in the art will appreciate that the alignment of color distribution coordinates and the spacing of density distribution coordinates are The derivation of statistical parameters for scale can be quite computationally intensive. Also, as will be appreciated by those skilled in the art, the variance of the analysis can be reduced if the data is generated from a controlled source. In fact, the variance from the tissue source can be reduced, leaving only the variance of the stain. Thus, in an attempt to speed up the computation time, reduce computational costs, and reduce biases associated with tissue types, pathology, etc., applicants propose the use of a database of standardized "reference" values ​​of statistical parameters derived from tissues stained according to assay standards. Without wishing to be bound by any particular theory, it is believed that if there is bias or error in the estimation of the parameters, turning "off" normalization may result in a resulting normalized image that is inferior in terms of image quality. For example, if an image is very dark for biological reasons but not dark due to the staining procedure, and this is captured by the normalization parameters, normalization will cause the image to lose its biological meaning.

[0135]

[0157] In some embodiments, the database of statistical parameters includes reference values ​​for each of a set of different titers of the stain to be normalized. In fact, the database may include statistical parameters for stains at titer levels 1-9. For example, the database may include the mean, angle, scaling parameters, etc. of the first stain at titer 4. The database may also include the mean, angle, scaling parameters, etc. of the first stain at titer 5. Similarly, the database may include the mean, angle, scaling parameters, etc. of the second, third, ... nth stain at titer levels ranging from 1 to 9. It will also be appreciated by those skilled in the art that statistical parameters may be provided for any decimal titer level (e.g., a titer estimated to be approximately 4.5). In some embodiments, parameters are extracted from a set of slides using FOV and patches as described above. These images are then classified with a titer classification algorithm and the resulting predicted titer is associated with the extracted parameters. When a new slide is generated, it is classified and the results are used to look up the corresponding parameters in the configuration table.

[0136]

[0158] By utilizing the HSD parameter database 212, when a normalized test slide is obtained, the titer level of the test image may be estimated using the procedures described herein (see FIG. 3B and FIG. 6). Once the titer level (weighted score of the test image) is estimated before or during normalization, the reference value database 212 may be consulted by the HSD conversion module 211, and the statistical parameters corresponding to the estimated titer level of the query image may be retrieved as if they were actual parameters specific to the query slide and used in the registration and scaling calculations. Such normalized reference values ​​may be stored in the database 212 and accessed by the system 200 as needed. In some embodiments, the statistical parameters are used for both registration and scaling.

[0137]

[0159] Alignment of color distribution coordinates

[0160] After the statistical parameters are derived or retrieved from the database 212, the registration is performed (step 604). In general, the color distribution coordinates (c x ,c y ) are aligned with the template color distribution coordinates by using derived or readout statistics to obtain the aligned color distribution coordinates (c x ',c y ').

[0138]

[0161] As described herein, F(c x ,c y ) represents the color distribution of the test image to be normalized. The process of stain normalization is x ,c y ) distribution mean and Σ(Σ is F(c x ,c y ) is rotated along the principal eigenvector of F(c x ,c y The method starts by translating the entire ) distribution. Then piecewise linear scaling is applied to align landmarks from the current distribution to the landmarks of the template slide. In the next step, the scaled distribution is rotated back along the derived angle and aligned with the principal eigenvector of the corresponding distribution in the template test image. The final step of the transformation involves translating the distribution to the derived mean. In some embodiments, the output of the alignment is the transformed color distribution coordinates (c x ',c y ').

[0139]

[0162] For the average subtraction step, (c x,c ,c y,c )=(c x ,c y )-(\mu x,i ,\mu y,i ). Then, (c x,cr ,c y,cr )=Ui * (c x,c ,c y,c ) is taken into account, and the singular value decomposition of the image covariance matrix is ​​multiplied by the unit matrix U to obtain (c x ,c y ) distribution along the principal eigenvector of the distribution. In the third step, the distribution is rotated again along the principal eigenvector of the template, i.e., (c x,crr ,c y,crr )=U t * (c x,cr ,c y,cr Finally, we translate the entire distribution to match the mean of the template image, i.e., (c x ',c y ')=(c x,crr ,c y,crr )-(\mu x,t ,\mu y,t ).

[0140]

[0163] Density Scaling

[0164] After the statistical parameters are derived or retrieved from the database 212, scaling is performed using the derived or retrieved parameters (step 605). In general, the density distribution coordinates (D) of each pixel in each patch are matched with the template density distribution coordinates to give scaled color distribution coordinates (D').

[0141]

[0165] The density component (D) of the test image of the HSD color model is transformed to match the density profile of the template image. In some embodiments, the distribution is normalized by matching its mean and standard deviation with the statistical parameters in the template image. Thus, the transformed density distribution is determined by:

[0142]

number

[0143]

[0166] where μ and

[0144]

number

[0145] are the weighted mean and weighted standard deviation of the concentration distribution,

[0146]

number

[0147] , μ template is the corresponding value in the template, and D and D' represent the concentrations before and after scaling, respectively.

[0167] Alternatively, the transformed concentration distribution may be determined by:

[0148]

[0168] Dt=D-\mu+\mu template

[0169] \mu d =mean(Dt) (desired mean value)

[0170] Ds=Dt / \sigma*\sigma_t

[0171] \mu o =mean(Ds) (mean obtained after normalization for standard deviation)

[0172] D'=Ds-\mu o +\mu d

[0173] Weighting of transformed coordinates

[0174] The final transformed coordinates in HSD space are a weighted sum of the original coordinates and the coordinates aligned and scaled by the stain class (e.g., hematoxylin) in the template. In this way, pixels that do not belong to the stain class (e.g., hematoxylin) will remain unchanged.

[0149]

[0175] For each pixel in the patch, the converted color distribution and intensity distribution coordinates (c x ',c yAfter the coordinates of each pixel, D′, D′, are obtained (steps 604 and 605), the final transformed coordinates of each pixel are weighted by a probability value that represents the probability that any particular pixel is a stain-class pixel (e.g., a hematoxylin pixel) (step 607). These probability values ​​are derived for each pixel in the test image using a classifier, such as a naive Bayes classifier, that has been trained to determine the probability that the pixel is a stain-class pixel (step 606). Training of the classifier is described elsewhere in this specification (see HSD Classification Module).

[0150]

[0176] The final coordinates (c x,f ,c y,f ,D f ) is as follows:

[0177] (c x,f ,c y,f )=w stain (c x ',c y ')+w no-stain (c x ,c y )

[0178] D f =w stain D'+w no-stain D

[0179] Here, w stain is the probability that a pixel belongs to the stain class, and w no-stain is the probability that the pixel does not belong to this stain class.

[0151]

[0180] Inverse transformation using weighted transformed coordinates

[0181] In a final step, the weighted transformed coordinates are used to reconstruct the test image in RGB color space (step 607), which may be accomplished by performing the inverse of the HSD transform described herein.

[0152]

[0182] (c x ,c y ) to RGB is converted using Equation I R =I (c x+1).

[0183]

[0153]

number

[0154]

[0184] Now the individual channel intensities can be converted back to RGB using the following equations:

[0185] I cb =I 0,cb e -Dcb

[0186] In some embodiments, in the case of color registration during RGB reconstruction, instead of taking the original hematoxylin color reference vector used for color deconvolution, a normalized average RGB OD vector from pure hematoxylin pixels in the template image is used for reconstruction.

[0155]

[0187] HSD Classifier Module

[0188] In some embodiments, a classifier is trained to recognize pixels in the template image that are stained pixels of the stain whose titer is being normalized from non-stained pixels, i.e., to provide pixel classification results, using the HSD coordinates (c x ,c y ,D) are used as features.

[0156]

[0189] In some embodiments, a classifier is trained to predict whether a pixel is of a particular stain or not by considering a pixel to belong to a stain class (e.g., hematoxylin class) if the following criteria are met:

[0157]

[0190] (a) The image is not white. If the overall optical density of an RGB image is less than 0.2 and the optical density from each of the RGB channels is less than 0.25, the image is considered white. The derivation of optical density is described herein.

[0158]

[0191] (b) The hue of the image is in the blue range. In some embodiments, the hue is obtained by HSI (Hue Saturation Intensity) color separation. The hue is an angle that defines the chromaticity of the image. For example, if the hue value is between 180 and 240 degrees, the resulting color is blue.

[0159]

[0192] (c) "Cell-like" structures are present in the template image, i.e., the output of the DoG filter is higher than 0. The DoG filter and its application to search for "speckles" and cell-like structures are described herein.

[0160]

[0193] After estimating the pixels belonging to the stain class, the HSD coordinates (c x ,c y A naive Bayes classifier is trained on the template image for hematoxylin pixels vs. non-hematoxylin pixels by using (D) as features. In some embodiments, the training set is obtained from pixels selected from the FOV / patch in the template image.

[0161]

[0194] Other components for implementing embodiments of the present disclosure

[0195] The system 200 of the present disclosure may be connected to a specimen processing device capable of performing one or more preparation processes on the tissue specimen, including, but not limited to, deparaffinizing the specimen, conditioning the specimen (e.g., cytoconditioning), staining the specimen, performing antigen readout, immunohistochemical staining (including labeling) or other reactions, and / or in-situ hybridization (e.g., SISH, FISH, etc.) staining (including labeling) or other reactions, as well as other processes that prepare the specimen for microscopy, microanalysis, mass spectroscopy, or other analytical methods.

[0162]

[0196] The processor can apply fixatives to the specimen, including crosslinkers (such as aldehydes (e.g., formaldehyde, paraformaldehyde, and glutaraldehyde) as well as non-aldehyde crosslinkers), oxidants (e.g., metal ions and complexes such as osmium tetroxide and chromate), protein denaturants (e.g., acetic acid, methanol, and ethanol), fixatives of unknown mechanism (e.g., mercuric chloride, acetone, and picric acid), combination reagents (e.g., Carnoy's fixative, methacam, Bouin's solution, B5 fixative, Rossmann's solution, and Gendre's solution), microwave, and mixed fixatives (e.g., excluded volume and vapor fixatives).

[0163]

[0197] If the specimen is a paraffin-embedded sample, the sample can be deparaffinized by using an appropriate deparaffinization liquid. After the paraffin is removed, any number of substances can be applied to the specimen in succession. These substances can be for pretreatment (e.g., reversal of protein crosslinks, exposure of nucleic acids, etc.), denaturation, hybridization, washing (e.g., stringency washing), detection (e.g., linking visual or marker molecules to probes), amplification (e.g., amplification of proteins, genes, etc.), counterstaining, and mounting.

[0164]

[0198] The sample processor is capable of applying a wide range of materials to the sample. These materials include: The substances may include, but are not limited to, stains, probes, reagents, washes, and / or modifiers. These substances may include fluids (e.g., gases, liquids, or gas / liquid mixtures), etc. Fluids may include solvents (e.g., polar solvents, non-polar solvents, etc.), solutions (e.g., aqueous or other types of solutions), etc. Reagents may include, but are not limited to, stains, wetting agents, antibodies (e.g., monoclonal antibodies, polyclonal antibodies, etc.), antigen retrieval solutions (e.g., aqueous or non-aqueous antigen buffers, antigen retrieval buffers, etc.). Probes may be isolated nucleic acids or isolated synthetic oligonucleotides attached to a detectable label or reporter molecule. Labels may include radioisotopes, enzyme substrates, cofactors, ligands, chemiluminescent or fluorescent agents, haptens, and enzymes.

[0165]

[0199] The specimen processing equipment can be automated instruments such as the BENCHMARK XT and SYMPHONYC instruments sold by Ventana Medical Systems, Inc. is the assignee of numerous U.S. patents that disclose systems and methods for performing automated analyses, including U.S. Patent Nos. 5,650,327, 5,654,200, 6,296,809, 6,352,861, 6,827,901, and 6,943,029, and U.S. Patent Application Publication Nos. 2003 / 0211630 and 2004 / 0052685, the entire contents of each of which are incorporated herein by reference. Alternatively, the specimens may be processed manually.

[0166]

[0200] After the specimen is processed, the user can transfer the specimen-bearing slide to the imaging device. In some embodiments, the imaging device is a brightfield imaging slide scanner. One brightfield imaging device is the iScan Coreo brightfield scanner sold by Ventana Medical Systems, Inc. In an automated embodiment, the imaging device is a digital pathology device such as that disclosed in International Patent Application No. PCT / US2010 / 002772 (Patent Publication No. WO / 2011 / 049608) entitled "IMAGING SYSTEMS AND TECHNIQUES" or U.S. Patent Application No. 61 / 533,114, filed September 9, 2011, entitled "IMAGING SYSTEMS, CASSETTES, AND METHODS OF USING THE SAME." International Patent Application No. PCT / US2010 / 002772 and U.S. Patent Application No. 61 / 533,114 are hereby incorporated by reference in their entirety.

[0167]

[0201] The imaging system or device may be a multispectral imaging (MSI) system or a fluorescence microscope system. As used herein, the imaging system is MSI. MSI generally provides computerized microscope-based imaging systems for analysis of pathology specimens by providing access to the spectral distribution of an image at the pixel level. Although a variety of multispectral imaging systems exist, a common operational aspect of all of these systems is the ability to construct a multispectral image. A multispectral image is the capture of image data at specific wavelengths or specific spectral bandwidths across the electromagnetic spectrum. These wavelengths may be selected through the use of optical filters or other instruments capable of selecting predetermined spectral components, including electromagnetic radiation at wavelengths beyond the visible light range, such as infrared (IR).

[0168]

[0202] The MSI system may include an optical imaging system, some of which may include a spectral selection system that is adjustable to define a predetermined number N of discrete light bands. The optical system may be configured to image a tissue sample that is transilluminated with a broadband light source onto a photodetector. The optical imaging system may, in one embodiment, include a magnification system, such as a microscope, that is approximately spatially aligned with one optical output of the optical system. The system constructs a series of images of the tissue such that the spectrally selective system is adjusted or adjusted (e.g., by a computer processor) so that images are acquired in different discrete spectral bands. The device may also include a display on which at least one visually perceptible image of the tissue appears from the series of acquired images. The spectrally selective system may include an optically dispersive element, such as a diffraction grating, a collection of optical filters such as thin film interference filters, or any other system configured to select specific passbands from the spectrum of light transmitted from the light source through the sample to the detector in response to either user input or preprogrammed processor commands.

[0169]

[0203] In an alternative embodiment, the spectrally selective system defines a plurality of light outputs corresponding to N discrete spectral bands. This type of system takes a transmitted light output from the optical system and spatially redirects at least a portion of the light output along N spatially distinct light paths in an identified spectral band so as to image the sample on the detection system along a light path corresponding to the identified spectral band.

[0170]

[0204] Embodiments of the subject matter and operations described herein may be implemented in digital electronic circuitry, or in computer software, firmware, or hardware (including the structures disclosed herein and structural equivalents thereof), or in any combination of one or more of these. Embodiments of the subject matter described herein may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a computer storage medium for execution by or control of the operation of a data processing apparatus. Any of the modules described herein may include logic executed by a processor. As used herein, "logic" refers to any information in the form of instruction signals and / or data that can be applied to affect the operation of a processor. Software is one example of logic.

[0171]

[0205] A computer storage medium may be or may be included in a computer readable storage device, a computer readable storage substrate, a random or sequential access memory array or device, or a combination of one or more of these. Additionally, a computer storage medium may not be a propagating signal, but may be a source or destination of computer program instructions encoded as an artificially generated propagating signal. A computer storage medium may also be or may be included in one or more separate physical components or media (e.g., multiple CDs, disks, or other storage devices). Operations described herein may be implemented as operations performed by a data processing device on data stored in one or more computer readable storage devices or data received from other sources.

[0172]

[0206] The term "programmed processor" includes any type of apparatus, device, or machine for processing data, including, by way of example, a programmable microprocessor, computer, system-on-chip, or any combination thereof. Apparatus includes special purpose logic circuitry (e.g., a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC)). Apparatus also includes hardware and code that creates an execution environment for a given computer program (e.g., code that constitutes a processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or any combination of one or more of these). The apparatus and execution environment can implement a variety of different computing model infrastructures, such as web services, distributed computing, and grid computing infrastructures.

[0173]

[0207] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, such as a compiled or interpreted language, declarative or procedural language, and can be deployed in any form, such as a standalone program or a module, component, subroutine, object, or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program can be stored in part of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a file dedicated to the program in question, or in several coordinated files (e.g., files that store one or more modules, subprograms, or code portions). A computer program can be deployed to be executed on one computer or on several computers located at one site or distributed across several sites and interconnected by a communication network.

[0174]

[0208] The processes and logic flows described herein may be performed by one or more programmable processors that execute one or more computer programs to perform operations by operating on input data and generating output. These processes and logic flows may be performed by special purpose logic circuitry (e.g., a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC)). Also, an apparatus may be implemented as special purpose logic circuitry (e.g., a Field Programmable Gate Array (FPGA) or an ASIC (Application Specific Integrated Circuit)).

[0175]

[0209] Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read-only memory, a random access memory, or both. The essential elements of a computer are a processor to perform operations according to instructions and one or more memory devices to store instructions and data. Also, a computer will generally include one or more mass storage devices (e.g., magnetic, magneto-optical, or optical disks) to store data, or be operatively coupled to receive, transmit, or both data from one or more mass storage devices. However, a computer need not necessarily have such devices. Furthermore, a computer may be embedded in another device (e.g., a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), or many other devices). Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

[0176]

[0210] To enable interaction with a user, embodiments of the subject matter described herein may be implemented on a computer having a display (e.g., an LCD (liquid crystal display), LED (light emitting diode) display, or OLED (organic light emitting diode) display) to display information to the user, as well as a keyboard and pointing device (e.g., a mouse or trackball) by which the user may provide input to the computer. In some implementations, a touch screen may be used to display information and accept input from the user. Other types of devices may be used to enable interaction with the user as well. For example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user may be received in any form, such as acoustic, speech, or tactile input. The computer may also interact with the user by sending and receiving documents to a device used by the user (e.g., sending a web page to a web browser on the user's client device in response to a request received from the web browser).

[0177]

[0211] An embodiment of the subject matter described herein may be implemented in a computer system including a back-end component (e.g., a data server), a middleware component (e.g., an application server), or a front-end component (e.g., a client computer having a graphical user interface or a web browser through which a user may interact with an embodiment of the subject matter described herein), or any combination of one or more such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LANs") and wide area networks ("WANs"), interconnected networks (e.g., the Internet), and peer-to-peer networks (e.g., ad-hoc peer-to-peer networks). For example, network 20 of FIG. 1 may include one or more local area networks.

[0178]

[0212] A computer system may include any number of clients and servers. Clients and servers are generally remote from each other and typically interact through a communications network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server sends data (e.g., HTML pages) to a client device (e.g., for displaying the data to and accepting user input from a user interacting with the client device). Data generated at the client device (e.g., the result of a user interaction) may be received from the client device at the server.

[0179]

[0213] Working Example EXAMPLES

[0180]

[0214] Imaging algorithm performance

[0215] To demonstrate the effectiveness of color normalization, we evaluated the performance of cell detection algorithms in images with and without normalization at various titer levels. The number of cells was kept relatively constant at various titers, but an increasing trend was observed when no normalization was applied. Figure _ and Figure _ show the variation for titer 4 for 12 slides (from 4 blocks) with different percentages of stained and unstained cells relative to the total cell count. As shown, at titer levels 4 and above, the number of unstained cells is overestimated for the unnormalized images, but this issue was mitigated when stain normalization was applied.

[0181]

[0216] Dataset and results

[0217] The performance of the proposed method was evaluated on a dataset consisting of 3020 whole slide images obtained from three different scanners (for convenience, referred to as Scanner 1, Scanner 2, and Scanner 3). For each scanner, images of three different markers were collected: HER2, ER, and Ki67. These images come from 12 blocks, with three different parts available per block. For each block and part, results for titer levels 1-9 are provided. Also, for some of the markers / scanners, several control whole slides are available. In Table 1 below, the number of whole slides available for the different markers / scanners is shown. Table 1: Total slide distribution

[0182] [Table 1]

[0183]

[0218] Regarding titer level estimation, we present some results for Scanner 1 for each available marker by using all slides belonging to one block for testing and the other block for training. In Tables 2, 3 and 4 at the end of this section, we show the number of patches classified at each titer level for each slide and the final averaged class. Table 2: Titer estimation results

[0184] [Table 2]

[0185]

[0219] For the stain normalization portion of the algorithm, some results for normalizing very thin and very dark slides are shown in Figures 8 and 9. Also, Figure 10 shows the performance of the cell detection algorithm on images with and without stain normalization.

[0186]

[0220] FIG. 8(a) shows an example FOV from a slide with light hematoxylin staining (Titer 1), normalized to a Titer 4 template in FIG. 8(b). In FIG. 8(b), it can be seen that the normalization algorithm makes cells much easier to identify. Similarly, FIG. 8(c) shows an example FOV from a Titer 9 slide, the corresponding image normalized to Titer 4 is shown in FIG. 8(d).

[0187]

[0221] Taking HER2 for example, an overestimation of the lower titer levels can be noted. This is due to staining differences between blocks, as can be seen in Figure 9. For the blocks shown in Table 2 (Figure 9A), the hematoxylin staining is The FOV in Fig. 9B (belonging to a different block) is much darker than that in Fig. 9B. These results also indicate the need for normalization, since a particular titer may appear differently for different blocks even with the same marker and scanner. Similar results can be observed for other markers. Fig. 9(a) shows an example FOV for titer 1 from the block used to give the results in Table 2. For this block, the titer is overestimated for the lower blocks, so an example FOV for the same titer is shown in Fig. 9(b). The fact that the hematoxylin level is much darker for the test FOV than the FOV used for training can be seen, providing a reason for the overestimation and indicating the need for normalization, given that the intensity of the staining varies in different blocks, even for the same marker and scanner. EXAMPLES

[0188]

[0222] HSD coordinate alignment for pure HTX stained pixels

[0223] HSD transformation is performed on both the template and the target WSI to convert the RGB optical density (OD) values ​​into HSD coordinates (c x ,c y ,D). The first two coordinates contain color information that is independent of the amount of stain. On the other hand, the last coordinate is a density component that is linearly related to the stain concentration. x ,c y ) component distribution is aligned with that in the template and the intensity component is scaled to match the template. In our framework, instead of applying the HSD coordinate alignment to all stains, we adopt this alignment process only for the normalization of pure HTX stains, in order to maximally match the color-intensity distribution of HTX stains in the target image with that in the template image. The final normalized pure HTX pixel is represented by the aligned HSD coordinates (c x ',c yIn our experiments, when trying to align HTX stains whose hue saturation distributions differ dramatically from the template, x and c y It has been shown that histogram stretching for x can lead to severe color artifacts, and therefore this step shall be omitted for HTX normalization in IHC images. EXAMPLES

[0189]

[0224] Special handling of HTX stain mixed pixels

[0225] When HTX stains are mixed with other stains, it is not possible to derive the actual color and density distribution of the HTX stains in the mixture and use it for HSD coordinate registration. Therefore, we perform a "global" registration on the average color and density of the pure HTX stains in the template image. To do this without modifying the DAB stains in the mixture, we apply color deconvolution to both the template and target images. HTX I / (DAB I ) is the HTX (DAB) component obtained by color deconvolution of the target image, and HTX T (DAB T ) is the HTX(DAB) component of the template image. T ΗΤΧ to have the same mean and standard deviation as I Shift and scale to get HTX f Then, get H.T. f and DAB I RGB reconstruction is performed by using the normalized average RGB OD vector from pure HTX pixels in the template image. For color registration during RGB reconstruction, instead of adopting the original HTX color reference vector used in color deconvolution, the normalized average RGB OD vector from pure HTX pixels in the template image is used for reconstruction. Background pixels and other non-HTX stains that do not colocalize with HTX are left unchanged without normalization. EXAMPLES

[0190]

[0226] Discrimination of pure HTX stains and HTX stain mixtures

[0227] In the following, we describe how to distinguish pixels of pure HTX and HTX mixtures. Considering that a pixel can belong to a mixture of hematoxylin and eosin stains, we use a naive Bayes classification to derive the probability that the pixel belongs to hematoxylin, eosin, or background. A classifier is trained on the HSD coordinates of the pixels of the template image. The final transformed coordinates are then a weighted sum of the stain-specific transformed coordinates using the class probabilities as weights. In our framework, only two classes are considered, HTX and non-HTX, to facilitate generalization of the method to other types of stains that users want to normalize. The classifier is trained with the HSD coordinates of the pixels of the template image. Our experiments show that classification errors of this simple classifier can introduce undesirable color artifacts when using class probabilities as weights, especially for class boundary pixels. Therefore, we apply the weighting scheme only to pure HTX pixels defined using the following criteria:

[0191]

[0228] The pixel is not white, i.e. the overall OD is less than 0.2 and the OD from at least one of the RGB channels is greater than 0.25.

[0229] The hue of the pixel is within a certain blue range in HSD space.

[0192]

[0230] Some "cell-like" structures are present, i.e. the output of the DoG filter applied to the separated HTX components is greater than zero.

[0231] To identify pixels of HTX mixtures, a DoG filter is applied to the separated DAB components. If the output of the DoG filter is greater than 0, and both the separated DAB and HTX components of the pixel are higher than a fixed threshold (th=0.2), and the hue of the pixel is outside a predefined blue range, then the pixel is determined to be an HTX mixture. Other pixels are left unchanged. EXAMPLES

[0193]

[0232] Whole Slide Normalization

[0233] It is noted that the number of pixels in the WSI is very large. Therefore, using all pixels in the WSI to solve the statistics required for normalization is computationally expensive and unnecessary. Instead, a general method is designed to select pixels representative of HTX stains in the WSI. In the present embodiment, the top 50 field of view (FOV) images (600x600 pixels) whose average separated HTX content is closest to the 80th percentile of all FOVs in the WSI are first selected. Figure 12 shows an example of the selected FOV. After that, patches (100x100 pixels) that contain sufficient HTX stains are further selected from each FOV. This is achieved by discarding patches that mainly contain background pixels (more than 70%). After patch selection, the criteria described in Example 4 are used to identify pure HTX pixels. These pixels are used to solve all statistics in the above embodiment. In this step, a pixel is considered background if its OD is lower than the 25th percentile of all blue pixels in the FOV, where blue pixels are identified as pixels whose hue is within a predefined range of blue in HSD space. EXAMPLES

[0194]

[0234] result

[0235] We evaluate the performance of the proposed method on a dataset consisting of 324 HER2-stained IHC WSIs. The slides are derived from 12 breast cancer tissue blocks, with 27 slides cut from each block. Slides from the same blocks are stained with HTX at nine control concentration levels, represented by a titer number with values ​​from 1 to 9, where 1 indicates the lightest staining and 9 indicates the darkest staining. Each HTX titer is applied to a group of three consecutive slides. As a template image, we select the WSI from titer 4.

[0195]

[0236] To qualitatively evaluate the performance of the proposed method, Fig. 11 shows two example FOVs from slides with HTX concentration levels of Titer 1 and Titer 9, respectively. The HTX stains in the normalized FOV images are visually more consistent across different concentration levels, while the DAB stains are unchanged from the original slide.

[0196]

[0237] To evaluate the impact of the proposed method on image analysis algorithms, an in-house off-the-shelf HER2 tumor cell detection algorithm is applied to 324 slides. Specifically, for cell count readouts for each slide, multiple FOVs are processed from that slide and these FOVs are positioned between slides from the same tissue block. Figure 3(a) shows the average cell count readouts for each titer for one tissue block. In general, before normalization, there is a clear dependence of the number of unstained (blue) cells on the HTX concentration level, but after normalization, such dependence is greatly reduced. For stained (brown) cells, the dependence is low both before and after normalization. To further demonstrate the consistency of the algorithm output between different HTX concentration levels, the average unstained cell count for each titer is normalized against the same readout generated by a titer 4 slide from the same tissue block. With good output consistency, this number should remain roughly constant from titer to titer and approach a value of 1 (equal to 1 for titer 4). Figure 12 clearly shows the improved consistency between all titers. It is also observed that even after normalization, the Titer 9 slide still produces a much higher cell count than the Titer 4 slide. This is because the extremely high concentration of HTX results in severe background staining, causing the algorithm to produce a large number of false positive cells in the background, which we know cannot be resolved by stain normalization alone.

[0197]

[0238] Therefore, we believe that the variation of HTX stain poses a challenge for IHC image analysis. This application presents a framework for single-stain normalization that can normalize HTX stains by aligning their color-density distribution to a template image in HSD color space. Normalization of HTX in stain mixtures is handled by aligning the mean and standard deviation of the separated HTX components and using the average RGB OD vector of pure HTX pixels in the template image as the HTX color reference vector during RGB reconstruction. Experimental results show that the proposed method improves the consistency of HTX stains among different images without affecting DAB stains, and significantly reduces the dependency of image analysis algorithms on HTX stain variation. The method can be extended to other IHC stains, which is a future work.

[0198]

[0239] Although the present disclosure has been described with reference to a number of exemplary embodiments, it is to be understood that many other improvements and embodiments may be devised by those skilled in the art that fall within the spirit and scope of the principles of the present disclosure. More particularly, reasonable variations and modifications may be made in the components and / or configurations of the subject combination configurations within the scope of the above disclosure, the drawings, and the appended claims without departing from the spirit of the present disclosure. Alternative uses, as well as variations and modifications in the components and / or configurations, will be apparent to those skilled in the art.

[0199]

[0240] Provided herein is a method for examining a titer of a first stain in a whole slide image of a biological sample stained with one or more stains and normalizing the whole slide image to the titer of the first stain, the method comprising: calculating a weighted average titer score for all slide images based on the derived first stain image features; normalizing all slide images to a template image if the calculated weighted average score is not within a predetermined titer range; Including, (a) aligning the color and density distribution of the whole slide image with that of the template image, where the color and density distributions of both the whole slide image and the template image are derived within a color model that incorporates density information; and (b) inverse transforming the whole slide image within the color model that incorporates density information using the weighted transformation coordinates. A method is further disclosed, comprising reconstructing an RGB image by: and normalizing by:

[0200]

[0241] A method is further disclosed in which a weighted average titer score is calculated by (a) deriving a plurality of first stain image features from each of a series of image patches in a whole slide image, and (b) classifying the plurality of image features derived from each of the image patches by using a trained feature identification classifier.

[0201]

[0242] A method is further disclosed in which a set of image patches is derived by (b) extracting a predetermined number of FOVs from the entire slide image, (b) computing a set of patches for each extracted FOV, and (c) retaining patches from the set of patches for each extracted FOV that satisfy a threshold patch criterion.

[0202]

[0243] A method is further disclosed, wherein the first stain image feature is a stain color feature and a stain density feature.

[0244] The color and intensity distributions of all the slide images are calculated by (i) performing a transformation within the image patches of all the slide images to obtain the color and intensity distribution coordinates (c x ,c y ,D), and (ii) deriving the resulting color distribution coordinates (c x ,c y ) to obtain the aligned color coordinates (c x ',c yThe method is further disclosed, in which the color-intensity distribution is aligned with the color-intensity distribution of the template image by (iii) scaling the intensity distribution (D) obtained from the whole slide image to have the same weighted mean and weighted standard deviation as the template intensity distribution to provide a scaled intensity distribution (D') for each pixel of each image patch.

[0203]

[0245] The weighted transformation coordinates include (i) calculating the probability that a pixel in the image patch is a first stain pixel, and (ii) calculating the aligned color distribution coordinates and the scaled intensity distribution coordinates (c x ',c y A method is further disclosed in which the weighting factor is derived by:

[0204]

[0246] A method is further disclosed in which predetermined statistical parameters are used to match the obtained color-intensity distribution with the color-intensity distribution of a template image, and the predetermined statistical parameters selected are specific to a titer level that approximates a weighted average titer score of all slide images.

[0205]

[0247] Further disclosed is a method, wherein the first stain is hematoxylin.

[0248] Further disclosed is a method, wherein the predetermined titer range is 4-6.

[0249] A method is further disclosed, wherein the color module incorporating density information is an HSD color module.

[0206]

[0250] 1. An imaging system for normalizing a titer of a first stain in a query image to a titer of the first stain in a template image, the query image being an image of a biological sample stained with at least a first stain, the imaging system comprising: (i) one or more processors; and (ii) coupled to the processor(s) and, when executed by the one or more processors, deriving color and intensity distribution coordinates for each pixel of the generated patch in the query image within a color module incorporating the intensity information; providing transformed color and intensity distribution coordinates for each pixel of the generated patch by transforming the derived color and intensity distribution coordinates for each pixel of the generated patch using predetermined alignment and scaling parameter values ​​specific to the estimated titer level of the query image; reconstructing an RGB image by inverse transforming the query image in a color model incorporating intensity information using the transformed color-intensity distribution coordinates weighted by pixel probability values; and a memory storing computer-executable instructions that cause one or more processors to perform operations that include:

[0207]

[0251] There is further disclosed an imaging system further comprising a staining device.

[0252] Further disclosed is an imaging system, wherein the biological sample is stained with at least two stains.

[0208]

[0253] The color distribution coordinates (c) derived for each pixel of the generated patch are transformed so that the color-intensity distribution coordinates derived for each pixel of the generated patch have the same mean and orientation as the template color coordinates (a). x ,c y ) is shifted and rotated to obtain the transformed color coordinates (c x ',c y The imaging system is further disclosed, comprising: (a) providing a transformed density distribution (D') for each pixel of the generated patch; and (b) scaling the resulting density distribution (D) for each pixel of the generated patch to have the same weighted mean and weighted standard deviation as the template density distribution, thereby providing a transformed density distribution (D') for each pixel of the generated patch.

[0209]

[0254] Further disclosed is an imaging system, wherein alignment and scaling parameter values ​​specific to the first stain at a plurality of titer levels are stored in a memory.

[0255] An imaging system is further disclosed in which an estimated titer level of the query image is determined by calculating a weighted average titer score of the query image based on the derived first stain color and intensity features, and selected alignment and scaling parameters approximate the weighted average titer score of the query image.

[0210]

[0256] An imaging system is further disclosed, wherein a weighted average score is calculated by (a) deriving a plurality of first stain image features from the generated patches in the query image, and (b) classifying the plurality of image features derived from each of the generated patches by using a trained titer discrimination classifier.

[0211]

[0257] An imaging system is further disclosed, wherein the titer discrimination classifier is a multi-class classifier trained on first stain color-intensity features derived from the standardized samples by using the first stain titer level as a class indicator.

[0212]

[0258] An imaging system is further disclosed in which the patches are generated by: (b) extracting a predetermined number of FOVs from a query image; (b) generating a set of patches for each extracted FOV; and (c) retaining patches from the set of patches for each extracted FOV that satisfy a threshold patch criterion.

[0213]

[0259] An imaging system is further disclosed in which weighted transformed color-density distribution coordinates are derived by (i) calculating a probability that the pixel is a first stain pixel, and (ii) weighting the transformed color-density distribution coordinates with the calculated probability.

[0214]

[0260] An imaging system is further disclosed, wherein the color module incorporating density information is an HSD color module.

[0261] 1. A non-transitory computer readable medium for examining a titer of a first stain in a whole slide image of a biological sample stained with one or more stains and normalizing the whole slide image to the titer of the first stain, comprising: calculating a weighted average titer score for all slide images based on the derived first stain image features; The titer of the whole slide image of the first stain was calculated by multiplying the titer of the first stain of the template image. and normalizing all slide images to the iterator. Deriving color and intensity distribution coordinates in the query image within a color model incorporating intensity information; aligning color distribution coordinates in the derived query image with color distribution coordinates in the template image to provide transformed color distribution coordinates, the alignment including shifting and rotating the color distribution coordinates in the derived query image to have the same mean and orientation as the template color distribution coordinates, the alignment step utilizing predefined alignment parameters aligned with the computed weighted average titer score of all slide images; scaling the derived concentration distribution coordinates in the query image with the concentration distribution coordinates of the template image to provide transformed concentration distribution coordinates, the scaling including transforming the derived concentration distribution coordinates to have the same weighted mean and weighted standard deviation as the template concentration distribution coordinates, the scaling step utilizing predefined scaling parameters aligned with the computed weighted average titer score of the entire slide image; reconstructing an RGB image by inverse transforming the query image in a color model incorporating intensity information using the weighted transformed color-intensity distribution coordinates; Further disclosed is a non-transitory computer readable medium normalized by:

[0215]

[0262] Further disclosed is a non-transitory computer readable medium, in which a first stain in an entire slide image is normalized to the titer of a first stain in a template image if the calculated weighted average titer score falls outside a predetermined threshold titer score range.

[0216]

[0263] Further disclosed is a non-transitory computer readable medium, wherein the predetermined threshold titer score is in the range of about 3 to about 6.

[0264] Further disclosed is a non-transitory computer readable medium, in which a weighted average titer score for an entire slide image based on derived first stain image features is computed by: (a) extracting a predetermined number of FOVs from the entire slide image; (b) computing a set of patches for each extracted FOV; (c) deriving a plurality of first stain color-intensity features from each patch in the set of patches; (d) classifying the derived plurality of first stain color-intensity features using a trained titer classifier; and (e) computing a weighted average score based on the classification results from all the patches.

[0217]

[0265] Further disclosed is a non-transitory computer readable medium, wherein the color module incorporating density information is an HSD color module.

Claims

1. 1. A method of estimating the titer of a stain in an image or an area of ​​said image, said method comprising: generating a set of views for the image; selecting a field of view from said set of fields of view that meets predetermined criteria; generating a series of patches within each of the selected fields of view; Retaining from the set of patches those patches which meet predetermined criteria indicative of the presence or absence of the stain for which the titer is to be estimated; deriving stain color and stain intensity features for the stain from the retained patches; classifying each of the retained patches based on the stain color and stain intensity features derived from the stain in each of the retained patches using a titer discrimination classifier, the output of the classifying step being an estimated titer score for each of the retained patches; calculating a weighted average score for the titer of the stain based on the estimated titer scores for each of the retained patches; A method for providing the above.

2. 2. The method of claim 1, further comprising the steps of: comparing the weighted average score to a predetermined titer threshold; and, if based on the comparison the weighted average score is not within the predetermined titer threshold, normalizing the titer of the stain to the titer of the stain in a template image.

3. The normalizing step includes: deriving color and intensity distribution coordinates in the image within a color model incorporating intensity information; aligning the color distribution coordinates in the image with template image color distribution coordinates in the template image to provide transformed color distribution coordinates; scaling the density distribution coordinates in the image with template image density distribution coordinates in the template image to provide transformed density distribution coordinates; reconstructing an RGB image by inverse transforming the image in the color model including the intensity information using weighted transformed color distribution coordinates and weighted transformed intensity distribution coordinates; The method of claim 2 comprising:

4. 2. The method of claim 1, further comprising retrieving predetermined alignment and scaling parameters aligned with the weighted average score of the titer of the stain, and normalizing the titer of the stain to the titer of the stain in a template image based on the predetermined alignment and scaling parameters.

5. The normalizing step includes: deriving color and intensity distribution coordinates of said image within a color model incorporating intensity information; aligning the color distribution coordinates in the image with template image color distribution coordinates in the template image using the predetermined alignment parameters to provide transformed color distribution coordinates; scaling the intensity distribution coordinates in the image with template image intensity distribution coordinates in the template image using a predetermined scaling parameter to provide transformed intensity distribution coordinates; reconstructing an RGB image by inverse transforming the image in the color model including the intensity information using weighted transformed color distribution coordinates and weighted transformed intensity distribution coordinates; The method of claim 4 comprising:

6. The method of claim 5 , wherein the color distribution coordinates and the intensity distribution coordinates are derived for each pixel in the patch.

7. 7. The method of claim 6, wherein aligning the color distribution coordinates comprises shifting and rotating the color distribution coordinates in the image to have the same mean and orientation as the template image color distribution coordinates in the template image, and scaling the density distribution coordinates comprises transforming the density distribution coordinates in the image to have the same weighted mean and weighted standard deviation as the template image density distribution coordinates in the template image.

8. 1. An imaging system comprising: one or more processors; one or more memories coupled to the one or more processors, which when executed by the one or more processors, generating a set of views for the image; selecting a field of view from said set of fields of view that meets predetermined criteria; generating a series of patches within each of the selected fields of view; Retaining from said set of patches those patches which meet predetermined criteria indicative of the presence or absence of a stain for which a titer is to be estimated; deriving stain color and stain intensity features for the stain from the retained patches; classifying each of the retained patches based on the stain color and stain intensity features derived from the stain in each of the retained patches using a titer discrimination classifier, the output of the classifying step being an estimated titer score for each of the retained patches; calculating a weighted average score for the titer of the stain based on the estimated titer scores for each of the retained patches; one or more memories storing computer executable instructions for performing operations comprising: An imaging system comprising:

9. 9. The imaging system of claim 8, wherein the operations further comprise: comparing the weighted average score to a predetermined titer threshold; and, when the weighted average score is not within the predetermined titer threshold based on the comparison, normalizing the titer of the stain to the titer of the stain in a template image.

10. The normalizing step includes: deriving color and intensity distribution coordinates in the image within a color model incorporating intensity information; aligning the color distribution coordinates in the image with template image color distribution coordinates in the template image to provide transformed color distribution coordinates; scaling the density distribution coordinates in the image with template image density distribution coordinates in the template image to provide transformed density distribution coordinates; reconstructing an RGB image by inverse transforming the image in the color model including the intensity information using weighted transformed color distribution coordinates and weighted transformed intensity distribution coordinates; The imaging system of claim 9 .

11. 9. The imaging system of claim 8, wherein the operations further comprise retrieving predetermined alignment and scaling parameters aligned with the weighted average score of the titer of the stain, and normalizing the titer of the stain to a titer of the stain in a template image based on the predetermined alignment and scaling parameters.

12. The normalizing step includes: deriving color and intensity distribution coordinates of said image within a color model incorporating intensity information; aligning the color distribution coordinates in the image with template image color distribution coordinates in the template image using the predetermined alignment parameters to provide transformed color distribution coordinates; scaling the intensity distribution coordinates in the image with template image intensity distribution coordinates in the template image using a predetermined scaling parameter to provide transformed intensity distribution coordinates; reconstructing an RGB image by inverse transforming the image in the color model including the intensity information using weighted transformed color distribution coordinates and weighted transformed intensity distribution coordinates; The imaging system of claim 11 , comprising:

13. The imaging system of claim 12 , wherein the color distribution coordinates and the intensity distribution coordinates are derived for each pixel in the patch.

14. 13. The imaging system of claim 12, wherein aligning the color distribution coordinates comprises shifting and rotating the color distribution coordinates in the image to have the same mean and orientation as the template image color distribution coordinates in the template image, and scaling the intensity distribution coordinates comprises transforming the intensity distribution coordinates in the image to have the same weighted mean and weighted standard deviation as the template image intensity distribution coordinates in the template image.

15. When executed by one or more processors of an imaging system, the imaging system includes: generating a set of views for the image; selecting a field of view from said set of fields of view that meets predetermined criteria; generating a series of patches within each of the selected fields of view; Retaining from said set of patches those patches which meet predetermined criteria indicative of the presence or absence of a stain for which a titer is to be estimated; deriving stain color and stain intensity features for the stain from the retained patches; classifying each of the retained patches based on the stain color and stain intensity features derived from the stain in each of the retained patches using a titer discrimination classifier, the output of the classifying step being an estimated titer score for each of the retained patches; calculating a weighted average score for the titer of the stain based on the estimated titer scores for each of the retained patches; A non-transitory computer-readable medium having stored thereon instructions for performing operations comprising:

16. 16. The non-transitory computer readable medium of claim 15, wherein the operations further comprise: comparing the weighted average score to a predetermined titer threshold; and, when the weighted average score is not within the predetermined titer threshold based on the comparison, normalizing the titer of the stain to a titer of the stain in a template image.

17. The normalizing step includes: deriving color and intensity distribution coordinates in the image within a color model incorporating intensity information; aligning the color distribution coordinates in the image with template image color distribution coordinates in the template image to provide transformed color distribution coordinates; scaling the density distribution coordinates in the image with template image density distribution coordinates in the template image to provide transformed density distribution coordinates; reconstructing an RGB image by inverse transforming the image in the color model including the intensity information using weighted transformed color distribution coordinates and weighted transformed intensity distribution coordinates; 20. The non-transitory computer-readable medium of claim 16, comprising:

18. 16. The non-transitory computer readable medium of claim 15, wherein the operations further comprise retrieving predetermined alignment and scaling parameters aligned with the weighted average score of the titer of the stain, and normalizing the titer of the stain to a titer of the stain in a template image based on the predetermined alignment and scaling parameters.

19. The normalizing step includes: deriving color and intensity distribution coordinates of said image within a color model incorporating intensity information; aligning the color distribution coordinates in the image with template image color distribution coordinates in the template image using the predetermined alignment parameters to provide transformed color distribution coordinates; scaling the intensity distribution coordinates in the image with template image intensity distribution coordinates in the template image using a predetermined scaling parameter to provide transformed intensity distribution coordinates; reconstructing an RGB image by inverse transforming the image in the color model including the intensity information using weighted transformed color distribution coordinates and weighted transformed intensity distribution coordinates; 20. The non-transitory computer-readable medium of claim 18, comprising:

20. 20. The non-transitory computer-readable medium of claim 19, wherein aligning the color distribution coordinates comprises shifting and rotating the color distribution coordinates in the image to have the same mean and orientation as the template image color distribution coordinates in the template image, and scaling the density distribution coordinates comprises transforming the density distribution coordinates in the image to have the same weighted mean and weighted standard deviation as the template image density distribution coordinates in the template image.