Method for identifying different categories of biopsy sample images - Patents.com
A computer-based method for analyzing biopsy images using defined color ranges and thresholds addresses the inefficiencies in prostate and colon cancer diagnosis, reducing manual labor and accelerating the diagnostic process while maintaining accuracy.
Patent Information
- Application Number
- JP2021525158
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-11-09
- Filing Date
- 2019-11-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-11-08
AI Technical Summary
Current methods for diagnosing prostate adenocarcinoma and colon cancer through histological examination of biopsies are time-consuming and require significant manual labor from medically trained personnel, with over 50% of biopsies exhibiting normal features, necessitating further evaluation.
A method for rapid screening of tissue biopsies using computer analysis of digital images after immunohistochemical staining, involving defining a color range to identify specific categories of cells, such as malignant and benign, by adjusting thresholds to ensure accurate categorization and reducing the need for manual review.
Significantly reduces the workload of medically trained personnel by at least 50%, decreases response time for patients, and improves resource utilization by focusing personnel on complex samples, thereby enhancing the efficiency and accuracy of cancer diagnosis.
Smart Images

Figure 0007569786000001 
Figure 0007569786000002 
Figure 0007569786000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a method for screening biopsy sample images and for identifying images relating to different categories of biopsy samples.
[0002] 2. Background of the Invention Histological staining of biopsy samples is used in a variety of medical diagnostic procedures, for example to identify specific diseases or conditions associated with changes at the cellular level.
[0003] Worldwide, prostate adenocarcinoma is the second most common tumor type after breast cancer, and therefore accurate histological diagnosis of prostate adenocarcinoma is an important issue worldwide.
[0004] Prostate adenocarcinoma is the most prevalent type of male cancer in Sweden, with over 10,000 new cases diagnosed each year. Similar statistics are found throughout the developed world. Prostate adenocarcinoma accounts for approximately 30% of all cancer cases in men and occurs mainly in older men. Thus, 70% of these tumors are diagnosed in men over 70 years of age. More than 2,000 men die from prostate cancer each year, making it the most common cause of death from malignant tumors in men in Sweden.
[0005] In Sweden, systematic screening for prostate adenocarcinoma has not been introduced, but middle-aged and older men are regularly recommended to be screened for prostate adenocarcinoma by having a blood sample taken for analysis of PSA (prostate-specific antigen). An elevated PSA level indicates an increased risk of prostate adenocarcinoma. Men with elevated PSA levels are recommended to undergo urological surgery to obtain a biopsy from the prostate. Such a biopsy is the final basis for the diagnosis of prostate adenocarcinoma, even if other visual methods, such as ultrasound and data tomography, are used.
[0006] In Sweden, approximately 20,000 men undergo prostate biopsy every year, and in each man, around 12 biopsies are usually collected, so that approximately 250,000 histological slides of the prostate are examined each year. This is accomplished by light microscopy performed by physicians educated in surgical pathology, which is a time-consuming procedure. This conventional procedure and the resulting diagnosis, using microscopic examination of needle biopsies by medically trained specialists, is referred to as the gold standard for the diagnosis of prostate adenocarcinoma. The majority of these biopsies (more than 50%) show normal microscopic features and may therefore be identified as relating to normal or benign tissue samples. If one or more samples taken from the same patient show signs of cancer or malignant cells, further evaluation is required. Therefore, the batch of samples taken from each individual patient needs to be evaluated as a group as well.
[0007] Colorectal (colon) cancer is a common type of cancer in both men and women. According to the Swedish Cancer Registry, approximately 5000 new cases are recorded per year. Colon cancer is mostly treated by radical surgery, including the primary tumor in the intestinal wall and the mesentery, which also contains regional lymph nodes. In most surgical specimens, 15 or more lymph nodes may be identified in the fatty tissue surrounding the primary cancer in each case. This represents an annual microscopic examination of 75,000 to 100,000 lymph nodes in individuals with colon cancer in Sweden. Identification of lymph node metastases in colon cancer is important for staging the tumor and for the selection of postoperative treatment.
[0008] WO 2013 / 064605 relates to the expression of biomarkers in individual cells, in particular the analysis of multiplexed biometric images. US 6,297,044 refers to an apparatus for examining lesions in the oral cavity and an analysis system including a programmed computer that can detect which cells require further examination, for example due to a suspected cancerous condition.
[0009] Currently, the field of medical analysis is experiencing rapid advances in the use of digital technology and automated image analysis. These technologies will play an increasingly major role as adjuncts in laboratory medicine in the near future. The inventors of the present invention have recognized the need for improved screening methods that provide more effective screening while maintaining accuracy.
[0010] Summary of the Invention It is an object of the present invention to provide a method for rapid screening of tissue biopsies by computer analysis of digital images following application of immunohistochemical stains of the biopsy.
[0011] Another object is to provide a rapid and efficient method for the identification and selection of biopsies that do not require further evaluation, in which the number of biopsies requiring visual (microscopic) examination by a pathologist is significantly reduced. As mentioned above, this should reduce the workload required by medically trained personnel by 50% or more. In addition, this should also reduce response times for patients.
[0012] A further object is to provide a method which is cost-effective and highly effective.
[0013] The above-mentioned objects are achieved by the present invention according to the respective independent claims. Preferred embodiments are set forth in the respective dependent claims.
[0014] In a first aspect, a method is disclosed for defining color ranges for use in identifying the presence of different categories of cells in a tissue or cell sample, the method comprising: a) dividing a plurality of samples into at least one batch and, for each batch, staining and classifying each sample into a first category and a second category; b) acquiring a sample image for each sample; c) for each batch of sample images, defining a color range that identifies samples belonging to a first category; d) evaluating the sample images in each test batch and adjusting the color range for each test batch to ensure that all samples within the first category are accurately categorized; e) selecting at least one operational threshold and storing an adjusted color range for use in identifying cells belonging to the first category in the tissue or cell sample; Includes.
[0015] Typically, in step a), the samples are pre-classified and / or sorted by medically trained personnel who evaluate and categorize each sample into one of two categories based on the different colorings of the categories, the first and second categories representing non-normal and normal cell samples, e.g. malignant and benign samples, respectively, or different stages of a disease, e.g. cancer.
[0016] Typically, in step d), the adjustment of the color range is performed by excluding color values which are found in samples of the second category.
[0017] In a second aspect, there is provided a method for selecting a tissue or cell sample containing a first category of cells, the method comprising obtaining or predetermining (S21) at least one threshold and said color range, The method further comprises: A) staining at least one patient sample comprising tissue and / or cells; B) acquiring a sample image for each patient sample; C) determining the total number of pixels, e.g., the sum of abnormal pixel weights or pixel ratios within a color range for each patient sample image; D) classifying each patient sample as belonging to the second category if the total number of pixels in the sample image is below at least one obtained or pre-determined threshold, or classifying each patient sample as belonging to the first category if the total number of pixels in the sample image is equal to or greater than at least one obtained or pre-determined threshold. E) Exclude patient samples belonging to the second category from the review; A method is disclosed that includes:
[0018] As described further in this disclosure, the total number of pixels may be derived in various ways, according to embodiments of the present invention.
[0019] In one embodiment, the summed abnormal color pixels are weighted, typically for their distance to the color red (indicating blood), and then the result is divided by the total number of sample pixels to obtain a pixel ratio.
[0020] In another embodiment, the total number of sample pixels is not used, but instead, nearby abnormal color pixels (also weighted for distance to blood, but without dividing by the total number of sample pixels) are summed. In this embodiment, the steps (after color filtering) would typically be: 1. Grouping the cancer pixels into groups by distance (so there may be several separate groups in the same image); 2. Sum the cancer pixel weights for each group separately; 3. Compare the result of each group (separately) with a predefined threshold. If the result of one group is equal to or greater than the threshold, classify the whole sample as the first category (non-normal). Classify as the second category (normal) only if the results of all groups are below the threshold.
[0021] In this embodiment, it is particularly important to determine how the pixels are grouped (how large the distance is) and the threshold level. [Brief description of the drawings]
[0022] [Figure 1a] 1 shows an exemplary image of a histologically stained tissue sample used in a method for defining a color range for use in identifying the presence of one of at least two categories of cells in a tissue or cell sample. [Figure 1b] 1 shows an exemplary image of a histologically stained tissue sample used in a method for defining a color range for use in identifying the presence of one of at least two categories of cells in a tissue or cell sample. [Diagram 2] 1 shows an exemplary image of a histologically stained tissue sample used in a method for selecting a tissue or cell sample containing non-normal prostate cells. [Diagram 3] 3 shows images of the sample of FIG. 2 after application of various steps of a method for selecting a tissue or cell sample containing non-normal prostate cells. [Figure 4] 3 shows images of the sample of FIG. 2 after application of various steps of a method for selecting a tissue or cell sample containing non-normal prostate cells. [Diagram 5] 3 shows images of the sample of FIG. 2 after application of various steps of a method for selecting a tissue or cell sample containing non-normal prostate cells. [Figure 6] 3 shows images of the sample of FIG. 2 after application of various steps of a method for selecting a tissue or cell sample containing non-normal prostate cells. [Figure 7] 3 shows images of the sample of FIG. 2 after application of various steps of a method for selecting a tissue or cell sample containing non-normal prostate cells. [Figure 8] 3 shows images of the sample of FIG. 2 after application of various steps of a method for selecting a tissue or cell sample containing non-normal prostate cells. [Figure 9] 3 shows images of the sample of FIG. 2 after application of various steps of a method for selecting a tissue or cell sample containing non-normal prostate cells. [Figure 10] Graphs of batches of histologically stained samples are shown as a function of malignancy index value within given color ranges. [Figure 11] 1 shows a flow chart of a method for defining color ranges for use in identifying the presence of particular categories of cells in a tissue or cell sample. [Figure 12] 1 shows a flow chart of a method for selecting a tissue or cell sample containing a particular category of cells. [Figure 13] 13 shows a flow chart of a further optional step of the method for selecting a tissue or cell sample containing cells of a particular category. [Figure 14] A system for the calibration and / or operation of a method for selecting tissue or cell samples containing cells of a particular category is presented. [Figure 15] 1 illustrates a control unit configured to execute software for implementing the methods described herein. [Figure 16] 1 illustrates an exemplary apparatus configured with software configured to perform the methods described herein. [Figure 17] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 18] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 19] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 20] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 21] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 22] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Diagram 23]Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 24] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Diagram 25] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 26] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 27] Example 4 (Grouping of cancers into blobs for absolute evaluation program flow) is shown. [Figure 28] 5 shows Example 5 (sample edge cutting program flow). [Figure 29] 5 shows Example 5 (sample edge cutting program flow). [Diagram 30] 5 shows Example 5 (sample edge cutting program flow). [Diagram 31] 5 shows Example 5 (sample edge cutting program flow). [Diagram 32] 5 shows Example 5 (sample edge cutting program flow). [Diagram 33] 5 shows Example 5 (sample edge cutting program flow). [Diagram 34] 5 shows Example 5 (sample edge cutting program flow). [Diagram 35] 5 shows Example 5 (sample edge cutting program flow). [Diagram 36] 5 shows Example 5 (sample edge cutting program flow). [Figure 37] 5 shows Example 5 (sample edge cutting program flow).
[0023] definition The term "total pixel count" refers to a value that is compared to a pre-determined or obtained threshold value to determine whether a sample image or a portion of a sample image refers to a normal or non-normal sample. The "total pixel count" can be, for example, the "sum of abnormal pixel weights" or the "pixel ratio."
[0024] "Sum of abnormal pixel weights" is used when comparing the sum of pixel weights in pixel groups to a first threshold and the sum of pixel weights in all groups to a second threshold, which is typically higher than the first threshold. Therefore, when using "sum of abnormal pixel values", abnormal pixels (cancer pixels vs. the rest) are typically identified, then their color values are discarded, and instead, their weights (distance to blood) are assigned as their new values. At the time of summing pixel weights, no original pixel value information remains, only the weight values for each pixel remain, in short "weights". Hence the term "sum of abnormal pixel weights". "Pixel ratio" is used where the pixel value (possibly weighted for distance to blood) containing the number of pixels that fall within a selected criterion is divided by the total number of pixels in the sample image.
[0025] "Pixels falling within the selected criteria" refers to pixels that remain after background and color filtering, e.g., cancer pixels. Such pixels may also be defined as "abnormal pixels."
[0026] Detailed Description One of the objectives of the present invention is to effectively eliminate a large proportion of samples from the pool of samples to be analyzed, thus making better use of resources and saving time, which would reduce the amount of manual workload requiring medically trained personnel by at least 50%.
[0027] One effect of significantly reducing the manual workload requiring medically trained personnel would be faster response times to patients, which in turn would lead to earlier identification of a patient's cancer or other diagnosis, allowing for faster initiation of treatment, and of course also faster identification of non-cancerous or normal samples, for example, thus improving the quality of life of those involved.
[0028] Another positive effect would be an improved working environment and less stress for medically trained personnel in histopathology and pathology. Resource use in healthcare would be improved by allowing personnel to focus on positive or complex samples, eliminating the majority of samples that do not require further evaluation.
[0029] Below is disclosed an exemplary application of the method in which a color range is defined that correlates to a particular category of samples. The defined color range is then used on another batch of samples in a further method for classifying the samples into at least two categories.
[0030] The methods disclosed herein are described with respect to identifying, selecting and / or separating non-normal cell samples from normal cell samples in a large batch of histologically stained cell samples obtained by prostate biopsy in male patients. However, as shown herein, the disclosed methods can be applied to essentially any type of stained cell sample, where one category of cell sample is stained differently from another category of cell sample. As a result, any type of staining of cell or tissue samples can be used in the disclosed methods, so long as the staining results in different staining of the categories that are identified and distinguished from each other.
[0031] Other example applications are various other types of cancer, other diseases, or any technique where a batch of images needs to be categorized into different categories based on the presence of a quantifiable color range in one category (but not another).
[0032] More specifically, the methods disclosed herein can be widely applied in the field of digital pathology, so that other tissues in which samples can be stained and the color differences of the stained samples can be analyzed according to the claims of the present invention are also within the scope of the present invention.
[0033] Known methods of evaluating stained tissue samples, such as staining techniques specific to either normal or non-normal cells or cells at different developmental stages, can be used in many different contexts. One example illustrated herein is for determining whether a sample contains cells that have transformed from normal cells to cancer cells. Known techniques typically rely on identifying both structural differences in cell samples and differences in the color distribution of staining. When evaluated manually, this is a very time-consuming process. The present disclosure provides a method that uses only the differences in color parameters in stained and scanned images of samples from one category compared to samples from another category, and then uses these differences to identify unique features that reliably separate different categories of samples from each other.
[0034] Of course, there will be samples that are difficult to classify, even for medically trained personnel, due to the inherent variability of staining results, the changing nature of the structure and appearance of cancer cells, and the composition of tissues in the sample. However, if the majority of the samples could be eliminated from further evaluation, for example, samples that are quickly identified as containing only normal cells, or any selected categories that do not require further evaluation, the workload would be significantly reduced, resulting in a more rapid overall evaluation of the samples.
[0035] The inventors have recognized that an effective way to substantially reduce the amount of samples requiring manual evaluation is to use a method for defining color ranges that correlate to selected categories of samples. The color ranges are defined based on the colors of individual pixels in scanned images of pre-sorted batches of tissue samples. A threshold can be defined to ensure that samples of a particular category are not excluded from further evaluation.
[0036] Once a defined color range has been identified, this color range can be used to classify samples in another batch of samples, e.g., a new batch of samples to be evaluated, where the samples are classified as belonging to the first category or the second category. Samples in the category requiring further evaluation are preferably then reviewed in a final step by medically trained personnel to determine whether each sample, or rather a collective batch of samples from a single patient, is indicative of a disease or condition.
[0037] 1a and 1b show exemplary images representing two different categories used in a method for defining a color range for use in identifying the presence of one of the categories of cells in a tissue or cell sample, and the images may be representative of images used in a method for categorizing a sample using the color ranges thus defined and subsequently selecting one category.
[0038] The prostate biopsy samples in Figures 1a and 1b were fixed, sectioned, and stained as described below in Example 1. The staining patterns using these particular antibodies (antibodies to P504S, p63, and CK5) produce two fundamentally different colors in normal prostate (Figure 1a) and prostate adenocarcinoma (Figure 1b): brown and red.
[0039] Figure 1a shows a sample of normal prostate after staining as described above (shown here in greyscale). The glandular epithelium 1 is unstained and the surrounding myoepithelial cells 2 are stained red (here seen as dark). The tissue has a blue background staining 3 representing the connective tissue surrounding the gland.
[0040] Figure lb shows a stained sample of prostate adenocarcinoma (shown here in greyscale). The glandular epithelium has transformed into adenocarcinoma cells 11, showing brown staining (here seen as semi-dark). The surrounding myoepithelial cells are lost and stain red in the normal prostate. The tissue has a blue background staining 13 representing the connective tissue surrounding the gland.
[0041] For this reason, the staining of this particular type of prostate cell shows a clear color difference, which in this case can also be seen with the naked eye under a microscope. A normal prostate shows a significant amount of characteristic red staining. On the other hand, an adenocarcinoma sample lacks red color, but shows a significant amount of characteristic brown staining. In particular, the two examples shown in Figures 1a and 1b are representative of completely normal tissue and completely transformed tissue. In other samples, some of the sample may be transformed and some normal. In addition, there are often small amounts of other types of cells and substances, such as droplets of blood or other body fluids, other types of cells taken when performing a biopsy. However, it is clear that the presence of cancer cells leads to brown staining in the sample, which is not seen in samples that do not contain cancer cells.
[0042] Below, exemplary applications of the method will be described. For further applications of the method on large sample batches and using other types of cells and staining techniques, see Examples 1 and 2 below.
[0043] In a first study, sample images of a batch of approximately 130 samples, pre-classified as cancer (malignant) or normal (benign) samples, were acquired in HSV image format. As is known in the art, the color of each pixel in such an image is defined by three values: "hue" (which can range from 0 to 179), "saturation" (which can range from 0 to 255), and "value" (which can range from 0 to 255). In this way, the color of each individual pixel in each sample image is evaluated.
[0044] A first way to define a color range specific to the presence of prostate cancer cells is to define it as all HSV values in the "brown" range, based on knowledge from the staining species selected as described above, of brown specific to the presence of cancer or malignant cells. For example, one can select the brown color range defined by HSV values of hue [8-28], saturation [30-255] and value [31-200] as a starting point in defining a color range specific to non-normal cells. In another embodiment, the cancer color range can be hue [175-179], saturation [60-130] and value [40-120] and / or hue [0-22], saturation [60-190] and value [40-130]. For example, both of these ranges can be used, such that any color falling in either one of these ranges is considered a cancer color.
[0045] The color range specific to the presence of non-normal cells can be further defined by removing the individual values in said initial range, in this case brown, that are also present in the normal image, for example due to the overlap of other colors in the image. This can be done by first identifying all pixels in the normal image that fall into said initial brown range. These pixels are counted in all scanned normal images, and each color value that appears in these pixels more than a predefined number of times (Nx) is removed from said non-normal color range, and thus considered to be defined as a color that defines the normal image. Nx can be varied based on the number of images to be processed and the number of pixels in each image.
[0046] The resulting color ranges specific to the presence of non-normal cells are stored for further use in a method for selecting tissue or cell samples containing non-normal cells using the determined color ranges.
[0047] As a further application, the methods disclosed herein can be applied to identify the stage of colon cancer in samples taken from regional lymph nodes of the mesentery, as described in detail below in Example 2. Identification of lymph node metastasis in colon cancer is important for both staging the tumor and selecting postoperative treatment.
[0048] Therefore, the above methods may be applicable to many different types of stained cell or tissue samples.
[0049] Thus, in a first aspect, as can be seen in Figure 11, a method is disclosed for defining a color range for use in identifying the presence of a particular category of cells in a tissue or cell sample, the method comprising: a) dividing a plurality of samples into at least one batch, and for each batch, staining and classifying each sample into a first category and a second category (step S2a); b) acquiring a sample image for each sample (step S2b); c) for each batch of sample images, defining a color range that identifies samples belonging to a first category (step S3); d) evaluating the sample images in each test batch and adjusting the color range for each test batch to ensure that all samples belonging to the first category are accurately categorized (step S4); e) selecting at least one operational threshold and storing an adjusted color range for use in identifying non-normal cells (or cells belonging to the first category) in the tissue or cell sample (S12); Includes.
[0050] As mentioned above, this method is used to define a color range at pixel level in an image of samples including samples of the first category, while excluding color values found in samples of the second category. This is done for at least one batch of samples that have been previously evaluated and categorized by medically trained personnel. Staining of the samples can be done by known methods or new staining techniques. The final classification step in step S2a is then typically performed by medically trained personnel who will evaluate each sample and categorize it as one of the two categories. However, it is also conceivable that samples are taken from known sources of tissue or cells of two different categories, i.e., pre-classified and then stained.
[0051] As in the above example, the categories can be, for example, a first category being a malignant sample and a second category being a benign sample. A malignant sample is a sample in which at least one malignant or cancerous cell is identified. A benign sample does not have any cancerous cells.
[0052] It should be noted that in this specification, terms defining absolute categories, e.g., malignant or benign samples, are only used in the final steps of sample testing, evaluation and diagnostic procedures when there is absolute certainty that the sample is evaluated correctly, i.e., according to the gold standard.
[0053] The categories could be different stages of a disease such as cancer or other differences in sample types that cause different color distributions in the prepared cell or tissue samples.
[0054] The methods disclosed above for defining color ranges and operational thresholds are intended to be subsequently used in other methods of evaluation of other sample batches, the evaluation or selection methods being described in further detail below.
[0055] However, in the early stages of the evaluation procedure of unclassified prostate or other samples, where there is a risk that some samples will be miscategorized, it is preferable to designate normal and non-normal categories. In the methods presented herein, it is initially assumed that the non-normal category may include malignant samples as well as samples that have erroneous staining results due to either too much color or too little color overall, and may also include samples that contain other types of abnormal cellular structures.
[0056] After step S2a in Fig. 11, each image is scanned to obtain a corresponding sample image, for example in HSV format (step S2b), which are used for the further steps of defining the color range and, preferably, adjusting the defined color range.
[0057] As a preferred but optional step, pixels corresponding to background colors, i.e. non-tissue areas, can be excluded from further calculations (step S2c), so that only tissue areas are part of the sample area evaluated. This can be done by excluding all pixels in the image that are above a certain brightness level, for example above brightness values 200 or 210 or 220 or any other suitable brightness value. Comparing Figures 2 and 3, an example of excluding all pixels above brightness value 210 can be seen. As a further optional step, pixels of uncertain color due to extremely strong colors can be excluded from the sample image in order not to include uncertainty in the subsequent calculations. This can be done by excluding all pixels in the image that are below certain brightness and saturation values, for example below 30, 31, 32, 33 or any other suitable brightness values.
[0058] The color range can be defined by selecting a color range based on empirically found color distribution of staining in a particular cell type (step S3), which can then be further refined in step S4 to ensure that all samples belonging to a particular category are found. As an example in the prostate biopsy case above, a brown range was selected as a starting point and further refined to ensure that no samples in the first category are missed.
[0059] Alternatively, the definition of the color range can be done by scanning a portion of the image or the complete color spectrum to identify and select an appropriate color range that indicates colors that distinguish or indicate a first category of samples as compared to a second category. Moreover, such differences are considered to be only distinguishable by the digital scanner system and not visually perceptible. In either case, the color range is selected such that all samples belonging to the first category are identified.
[0060] According to some embodiments, step S3 may further include defining a second color range, for example within a red color range, that is used to identify anomalies in order to prevent samples of the second category from being categorized as belonging to the first category. This process is described in more detail in relation to FIG. 13.
[0061] After defining the color range, it is evaluated and adjusted (step S4) to ensure that all samples belonging to the first category are correctly categorized. This can be done by first measuring the number of pixels in the selected color range in each sample image (step S5). This is preferably done with background pixels excluded, as described above, so that only tissue areas of the image are included. All pre-classified images belonging to the first category can be evaluated if they fall within the color range (step S6). If not, the color range is expanded, i.e. further values are added (step S7), until all samples of the first category fall within the adjusted color range.
[0062] Then, optionally, all pre-classified images belonging to the second category are evaluated for whether they are outside the adjusted color range (step S8). In this step, it is not necessary to achieve full compliance, since it is expected that some samples of the second category may fall within the color range, and if so, these can be removed in a subsequent stage. Thus, a threshold can be selected such that in step S8, it is evaluated whether more than a certain percentage of sample images of the second category are outside the selected color range. The threshold can be any percentage, preferably more than 90%, more preferably more than 95%.
[0063] If the result of step S8 is less than a selected threshold percentage of samples in the second category that are still outside the color range, the color range can be adjusted, for example by removing certain color values, and repeating steps S5 to S8.
[0064] The final resulting color range specific to the selected sample category is then stored for use in evaluating other batches of uncategorized samples or validating samples in a pre-classified batch (step S12).Furthermore, an operational threshold is selected based on the stored color range and the measured number of pixels within the color range for each sample.
[0065] An example of a curve used to determine the operating threshold is shown in Figure 10. Figure 10 shows a graph of a batch of histologically stained samples as a function of the first category (e.g., malignant) index value within a selected color range.
[0066] All stained samples are processed to determine a malignancy index value and assigned a location as a function of malignancy index value. The process for determining the malignancy index value, in its simplest form, is a measurement of the number of pixels within a selected color range for each sample. In more advanced processes, anomalies are taken into account when determining the malignancy index value for each sample, for example, by using the process described in connection with FIG. 13.
[0067] An example of determining the malignancy index value is as follows.
[0068] Assume an image with 100 pixels (malignant + benign + blood) within a selected saturation and brightness range. The image has 4 malignant pixels (within the cancer color range) and 95 benign pixels (outside the cancer color range) and 1 red pixel (indicating blood and considered to be benign). If all samples have 100 pixels within the selected saturation and brightness range, the number of malignant pixels can be used as a malignancy index value. However, this is rare, and below are described three different examples A, B and C of weighted pixel calculation or weighted abnormal pixel calculation.
[0069] Example A The weighted pixel calculation will result in a malignancy index value for the sample that is 4 / 100 = 0.04. If all pixels are malignant, the maximum malignancy index value is 1.0.
[0070] Example B The weighted anomaly calculation is obtained by assigning each pixel a weight between 0 and 255, which is inversely proportional to the distance between its associated pixel and the red pixel (many false cancer colored pixels occur closest to blood). To determine the weight of each pixel, the following formula is used: w d =(d * a 1 )-a 2 is used. In the formula, 1 and a 2is a constant and d is the distance between the malignant pixel and the red pixel. In this example, 1 = 3.8 and a 2 = 10, but other constants can be used depending on the use case.
[0071] The first malignant pixel has a distance of 10 pixels to the red pixel, and the weight for the first pixel is w 1 =(10 * 3.8)-10=28. The second pixel has a distance of 20 pixels to the red pixel, and the weight for the second pixel is w 2 =(20 * 3.8)-10=66. The third pixel has a distance of 50 pixels to the red pixel, and the weight for the third pixel is w 3 =(50 * 3.8)-10=180. The fourth pixel has a distance of 100 pixels to the red pixel, and the weight for the second pixel is w 4 =(100 * 3.8)-10=370. The weights are limited to a maximum value of 255. Note: Image 5 shows where the red pixels are (in the much larger real image), and image 8 shows the weights of all pixels as brightness values (black=weight 0, white=weight 255).
[0072] The malignancy index is calculated by dividing the sum of the weights by the total number of pixels = (w 1 +w 2 +w 3 +w 4 ) / 100=(28+66+180+255) / 100=5.29. This value can also be divided by the maximum weight of 255, which would result in a malignancy index value of 5.29 / 255=0.020745. This value can be compared to the results of Example A.
[0073] The values on the Y-axis can be normalized (not shown in FIG. 10) so that the maximum malignancy index value corresponds to 100%.
[0074] Once the malignancy index values have been calculated for all samples, they are represented in a graph (FIG. 10) and an operational threshold of 100 is selected to ensure that all malignant samples are correctly categorized. Only samples in the second category (e.g., benign) will fall below the operational threshold of 100. In this example, the operational threshold is set to 0.180392 to ensure the "gold standard".
[0075] Example C The method of Example B can be done with the updated number / other number.
[0076] The weighted anomaly calculation is obtained by assigning each pixel a weight between 0 and 255, which is inversely proportional to the distance between its associated pixel and the red pixel (many false cancer colored pixels occur closest to blood). To determine the weight of each pixel, the following formula is used: w d =(d * a 1 )-a 2 In the formula, a 1 and a 2 is a constant and d is the distance between the malignant pixel and the red pixel. In this example, 1 =7.0 and a 2 = 10, but other constants can be used depending on the use case.
[0077] The first malignant pixel has a distance of 10 pixels to the red pixel, and the weight for the first pixel is w 1 =(10 * 7.0)-10=60. The second pixel has a distance of 20 pixels to the red pixel, and the weight for the second pixel is w 2 =(20 * 7.0)-10=130. The third pixel has a distance of 50 pixels to the red pixel, and the weight for the third pixel is w 3 =(30 *7.0)-10=200. The fourth pixel has a distance of 100 pixels to the red pixel, and the weight for the second pixel is w 4 =(100 * 7.0) - 10 = 690. The weight is limited to a maximum value of 255.
[0078] The malignancy index is the sum of the weights divided by the total number of pixels = (w 1 +w 2 +w 3 +w 4 ) / 100=(60+130+200+255) / 100=6.45. This value can also be divided by the maximum weight of 255, which would result in a malignancy index value of 6.45 / 255=0.025294. This value can be compared to the results of Example A.
[0079] Values on the Y-axis can be normalized so that the maximum malignancy index value corresponds to 100%.
[0080] Once the malignancy index values have been calculated for all samples, they are plotted and an operational threshold 100 is selected to ensure that all malignant samples are correctly categorized. Only samples in the second category (e.g., benign) will fall below the operational threshold 100. The operational threshold is set to ensure a "gold standard".
[0081] After the evaluation and adjustment of the color range (step S4), an optional step can be to evaluate further batches of sample images of similarly stained and pre-classified samples (step S10), then repeat steps S3 and S4 for each batch, and then store the final color range obtained. That is, the definition, evaluation and adjustment of the color range can be performed on each further batch basis, and the results of all batches can be combined, and then the final color range and thresholds obtained can be stored (step S12).
[0082] As is known in the field of histology, stained samples may vary in saturation and color distribution. Therefore, a reference field can be included either on each slide on which at least one or more samples are fixed for each stained batch (staining event). This reference field allows the matching of different batches compared to each other. Therefore, an optional step of the method for defining color ranges is to include a similarly stained reference field adjacent to each sample or at least on the same sample slide, which is used to normalize the adjusted color range for each batch based on the color of the reference field (step S11), and then store the final color range obtained. An example of staining samples for a reference field is shown in Example 3.
[0083] As described above, after defining and storing a color range specific to a selected category of samples, this color range can be used to evaluate another batch of samples to identify and select samples that belong to the selected category. As an example, this process will be described to select non-normal cell samples in a batch of prostate biopsy samples, thus removing all samples that only show normal color characteristics from the batch. This process can be based on either the sum of neighboring pixel weights for pixels that fall within the selected criteria compared to a selected threshold, or the relative pixel number of pixels that fall within the selected criteria to the total number of sample pixels compared to the selected threshold, i.e., a pixel ratio, possibly weighted. In the context of this disclosure, both options are referred to as the total pixel number.
[0084] FIG. 2 shows an exemplary image of a stained prostate biopsy sample, as mentioned above. As mentioned above, to isolate pixels related to tissue samples, background pixels are removed by removing pixels above a certain brightness value, e.g., 205. Furthermore, pixels whose color values are difficult to measure are removed by removing pixels with brightness values below 31. This is because at low brightness values, noise in the image constitutes a much larger portion of the pixel values, and the hue is subject to significant noise-induced variations. Also, there will be significant rounding errors in the hue calculation. The removal of border pixels is shown in step S30 in FIG. 13. FIG. 3 shows the same sample as FIG. 2 after the light and dark pixels have been removed.
[0085] In step S31, we count the sample area (SA), which is the total number of pixels in the patient sample, i.e., the remaining area after the light and dark pixels are removed. At this stage, using the predefined and acquired color range, it is possible to remove the pixels outside the color range (step S32) and count the cancer area (CA), which is the number of pixels within the color range in the patient sample (step S33).
[0086] The ratio of pixels of the sample falling within the defined color range is calculated (step S34) by dividing CA, the number of pixels falling within the defined color range for each sample image (shown in FIG. 4, where pixels within the color range are shown as white pixels), by SA, the total number of pixels in the patient sample (FIG. 3). This ratio, also called malignancy index value, is an indicator of the classification of the sample. If the ratio of pixels within the predefined color range in the image, CA / SA, is above the operational threshold selected in step S12, the sample is classified as a non-normal sample. On the other hand, if the ratio is below the operational threshold, the sample is classified as normal.
[0087] The above ratio calculation and classification can be repeated for each sample image in the batch, after which non-normal samples are selected for further review by medically trained personnel.
[0088] In particular, for certain forms of cancer, such as prostate cancer, it is common that not all samples from an individual patient show cancer cells, so samples from each patient are preferably aggregated. If at least one sample in a group of samples from the same patient is classified as non-normal, the entire group of samples from that patient will be classified as non-normal and reviewed by medically trained personnel to assess the presence of cancer.
[0089] A common occurrence in prostate biopsies is the presence of small amounts of blood in the sample, as mentioned above. The color of such blood in a stained sample is red with brown surroundings, so if a brown color is found close to red, it is unlikely to indicate cancer. Thus, the calculated ratio of sample pixels that fall within a defined color range can be adjusted by reducing the influence of any brown pixels near the red pixels. As an example, any red pixel in the sample image of FIG. 3 is identified by finding pixels within the red spectrum of hue [173-179], saturation [168-255] and value [35-180]. These pixels are extracted from the sample image and converted to white in FIG. 5. The process is shown as optional step S35 in FIG. 13. In other embodiments, the ranges for red can be hue [171-176], saturation [175-255] and value [90-101] and / or hue [171-179], saturation [168-255] and value [102-180]. For example, both of these ranges can be used, such that any color that falls within either one of these ranges is considered red.
[0090] As explained above in connection with Figure 10, the influence of all brown pixels decreases as a function of distance to the red pixel. The influence of each red pixel (shown in Figure 5) on the pixels shown in Figure 4 can be calculated as described above, but this would be very time consuming. The process described in connection with Figures 6-9 shows an optional process for calculating the weight of each pixel in Figure 4 as a distance to the red pixel shown in Figure 5.
[0091] FIG. 6 shows the result of a process called "dilation" that increases the number of pixels in the red range. The dilated image (illustrated in FIG. 6) is used as input to generate a distance transform image where pixel values represent distance from a white dot. For example, a pixel adjacent to white will have value "1" (distance=1 pixel). A pixel with one pixel between it and another pixel of white will have value "2" (distance 2 pixels), etc. The shortest (hypotenuse) distance is used in the calculation, e.g., 10 pixels down and 23 pixels to the right gives a value of "25" (not "33"). The distance transform image is shown in FIG. 7. The distance transform image is created from the dilated image in FIG. 6. The method for accomplishing this is called "Euclidean Distance Transform".
[0092] The distance transform image can be used directly to reduce the influence of any brown pixels near a red pixel by multiplying it with the image of FIG. 4 (showing pixels within the color range). However, it has been found that more reliable and consistent results can be achieved if the distance transform image is expanded by multiplying each pixel value by a number "k" (where "k" ranges from 3.6 to 4.0, and is preferably 3.8), where each pixel value is multiplied separately. All pixel values are expanded by a factor of "k", i.e., for k=3.8, pixel values are multiplied from 2 to k. * 2=7.6 and reaches the maximum value of 255 more quickly. Figure 8 shows the distance transform image after multiplication by k=3.8.
[0093] As mentioned above, the distance transform image (dilated or not dilated) is multiplied by a binary 0 / 1 image (FIG. 4, pixel value 1 is abnormal and pixel value 0 is normal) to obtain an image in which pixels represent the location of potential malignant cells as well as weighted by their distance from red. After multiplication, the pixel values will range from "0" to "255" (abnormal and far from red) as shown in FIG. 9. This corresponds to optional step S36 in FIG. 13.
[0094] CA is the sum of all pixel values in the image of Figure 9. When calculating CA, each pixel can contribute up to 255. This means that the ratio CA / SA needs to be larger and the operating threshold needs to be increased accordingly. These optional steps can improve the process of correctly classifying normal samples by more than a factor of three.
[0095] Therefore, in a further aspect, a method is disclosed for selecting tissue or cell samples containing non-normal cells, i.e. belonging to a first category, as shown in Figure 12. The method comprises a step S21 of obtaining or predetermining at least one threshold and color range determined as described above, the method further comprising: A) staining at least one patient sample comprising tissue and / or cells (step S22a); B) acquiring a sample image for each patient sample (step S22b); C) determining the total number of pixels, e.g., the sum of abnormal pixel weights or pixel ratio within the color range for each patient sample image (step S24); D) classifying each patient sample as belonging to the second category if the total number of pixels in the sample image is below at least one acquired or pre-determined operational threshold, or classifying each patient sample as belonging to the first category if the sum of abnormal pixel weights or pixel ratios in the sample image is equal to or greater than at least one acquired or pre-determined threshold (steps S25, S26a, S26b); E) excluding from review patient samples belonging to the second category (step S29); Includes.
[0096] As mentioned above, a reference field can be included either on each slide on which at least one or more samples are fixed per stained batch (staining event). The reference field will allow the matching of different staining between the patient sample and the sample used to select the threshold and color range for operation. Thus, an optional step of the method for selecting tissue or cell samples containing cells belonging to a first category is to include a similarly stained reference field adjacent to each sample or at least on the same sample slide, and use it to adjust the color range using the reference field (step S23). According to some embodiments, the adjustment of the color range is performed by comparing the intensities of the reference fields (step S23a).
[0097] Also, in some embodiments, step C) includes the further step of weighting the pixels based on their distance to the red pixel, assigning a weight value to each remaining pixel based on its distance from the nearest remaining red pixel, assigning a low value if the pixel is closer to the nearest red pixel and a high value if the pixel is farther from the red pixel.
[0098] As mentioned above, for example, when assessing prostate cancer, multiple samples are often taken from the same patient, and not all samples represent abnormal samples. Therefore, an optional step is to aggregate all results from the same patient samples, and if any of the patient samples are classified as abnormal in step C), the normal samples are reclassified as abnormal samples (steps S27 and S28). Furthermore, as shown in FIG. 13 and described in detail above, step C) is preferably performed by: C1) Removing pixels in the sample image that correspond to background regions (step S30); C2) Counting the remaining pixels in the sample area (SA) to obtain a total sample pixel count (step S31); C3) Removing pixels outside the color range obtained from the sample image (step S32); C4) Counting the remaining pixels within the color range (CA) to obtain pixel counts corresponding to colors within the cells belonging to the first category (step S33); C5) optionally removing pixels outside the red range from the sample image; and C6) Calculating the total number of pixels in the color range for the sample image by dividing the pixel counts corresponding to the colors within the cells belonging to the first category (CA) by the total sample pixel count (SA) (step S34); This is done by:
[0099] In an alternative embodiment of the method for selecting tissue or cell samples containing cells of the first category, the total pixel count is the sum of abnormal pixel weights in the color range for each patient sample image or for each group in the sample image based on grouping of pixels by neighborhood (location), such as in one or more pixel groups. In this way, non-normal cells that are grouped into relevant and / or sufficient size blobs, e.g. cancer blobs, can be identified. For example, in this way, one large blob and / or several small groups of cancer cells with relevant / sufficient size can be captured. By way of example (see also below), if any one group has a pixel count of 1000 or more, or if the total (all groups) has a pixel count of 3000 or more, the sample will be said to be a sample belonging to category 1. Here, 1000 and 3000 are exemplary thresholds for the first and second thresholds, respectively.
[0100] According to this embodiment, the remaining pixels correspond to pixels within the color range, and step C) comprises: C11) Optionally, removing pixels in the sample image that correspond to background regions; C12) removing pixels outside the color range obtained from the sample image; C13) Optionally, removing pixels outside the red range from the sample image; C14) assigning the remaining pixels to groups such that every remaining pixel belonging to a group is within a maximum distance from every other remaining pixel in that group, and each group is within a minimum distance from every remaining pixel not belonging to that group; C15) calculating the total number of pixels for each group as the sum of the abnormal pixel weights by summing all pixel weights of the remaining pixels of that group; may include.
[0101] This necessarily puts nearby cancer pixels in the same group, and also explains how a new group is created by not being able to assign a pixel to any existing group if this pixel is more than the maximum distance away from any existing group.
[0102] The minimum and maximum distances mentioned in this embodiment are variable based on the density and value of the weighted cancer pixels. Therefore, it is not simple to give specific minimum and maximum distance values. These distances are generated by blurring and then thresholding the weighted cancer image as shown in Example 4.
[0103] By assigning weighted values to all remaining pixels, one or more groups of pixels can be identified. In this way, instead of relative values (pixel ratios), absolute values (sum of pixel values) are compared to the obtained threshold value. Using absolute values, one or more blobs (groups) of sufficiently large non-normal cells can be found, while using relative values, the amount of non-normal cells per sample image is identified.
[0104] In case of identifying two or more groups of non-normal cells, at least one predefined or acquired threshold can be used. For example, a first predefined threshold can be used to identify a smaller group of pixels indicative of a non-normal sample, where any group of pixels will independently have a sum of pixel values that is not considered as a non-normal sample. A second threshold can then be applied to the sum of pixel values for all remaining groups of pixels. Typically, the second threshold will be at a higher level compared to the first threshold. In this way, the risk of excluding non-normal samples from further analysis is reduced. For this purpose, one predefined (not acquired) threshold for comparison with the maximum pixel value (largest group in the image) is used, or alternatively, two predefined thresholds can be used, where the smaller one is for the maximum pixel value (largest group) in the image and the larger one is for the sum of all pixel values (groups) in the image. Moreover, if at least one larger group of pixels indicative of a non-normal sample (above the first threshold) is found, there is no need to perform further checks with the second threshold.
[0105] However, if no such larger group is found, a second threshold can be additionally applied to the sum of pixel values for all groups in the image (without excluding any groups), which is higher than the first threshold because the combined pixel values from all groups must be larger to constitute a non-normal sample than pixel values concentrated in just one group.
[0106] The values of the first and second thresholds can be derived experimentally, for example, when run on a batch of images where the normal and abnormal samples are known, producing two charts. The chart for the first threshold plots the largest group value (ignoring smaller groups) (Y-axis) for each image (X-axis is simply the image number), coloring the value points for normal and abnormal images differently, and can then be seen in the chart. In this chart, the threshold line should correctly separate the normal and abnormal points. The second chart for the second threshold is similar, with the difference that the total values from all groups in the image are plotted, rather than just the single largest group per image.
[0107] Optionally, non-normal (cancer) groups can also be included to be filtered by size. This can be done by discarding groups with a size (= width + height) smaller than a selected limit, for example 175 pixels (corresponding to 320 micrometers). This step is done after grouping, just before comparing the values with the threshold.
[0108] This size threshold has a different meaning (dimension) than the first and second thresholds discussed above that can be used for the sum of the group weights (total weight).
[0109] Thus, the method of the present invention allows the use of one or more thresholds to determine which pixels or groups of pixels are indicative of non-normal or normal samples, i.e., are or contain pixels belonging to a first or second category of samples. Each threshold is either obtained (e.g., obtained from a previous calculation) or pre-determined (provided by a user of the method). Thus, in some embodiments, a first threshold is compared to each group of pixels in the sample image, and / or a second threshold is compared to the sum of all groups of pixels in the sample image, and / or a third threshold is compared to the size of the pixel group in the sample image.
[0110] As mentioned above, if any color range is known to interfere with the classification of the sample, such as the brown periphery of blood in a prostate sample, this color range can be located to reduce the influence of these pixels and nearby pixels in the ratio calculation. Thus, in addition to steps C5 or C15 above, as illustrated in relation to Figures 5-9 above, the following steps may be performed: - locating pixels within a predetermined excluded color range EA (step S35), - reducing the influence of the pixels located in step C4) (or step C14) when counting the remaining pixels in the sample image, to obtain pixel counts corresponding to colours within the cells belonging to the first category (CA) (step S36); can be applied.
[0111] An example of an exclusion area EA is the color red, close to the color range that identifies the presence of blood in a sample, normal (healthy) cells.
[0112] The reason is that red indicates blood and therefore healthy cells. The absence of red increases the likelihood of unhealthy cells. Typically, healthy cells have some red color.
[0113] In optimizing this method, cancer (brown) and possibly blood (red) colors are also searched for. Then, to reduce the influence of these cancer pixels, the weights of the cancer pixels closest to the red pixels are reduced (optional step), since these cancer pixels are less likely to be cancer due to their proximity to blood.
[0114] One further reason is that red is essentially dark brown, but they have opposite meanings. Typically, blood means that the cells are healthy, and brown means that cancer is present. However, these colors can be difficult to separate, and some red (blood) pixels may be falsely detected as cancer pixels. However, since they are also surrounded by neighboring red (blood) color pixels, these false positives will be weighted to zero and will not affect the results.
[0115] Also, according to some embodiments of the method, step C) comprises the further step of weighting the pixels based on their distance to the red pixel, whereby a weight value is assigned to each remaining pixel, the weight value being based on its distance from the nearest red pixel, such that if the pixel is closer to the nearest red pixel it is assigned a low value and if the pixel is farther from the red pixel it is assigned a high value.
[0116] In the above method for defining the color range, after classifying or dividing the samples into two different categories, a sample image of each sample is obtained. This can be done using an appropriate type of image scanner.
[0117] In yet another embodiment, described in further detail in Example 5, the present invention refers to a method for selecting a tissue or cell sample as disclosed above, in which after step B and before step C, the edges of the sample image are cropped to reduce the risk of the sample being erroneously classified as belonging to the first category.
[0118] 14 shows a system 140 for defining a color range to be used in identifying the presence of cells belonging to a first category in a tissue or cell sample using a plurality of samples 90 divided into at least one batch, each batch being stained and each sample being classified into a first category and a second category. The system 140 comprises an image scanner 141 configured to acquire a sample image of each sample 90, a first control unit 142, and a data storage unit dB. The first control unit 142 is - defining a color range for each batch of sample images that identifies samples belonging to a first category; - evaluating the sample images in each test batch and adjusting the color range for each test batch to ensure that all samples in the first category are correctly categorized; storing the adjusted color range in a data storage device dB for use in identifying cells belonging to a first category in a tissue or cell sample; It is structured as follows.
[0119] 14 also shows a system 140 for selecting tissue or cell samples containing cells belonging to a first category using at least one patient sample 90 containing tissue and / or cells to be stained. The system comprises an image scanner 141 configured to acquire a sample image of each patient sample 90, a second control unit 143 and a data storage unit dB. The second control unit 143 is - retrieving the color range determined by the above system from a data storage unit dB, - determining the total number of pixels within a color range for each patient sample image, e.g., the sum of abnormal pixel weights or the pixel ratio CA / SA; - classifying each patient sample as belonging to the second category if the total number of pixels in the sample image or per group in the image is below one or more pre-determined thresholds depending on the thresholds compared and the embodiment used, or classifying each patient sample as belonging to the first category if the total number of pixels in the sample image or per group in the image is equal to or greater than the thresholds depending on the thresholds compared and the embodiment used; - Identify patient samples belonging to the second category as excluded from review It is structured as follows.
[0120] The first control unit 142 for defining the color gamut can also be used to periodically calibrate the system to detect and adjust for variations in the image scanner. Furthermore, the first control unit 142 and the second control unit 143 can be implemented in a system with an integrated database for storing data, as indicated by dashed line 144 in FIG.
[0121] The sample carrier 92 on which one or more samples 90 are provided may also comprise a reference field 91 used to adjust the above-mentioned color range.
[0122] Figure 15 shows a generic control unit 150 suitable for implementation in the system described in relation to Figure 14. The control unit 150 comprises a processor 151, a memory 152 and an input / output interface 153. The processor is configured to execute instructions which may be stored in the memory 152 and to communicate with external units (e.g. the optical image scanner 141 and the data storage device dB) via the input / output interface 153.
[0123] The method described in relation to Figure 11 may be implemented in a computer program for defining a color range to be used in identifying the presence of cells belonging to a first category in a tissue or cell sample, the computer program including instructions, when executed on at least one processor 151, for causing the at least one processor 151 to perform a method according to the method described in relation to Figure 11.
[0124] FIG. 16 shows a computer-readable storage medium 160 having a computer program for reconstructing events associated with defining a color range according to the method described in relation to FIG. 11 and / or for selecting a tissue or cell sample containing cells belonging to a first category according to the method described in relation to FIGS. 12 and 13.
[0125] The methods described in relation to Figures 12 and 13 may be implemented in a computer program for selecting tissue or cell samples containing cells belonging to a first category, the computer program including instructions, when executed on at least one processor 151, for causing the at least one processor 151 to perform a method according to the methods described in relation to Figures 12 and 13.
[0126] Working Example Example 1 Needle biopsies (1.0 mm diameter, core biopsies) of prostate tissue are fixed in 10% neutral buffered formalin, paraffin embedded, and sectioned into approximately 4 μm thin sections. Stained sections are immunostained with three antibodies: P504S (AMACR), p63, and CK5 (cytokeratin 5).
[0127] The prostate gland is composed of glandular epithelium surrounded by connective tissue. At the periphery of the gland, myoepithelial cells are present. Myoepithelial cells stain immunohistochemically with p63 and CK5 antibodies, whereas glandular epithelial cells do not. P504S antibody stains epithelial cells transformed into adenocarcinoma, whereas myoepithelial cells and normal glandular cells do not. Results: In prostate adenocarcinoma, glandular cells are immunostained with P504S (brown staining) and the peripheral myoepithelial cells are absent. In normal prostate, glandular cells are not stained and peripheral myoepithelial cells are immunostained with antibodies against p63 and CK5 (red staining). Thus, the staining patterns using immunohistochemistry (antibodies against P504S, p63 and CK5) are fundamentally different in normal prostate and prostate adenocarcinoma due to the two colors utilized (brown and red). Hematoxylin-eosin is used as background stain (light blue) for tissue sections.
[0128] Example 2 Tissues from lymph nodes were fixed in 10% neutral buffered formalin and embedded in paraffin. 4 μm thin sections were cut and placed on glass slides. After dehydration with graded alcohols, sections were immunostained with an antibody against the epithelial cell marker BEREP4. BEREP4 binds to normal epithelial cells and epithelial-derived cancers, such as colon cancer. BEREP4 antibody was visualized by brown staining with DAB (diaminobenzidine) as a chromogen. Hematoxylin was used as a background stain for lymph node tissue by giving a pale blue staining of normal lymph nodes. Sections were then cover slipped.
[0129] Normal lymph nodes are devoid of epithelial cells and do not stain with the BEREP4 antibody, whereas lymph nodes with metastases from colon cancer contain cells to which the BEREP4 antibody attaches. This results in the presence of brown staining in addition to the light blue background staining used to visualize the sections in the microscopic images. All regional lymph nodes of colon cancer patients are analyzed to identify which lymph nodes are normal and which contain metastatic cancer.
[0130] The BEREP4 antibody stains glandular cells in normal colon and is used as a positive staining control.
[0131] Example 3 Two examples of the preparation of reference field samples are as follows: Fix human kidney cells and section as described above or as generally known in the art. Immunostain these samples with P504S (AMACR) and use as reference field in the evaluation of prostate samples. Similarly, fix human epithelial cells, section as generally known, immunostain with p63 and CK5 (cytokeratin 5) and use as reference field for prostate samples.
[0132] Example 4 - Grouping Cancers into Blobs for Absolute Evaluation Program Flow 1. Input data First, the cancer color is filtered in the same way as above, i.e., define the cancer color and the blood color, then filter the image to keep only the cancer color (as a binary image, 1 is cancer color, 0 is the rest), then filter the image to keep the blood color and use that to create a distance transform image (pixel values 0-255 inversely proportional to distance from blood), then multiply the cancer image by the distance transform image to get a cancer image weighted for distance to blood.
[0133] Fig. 17 is the source image and Fig. 18 is the weighted cancer color image. The weighted cancer image (Fig. 18) serves as the input for grouping.
[0134] Note that optional further steps, such as finding sample edges and trimming some of these, can be used to reduce false positives from connective tissue. These steps are described in Example 5.
[0135] 2. Cancer pixel grouping First, we need to find a way to estimate the distance between white pixels in the weighted cancer image. Two methods can be used. One is to use a distance transform and then threshold this, where the threshold is the desired grouping distance (in pixels) divided by 2. The other method is to blur the weighted cancer image using a blur element size equal to the maximum desired grouping distance + 1, and then threshold it with a threshold of 0. Here we use the second method.
[0136] 2.1. First Method We will show the first method first, as it is easier to understand and will also help to understand the second method more easily. If we want to group cancer pixels over a maximum distance of 60 pixels, see the following images: Cancer image after distance transformation (Figure 19) and Distance transform thresholded at value 30 (=distance / 2) and inverted (inverted = white becomes black and black becomes white) (Figure 20).
[0137] As can be seen, every white pixel becomes a white circle with a radius of 30. Then, circles from white pixels closer than 60 pixels away will overlap and be composited into a larger blob.
[0138] In the next step, the values of all cancer pixels covered by a blob are summed (this is done for all blobs).
[0139] In the following image (Figure 21), the different blob coverage of cancer pixels is shown with a unique color for each blob, and you can also see the weighted cancer pixels (white) that belong to each blob. This is just an example created for easier understanding. We will not use colored blob images in this program.
[0140] Also note that blobs are only used to group pixels. The cancer activation calculation for each group is done by summing the values of pixels in the weighted cancer image (FIG. 18) that are located in the area covered by that blob, not the sum of the blob image pixels. The term "group cancer activation" is used hereafter.
[0141] This method is simpler because the grouping distance is not influenced by pixel intensity (pixel intensity is determined by the distance to blood) or by neighboring pixels, but each pixel always produces a circle with radius = 30. Note, however, that after grouping, pixel intensity still influences the group cancer activation for that blob, since it is calculated by summing the weighted cancer pixel values.
[0142] 2.2 Second Method The first method had the drawback that a single random brown pixel (typically noise) located between two blobs could end up bridging them over a fairly large distance.
[0143] Another drawback was that there would be no difference in the bridging distance between a sparse group of a few pixels and a very dense group (see FIG. 22).
[0144] The following method using blur has the following unique features: 1) Darker pixels (closer to blood) will result in smaller circles (an inherent property of the blur itself) 2) A large number of very close white pixels will produce a much larger blob than a single pixel of exactly the same intensity, with a denser grouping producing a larger blob than a sparser grouping (again, an inherent property of the blur itself).
[0145] Both of these properties are believed to be desirable and are believed to more closely match our view of how pixels should be grouped.
[0146] Instead, see Figure 23 for an illustration of how blurring is performed.
[0147] Blurring causes the pixel value to be somewhat diffused (expanded) over a larger area. If the pixel is whiter, its value can be diffused more widely and then reduced altogether. If there are many adjacent white pixels, their diffused areas overlap and support each other by diffusing their white color over the neighboring white pixels. Search for the term "Gaussian blur" for an alternative explanation.
[0148] Therefore, thresholding the blurred image will result in different blobs than the inverse threshold of the distance transform.
[0149] A final note: because pixels are joined over very large distances, the blurring must be strong (spreading pixel values over a very large area), and for single pixels (especially the darker ones), it may be that the central maximum is zero, but that the blurring is strong enough to make the pixel disappear completely, especially if it is a darker pixel and is not supported by nearby neighbors. This effect can be reduced or balanced as desired by dilating the weighted cancer image just before blurring (dark pixels far from any supporting neighbors are likely noise and can be made to disappear). Dilatation expands all pixels in all directions without value reduction (it can be thought of as a magnification). See Figures 24-27: first the original weighted cancer image (Figure 24), then the same image dilated (Figure 25), then the original (non-dilated) weighted cancer image blurred (Figure 26), then the blurred dilated image (brighter and more spread out) (Figure 27).
[0150] 3. Thresholding and Filtering Groups of pixels have already formed and a decision must be made as to what to do with them, i.e. which groups contain actual cancer, if any.
[0151] A threshold for "group cancer activation" can be experimentally determined and all groups with activation above this threshold can be classified as real cancer.
[0152] There can be a second, higher threshold for the total activation from all groups, i.e. the "total image activation."
[0153] In addition, groups with areas that are too small can be removed.
[0154] Example 5 - Sample edge cut program flow 1. premise The need to remove boundaries arose from the observation that most false detections with cancer color and debris (such as connective tissue) occur near boundaries.
[0155] So, simply, some of the edges are clipped. This significantly reduces false positives.
[0156] Note: The amount of cropping and the usefulness itself is specific to the application of the method to prostate cancer analysis and the zoom level used on the images (approximately 546 pixels / mm).
[0157] See below for the steps used for cutting.
[0158] The resulting ablation is on average 14 pixels wide (from each side), which corresponds to about 25.5 μm at the zoom level used (about 546 pixels / mm).
[0159] FIG. 28 depicts an exemplary source image.
[0160] Step 1: Find the edges (simply a threshold with value 205) which results in a binary image (0 and 255) called the "mask" (Figure 29).
[0161] Step 2: Fill all the gaps (in the next step, we want to cut only the outer edges. By filling the gaps, no inner edges will result) (Figure 30).
[0162] Step 3: Apply Gaussian blur with element size 17 (Figure 31).
[0163] Step 4: Apply a threshold (use a value of 254). This removes an average of 7 pixels (about 13 μm) from all sides of the outer edge (Figure 32).
[0164] Step 5: The result from step 4 is combined (bitwise "and" operation) with the result from step 1 to restore the interior gaps while preserving the exterior edge clippings (Figure 33).
[0165] Step 6: Again, blur with element size 5 and threshold with value 255. This will fill the smallest interior gaps, but larger gaps will not be filled completely. Expand all sides by 2 pixels (Figure 34).
[0166] Step 7: Blur with element size 25 and threshold with value 254. This results in all remaining edges (interior and exterior) being cropped by an additional 9.5 pixels (17 μm) (Figure 35).
[0167] Step 8: Combine (bitwise "and" operation) the result from step 7 with the result from step 1 to restore small interior gaps. The result of this step is the final mask (Figure 36).
[0168] The final mask can be applied to the input image: the combined exterior edge removal is on average 14.5 pixels (27 μm), and the interior edge removal (only the larger gaps) is 7.5 pixels (14 μm) (Figure 37).
[0169] conclusion The present invention is not limited to the above-described preferred embodiments. Various alternatives, modifications and equivalents can be used. Therefore, the above-described embodiments should not be construed as limiting the scope of the present invention, which is defined by the appended claims.
Claims
1. 1. A method for defining color ranges for use in identifying the presence of different categories of cells in a tissue or cell sample, comprising: a) dividing a plurality of samples into at least one batch and, for each batch, staining and classifying each sample into a first category and a second category (S2a); b) acquiring a sample image for each sample (S2b); c) defining for each batch of sample images a color range that identifies samples belonging to said first category (S3); d) evaluating the sample images in each batch and adjusting the color range for each batch to ensure that all samples in the plurality of samples that fall into the first category are accurately categorized (S4); e) selecting at least one threshold value and storing an adjusted color range for use in identifying cells belonging to said first category in a tissue or cell sample (S12); A method comprising:
2. The method of claim 1 , wherein the sample is divided into several batches, and steps c) and d) are repeated for each batch (S10) before performing step e).
3. 3. The method of claim 1, wherein each sample further comprises a reference field, step a) further comprises a step of staining the reference field, and the method further comprises a step (S11) of normalizing the adjusted color range for each batch based on the color of the reference field before performing step e).
4. 4. The method of claim 1, wherein step c) further comprises the step of selecting a default color range, and step d) further comprises the step of adjusting the color range to ensure that all samples of the plurality of samples belonging to the first category are identified and to minimize samples belonging to the second category that are erroneously identified as belonging to the first category.
5. The at least one threshold value can be selected from the following options: (a) the stored color range and the measured number of pixels in the color range; (b) the largest group of pixels in the batch of sample images; (c) the sum of all pixel groups per sample image in the batch of sample images; and / or (d) a minimum size pixel group; The method according to claim 1 , further comprising selecting a sample from the first category and a sample from the second category based on one of the following:
6. 1. A method for selecting a tissue or cell sample containing cells belonging to a first category, comprising: The method comprises a step (S21) of obtaining or predetermining the at least one threshold value and obtaining an adjusted color range according to any one of claims 1 to 5, The method further comprising: A) staining at least one patient sample comprising tissue and / or cells (S22a); B) acquiring a sample image for each patient sample (S22b); C) determining a total pixel value for each patient sample image as a pixel ratio determined by dividing the sum of abnormal pixel weights within said color range or the number of pixels falling within said color range by the total number of pixels in said sample image (S24); D) classifying each patient sample as belonging to the second category if the total pixel value in the sample image is below the at least one acquired or pre-determined threshold value or classifying each patient sample as belonging to the first category if the total pixel value in the sample image is equal to or greater than the at least one acquired or pre-determined threshold value (S25, S26a, S26b); E) excluding from review patient samples belonging to the second category (S29); The method further comprising:
7. If several patient samples contain cells from the same patient, steps A) to D) are repeated for each patient sample, and the method further comprises, prior to step E), aggregating results for patient samples containing cells from the same patient by reclassifying patient samples belonging to the second category as belonging to the first category if any of the patient samples were classified as belonging to the first category in step C) (S28). The method of claim 6 , further comprising:
8. 8. A method according to claim 6 or 7, wherein step C) comprises the further step of weighting pixels based on their distance to a red pixel, wherein a weight value based on the distance from the nearest red pixel is assigned to each remaining pixel, a low value being assigned if the pixel is closer to the nearest red pixel and a high value being assigned if the pixel is farther from the red pixel.
9. Step C) C1) removing pixels in the sample image that correspond to background regions (S30); C2) counting the remaining pixels in the sample area (SA) (S31) to obtain a total sample pixel count; C3) removing pixels outside the color range obtained from the sample image (S32); C4) counting the remaining pixels within the color range (CA) to obtain pixel counts corresponding to colors within the sample that belong to the first category (CA) (S33); and C6) calculating (S34) a total pixel value as a proportion of pixels within the colour range for the sample image by dividing the pixel count corresponding to colours in the sample belonging to the first category (CA) by the total sample pixel count (SA); 9. The method according to any one of claims 6 to 8, comprising:
10. The method further comprising: Locating pixels within an excluded colour area (EA) (S35); reducing (S36) the influence of pixels in the located excluded color range (EA) when counting the remaining pixels in the sample image in step C4) to obtain pixel counts corresponding to colors in the sample that belong to the first category (CA); The method of claim 9 , further comprising:
11. the remaining pixels correspond to pixels within the color range, and step C) comprises: C12) removing pixels outside the color range obtained from the sample image; C14) assigning remaining pixels to groups such that all remaining pixels belonging to a group are within a maximum distance from other remaining pixels in the group; C15) calculating a sum of anomalous pixel weights for each group by summing all pixel weights of the remaining pixels of that group; 11. The method of claim 9 or 10, comprising:
12. The method of claim 11 , further comprising obtaining or predetermining the at least one threshold value, and comparing a first threshold value to each group of pixels in the sample image, and / or comparing a second threshold value to the sum of all groups of pixels in the sample image, and / or comparing a third threshold value to a size of the group of pixels in the sample image.
13. 13. The method according to claim 6, further comprising, after step B and before step C, cropping the edges of the sample image in order to reduce the risk of a sample being erroneously classified as belonging to the first category.
14. 1. A system (140) for defining a color range for use in identifying the presence of cells belonging to a first category in a tissue or cell sample using a plurality of samples divided into at least one batch, comprising: Each batch is dyed and each sample (90) is classified into a first category and a second category; The system comprises an image scanner (141) configured to acquire a sample image of each sample (90), a first control unit (142), and a data storage unit (dB), The first control unit (142) defining, for each batch of sample images, a color range that identifies samples belonging to said first category; evaluating the sample images in each batch and adjusting the color range for each batch to ensure that all samples in the plurality of samples within the first category are accurately categorized; storing in said data storage unit (dB) an adjusted color range used in identifying samples belonging to said first category among tissue or cell samples; It is configured as follows: System (140).
15. The system further comprising a second control unit (143), The second control unit (143) 15. The system of claim 14, further comprising: obtaining the adjusted color range from the data storage unit (dB); determining a pixel ratio for each patient sample image by dividing the sum of abnormal pixel weights within said color range or the number of pixels falling within said color range by the total number of pixels in said sample image; classifying each patient sample as belonging to a second category if the sum of abnormal pixel weights or the pixel ratio in the sample image is below at least one predetermined or obtained threshold value, or classifying each patient sample as belonging to the first category if the sum of abnormal pixel weights or the pixel ratio in the sample image is equal to or greater than the at least one threshold value; identifying patient samples that fall into the second category for exclusion from review; It is configured as follows:
15. The system of claim 14.
16. A computer program for defining a color range for use in identifying samples belonging to a first category, comprising: comprising instructions which, when executed on at least one processor, cause said at least one processor to perform the method of any one of claims 1 to 5, Computer program.
17. A computer readable storage medium (160) having a computer program for reconstructing events associated with defining a color range according to claim 16.
18. 1. A computer program for selecting samples belonging to a first category, comprising: comprising instructions which, when executed on at least one processor, cause said at least one processor to perform the method of any one of claims 6 to 13, Computer program.
19. 20. A computer readable storage medium (160) having a computer program for selecting a tissue or cell sample according to claim 18.
Citation Information
Patent Citations
histological assessment
JP2005535892A
A method and system for analyzing biological samples using spectral imaging.
JP2014529158A
Biospecimen classification methods and systems, including analysis optimization and correlation exploitation
JP2018502275A
Method for evaluating cancer
US20120115139A1
Image analysis apparatus, image analysis method, image analysis program and recording medium
WO2010087112A1
