Apparatus and method for detecting content of interest on a slide using machine learning

The apparatus and method use machine learning to classify and extend grids based on content detection, optimizing WSI by reducing scan time and improving tissue segment localization and classification accuracy.

WO2025255524A1PCT designated stage Publication Date: 2025-12-11PRAMANA INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/US2025/032736
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-11-15
Filing Date
2025-06-06
Publication Date
2025-12-11

AI Technical Summary

Technical Problem

Whole slide imaging (WSI) requires efficient implementation of grid rejection and extension techniques to optimize scan time and resource efficiency while ensuring comprehensive analysis of content of interest without omitting faint peripheral tissues.

Method used

An apparatus and method using machine learning to detect content of interest on a slide by classifying grids into accepted and rejected categories, employing a grid extension model to conditionally extend borders based on content detection, and utilizing a Z-plane extrapolation model for refined classification.

Benefits of technology

Enhances scan efficiency by accurately localizing and classifying tissue segments, reducing false positives, and ensuring complete visualization of content of interest in whole slide images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US2025032736_11122025_PF_FP_ABST
    Figure US2025032736_11122025_PF_FP_ABST
Patent Text Reader

Abstract

An exemplary apparatus according to this disclosure includes at least a display, a processor, and a memory communicatively connected to the processor. The processor generates a display data structure comprising a plurality of visual elements, configures a display device to display the visual elements, receives an activation of an event handler of the plurality of event handlers, wherein receiving the activation further comprises receiving a user selection of a visual element of the plurality of visual elements that is linked to the event handler, and executes the algorithm module associated with the activated event handler comprising an image processing module configured to receive an initial image and output a modified image.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] APPARATUS AND METHOD FOR DETECTING CONTENT OF INTEREST ON A SLIDE USING MACHINE LEARNING

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application is an International PCT application, and claims priority to U.S. Patent Application No. 18 / 949,518, filed on November 15, 2024, entitled “APPARATUS AND METHOD FOR DETECTING CONTENT OF INTEREST ON A SLIDE USING MACHINE LEARNING,” and U.S. Non-Provisional Patent Application No. 18 / 736,818, filed on June 7, 2024, now U.S. Patent No. 12,217,520 issued on February 4, 2025, entitled “APPARATUS AND METHOD FOR DETECTING CONTENT OF INTEREST ON A SLIDE USING MACHINE LEARNING,” the entirety of each of which is incorporated herein by reference.

[0004] FIELD OF THE INVENTION

[0005] The present invention generally relates to the field of medical imaging. In particular, the present invention is directed to an apparatus and a method for detecting content of interest on a slide using machine learning.

[0006] BACKGROUND

[0007] Whole slide imaging (WSI) of glass slides necessitates scanning all areas of interest at high magnification to ensure comprehensive analysis. Simultaneously, it is crucial to avoid scanning regions that are not of interest to optimize scan time and resource efficiency. There is a need for efficient implementation of grid rejection and grid extension techniques to reduce scan time, prevent the omission of faint peripheral tissues, and ensure accurate localization and confident classification of tissue segments using macro images and high magnification data.

[0008] SUMMARY OF THE DISCLOSURE

[0009] In an aspect, an apparatus for detecting content of interest on a slide using machine learning includes at least a processor, a memory communicatively connected to the at least a processor, and a grid extension model configured to scan the one or more grids of an area of interest, wherein scanning the one or more grids includes identifying a border row and a border column of the one or more grids and conditionally extending the grid row and the grid column of the area of interest as a function of whether the border row and the border column includes content of interest. The memory contains instructions configuring the processor to receive a first image of the at least an image from the image capturing device, wherein the first image comprises a macro image, identify one or more areas of interest associated with the one or more grids of the first image, receive a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image, classify, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image includes classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids, scan, using the image capturing device, the accepted grids to generate an output image, and display, using a display device, the output image.

[0010] In some aspects, the techniques described herein relate to an apparatus, wherein the image capturing device is further configured to capture, using a macro imaging setup, the macro image of the at least an image of the received slide and capture, using a high magnification imaging setup, the high magnification image of the at least an image of the received slide.

[0011] In some aspects, the techniques described herein relate to an apparatus, wherein the memory contains instructions further configuring the at least a processor to utilize a classifier model, wherein the classifier model is configured to classify, using the at least a probe point from the macro image and the high magnification image, a content of interest of the one or more areas of interest into the accepted grids or the rejected grids.

[0012] In some aspects, the techniques described herein relate to an apparatus, wherein the apparatus includes a machine learning model, wherein the machine learning model is trained using a training set including labeled high magnification images.

[0013] In some aspects, the techniques described herein relate to an apparatus, wherein the machine learning model includes a neural network.

[0014] In some aspects, the techniques described herein relate to an apparatus, wherein the apparatus includes a Z-plane extrapolation model, wherein the Z-plane extrapolation model is configured to scan the accepted grids, wherein scanning the accepted grids includes: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z-plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

[0015] In some aspects, the techniques described herein relate to an apparatus, wherein the memory contains instructions further configuring the at least a processor to conditionally re-scan the accepted grids if the content of interest is detected in the border column or the border row.

[0016] In some aspects, the techniques described herein relate to an apparatus, wherein the output image includes a whole slide image, wherein the whole slide image includes one or more content of interest.

[0017] In some aspects, the techniques described herein relate to an apparatus, wherein the one or more content of interest of output image includes a complete visual of the content of interest.

[0018] In another aspect, a method for detecting content of interest on a slide using machine learning includes receiving a first image of the at least an image from the image capturing device, wherein the first image comprises a macro image, identifying one or more areas of interest associated with the one or more grids of the first image, receiving a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image, classifying, by the at least a processor, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image includes classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids, scanning, using a grid extension model, the one or more grids of an area of interest, wherein scanning the one or more grids includes identifying a border row and a border column of the one or more grids and conditionally extending the grid row and the grid column of the area of interest as a function of whether the border row and the border column includes content of interest, scanning, using the image capturing device, the accepted grids to generate an output image, and displaying, using a display device, the output image.

[0019] In some aspects, the techniques described herein relate to a method, further including: capturing, using a macro imaging setup of the image capturing device, the macro image of the at least an image of the received slide; and capturing, using a high magnification imaging setup of the image capturing device, the high magnification image of the at least an image of the received slide.

[0020] In some aspects, the techniques described herein relate to a method, further including utilizing, by the at least a processor, a classifier model, wherein the classifier model is configured to classify, using the at least a probe point from the macro image and the high magnification image, a content of interest of the one or more areas of interest into the accepted grids or the rejected grids.

[0021] In some aspects, the techniques described herein relate to a method, further including training, using the at least a processor, a machine learning model, wherein the machine learning model is trained using a training set including labeled high magnification images.

[0022] In some aspects, the techniques described herein relate to a method, wherein the machine learning model includes a neural network.

[0023] In some aspects, the techniques described herein relate to a method, further including scanning the accepted grids, wherein scanning the accepted grids includes: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z-plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

[0024] In some aspects, the techniques described herein relate to a method, further including conditionally re-scanning the accepted grids if the content of interest is detected in the border column or the border row.

[0025] In some aspects, the techniques described herein relate to a method, wherein the output image includes a whole slide image, wherein the whole slide image includes one or more content of interest.

[0026] In some aspects, the techniques described herein relate to a method, wherein the one or more content of interest of output image includes a complete visual of the content of interest.

[0027] In another aspect an apparatus for detecting content of interest on a slide is described. The apparatus includes an image capturing device, wherein the image capturing device is configured to capture at least an image of a received slide. The apparatus further includes at least a computing device, wherein the computing device includes a memory and at least a processor communicatively connected to the memory, wherein the memory contains instructions configuring the at least a processor to receive a first image of the at least an image from the image capturing device, identify one or more areas of interest associated with one or more grids of the first image, classify, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image includes classifying the one or more grids into accepted grids of the one or more grids and scan, using the image capturing device, the accepted grids to generate an output image. The apparatus further includes a grid extension model configured to scan the one or more grids of an area of interest, wherein scanning the one or more grids includes identifying a border row and a border column of the one or more grids and conditionally extending the border row and the border column of the area of interest as a function of whether the border row and the border column includes a content of interest.

[0028] In some aspects, the techniques described herein relate to an apparatus, wherein the first image includes a macro image.

[0029] In some aspects, the techniques described herein relate to an apparatus, wherein the at least a processor is further configured to display, using a display device, the output image.

[0030] In some aspects, the techniques described herein relate to an apparatus, wherein the memory contains instructions further configuring the at least a processor to identify one or more areas of interest associated with one or more grids of the first image, wherein identifying the one or more areas of interest associated with the one or more grids of the first image further includes scanning, using the image capture device, a second image of the received slide.

[0031] In some aspects, the techniques described herein relate to an apparatus, wherein the second image includes a high magnification image associated with the one or more areas of interest of the first image.

[0032] In some aspects, the techniques described herein relate to an apparatus, wherein classifying the one or more grids into the one or more accepted grids of the one or more grids includes classifying the one or more grids into the one or more accepted grids of the one or more grids and one or more rejected grids of the one or more grids.

[0033] In some aspects, the techniques described herein relate to an apparatus, wherein the grid extension model includes a machine learning model.

[0034] In some aspects, the techniques described herein relate to an apparatus, wherein training the machine learning model includes training the machine learning model using high magnification images with one or more contents of interest scattered throughout a plurality of grids.

[0035] In some aspects, the techniques described herein relate to an apparatus, wherein identifying the content of interest includes identifying the content of interest using a classifier model, wherein the classifier model is configured to classify, using at least a probe point, the content of interest. In some aspects, the techniques described herein relate to an apparatus, wherein the memory contains instructions further configuring the at least a processor to conditionally re-scan the one or more accepted grids if the content of interest is detected in the border column or the border row.

[0036] In another aspect, a method for detecting content of interest on a slide is described. The method includes receiving, by at least a processor, a first image from an image capturing device, identifying, by the at least a processor, one or more areas of interest associated with one or more grids of the first image, classifying, by the at least a processor, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image includes classifying the one or more grids into accepted grids of the one or more grids and scanning, using a grid extension model, the one or more grids of an area of interest, wherein scanning the one or more grids includes identifying a border row and a border column of the one or more grids and conditionally extending the border row and the border column of the area of interest as a function of whether the border row and the border column includes a content of interest. The method further includes scanning, using the image capturing device, the accepted grids to generate an output image.

[0037] In some aspects, the techniques described herein relate to a method, wherein the first image includes a macro image.

[0038] In some aspects, the techniques described herein relate to a method, further including displaying, using a display device, the output image.

[0039] In some aspects, the techniques described herein relate to a method, further including identifying, by the at least a processor, one or more areas of interest associated with one or more grids of the first image, wherein identifying, by the at least a processor, the one or more areas of interest associated with the one or more grids of the first image further includes scanning, using the image capture device, a second image of the received slide.

[0040] In some aspects, the techniques described herein relate to a method, wherein the second image includes a high magnification image associated with the one or more areas of interest of the first image.

[0041] In some aspects, the techniques described herein relate to a method, wherein classifying the one or more grids into the one or more accepted grids of the one or more grids includes classifying the one or more grids into the one or more accepted grids of the one or more grids and one or more rejected grids of the one or more grids.

[0042] In some aspects, the techniques described herein relate to a method, wherein the grid extension model includes a machine learning model.

[0043] In some aspects, the techniques described herein relate to a method, wherein training the machine learning model includes training the machine learning model using high magnification images with one or more contents of interest scattered throughout a plurality of grids.

[0044] In some aspects, the techniques described herein relate to a method, wherein identifying the content of interest includes identifying the content of interest using a classifier model, wherein the classifier model is configured to classify, using at least a probe point, the content of interest.

[0045] In some aspects, the techniques described herein relate to a method, further including conditionally re-scanning the one or more accepted grids if the content of interest is detected in the border column or the border row.

[0046] In another aspect, an apparatus for detecting content of interest on a slide is described. The apparatus including at least a processor and a memory communicatively connected to the at least a processor, wherein the memory contains instructions configuring the at least a processor to receive, from an image capturing device, a first image of at least an image of a slide, wherein the first image comprises a macro image, identify one or more areas of interest associated with one or more grids of the first image, classify, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image comprises classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids, identify at least a border row and at least a border column of the one or more grids of the first image, and conditionally extend at least a grid row and at least a grid column of the first image as a function of whether the at least a border row and the at least a border column comprise content of interest, receive a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image and the grid row and the grid column conditionally extended as a function of whether the border row and the border column comprise content of interest, scan, using the image capturing device, the accepted grids to generate an output image.

[0047] In some aspects, the techniques described herein relate to an apparatus, wherein identifying one or more areas of interest associated with one or more grids of the first image further includes restricting high-magnification image analysis to only a subset of the one or more grids of the first image.

[0048] In some aspects, the techniques described herein relate to an apparatus, wherein identifying the border row and the border column includes using a grid extension model configured to scan the one or more grids of an area of interest.

[0049] In some aspects, the techniques described herein relate to an apparatus, wherein conditionally extending at least a grid row and at least a grid column of the first image is performed as a function of a probability score generated by a classifier model indicating a likelihood of content of interest in a border field of view.

[0050] In some aspects, the techniques described herein relate to an apparatus, wherein conditionally extending the grid row and the grid column includes: iteratively extending the grid by one field of view outwards in a direction of a flagged border row and flagged border column; and terminating an extension as a function of detecting a clear border field of view.

[0051] In some aspects, the techniques described herein relate to an apparatus, wherein classifying the one or more grids of the first image further includes: comparing a probability score of each grid against a classification threshold; and assigning each grid of the one or more grids to accepted grids of the one or more grids and rejected grids of the one or more grids as a function of comparing the probability score of each grid against a classification threshold.

[0052] In some aspects, the techniques described herein relate to an apparatus, wherein the memory further contains instructions configuring the at least a processor to classify, using at least a probe point of the first image and at least a probe point of the second image, content of interest of area of interest as accepted grid or rejected grid.

[0053] In some aspects, the techniques described herein relate to an apparatus, wherein the memory contains instructions further configuring the at least a processor to: evaluate a border field of view of the accepted grids; and conditionally initiate a re-scan of the accepted grids as a function of detecting content of interest in the border field of view of the accepted grids.

[0054] In some aspects, the techniques described herein relate to an apparatus, wherein the at least a processor is further configured to scan the accepted grids using a Z-plane extrapolation model, wherein scanning the accepted grids includes: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z- plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

[0055] In some aspects, the techniques described herein relate to an apparatus, wherein the memory further contains instructions configuring the at least a processor to: determine, using the second image, whether content of interest is included in each of the accepted grids of the one or more grids; and reclassify, as rejected grids of the one or more grids, each the accepted grids of the one or more grids as a function of determining whether content of interest is included in each of the accepted grids of the one or more grids.

[0056] In another aspect, a method for detecting content of interest on a slide. The method including receiving, from an image capturing device, a first image of at least an image of a slide, wherein the first image comprises a macro image, identifying, using at least a processor, one or more areas of interest associated with one or more grids of the first image, classifying, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image comprises classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids, identifying, using the at least a processor, at least a border row and at least a border column of the one or more grids of the first image, and conditionally extending at least a grid row and at least a grid column of the first image as a function of whether the at least a border row and the at least a border column comprise content of interest, receiving a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image and the grid row and the grid column conditionally extended as a function of whether the border row and the border column comprise content of interest, scanning, using the image capturing device, the accepted grids to generate an output image.

[0057] In some aspects, the techniques described herein relate to a method, wherein identifying one or more areas of interest associated with one or more grids of the first image further includes restricting high-magnification image analysis to only a subset of the one or more grids of the first image.

[0058] In some aspects, the techniques described herein relate to a method, wherein identifying the border row and the border column includes using a grid extension model configured to scan the one or more grids of an area of interest.

[0059] In some aspects, the techniques described herein relate to a method, wherein conditionally extending the grid row and grid column includes extending a grid row and grid column as a function of a probability score generated by a classifier model indicating a likelihood of content of interest in a border field of view.

[0060] In some aspects, the techniques described herein relate to a method, wherein conditionally extending the grid row and the grid column includes: iteratively extending the grid by one field of view outwards in a direction of a flagged border row and flagged border column; and terminating an extension as a function of detecting a clear border field of view.

[0061] In some aspects, the techniques described herein relate to a method, wherein classifying the one or more grids of the first image further includes: comparing a probability score of each grid against a classification threshold; and assigning each grid of the one or more grids to accepted grids of the one or more grids and rejected grids of the one or more grids as a function of comparing the probability score of each grid against a classification threshold.

[0062] In some aspects, the techniques described herein relate to a method, further including classifying, using at least a probe point of the first image and at least a probe point of the second image, content of interest of area of interest as accepted grid or rejected grid.

[0063] In some aspects, the techniques described herein relate to a method, further including: evaluating a border field of view of the accepted grids; and conditionally initiating a re-scan of the accepted grids as a function of detecting content of interest in the border field of view of the accepted grids.

[0064] In some aspects, the techniques described herein relate to a method, further including scanning, using a Z-plane extrapolation model, the accepted grids, wherein scanning the accepted grids includes: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z-plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

[0065] In some aspects, the techniques described herein relate to a method, further including: determining, using the second image, whether content of interest is included in each of the accepted grids of the one or more grids; and reclassifying, as rejected grids of the one or more grids, each the accepted grids of the one or more grids as a function of determining whether content of interest is included in each of the accepted grids of the one or more grids.

[0066] The details of one or more variations of the subject matter described herein are set forth in the accompanying drawings and the description below. Other features and advantages of the subject matter described herein will be apparent from the description and drawings, and from the claims.

[0067] DESCRIPTION OF DRAWINGS

[0068] For the purpose of illustrating the invention, the drawings show aspects of one or more embodiments of the invention. However, it should be understood that the present invention is not limited to the precise arrangements and instrumentalities shown in the drawings, wherein: FIG. 1 is a block diagram of an apparatus for detecting content of interest on a slide using machine learning;

[0069] FIG. 2A and 2B is an illustration of an exemplary embodiment for grid extension;

[0070] FIG. 3A and 3B is an illustration of an exemplary embodiment of filtering using high magnification probing;

[0071] FIG. 4A and 4B is an illustration of an exemplary embodiment of grid rejection using Z-plane extrapolation;

[0072] FIG. 5 is a block diagram of an exemplary machine-learning process;

[0073] FIG. 6 is a diagram of an exemplary embodiment of a neural network;

[0074] FIG. 7 is a diagram of an exemplary embodiment of a node of a neural network;

[0075] FIG. 8 is a block diagram of an exemplary method for detecting content of interest on a slide using machine learning;

[0076] FIG. 9 is a diagram depicting an exemplary method of slide imaging; and

[0077] FIG. 10 is a block diagram of a computing system that can be used to implement any one or more of the methodologies disclosed herein and any one or more portions thereof.

[0078] The drawings are not necessarily to scale and may be illustrated by phantom lines, diagrammatic representations, and fragmentary views. In certain instances, details that are not necessary for an understanding of the embodiments or that render other details difficult to perceive may have been omitted. Like reference symbols in the various drawings indicate like elements.

[0079] DETAILED DESCRIPTION At a high level, aspects of the present disclosure are directed to an apparatus and methods for detecting content of interest on a slide using machine learning. The apparatus includes at least a computing device comprised of a processor and a memory communicatively connected to the processor. The memory instructs the processor to receive a first image of the at least an image from the image capturing device, wherein the first image comprises a macro image. The processor identifies one or more areas of interest associated with the one or more grids of the first image. The processor receives a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image. The processor classifies, using at least a probed point, the one or more grids of the second image, wherein classifying the plurality of grids of the second image comprises classifying the plurality of grids into accepted grids of the plurality of grids and rejected grids of the plurality of grids. The processor scans, using the image capturing device, the accepted grids of the second image. The processor displays, using a display device, an output image.

[0080] Referring now to FIG. 1, an exemplary embodiment of apparatus 100 for detecting content of interest on a slide using machine learning is illustrated. Apparatus 100 may include a processor 104 communicatively connected to a memory 108. As used in this disclosure, “communicatively connected” means connected by way of a connection, attachment, or linkage between two or more relata which allows for reception and / or transmittance of information therebetween. For example, and without limitation, this connection may be wired or wireless, direct or indirect, and between two or more components, circuits, devices, systems, and the like, which allows for reception and / or transmittance of data and / or signal(s) therebetween. Data and / or signals there between may include, without limitation, electrical, electromagnetic, magnetic, video, audio, radio and microwave data and / or signals, combinations thereof, and the like, among others. A communicative connection may be achieved, for example and without limitation, through wired or wireless electronic, digital or analog, communication, either directly or by way of one or more intervening devices or components. Further, communicative connection may include electrically coupling or connecting at least an output of one device, component, or circuit to at least an input of another device, component, or circuit. For example, and without limitation, via a bus or other facility for intercommunication between elements of a computing device. Communicative connecting may also include indirect connections via, for example and without limitation, wireless connection, radio communication, low power wide area network, optical communication, magnetic, capacitive, or optical coupling, and the like. In some instances, the terminology “communicatively coupled” may be used in place of communicatively connected in this disclosure.

[0081] With continued reference to FIG. 1, memory 108 may include a primary memory and a secondary memory. “Primary memory” also known as “random access memory” (RAM) for the purposes of this disclosure is a short-term storage device in which information is processed. In one or more embodiments, during use of the computing device, instructions and / or information may be transmitted to primary memory wherein information may be processed. In one or more embodiments, information may only be populated within primary memory while a particular software is running. In one or more embodiments, information within primary memory is wiped and / or removed after the computing device has been turned off and / or use of a software has been terminated. In one or more embodiments, primary memory may be referred to as “Volatile memory” wherein the volatile memory only holds information while data is being used and / or processed. In one or more embodiments, volatile memory may lose information after a loss of power. “Secondary memory” also known as “storage,” “hard disk drive” and the like for the purposes of this disclosure is a long-term storage device in which an operating system and other information is stored. In one or remote embodiments, information may be retrieved from secondary memory and transmitted to primary memory during use. In one or more embodiments, secondary memory may be referred to as non-volatile memory wherein information is preserved even during a loss of power. In one or more embodiments, data within secondary memory cannot be accessed by processor. In one or more embodiments, data is transferred from secondary to primary memory wherein processor 104 may access the information from primary memory.

[0082] Still referring to FIG. 1, apparatus 100 may include a database. The database may include a remote database. The database may be implemented, without limitation, as a relational database, a key-value retrieval database such as a NOSQL database, or any other format or structure for use as database that a person skilled in the art would recognize as suitable upon review of the entirety of this disclosure. The database may alternatively or additionally be implemented using a distributed data storage protocol and / or data structure, such as a distributed hash table or the like. The database may include a plurality of data entries and / or records as described above. Data entries in database may be flagged with or linked to one or more additional elements of information, which may be reflected in data entry cells and / or in linked tables such as tables related by one or more indices in a relational database. Persons skilled in the art, upon reviewing the entirety of this disclosure, will be aware of various ways in which data entries in database may store, retrieve, organize, and / or reflect data and / or records.

[0083] With continued reference to FIG. 1, apparatus 100 may include and / or be communicatively connected to a server, such as but not limited to, a remote server, a cloud server, a network server and the like. In one or more embodiments, the computing device may be configured to transmit one or more processes to be executed by server. In one or more embodiments, server may contain additional and / or increased processor power wherein one or more processes as described below may be performed by server. For example, and without limitation, one or more processes associated with machine learning may be performed by network server, wherein data is transmitted to server, processed and transmitted back to computing device. In one or more embodiments, server may be configured to perform one or more processes as described below to allow for increased computational power and / or decreased power usage by the apparatus computing device. In one or more embodiments, computing device may transmit processes to server wherein computing device may conserve power or energy.

[0084] Further referring to FIG. 1, apparatus 100 may include any “computing device” as described in this disclosure, including without limitation a microcontroller, microprocessor, digital signal processor (DSP) and / or system on a chip (SoC) as described in this disclosure. Apparatus 100 may include, be included in, and / or communicate with a mobile device such as a mobile telephone or smartphone. Apparatus 100 may include a single computing device operating independently, or may include two or more computing devices operating in concert, in parallel, sequentially or the like; two or more computing devices may be included together in a single computing device or in two or more computing devices. Apparatus 100 may interface or communicate with one or more additional devices as described below in further detail via a network interface device. Network interface device may be utilized for connecting processor 104 to one or more of a variety of networks, and one or more devices. Examples of a network interface device include, but are not limited to, a network interface card (e.g., a mobile network interface card, a LAN card), a modem, and any combination thereof. Examples of a network include, but are not limited to, a wide area network (e. ., the Internet, an enterprise network), a local area network (e.g., a network associated with an office, a building, a campus or other relatively small geographic space), a telephone network, a data network associated with a telephone / voice provider (e.g., a mobile communications provider data and / or voice network), a direct connection between two computing devices, and any combinations thereof. A network may employ a wired and / or a wireless mode of communication. In general, any network topology may be used. Information (e.g., data, software etc.) may be communicated to and / or from a computer and / or a computing device. Processor 104 may include but is not limited to, for example, a computing device or cluster of computing devices in a first location and a second computing device or cluster of computing devices in a second location. Apparatus 100 may include one or more computing devices dedicated to data storage, security, distribution of traffic for load balancing, and the like. Apparatus 100 may distribute one or more computing tasks as described below across a plurality of computing devices of computing device, which may operate in parallel, in series, redundantly, or in any other manner used for distribution of tasks or memory between computing devices. Apparatus 100 may be implemented, as a non-limiting example, using a “shared nothing” architecture.

[0085] With continued reference to FIG. 1, processor 104 may be designed and / or configured to perform any method, method step, or sequence of method steps in any embodiment described in this disclosure, in any order and with any degree of repetition. For instance, processor 104 may be configured to perform a single step or sequence repeatedly until a desired or commanded outcome is achieved; repetition of a step or a sequence of steps may be performed iteratively and / or recursively using outputs of previous repetitions as inputs to subsequent repetitions, aggregating inputs and / or outputs of repetitions to produce an aggregate result, reduction or decrement of one or more variables such as global variables, and / or division of a larger processing task into a set of iteratively addressed smaller processing tasks. Processor 104 may perform any step or sequence of steps as described in this disclosure in parallel, such as simultaneously and / or substantially simultaneously performing a step two or more times using two or more parallel threads, processor cores, or the like; division of tasks between parallel threads and / or processes may be performed according to any protocol suitable for division of tasks between iterations. Persons skilled in the art, upon reviewing the entirety of this disclosure, will be aware of various ways in which steps, sequences of steps, processing tasks, and / or data may be subdivided, shared, or otherwise dealt with using iteration, recursion, and / or parallel processing. Still referring to FIG. 1, apparatus 100 includes image capturing device 112, wherein image capturing device 112 is configured to capture at least an image 116 of a received slide, wherein the at least an image comprises a plurality of grids. As used in this disclosure, an “image capturing device” is a device that is designed to create a digitalized visual of a real life element. Image capturing device 112 may include, and is not limited to, an optical scanner, a video capture device (e.g., a still camera, a video camera), and any combinations thereof. In a nonlimiting embodiment, image capturing device 112 may include the use of a Pramana scanner to digitalize a pathology slide image wherein processor 104 may receive the digitalized pathology slide image as a function of the Pramana scanner.

[0086] In some embodiments, apparatus 100 may include at least an optical system. As used in this disclosure, an "optical system" is an arrangement of one or more components which together act upon or employ electromagnetic radiation. In non-limiting examples, electromagnetic radiation may include light, such as visible light, infrared light, UV light, and the like. An optical system may include one or more optical elements, including without limitation lenses, mirrors, windows, filters, and the like. An optical system may form an optical image that corresponds to an optical object. For instance, an optical system may form an optical image at or upon an optical sensor, which can capture, e.g., digitize, the optical image. In some cases, optical system may have at least a magnification. For instance, optical system may include an objective (e.g., microscope objective) and one or more reimaging optical elements that together produce an optical magnification. In some cases, optical magnification may be referred to herein as zoom. As used herein, an “optical sensor” is a device that measures light and converts the measured light into one or more signals; one or more signals may include, without limitation, one or more electrical signals. In some embodiments, the optical sensor may include at least a photodetector. As used herein, a “photodetector” is a device that is sensitive to light and thereby able to detect light. In some embodiments, a photodetector may include a photodiode, a photoresistor, a photosensor, a photovoltaic chip, and the like. In some embodiments, the optical sensor may include a plurality of photodetectors. The optical sensor may include, without limitation, a camera. The optical sensor may be in electronic communication with at least a processor 104 of apparatus 100. As used herein, “electronic communication” as used in this disclosure is a shared data connection between two or more devices. In some embodiments, apparatus 100 may include two or more optical sensors. With continued reference to FIG. 1, as used herein, “at least an image” is information representing at least a physical scene, space, and / or object. Image data may include, for example, information representing a sample, slide, or region of a sample or slide. In some cases, image data may be generated by a camera. “Image data” may be used interchangeably through this disclosure with “image,” where image is used as a noun. An image may be optical, such as without limitation where at least an optic is used to generate an image of an object. An image may be digital, such as without limitation when represented as a bitmap. Alternatively, an image may include any media capable of representing a physical scene, space, and / or object. Alternatively, where “image” is used as a verb, in this disclosure, it refers to generation and / or formation of an image.

[0087] With continued reference to FIG. 1, as used in this disclosure, a “slide” refers to a flat, transparent material in which a specimen may be observed. As used in this disclosure, a slide refers to an entire sample and / or specimen on a slide. Slide 120 provides a macroscopic view of the specimen and is typically used for initial inspection and / or characterization. As used in this disclosure, a “grid” refers to a smaller region or segmented region of an image that provides a more detailed view of the specimen. In some embodiments, grids may be segmented regions of a macro image; however, the grid may represent the entire FOV of a high magnification image. In a non-limiting example, the tissue content on slide 120 may be identified and segmented into rectangular bounding box regions, wherein the rectangular bounding box regions are grids. In a non-limiting example, image 116 components may be characterized based on composition while being imaged to generate a Whole Slide Image (WSI). As used in this disclosure, a “Whole Slide Image” is a digital image of a glass slide with a specimen sample. In a non-limiting example, whole slide image 176 may be used in digital pathology and may use a high-resolution scanner. In a non-limiting example, whole slide image 176 may be viewed digitally, managed, and analyzed on a computing device. In some embodiments, generating whole slide image may include stitching together or otherwise compositing together a plurality of high-magnification images that have been deemed “accepted” using the processes disclosed in this application.

[0088] With continued reference to FIG. 1, image capturing device 112 may be further configured to capture, using a macro imaging setup, macro image of the at least an image 116 of the received slide 120 and capture, using a high magnification imaging setup, high magnification image 132 of the at least an image 116 of the received slide 120. As used in this disclosure, a “macro imaging setup” refers to the arrangement of equipment and techniques used to capture macro images. As used in this disclosure, a “macro image” is a high resolution, large-scale image that captures detailed structural features. In a non-limiting example, macro image 128 may include a plurality of grids. In a non-limiting example, macro image 128 may include images for tissue analysis. In a non-limiting example, macro image 128 may include high pixel density to ensure that minute details of the tissue structure are visible upon magnification. In another nonlimiting example, macro image 128 may include some ambiguity in segmenting some portions of the tissue that are very faint. Without limitation, one or more grids of plurality of grids 124 of macro image 128 may include false positive results and non-tissue segments.

[0089] With continued reference to FIG. 1, as used in this disclosure, a “high magnification imaging setup” refers to the arrangement of equipment and techniques used to capture high magnification images. As used in this disclosure, a “high magnification image” is a high resolution, large-scale image that is captured at a significant magnification level with a greater magnification level than a macro image. In a non-limiting example, high magnification image 132 may include plurality of grids 124. In a non-limiting example, high magnification image 132 may include magnification levels ranging from 400x to lOOOx. In a non-limiting example, high magnification image 132 may include high resolution that enables the visualization of minute details within a tissue specimen, such as an individual cell, cell nuclei, organelles, intracellular structures, and the like. In a non-limiting example, when the high magnification imaging setup is initiated, high magnification image 132 may be evaluated using sampling inside one or more grids of plurality of grids 124 to determine whether the grid corresponds to tissue or not. In an embodiment, without limitation, adjacent grids may have very different Z-planes associated with them and outlier grids are identified and rejected as discussed in more detail below. Additionally, and or alternatively, while scanning one or more grids of plurality of grids 124 of high magnification image 132, apparatus 100 may identify that the boundary of the grid has tissue content wherein the grid may be extended in that direction to avoid missing any tissue while scanning as discussed more herein.

[0090] Still referring to FIG. 1, processor 104 identifies one or more areas of interest 136 associated with one or more grids 124 of the first image. For the purposes of this disclosure, an “area of interest” is a region of a scene or environment that is selected or desired to be positioned within a line of sight and, thus, a Field of view of an optical component of an optical system that contains a portion of the specimen that is desired to be imaged. As used in this disclosure, “line of sight”, is a line along which an observer or lens has unobstructed vision. A “field of view (FOV)”, for the purposes of this disclosure, is an angle through and / or an area within which an optical component detects electromagnetic radiation. For instance, and without limitation, FOV may indicate an area of a scene that may be captured by an optical component within defined bounds (e.g., a frame) of an image. For example, and without limitation, an area of interest 136 within FOV of optical system may include a scene desired to be captured in an image by being placed within a line of sight of a lens of optical system, so that image may be captured. FOV may include vertical and horizontal angles that project relative to the surface of a lens of an optical component. In one or more embodiments, line of sight may include an optical access of the FOV. In various embodiments, an area of interest 136 may include at least a portion of the specimen. In some embodiments, an area of interest 136 may include a portion of the specimen and a portion of slide 120. In a non-limiting example, area of interest 136 may include a specific region or segment of slide 120 that has been identified for detailed examination and analysis. In a non-limiting example, area of interest 136 may be singled out for closer scrutiny.

[0091] With continued reference to FIG. 1, a “first image” is an initial image captured using an image capturing device. In a non-limiting example, the first image may include macro image 128. In another non-limiting example, the first image may include plurality of grids 124. In another non-limiting example, the first image may include area of interest 136.

[0092] Still referring to FIG. 1, processor 104 receives a second image of at least an image 116 from image capturing device 112, wherein the second image comprises high magnification image 132 associated with one or more areas of interest 136 of the first image. As used in this disclosure, a “second image” is a subsequent image of the same specimen. In a non-limiting example, the second image may include the same specimen or subject under different conditions or settings. In a non-limiting example, the second image may be required to capture additional details and / or perspectives of the specimen under analysis. For example, without limitation, the second image may include a different magnification level to provide broader context or a more detailed view of the particular area. For example, a tissue specimen may be captured at macro image 128 in the first image and then captured again as high magnification image 132 in the second image to provide a more detailed view of the one or more areas of interest 136 of the first image of the tissue specimen on slide 120. Without limitation, the second image may include different focus planes, different lighting conditions, different angles or orientations, different imaging techniques, and the like.

[0093] Still referring to FIG. 1, apparatus 100 may include an image processing module to determine one or more areas of interest 136. As used in this disclosure, an “image processing module” is a component designed to process digital images. In an embodiment, image processing module may include a plurality of software algorithms that can analyze, manipulate, or otherwise enhance an image, such as, without limitation, a plurality of image processing techniques as described below. In another embodiment, image processing module may include hardware components such as, without limitation, one or more graphics processing units (GPUs) that can accelerate the processing of large amount of images. In some cases, image processing module may be implemented with one or more image processing libraries such as, without limitation, OpenCV, PIL / Pillow, ImageMagick, and the like.

[0094] Still referring to FIG. 1, image processing module may be configured to receive images from image capturing device 112. One or more images may be transmitted, from image capturing device 112 to image processing module, via any suitable electronic communication protocol, including without limitation packet-based protocols such as transfer control protocol-internet protocol (TCP-IP), file transfer protocol (FTP) or the like.

[0095] Still referring to FIG. 1, in an embodiment, processing images may include determining a degree of quality of depiction of a region of interest of an image. In an embodiment, image processing module may determine a degree of blurriness of images. In a non-limiting example, image processing module may perform a blur detection by taking a Fourier transform, or an approximation such as a Fast Fourier Transform (FFT) of images and analyzing a distribution of low and high frequencies in the resulting frequency-domain depiction of images; for instance, and without limitation, numbers of high-frequency values below a threshold level may indicate blurriness. In another non-limiting example, detection of blurriness may be performed by convolving images, a channel of images, or the like with a Laplacian kernel; for instance, and without limitation, this may generate a numerical score reflecting a number of rapid changes in intensity shown in each image, such that a high score indicates clarity and a low score indicates blurriness. In some cases, blurriness detection may be performed using a Gradient-based operator, which measures operators based on the gradient or first derivative of images, based on the hypothesis that rapid changes indicate sharp edges in the image, and thus are indicative of a lower degree of blurriness. In some cases, blur detection may be performed using Wavelet-based operator, which takes advantage of the capability of coefficients of the discrete wavelet transform to describe the frequency and spatial content of images. In some cases, blur detection may be performed using statistics-based operators take advantage of several image statistics as texture descriptors in order to compute a focus level. In other cases, blur detection may be performed by using discrete cosine transform (DCT) coefficients in order to compute a focus level of images from its frequency content. Additionally, or alternatively, image processing module may be configured to rank images according to degree of quality of depiction of a region of interest and select a highest-ranking image from a plurality of images.

[0096] Still referring to FIG. 1, processing images may include enhancing an image or at least a region of interest via a plurality of image processing techniques to improve the quality (or degree of quality of depiction) of an image for better processing and analysis as described further in this disclosure. In an embodiment, image processing module may be configured to perform a noise reduction operation on an image, wherein the noise reduction operation may remove or minimize noise (arises from various sources, such as sensor limitations, poor lighting conditions, image compression, and / or the like), resulting in a cleaner and more visually coherent image. In some cases, noise reduction operation may be performed using one or more image filters; for instance, and without limitation, noise reduction operation may include Gaussian filtering, median filtering, bilateral filtering, and / or the like. Noise reduction operation may be done by image processing module, by averaging or filtering out pixel values in neighborhood of each pixel of an image to reduce random variations.

[0097] Still referring to FIG. 1, in another embodiment, image processing module may be configured to perform a contrast enhancement operation on an image. In some cases, an image may exhibit low contrast, which may, for example, make a feature difficult to distinguish from the background. Contrast enhancement operation may improve the contrast of an image by stretching the intensity range of the image and / or redistributing the intensity values (i.e., degree of brightness or darkness of a pixel in the image). In a non-limiting example, intensity value may represent the gray level or color of each pixel, scale from 0 to 255 in intensity range for an 8-bit image, and scale from 0 to 16,777,215 in a 24-bit color image. In some cases, contrast enhancement operation may include, without limitation, histogram equalization, adaptive histogram equalization (CLAHE), contrast stretching, and / or the like. Image processing module may be configured to adjust the brightness and darkness levels within an image to make a feature more distinguishable (i.e., increase degree of quality of depiction). Additionally, or alternatively, image processing module may be configured to perform a brightness normalization operation to correct variations in lighting conditions (i.e., uneven brightness levels). In some cases, an image may include a consistent brightness level across a region after brightness normalization operation performed by image processing module. In a non-limiting example, image processing module may perform a global or local mean normalization, where the average intensity value of an entire image or region of an image may be calculated and used to adjust the brightness levels.

[0098] Still referring to FIG. 1, in other embodiments, image processing module may be configured to perform a color space conversion operation to increase degree of quality of depiction. In a non-limiting example, in case of a color image (i.e., RGB image), image processing module may be configured to convert RGB image to grayscale or HSV color space. Such conversion may emphasize the differences in intensity values between a region or feature of interest and the background. Image processing module may further be configured to perform an image sharpening operation such as, without limitation, unsharp masking, Laplacian sharpening, high-pass filtering, and / or the like. Image processing module may use image sharpening operation to enhance the edges and fine details related to a region or feature of interest within an image by emphasizing high-frequency components within an image.

[0099] Still referring to FIG. 1, processing images may include isolating a region or feature of interest from the rest of an image as a function of plurality of image processing techniques. Images may include highest-ranking image selected by image processing module as described above. In an embodiment, plurality of image processing techniques may include one or more morphological operations, wherein the morphological operations are techniques developed based on set theory, lattice theory, topology, and random functions used for processing geometrical structures using a structuring element. A “structuring element,” for the purpose of this disclosure, is a small matrix or kernel that defines a shape and size of a morphological operation. In some cases, structing element may be centered at each pixel of an image and used to determine an output pixel value for that location. In a non-limiting example, isolating a region or feature of interest from an image may include applying a dilation operation, wherein the dilation operation is a basic morphological operation configured to expand or grow the boundaries of objects (e g., a cell, a dust particle, and the like) in an image. In another non-limiting example, isolating area of interest 136 from at least an image 116 may include applying an erosion operation, wherein the erosion operation is a basic morphological operation configured to shrink or erode the boundaries of objects in an image. In another non-limiting example, isolating a region or feature of interest from an image may include applying an opening operation, wherein the opening operation is a basic morphological operation configured to remove small objects or thin structures from an image while preserving larger structures. In a further non-limiting example, isolating area of interest 136 from at least an image 116 may include applying a closing operation, wherein the closing operation is a basic morphological operation configured to fill in small gaps or holes in objects in an image while preserving the overall shape and size of the objects. These morphological operations may be performed by image processing module to enhance the edges of objects, remove noise, or fill gaps in a region or feature of interest before further processing.

[0100] Still referring to FIG. 1, in an embodiment, isolating area of interest 136 from at least an image 116 may include utilizing an edge detection technique, which may detect one or more shapes defined by edges. An “edge detection technique,” as used in this disclosure, includes a mathematical method that identifies points in a digital image, at which the image brightness changes sharply and / or has a discontinuity. In an embodiment, such points may be organized into straight and / or curved line segments, which may be referred to as “edges.” Edge detection technique may be performed by image processing module, using any suitable edge detection algorithm, including without limitation Canny edge detection, Sobel operator edge detection, Prewitt operator edge detection, Laplacian operator edge detection, and / or Differential edge detection. Edge detection technique may include phase congruency-based edge detection, which finds all locations of an image where all sinusoids in the frequency domain, for instance as generated using a Fourier decomposition, may have matching phases which may indicate a location of an edge. Edge detection technique may be used to detect a shape of a feature of interest such as a cell, indicating a cell membrane or wall; in an embodiment, edge detection technique may be used to find closed figures formed by edges.

[0101] Still referring to FIG. 1, in a non-limiting example isolating area of interest 136 from at least an image 116 may include determining a feature of interest via edge detection technique. A feature of interest may include a specific area within a digital image that contains information relevant to further processing as described below. In a non-limiting example, image data located outside a feature of interest may include irrelevant or extraneous information. Such portion of an image containing irrelevant or extraneous information may be disregarded by image processing module, thereby allowing resources to be concentrated at a feature of interest. In some cases, feature of interest may vary in size, shape, and / or location within an image. In a non-limiting example feature of interest may be presented as a circle around the nucleus of a cell. In some cases, feature of interest may specify one or more coordinates, distances and the like, such as center and radius of a circle around the nucleus of a cell in an image. Image processing module may then be configured to isolate feature of interest from the image based on feature of interest. In a non-limiting example, image processing module may crop an image according to a bounding box around a feature of interest.

[0102] Still referring to FIG. 1, image processing module may be configured to perform a connected component analysis (CCA) on an image for feature of interest isolation. As used in this disclosure, a “connected component analysis (CCA),” also known as connected component labeling, is an image processing technique used to identify and label connected regions within a binary image (i.e., an image which each pixel having only two possible values: 0 or 1, black or white, or foreground and background). “Connected regions,” as described herein, is a group of adjacent pixels that share the same value and are connected based on a predefined neighborhood system such as, without limitation, 4-connected or 8-connected neighborhoods. In some cases, image processing module may convert an image into a binary image via a thresholding process, wherein the thresholding process may involve setting a threshold value that separates the pixels of an image corresponding to feature of interest (foreground) from those corresponding to the background. Pixels with intensity values above the threshold may be set to 1 (white) and those below the threshold may be set to 0 (black). In an embodiment, CCA may be employed to detect and extract feature of interest by identifying a plurality of connected regions that exhibit specific properties or characteristics of the feature of interest. Image processing module may then filter plurality of connected regions by analyzing plurality of connected regions properties such as, without limitation, area, aspect ratio, height, width, perimeter, and / or the like. In a non-limiting example, connected components that closely resemble the dimensions and aspect ratio of feature of interest may be retained, by image processing module as feature of interest, while other components may be discarded. Image processing module may be further configured to extract feature of interest from an image for further processing as described below. Still referring to FIG. 1, in an embodiment, isolating area of interest 136 from at least an image 116 may include segmenting a region depicting a feature of interest into a plurality subregions. Segmenting a region into sub-regions may include segmenting a region as a function of feature of interest and / or CCA via an image segmentation process. As used in this disclosure, an “image segmentation process” is a process for partition a digital image into one or more segments, where each segment represents a distinct part of the image. Image segmentation process may change the representation of images. Image segmentation process may be performed by image processing module. In a non-limiting example, image processing module may perform a region-based segmentation, wherein the region-based segmentation involves growing regions from one or more seed points or pixels on an image based on a similarity criterion. Similarity criterion may include, without limitation, color, intensity, texture, and / or the like. In a non-limiting example, region-based segmentation may include region growing, region merging, watershed algorithms, and the like.

[0103] With continued reference to FIG. 1, in a non-limiting example, image processing module may use machine vision processes to identify at least a region of interest within a first image. In some embodiments, machine vision may be used to identify at least a region of interest. As used herein, a “region of interest” is a specific area within a slide, or a digital image of a slide, in which a feature is detected. A feature may include, in non-limiting examples, a sample, debris, writing on a slide, a crack in a slide, a bubble, and the like. In some cases, image processing module may include machine learning module. In some embodiments, image processing module may use ROI identification machine learning model to identify at least a region of interest. In some embodiments, ROI identification machine learning model may be trained using supervised learning. In some embodiments, ROI identification machine learning model may include a classifier. ROI identification machine learning model may be trained on a dataset including example images of slides, associated with example regions of those images in which a feature is present. Such a training dataset may be gathered by, for example, gathering data slide imaging devices as to which regions of images of slides professionals focus or zoom in on. Once trained, ROI identification machine learning model may accept as an input an image of a slide and may output data as to the location of any regions of interest present. In some embodiments, a neural network, such as a convolutional neural network, may be used to identify at least a region of interest. For example, a convolutional neural network may be used to detect edges in an image of a slide, and at least a region of interest may be identified based on the presence of edges. In some embodiments, at least a region of interest may be identified as a function of differences in brightness and / or color in comparison to a background brightness and / or color. In some embodiments, image processing module may identify a region of interest using a classifier. In some embodiments, segments of an image may be input into a classifier, and the classifier may categorize them based on whether a region of interest is present. In some embodiments, a classifier may output a score indicating the degree to which a region of interest is detected and / or a confidence level that a region of interest is present. In some embodiments, a feature may be detected using a neural network or other machine learning model trained to detect a feature and / or object. For example, edges, comers, blobs, or ridges may be detected, and whether a location is determined to be within a region of interest may depend on detection of such elements. In some embodiments, a machine learning model such as a support vector machine technique may be used to determine a feature based on detection of elements such as edges, corners, blobs, or ridges.

[0104] Still referring to FIG. 1, in some embodiments, image processing module may identify at least a region of interest as a function of user input. For example, a user may modify a setting on a degree of sensitivity with which to detect regions of interest. In this example, if a user input indicates a low degree of sensitivity, then image processing module may only detect major regions of interest. This may involve, for example, ignoring potential regions of interest that are below a certain size. In another example, this may involve applying a machine learning model such as a classifier to an image (or segment of an image) and identifying it as a region of interest only if the machine learning model outputs a score higher than a threshold, where the score indicates the degree to which a region of interest is detected and / or a confidence level that a region of interest is present. In some embodiments, an image may be split into smaller segments and segments may be analyzed in order to determine whether at least a region of interest is present.

[0105] Still referring to FIG. 1, in some embodiments, image processing module may receive at least a region of interest. In some embodiments, image processing module may receive at least a region of interest without first capturing a first image. In a non-limiting example, a user may input a region of interest. In some embodiments, image processing module may capture a first image, and may apply a received region of interest to the first image. This may be done, for example, where a region of interest is received before first image is captured. In some embodiments, image processing module may capture a first image as a function of a region of interest. In a non-limiting example, image processing module may receive a region of interest from a user through user input, and may capture a first image at a first position within the region of interest.

[0106] Still referring to FIG. 1, image processing module may identify a focus pattern. In some embodiments, image processing module may identify a focus pattern in at least a region of interest, such as in each region of interest detected as described herein. In some embodiments, identifying a focus pattern may include identifying a row, identifying a point within a row, determining an optimal focus at a point, and / or identifying a plane.

[0107] Still referring to FIG. 1, as used herein, a “row” of a digital image of a slide is a segment of a digital image of a slide between two parallel lines. A row may include, for example, a line of pixels with a width of 1 pixel. In another example, a row may have a width of multiple pixels. A row may or may not travel diagonally across a grid of pixels. As used herein, a “point” on a digital image of a slide is a specific position within a digital image of a slide. For example, in a digital image made up of a grid of pixels, a point may have a specific (x,y) position. As used herein, an “optimal focus” is a focus distance at which the subject that is being focused on is in focus.

[0108] Still referring to FIG. 1, in some embodiments, image processing module may identify a row within a region of interest. A row may be identified based on a first row sample presence score. A first row sample presence score may be identified using machine vision. A first row sample presence score may be identified based on an output of row identification machine learning model. A first row sample presence score may be identified by determining one or more row sample presence scores for adjacent rows. For example, a first row sample presence score may be determined as a function of a second row sample presence score and a third row sample presence score, where the second and third row sample presence scores are based on rows adjacent to the row of the first row sample presence score. As used herein, a “sample presence score” is a value representing or estimating the likelihood that sample is present in a location. As used herein, a “row sample presence score” is a sample presence score where the location is a row. A sample presence score need not represent sample presence likelihood as a percentage on a 0-100% scale. For example, a first row may have a row sample presence score of 2000 and a second row may have a row sample presence score of 3000, indicating that the second row is more likely to contain sample than the first row. A first row sample presence score may be identified, in non-limiting examples, based on a sum of row sample presence scores for adjacent rows and / or a weighted sum of row sample presence scores for adjacent rows and / or a minimum row sample presence score for adjacent rows. In some embodiments, a first set of row sample presence scores is identified using a machine learning model, such as row identification machine learning model, and a second set of row sample presence scores is identified based on row sample presence scores for adjacent rows from the first set of sample presence scores. In some embodiments, such a second set of row sample presence scores may be used to identify a best row. A row sample presence score may be identified by determining a sample presence score for rows not immediately adjacent to a row in question. For example, row sample presence scores may be determined for a row in question, adjacent rows, and rows separated from the row in question by a single row, and each of these row sample presence scores may factor into identifying a row (for example, using a weighted sum of sample presence scores). A sample presence score may be determined using machine vision. In some embodiments, a row sample presence score may be determined based on a section of a row that does not fully cross an image and / or slide. For example, a row sample presence score may be determined for the width of a region of interest. In another example, a row sample presence score may be determined for a section of a row with a certain pixel width.

[0109] Still referring to FIG. 1, in some embodiments, identifying a focus pattern may include identifying a row which includes a specific (X,Y) position, such as a position with which an optimal focus distance is to be calculated. In some embodiments, identifying a focus pattern may include capturing a plurality of images at such a location, wherein each of the plurality of images has a different focus distance. Such images may represent a z-stack as described further below. Identifying a focus pattern may further include determining an optimally focused image of the plurality of images. A focus distance of such image may be determined to be an optimal focus distance for that (X,Y) position. Optimal focus distances may be determined in this way for a plurality of points in that row. A focus pattern may be identified using focus distances of a plurality of optimally focused images at such plurality of points in the row.

[0110] Still referring to FIG. 1, in some embodiments, a row may further include a second position. Image processing module may capture a plurality of second images at such second location, wherein each of the plurality of second images have a different focus distance. Image processing module may determine an optimally focused second image of the plurality of second images having an optimal focus. Image processing module may identify a focus pattern using the focus distance of an optimally focused first image and the optimally focused second image. For example, a focus pattern may be determined to include a line connecting the two points. Image processing module may extrapolate a third focus distance for a third position as a function of a focus pattern. In some embodiments, extrapolating third focus distance may include using first or second focus distance as third focus distance. In some embodiments, extrapolation may include linear extrapolation, polynomial extrapolation, conic extrapolation, geometric extrapolation, and the like. In some embodiments, such third position may be located outside of a row including a first position and / or a second position. In some embodiments, such third position may be located within a different region of interest than a first position and / or a second position.

[0111] Still referring to FIG. 1, in some embodiments, a sample presence score may be determined using row identification machine learning model. In some embodiments, row identification machine learning model may be trained using supervised learning. Row identification machine learning model may be trained on a dataset including example rows from images of slides, associated with whether a sample is present. Such a dataset may be gathered by, for example, capturing images of slides, manually identifying which rows contain a sample, and extracting rows from the larger images. Once row identification machine learning model is trained, it may accept as an input a row from an image of a slide, such as a row from a region of interest, and may output a determination as to whether a sample is present and / or a sample presence score, such as a row sample presence score.

[0112] Still referring to FIG. 1, in some embodiments, image processing module may identify a point within a row, such as a row identified as described above. In some embodiments, a point may be identified using machine vision. In some embodiments, a point may be identified based on a point within a particular row that has a maximum point sample presence score. As used herein, a “point sample presence score” is a sample presence score where the location is a point. A point sample presence score may be determined, in non-limiting examples, based on a color of a point and / or surrounding pixels, or whether a point is inside or outside potential specimen boundaries (which may be determined, for example, identifying edges within an image and a region of the image enclosed by edges). In another non-limiting example, a point sample presence score may be determined based on the distance between a point and the edge of a slide.

[0113] Still referring to FIG. 1, in some embodiments, a point may be identified using point identification machine learning model. In some embodiments, point identification machine learning model may be trained using supervised learning. Point identification machine learning model may be trained on a dataset including example points from images of slides, associated with whether a sample is present. Such a dataset may be gathered by, for example, capturing images of slides, manually identifying which points contain a sample, and extracting points from the larger images. Once point identification machine learning model is trained, it may accept as an input a point from an image of a slide, such as a point from a region of interest, and may output a determination as to whether a sample is present and / or a point sample presence score. In some embodiments, image processing module may identify a point from a row based on which one has the highest point sample presence score.

[0114] Still referring to FIG. 1, in some embodiments, image processing module may determine an optimal focus at a point, such as a point identified as described above. In some embodiments, optimal focus may be determined using an autofocus mechanism. In some embodiments, optimal focus may be determined using a rangefinder. In some embodiments, an actuator mechanism may move optical sensor and / or slide port such that an autofocus mechanism focuses on a desired location. In some embodiments, an autofocus mechanism may be capable of focusing on multiple points within a frame and may select which point to focus on based on a point identified as described above. In some embodiments, one or more camera parameters other than focus may be adjusted to improve focus and / or improve an image. For example, aperture may be adjusted to modify the degree to which a point is in focus. For example, aperture may be adjusted to increase a depth of field such that a point is in focus. An optimal focus may be expressed, in non-limiting examples, as a focus distance or a focus depth.

[0115] Still referring to FIG. 1, in some embodiments, image processing module may identify a focus pattern based on an optimal focus and / or a point. An optimal focus and a point may be expressed as a location in 3 dimensional space. For example, X and Y coordinates (horizontal axes) may be determined based on the location of the point on the slide and / or the location of the point on an image. A Z coordinate may be determined based on an optimal focus. For example, a focus distance of an optimal focus may be used as a Z coordinate. As used herein, a “focus pattern” is a pattern that approximates an optimal level of focus at multiple points, including at least one point at which an optimal focus has not been measured. One or more (X,Y,Z) coordinate sets may be used to determine a focus pattern. One or more default parameters may be used to determine a focus pattern (such as defaulting to horizontal where there is insufficient data to determine otherwise). For example, a single (X,Y,Z) coordinate set may be determined, and a focus pattern may be determined as a plane extending horizontally in the X and Y directions, with a Z level remaining constant. In some embodiments, a focus pattern varies in a vertical (Z) direction. For example, two (X,Y,Z) coordinate sets may be determined, and a focus pattern may be determined as including a line between those two (X,Y,Z) locations, and extending horizontally when moving horizontally perpendicular to the line (to form a plane that includes the line). In another example, three (X,Y,Z) coordinate sets may be determined, and a focus pattern may be determined as a plane including all 3 locations. In another example, several (X,Y,Z) coordinate sets may be determined, and a regression algorithm may be used to determine a plane that best fits the coordinate sets. For example, least squares regression may be used. In some embodiments, a focus pattern is not a plane. A focus pattern may include a surface, such as a surface in 3D space. A focus pattern may include one or more curves, bumps, edges, and the like. For example, a focus pattern may include a first plane in a first region, a second plane in a second region, and an edge where the planes intersect. In another example, a focus pattern may include a curved and / or bumpy surface determined such that the Z level of each location on a focus pattern surface is based on the distance to nearby (X,Y,Z) coordinate sets and their Z levels. In another example, a focus pattern may include a plurality of shapes, with (X,Y,Z) coordinate sets as their vertices and lines between (X,Y,Z) coordinate sets as their borders. In some embodiments, a focus pattern may have only one Z value for each (X,Y) coordinate set. In some embodiments, which points have their optimal focus assessed may be determined as a function of, in non-limiting examples, a desired density of points within a region of interest, a likelihood that a sample is present (such as an output from a ML model described above), and / or a user input. For example, a user may manually select a point and / or may input a desired point density. In some embodiments, a focus pattern may be updated as further points are scanned. For example, a focus pattern may be in the shape of a plane based on 10 (X,Y,Z) coordinate sets, and an 11th (X,Y,Z) coordinate set may be scanned, and the focus pattern may be recalculated and / or updated to take into account the new coordinate set. In another example, a focus pattern may start as a plane based on a single (X,Y,Z) coordinate set, and may be updated as additional (X,Y,Z) coordinate sets are identified. Tn some embodiments, a focus pattern may be updated with each additional (X,Y,Z) coordinate set. In some embodiments, a focus pattern may be updated at a rate less than the rate of (X,Y,Z) coordinate set identification. In nonlimiting examples, a focus pattern may be updated every 2, 3, 4, 5, or more (X,Y,Z) coordinate sets.

[0116] Still referring to FIG. 1, in some embodiments, data used to identify a focus pattern may be filtered. In some embodiments, one or more outliers may be removed. For example, if nearly all (X,Y,Z) points suggest a focus pattern in the shape of a plane, and a single (X,Y,Z) point has a very different Z value than would be estimated from the plane, then that (X,Y,Z) point may be removed. In another example, (X,Y,Z) points identified as focusing on features other than a sample may be removed. For example, (X,Y,Z) points identified as focusing on annotations may be removed.

[0117] Still referring to FIG. 1, in some embodiments, a process described above may be used to determine a focus pattern in each region of interest. In regions of interest that contain a sample, this may result in determining a focus pattern based on one or more points that include a sample. This may aid in efficiently identifying a focus pattern such that follow up images may be captured at correct focus distances. In some regions of interest, such as regions of interest that do not contain a sample but instead include features such as annotations, this may result in focusing on a non-sample feature. This may be desirable, for example, because capturing in focus images of features such as annotations may aid professionals in reading annotations and / or may aid optical character recognition processes in transcribing writing. In some regions of interest, both sample and non sample features may be present; in this case, focusing on a sample may be desirable, and processes described herein may achieve this. In some embodiments, a process described herein may offer a more efficient method of identifying a focus pattern than alternatives. For example, a process described herein may require focusing on fewer points in order to determine a focus pattern.

[0118] Still referring to FIG. 1, in some embodiments, a focus pattern, such as a plane, may be identified as a function of a first image and a first position. An (X,Y) position of a point may be determined from the first position. An optimal focus value may be determined from the first image. Together, these may be used to identify an (X,Y,Z) coordinate set which may be used to identify a focus pattern as described herein. Still referring to FIG. 1, in some embodiments, a focus pattern, such as a Z level of an optimal focus may be used to scan the rest of a row. For example, this may be used to scan the rest of a row including a point at which the optimal focus was identified. In some embodiments, a focus pattern may be used to scan further rows. For example, a focus pattern determined as a function of a Z level of a point may be used to scan rows adjacent to a row including the point. In some embodiments, a focus pattern may be used to scan other rows within the same region of interest. In some embodiments, a focus pattern may be used to scan rows within other regions of interest, such as regions of interest that are nearby.

[0119] Still referring to FIG. 1, in some embodiments, region of interest identification, row identification, point identification, and / or focus pattern determination may be done locally. For example, image processing module may include an already trained machine learning model and may apply the model to an image. In some embodiments, region of interest identification, row identification, point identification, and / or focus pattern determination may be done externally. For example, image processing module may transmit image data to another computing device and may receive an output described herein. In some embodiments, a region of interest may be identified, a row may be identified, a point may be identified, and / or a focus pattern may be determined in real time.

[0120] Still referring to FIG. 1, in some embodiments, image processing module may determine a scanning pattern. A scanning pattern may be based on, for example, sample morphology. Scanning patterns may include, in non-limiting examples, zig-zag, snake line, and spiral.

[0121] Still referring to FIG. 1, in some embodiments, a snake pattern may be used to scan a slide. A snake pattern may progress in any horizontal direction. In non-limiting examples, a snake pattern may progress across the length, or the width, of a slide. In some embodiments, a direction a snake pattern progresses in may be chosen in order to minimize a number of necessary turns. For example, a snake pattern may progress along the shortest dimension of a slide. In another example, a sample shape may be identified, for example, using machine vision, and a snake pattern may progress in a direction according to the shortest dimension of the sample. In some embodiments, a snake pattern may be chosen when high scan speed is desired. In some embodiments, a snake pattern may minimize movement of a camera and / or a slide needed to scan the slide. In some embodiments, a zig-zag pattern may be used to scan a slide. As described with respect to a snake pattern scan, a zig-zag pattern scan may be performed in any horizontal direction, and a direction may be selected in order to minimize a number of turns and / or rows used to scan a slide and / or a feature such as a sample. In some embodiments, a spiral pattern may be used to scan a slide, feature, region of interest, or the like. In some embodiments, a snake pattern and / or a zig-zag pattern may be optimal for Z translation from one row to the next. In some embodiments, a spiral pattern may be optimal for dynamic grid region of interest extension.

[0122] Still referring to FIG. 1, in some embodiments, image processing module may extrapolate a focus distance for a second position as a function of a focus pattern. In some embodiments, a focus pattern may be determined as a function of one or more (X,Y,Z) points local to a region of interest and / or a subregion of a region of interest. In some embodiments, a focus pattern such as a plane may be used to approximate an optimal level of focus using extrapolation (such as, rather than interpolation). For example, a focus pattern may be used to approximate an optimal level of focus at an (X,Y) point outside of the range of (X,Y) points already scanned, such as outside of the range of X-values, outside of the range of Y-values, or outside of a shape encompassing the (X,Y) points already scanned. In another example, a focus pattern may be used to approximate an optimal level of focus, where the optimal level of focus includes a Z value outside of the range of Z values used to determine the focus pattern. In another example, an (X,Y,Z) point may be extrapolated to a focus pattern over a row. In some embodiments, one or more additional (X,Y,Z) points may be used to update a focus pattern. In some embodiments, a focus pattern identified for a row may be extrapolated to another row, such as an adjacent row. In another example, a local focus pattern such as a plane may be extrapolated to identify an optimal level of focus outside of a local region. In another example, a focus pattern in a first region of interest may be extrapolated to generate a focus pattern in a second region of interest and / or identify an optimal level of focus at an (X,Y) point in a second region of interest.

[0123] Still referring to FIG. 1, in some embodiments, image processing module may capture a second image of a slide at a second position, and at a focus distance based on the focus pattern. For example, if a focus pattern is a plane, and an in-focus image of a particular (X,Y) point is desired, then image processing module may capture an image using a focus distance based on the Z coordinate of the plane at those (X,Y) coordinates. In some embodiments, a first position (such as one at which an optimal focus is measured) and a second position may be set to image locations in the same region of interest. In some embodiments, an actuator mechanism may be mechanically connected to a mobile element; and the actuator mechanism may move the mobile element into the second position. In some embodiments, obtaining a second image may include capturing a plurality of images taken with focus distances based on a focus pattern and constructing the second image from the plurality of images. In some embodiments, a second image may include an image taken as part of a z-stack. Z stacks are described further below.

[0124] Still referring to FIG. 1, in some embodiments, image processing module may determine which regions of interest contain a sample. In some embodiments, this may be applied to a second image, such as a second image taken using a focus distance based on a focus pattern. In some embodiments, which regions of interest may be determined using sample identification machine learning model. In some embodiments, sample identification machine learning model may include a classifier. In some embodiments, sample identification machine learning model may be trained using supervised learning. Sample identification machine learning model may be trained on a dataset including example images of slides and / or segments of images of slides, associated with whether a sample is present. Such a dataset may be gathered by, for example, capturing images of slides, and manually identifying ones containing a sample. In some embodiments, multiple machine learning models may be trained to identify different kinds of sample. Once sample identification machine learning model is trained, it may accept as an input an image of a region of interest and may output a determination as to whether a sample is present. In some embodiments, sample identification machine learning model may be improved, such as through use of reinforcement learning. Feedback used to determine a cost function of a reinforcement learning model may include, for example, user inputs, and annotations on a slide. For example, if an annotation, as transcribed using optical character recognition, indicates a particular type of sample, and sample identification machine learning model indicated that no regions of interest contain a sample, then a cost function indicating that the output is false may be determined. In another example, a user may input a label to be associated with a region of interest. If the label indicates a particular type of sample, and sample identification machine learning model output indicated that a sample was present in the region of interest, then a cost function may be determined indicating that the output was correct.

[0125] Still referring to FIG. 1, in some embodiments, whether a sample is present may be determined locally. For example, image processing module may include an already trained sample identification machine learning model and may apply the model to an image or segment of an image. In some embodiments, whether a sample is present may be determined externally. For example, image processing module may transmit image data to another computing device and may receive a determination as to whether a sample is present. In some embodiments, whether a sample is present may be determined in real time.

[0126] Still referring to FIG. 1, in some embodiments, a machine vision system and / or an optical character recognition system may be used to determine one or more features of sample and / or slide. In a non-limiting example, an optical character recognition system may be used to identify writing on slide, and this may be used to annotate an image of slide.

[0127] Still referring to FIG. 1, in some embodiments, image processing module may capture a plurality of images at differing sample focus depths. As used herein, a “sample focus depth” is a depth within a sample that an optical system is in focus. As used herein, a “focus distance” is an object side focal length. In some embodiments, first image and second image may have different focus distances and / or sample focus depths.

[0128] Still referring to FIG. 1, in some embodiments, image processing module may include a machine vision system. In some embodiments, a machine vision system may include at least a camera. A machine vision system may use images, such as images from at least a camera, to make a determination about a scene, space, and / or object. For example, in some cases a machine vision system may be used for world modeling or registration of objects within a space. In some cases, registration may include image processing, such as without limitation object recognition, feature detection, edge / corner detection, and the like. Non-limiting example of feature detection may include scale invariant feature transform (SIFT), Canny edge detection, Shi Tomasi comer detection, and the like. In some cases, registration may include one or more transformations to orient a camera frame (or an image or video stream) relative a three-dimensional coordinate system; exemplary transformations include without limitation homography transforms and affine transforms. In an embodiment, registration of first frame to a coordinate system may be verified and / or corrected using object identification and / or computer vision, as described above. For instance, and without limitation, an initial registration to two dimensions, represented for instance as registration to the x and y coordinates, may be performed using a two-dimensional projection of points in three dimensions onto a first frame, however. A third dimension of registration, representing depth and / or a z axis, may be detected by comparison of two frames; for instance, where first frame includes a pair of frames captured using a pair of cameras (e.g., stereoscopic camera also referred to in this disclosure as stereo-camera), image recognition and / or edge detection software may be used to detect a pair of stereoscopic views of images of an object; two stereoscopic views may be compared to derive z-axis values of points on object permitting, for instance, derivation of further z-axis points within and / or around the object using interpolation. This may be repeated with multiple objects in field of view, including without limitation environmental features of interest identified by object classifier and / or indicated by an operator. In an embodiment, x and y axes may be chosen to span a plane common to two cameras used for stereoscopic image capturing and / or an xy plane of a first frame; a result, x and y translational components and c|> may be pre-populated in translational and rotational matrices, for affine transformation of coordinates of object, also as described above. Initial x and y coordinates and / or guesses at transformational matrices may alternatively or additionally be performed between first frame and second frame, as described above. For each point of a plurality of points on object and / or edge and / or edges of object as described above, x and y coordinates of a first stereoscopic frame may be populated, with an initial estimate of z coordinates based, for instance, on assumptions about object, such as an assumption that ground is substantially parallel to an xy plane as selected above. Z coordinates, and / or x, y, and z coordinates, registered using image capturing and / or object identification processes as described above may then be compared to coordinates predicted using initial guess at transformation matrices; an error function may be computed using by comparing the two sets of points, and new x, y, and / or z coordinates, may be iteratively estimated and compared until the error function drops below a threshold level. In some cases, a machine vision system may use a classifier, such as any classifier described throughout this disclosure.

[0129] Still referring to FIG. 1, in some embodiments, image data may be processed using optical character recognition. In some embodiments, optical character recognition or optical character reader (OCR) includes automatic conversion of images of written (e.g., typed, handwritten or printed text) into machine-encoded text. In some cases, recognition of at least a keyword from image data may include one or more processes, including without limitation optical character recognition (OCR), optical word recognition, intelligent character recognition, intelligent word recognition, and the like. In some cases, OCR may recognize written text, one glyph or character at a time. In some cases, optical word recognition may recognize written text, one word at a time, for example, for languages that use a space as a word divider. In some cases, intelligent character recognition (ICR) may recognize written text one glyph or character at a time, for instance by employing machine-learning processes. In some cases, intelligent word recognition (IWR) may recognize written text, one word at a time, for instance by employing machine-learning processes.

[0130] Still referring to FIG. 1, in some cases OCR may be an "offline" process, which analyses a static document or image frame. In some cases, handwriting movement analysis can be used as input to handwriting recognition. For example, instead of merely using shapes of glyphs and words, this technique may capture motions, such as the order in which segments are drawn, the direction, and the pattern of putting the pen down and lifting it. This additional information may make handwriting recognition more accurate. In some cases, this technology may be referred to as “online” character recognition, dynamic character recognition, real-time character recognition, and intelligent character recognition.

[0131] Still referring to FIG. 1, in some cases, OCR processes may employ pre-processing of image data. Pre-processing process may include without limitation de-skew, de-speckle, binarization, line removal, layout analysis or “zoning,” line and word detection, script recognition, character isolation or “segmentation,” and normalization. In some cases, a de-skew process may include applying a transform (e.g., homography or affine transform) to image data to align text. In some cases, a de-speckle process may include removing positive and negative spots and / or smoothing edges. In some cases, a binarization process may include converting an image from color or greyscale to black-and-white (i.e., a binary image). Binarization may be performed as a simple way of separating text (or any other desired image component) from a background of image data. In some cases, binarization may be required for example if an employed OCR algorithm only works on binary images. In some cases, a line removal process may include removal of non-glyph or non character imagery (e.g., boxes and lines). In some cases, a layout analysis or “zoning” process may identify columns, paragraphs, captions, and the like as distinct blocks. In some cases, a line and word detection process may establish a baseline for word and character shapes and separate words, if necessary. In some cases, a script recognition process may, for example in multilingual documents, identify script allowing an appropriate OCR algorithm to be selected. In some cases, a character isolation or “segmentation” process may separate signal characters, for example character-based OCR algorithms. In some cases, a normalization process may normalize aspect ratio and / or scale of image data. Still referring to FIG. 1, in some embodiments an OCR process may include an OCR algorithm. Exemplary OCR algorithms include matrix matching process and / or feature extraction processes. Matrix matching may involve comparing an image to a stored glyph on a pixel-by- pixel basis. In some case, matrix matching may also be known as “pattern matching,” “pattern recognition,” and / or “image correlation.” Matrix matching may rely on an input glyph being correctly isolated from the rest of image data. Matrix matching may also rely on a stored glyph being in a similar font and at a same scale as input glyph. Matrix matching may work best with typewritten text.

[0132] Still referring to FIG. 1, in some embodiments, an OCR process may include a feature extraction process. In some cases, feature extraction may decompose a glyph into at least a feature. Exemplary non-limiting features may include corners, edges, lines, closed loops, line direction, line intersections, and the like. In some cases, feature extraction may reduce dimensionality of representation and may make the recognition process computationally more efficient. In some cases, extracted feature may be compared with an abstract vector-like representation of a character, which might reduce to one or more glyph prototypes. General techniques of feature detection in computer vision are applicable to this type of OCR. In some embodiments, machine-learning processes like nearest neighbor classifiers (e.g., k-nearest neighbors algorithm) may be used to compare image features with stored glyph features and choose a nearest match. OCR may employ any machine learning process described in this disclosure. Exemplary non-limiting OCR software includes Cuneiform and Tesseract. Cuneiform is a multi-language, open-source optical character recognition system originally developed by Cognitive Technologies of Moscow, Russia. Tesseract is free OCR software originally developed by Hewlett-Packard of Palo Alto, California, United States.

[0133] Still referring to FIG. 1, in some cases, OCR may employ a two-pass approach to character recognition. A first pass may try to recognize a character. Each character that is satisfactory is passed to an adaptive classifier as training data. The adaptive classifier then gets a chance to recognize characters more accurately as it further analyzes image data. Since the adaptive classifier may have learned something useful a little too late to recognize characters on the first pass, a second pass is run over the image data. Second pass may include adaptive recognition and use characters recognized with high confidence on the first pass to recognize better remaining characters on the second pass. In some cases, two-pass approach may be advantageous for unusual fonts or low-quality image data. Another exemplary OCR software tool include OCRopus. OCRopus development is led by German Research Centre for Artificial Intelligence in Kaiserslautern, Germany. In some cases, OCR software may employ neural networks.

[0134] Still referring to FIG. 1, in some cases, OCR may include post-processing. For example, OCR accuracy may be increased, in some cases, if output is constrained by a lexicon. A lexicon may include a list or set of words that are allowed to occur in a document. In some cases, a lexicon may include, for instance, all the words in the English language, or a more technical lexicon for a specific field. In some cases, an output stream may be a plain text stream or file of characters. In some cases, an OCR process may preserve an original layout of image data. In some cases, near-neighbor analysis can make use of co-occurrence frequencies to correct errors, by noting that certain words are often seen together. For example, “Washington, D C.” is generally far more common in English than “Washington DOC.” In some cases, an OCR process may make us of a priori knowledge of grammar for a language being recognized. For example, grammar rules may be used to help determine if a word is likely to be a verb or a noun. Distance conceptualization may be employed for recognition and classification. For example, a Levenshtein distance algorithm may be used in OCR post-processing to further optimize results.

[0135] Still referring to FIG. 1, processor 104 classifies, using at least a probed point 140, one or more grids of the second image, wherein classifying the plurality of grids 124 of the second image comprises classifying plurality of grids 124 into accepted grids of plurality of grids 124 and rejected grids of plurality of grids 124. As used in this disclosure, a “probed point” is a specific point or grid within the plurality of grids on a specimen that is investigated. In a nonlimiting example, probed point 140 may include one or more points. In a non-limiting example, probed points 140 are sample points that are selected by a user from macro image 128 based on maximizing the probability of finding content of interest 152 of an area of interest 136 in high magnification image 132. In a non-limiting example, one or more grids of plurality of grids 124may contain a probed point 140. Without limitation, one or more grids may include one or more areas of interest 136. In a non-limiting example, one or more grids may include accepted grids 144 or rejected grids 148. As used in this disclosure, an “accepted grid” is a grid that may be subject to further analysis by an apparatus due to a specific condition being present or a specific condition being absent in the grid. In a non-limiting example, accepted grid 144 may include an area of interest 136. In a non-limiting example, accepted grid may be subject to further scanning by apparatus 100 as described in more detail below. In another non-limiting example, accepted grid 144 may be subject to further analysis where a once accepted grid 144 is later reclassified as rejected grid 148 due to the presence or omission of specific information in the grid.

[0136] With continued reference to FIG. 1, as used in this disclosure, a “rejected grid” is a grid that is no longer being analyzed by an apparatus due to a specific condition being present or a specific condition being absent in the grid. In a non-limiting example, rejected grid 148 may not be within a predetermined Z-plane differential as described below. In another non-limiting example, rejected grid 148 may include no content of interest 152. As used in this disclosure, “content of interest” is a specific element that is relevant and significant to a particular analysis. In a non-limiting example, the tissue specimen may be the content of interest 152 of slide 120 with a tissue specimen, debris, and pen marking. In another non-limiting example, a specific type of cell tissue or the tissue specimen may be defined as content of interest 152. Without limitation, identifying content of interest 152 on slide 120 may provide a focused analysis of the specimen and thereby a more efficient analysis.

[0137] With continued reference to FIG. 1, apparatus 100 may be further configured to utilize classifier model 156, wherein classifier model 156 is configured to classify using at least a probe point 140 from macro image 128 and high magnification image 132, content of interest 152 of area of interest 136 as accepted grid 144 or rejected grid 148. As used in this example, a “classifier model” is a model designed to classify elements of similar characteristics into specific groups. In a non-limiting example, classifier model may be trained on labeled datasets, where each input is associated with a corresponding class label, where classifier model 156 may learn the patterns and features that distinguish one class from another class. In a non-limiting example, classifier model 156 may classify the grid of plurality of grids 124 of at least an image 116 as either accepted grid 144 or rejected grid 148. Classifier model 156 may first analyze macro image 128 plurality of grids 124 and then classifier model 156 may analyze accepted grid 144 of macro image 128 at high magnification using high magnification image 132. Continuing the previous example, without limitation, analyzing plurality of grids 124 of macro image 128 and then high magnification Image 132 may reduce analyzing time and provide more accurate results because macro image 128 analysis provides an initial classification of plurality of grids 124 and high magnification image 132 may include a smaller subset of grids to analyze of plurality of grids 124 to obtain content of interest 152. In a non-limiting embodiment, high magnification image 132 helps in obtaining content of interest 152 by providing detailed analysis of the smaller subset of grids identified in macro image 128. In an embodiment, without limitation, analyzing plurality of grids 124 in macro image 128 first, followed by high magnification image 132 analysis of plurality of grids 124 reduces overall analysis time because the two-step process initially processes a broader, lower-resolution view of the specimen to identify relevant areas, thereby limiting high-resolution, time-intensive analysis to smaller subset of plurality of grids 124.

[0138] With continued reference to FIG. 1, apparatus 100 comprises a machine learning model, wherein the machine learning model is trained using the plurality of macro images and high magnification images and a labeled dataset to classify the content of interest as accepted grid 144 or rejected grids 148. In some embodiments, training set may include labeled high magnification images. In some embodiments, training set may include labeled macro images. In some embodiments, training set may include labeled images. In a non-limiting example, a “labeled dataset” may include a plurality of macro images and high magnification images containing a plurality of grids 124 where the grids are labeled. Ins some embodiments, grids may be labeled as accepted grids 144 or rejected grids 148 to distinguish between one or more areas of interest 136 and content of interest 152, such as, without limitation, pen mark and tissue cells respectively. In some embodiments, grids may be labeled based on their contents, such as cells, type of cell, pen mark, debris, or the like. In a non-limiting example, one or more machine learning models may be included in apparatus 100. In a non-limiting example, apparatus 100 may include classifier model 156 that is specialized in determining grids containing content of interest 152 in macro image 128. Continuing the previous non-limiting example, classifier model 156 used to analyze macro image 128 may be trained on a plurality of macro images to detect a specified content of interest 152 such as, without limitation, tissue cells. In another non-limiting example, a separate classifier model 156 may be used to determine grids containing content of interest 152 in high magnification image 132. In some cases, classifier for high-magnification images may be configured to take high-magnification images and assign labeled depending on what the images contain. Continuing the previous non-limiting example, classifier model 156 may utilize a plurality of high magnification images as training data. With continued reference to FIG. 1, in another non-limiting example, classifier model 156, Z-plane extrapolation model 160, and / or grid extension model 164 may include a machine learning model, as described in more detail in FIG. 5 below. Additionally and or alternatively, the machine learning model comprises a neural network. As used in this disclosure, a “neural network” is a computational model consisting of interconnected nodes organized in layers as further discussed in FIG. 6 and FIG. 7. In a non-limiting example, classifier model 156, Z-plan extrapolation model 160, and grid extension model 164 may process at least an image 116 in any order. For example, without limitation, first grid extension model 164 may be used to process at least an image 116, then Z-plan extrapolation model 160 may be used to process at least an image 116, and finally classifier model 156 may be used to process at least an image 116. In another non-limiting example, at least an image 116 may be processed using first Z-plan extrapolation model 160, then grid extension model 164, and then classifier model 156, and the like.

[0139] With continued reference to FIG. 1, input data may be transformed into a numerical representation using image vectorization, embedding, or feature extraction, to enable the machine learning model to process the data, such as at least an image 116 which may include macro image 128 and high magnification image 132. In a nonlimiting example, input data may be transformed into numerical representations using vectors and / or matrices.

[0140] A “vector” as defined in this disclosure is a data structure that represents one or more quantitative values and / or measures the position vector. Such vector and / or embedding may include and / or represent an element of a vector space; a vector may alternatively or additionally be represented as an element of a vector space, defined as a set of mathematical objects that can be added together under an operation of addition following properties of associativity, commutativity, existence of an identity element, and existence of an inverse element for each vector, and can be multiplied by scalar values under an operation of scalar multiplication compatible with field multiplication, and that has an identity element is distributive with respect to vector addition, and is distributive with respect to field addition. A vector may be represented as an n-tuple of values, where n is one or more values, as described in further detail below; a vector may alternatively or additionally be represented as an element of a vector space, defined as a set of mathematical objects that can be added together under an operation of addition following properties of associativity, commutativity, existence of an identity element, and existence of an inverse element for each vector, and can be multiplied by scalar values under an operation of scalar multiplication compatible with field multiplication, and that has an identity element is distributive with respect to vector addition, and is distributive with respect to field addition. Each value of n-tuple of values may represent a measurement or other quantitative value associated with a given category of data, or attribute, examples of which are provided in further detail below; a vector may be represented, without limitation, in n-dimensional space using an axis per category of value represented in n-tuple of values, such that a vector has a geometric direction characterizing the relative quantities of attributes in the n-tuple as compared to each other. Two vectors may be considered equivalent where their directions, and / or the relative quantities of values within each vector as compared to each other, are the same; thus, as a non-limiting example, a vector represented as [5, 10, 15] may be treated as equivalent, for purposes of this disclosure, as a vector represented as [1, 2, 3], Vectors may be more similar where their directions are more similar, and more different where their directions are more divergent, for instance as measured using cosine similarity as computed using a dot product of two vectors; however, vector similarity may alternatively or additionally be determined using averages of similarities between like attributes, or any other measure of similarity suitable for any n-tuple of values, or aggregation of numerical similarity measures for the purposes of loss functions as described in further detail below. Any vectors as described herein may be scaled, such that each vector represents each attribute along an equivalent scale of values. Each vector may be “normalized,” or divided by a “length” attribute, such as a length attribute 1 as derived using a Pythagorean norm: I = where ai is attribute number i of the vector. Scaling and / or normalization may function to make vector comparison independent of absolute quantities of attributes, while preserving any dependency on similarity of attributes. A two-dimensional subspace of a vector space may be defined by any two orthogonal vectors contained within the vector space. Two-dimensional subspace of a vector space may be defined by any two orthogonal and / or linearly independent vectors contained within the vector space; similarly, an n- dimensional space may be defined by n vectors that are linearly independent and / or orthogonal contained within a vector space. A vector’s “norm1is a scalar value, denoted || a || indicating the vector's length or size, and may be defined, as a non-limiting example, according to a Euclidean norm for an n-dimensional vector a as:

[0141] Still referring to FIG. 1, processor 104 scans accepted grids 144 of the second image.

[0142] Without limitation, apparatus 100 comprises Z-plane extrapolation model 160, wherein Z-plane extrapolation model 160 scans accepted grids 144 of the second image, wherein scanning accepted grids 144 of the second image may include scanning, using a predetermined sequence, each grid of accepted grids 144, estimating a first grid Z-plane of a first grid, extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid, computing, using the first grid Z- plane and the second grid Z-plane, a Z-plane differential, and re-classifying, using the Z-plane differential, the second grid as accepted grid 144 or rejected grid 148 using a predefined Z-plane differential threshold. As used in this disclosure, a “Z-plane extrapolation model” is a model designed to predict the focal plane of one or more regions of a specimen based on a known focal plane of an adjacent or nearby region. In a non-limiting example, Z-plane extrapolation model 160 may provide an optimal focus across different areas of the specimen of slide 120. In a nonlimiting example, Z-plane extrapolation model may dynamically adjust the focal plane as it move across different regions of the specimen of slide 120 to ensure focus across all areas of slide 120. Without limitation, Z-plane extrapolation model 160 provides improved focus across slide 120, more accurate results by minimizing errors and artifacts that are focus-related, and provides faster analysis of slide 120 because Z-plane extrapolation model 160 reduces the need for manual focus adjustments, thereby speeding up the imaging process. As used in this disclosure, a “predetermined sequence” is a specific predefined order or pattern in which tasks or actions are carried out. In a non-limiting example, the predetermined sequence dictates the order in which plurality of grids 124 of at least an image 116 are scanned and / or analyzed by Z-plane extrapolation model 160. For example, without limitation, Z-plane extrapolation model 160 may scan each grid of plurality of grids 124 of at least an image 116 in a specific order, such as, from left to right, top to bottom. In a non-limiting example, the predefined sequence ensures that Z- plane extrapolation model 160 analyzes all accepted grids 144 and avoids skipping or missing a grid of plurality of grids 124. Without limitation, the predefined sequence provides consistent results.

[0143] With continued reference to FIG. 1, as used in this disclosure, a “first grid Z-plane” is the starting point for the focusing an imaging device in the Z-plane. In a non-limiting example, the first grid Z-plane to be analyzed by Z-plane extrapolation model 160 may be the top left corner of accepted grid 144. As used in this disclosure, a “second grid Z-plane” is a subsequent grid that is analyzed by Z-plane extrapolation model. In a non-limiting example, second grid Z-plane may include accepted grid 144 which may be subject to reclassification as rejected grid 148 based on the results of Z-plane extrapolation model 160. In a non-limiting example, the second grid Z- plane may include a neighboring grid of the first grid. As used in this disclosure, a “Z-plane differential” is the difference between the second grid Z-plane measurement and the first grid Z- plane measurement. In a non-limiting example, the Z-plane differential is used to further classify plurality of grids 124 as accepted grid 144 or rejected grid 148. In a non-limiting example, the difference between the first grid Z-plane and the second grid Z-plane may be 10 units of measurement. As used in this disclosure, a “predefined Z-plane differential” is a set threshold representing the acceptable difference in focal depth, of the Z-plane, between neighboring regions. In a non-limiting example, the predefined Z-plane differential may be a numerical value like + / - 5 units. In another non-limiting example, the predefined Z-plane differential may include a percentage, such as, 10%. For example, without limitation, if the Z-plane differential is 10 units of measurement between the first grid Z-plane and the second grid Z-plane and the predefined Z- plane differential is 8 units of measurement, then the second grid may re-classified as rejected grid 148 because the Z-plane differential of 10 units of measurement is greater than the predefined Z-plane differential of 8 units of measurement. Without limitation, Z-plane extrapolation model is described more in FIGS. 4A and 4B below.

[0144] With continued reference to FIG. 1, apparatus 100 may include grid extension model 164 wherein grid extension model 164 scans accepted grids 144 of the second image, wherein scanning accepted grids 144 of the second image includes identifying a border row and a border column, and conditionally extending the grid row and the grid column of the second image as a function of the border row and the border column that includes one or more areas of interest 136.

[0145] As used in this disclosure, a “grid extension model” is a model designed to expand an area of analysis beyond the initially defined area in a systematic manner. In a non-limiting example, grid extension model 164 may use a machine learning model to analyze and determine whether content of interest 152 exists in a grid or not. In a non-limiting example, grid extension model 164 may be trained using high magnification images 132 with content of interest 152 scattered throughout plurality of grids 124. In a non-limiting example, grid extension model 164 may add rows and / or columns of grids in a predefined orderly manner. In a non-limiting example, grid extension model 164 may be designed to dynamically adjust the scope of scanning based on the findings in the initially defined grids. For example, without limitation, if grid extension model 164 detects content of interest 152 on the border row or border column of a grid, grid extension model 164 may extend the inspection area to ensure the entire content of interest 152 is captured and missed. As used in this disclosure, a “border row” is a row of elements that are located on the edge of a grid. In a non-limiting example, the grid of slide 120 may include two parallel border rows on the top and the bottom of the image. As used in this disclosure, a “border column” is a column of elements that are located on the edge of a grid. In a non-limiting example, the grid of slide 120 may include two parallel border columns one the left and one on the right of the image. Without limitation, different imaging techniques, such as high magnification, may require multiple FOVs to capture the entire grid, with typically 10s of FOVs along both the height and width of the grid of plurality of grids 124.

[0146] With continued reference to FIG. 1, in a non-limiting example, grid extension model 164 may evaluate, using presence or absence of content of interest 152 in the border fields of view, for a grid being scanned. Continuing the previous non-limiting example, grid extension model 164 may flag, using the presence of content of interest 152, the border rows and / or the border columns for grid extension. In a non-limiting example, grid extension model 164 may use classifier model 156 to flag the border rows and / or the border columns containing content of interest 152. In a non-limiting example, classifier model 156 may output a probability of specimen presence in the grid, instead of a binary output. For example, without limitation, classifier model 156 may detect a high probability of content of interest 152 in a grid in certain border rows or border columns, thereby prompting grid extension model 164 to extend the grid to include these regions for more detailed analysis. Without limitation, classifier 156 output may be useful in defining one or more areas of interest 136, filtering accepted grids 144 and rejected grids 148, and grid extension. Continuing the previous non-limiting example, grid extension model 164 may then extend, using the flags corresponding to border rows and / or border columns, the grid by one field of view outwards in direction of the flagged border rows and / or border columns. Continuing the previous non-limiting example, grid extension model 164 may scan, using the extended grid, the extended fields of view. Continuing the previous non-limiting example, grid extension model 164 may re-evaluate and scanning, using presence or absence of content of interest 152 in the border fields of view of the extended grid, until all border rows and border columns are clear of content of interest 152. Grid extension model 164 is further discussed in FIGS. 2 A and 2B.

[0147] Still referring to FIG. 1, processor 104 may conditionally re-scans accepted grids 144 of the second image. In a non-limiting example, accepted grids 144 may be rescanned multiple times by image capturing device 112. Without limitation, accepted grids 144 may be later determined and re-classified as rejected grid 148.

[0148] Still referring to FIG. 1, processor 104 displays, using a display device, an output image. As used in this disclosure, a "display device" refers to an electronic device that visually presents information to the entity. In some cases, display device may be configured to project or show visual content generated by computers, video devices, or other electronic mechanisms. In some cases, display device may include a liquid crystal display (LCD), a cathode ray tube (CRT), a plasma display, a light emitting diode (LED) display, and any combinations thereof. In a nonlimiting example, one or more display devices may vary in size, resolution, technology, and functionality. Display device may be able to show any data elements and / or visual elements as listed above in various formats such as, textural, graphical, video among others, in either monochrome or color. Display device may include, but is not limited to, a smartphone, tablet, laptop, monitor, tablet, and the like. Display device may include a separate device that includes a transparent screen configured to display computer generated images and / or information. In some cases, display device may be configured to present a graphical user interface (GUI) to a user, wherein a user may interact with a GUI. In some cases, a user may view a GUI through display. Additionally, or alternatively, processor 104 be connected to display device. In one or more embodiments, transmitting output image 172 may include displaying output image 172 at display device 168 using a visual interface. As used in this disclosure, an “output image” is the resultant image derived from an image processing technique. In a non-limiting example, output image 172 may include content of interest 152. In another non-limited example, output image 172 may provide pertinent visual information for further analysis of slide 120 specimen. Without limitation, output image 172 may include a whole slide image, wherein the whole slide image may include content of interest 152. Without limitation, output image 172 may further include a plurality of accepted grids 144. In a non-limiting example, output image may include whole slide image 176.

[0149] With continued reference to FIG. 1, apparatus 100 may reduce scan time by avoiding scanning non-tissue areas. Additionally, and or alternatively, apparatus 100 may avoid missing tissue, especially faint ones, near the periphery of the high contract tissue. Additionally, and or alternatively, apparatus 100 may allow localization of tissue using macro images 128 in a conservative manner so as not to miss tissue. Continuing the previous example, without limitation, when some high magnification data is available, the classification of image segments may be made with more confidence.

[0150] Exemplary embodiments have been disclosed above and illustrated in the accompanying drawings. It will be understood by those skilled in the art that various changes, omissions and additions may be made to that which is specifically disclosed herein without departing from the spirit and scope of the present invention.

[0151] Referring now to FIG. 2A and 2B, an illustration of an exemplary embodiment for grid extension, 200a-b. FIG. 2A shows example grid 204 around tissue 208. In an embodiment, grid 204 extents are initially derived from analysis of an image from a macro magnification camera. In an embodiment, at high magnification, grid 204 is imaged using multiple images with the field of view (FOV) typically smaller than grid 204. In an embodiment, typically, there are 10 squares of FOV at high magnification 224 along both height and width of grid 204. In an embodiment, each FOV at high magnification 224 is evaluated to detect the presence of content of interest 212, such as, without limitation, tissue 208. In an embodiment, if it's determined that row border 216 of FOV at high magnification 224 or column border 220 of FOV at high magnification 224 have tissue 208, then it is considered as an indicator of presence of more content of interest 212 beyond grid 204 in that direction.

[0152] FIG. 2B shows the extended grid based on the example in FIG 2A. The grid extension takes place one border row 216 or one border column 220 at a time dynamically based on the detected content. In an embodiment, the grid extension stops if the newly extended border row 216 or border column 220 is found clear of any content of interest 212. In an embodiment, this dynamic mechanism helps scanning of content of interest 212 even when macro image analysis may have missed detecting content of interest 212 presence.

[0153] Referring now to FIG. 3A and 3B, an illustration of an exemplary embodiment of filtering using high magnification probing, 300a-b. FIG. 3A shows a macro image analysis example with contents of slide 304 determined as potential content of interest, such as tissue 308, in this case. In an embodiment, the information available at macro magnification has led to debris 312 and pen mark 316 to be included as potential content of interest. In an embodiment, at high magnification, each grid around potential content of interest is evaluated using sample points called probe points 320. In an embodiment, probe points 320 are chosen based on maximizing the probability of finding content of interest 308. In an embodiment, at each probe point 320, the image corresponding to high magnification FOV is evaluated and classified. In an embodiment, three classes may be found, such as, debris 312, pen mark 316, and tissue 308. In an embodiment, tissue class is content of interest 308 and may be retained. Continuing the previous non-limiting example, debris 312 and pen mark 316 may be classified as a rejected grid and filtered out. FIG. 3B shows only the grids that remain after grid rejection using probe points 320. In an embodiment, only the remaining grids may be scanned as part of the whole slide image.

[0154] Referring now to FIG. 4A and 4B, an illustration of an exemplary embodiment of grid rejection using Z-plane extrapolation, 400a-b.FIG. 4A shows an example of tissue 404 and debris 408 on a glass slide. In an embodiment, at the macro image analysis level both tissue 404 and debris 408 might get considered as potential content of interest and with separate grids for each.

[0155] FIG. 4B shows the scenario when Grid 1 412 around tissue 404 has been scanned and measured Z-plane of tissue 404 region is known. In an embodiment, before starting the scanning of Grid 2 420, measured Z-plane 416 value can be extrapolated to, extrapolated Z-plane 424, where Grid 2420 is located. In an embodiment, using measured Z-plane 416 value at sample points, the difference 428 between extrapolated Z-plane 424 and measured Z-plane 424 is calculated to decide whether Grid 2 420 is above coverslip 432 or below coverslip 432. In an embodiment, if the difference 428 is larger than a predefined threshold, Grid 2 420 is considered debris 408 and not scanned as part of the whole slide image.

[0156] Referring now to FIG. 5, an exemplary embodiment of a machine-learning module 500 that may perform one or more machine-learning processes as described in this disclosure is illustrated. Machine-learning module may perform determinations, classification, and / or analysis steps, methods, processes, or the like as described in this disclosure using machine learning processes. A “machine learning process,” as used in this disclosure, is a process that automatedly uses training data 504 to generate an algorithm instantiated in hardware or software logic, data structures, and / or functions that will be performed by a computing device / module to produce outputs 508 given data provided as inputs 512; this is in contrast to a non-machine learning software program where the commands to be executed are determined in advance by a user and written in a programming language.

[0157] Still referring to FIG. 5, “training data,” as used herein, is data containing correlations that a machine-learning process may use to model relationships between two or more categories of data elements. For instance, and without limitation, training data 504 may include a plurality of data entries, also known as “training examples,” each entry representing a set of data elements that were recorded, received, and / or generated together; data elements may be correlated by shared existence in a given data entry, by proximity in a given data entry, or the like. Multiple data entries in training data 504 may evince one or more trends in correlations between categories of data elements; for instance, and without limitation, a higher value of a first data element belonging to a first category of data element may tend to correlate to a higher value of a second data element belonging to a second category of data element, indicating a possible proportional or other mathematical relationship linking values belonging to the two categories. Multiple categories of data elements may be related in training data 504 according to various correlations; correlations may indicate causative and / or predictive links between categories of data elements, which may be modeled as relationships such as mathematical relationships by machine-learning processes as described in further detail below. Training data 504 may be formatted and / or organized by categories of data elements, for instance by associating data elements with one or more descriptors corresponding to categories of data elements. As a nonlimiting example, training data 504 may include data entered in standardized forms by persons or processes, such that entry of a given data element in a given field in a form may be mapped to one or more descriptors of categories. Elements in training data 504 may be linked to descriptors of categories by tags, tokens, or other data elements; for instance, and without limitation, training data 504 may be provided in fixed-length formats, formats linking positions of data to categories such as comma-separated value (CSV) formats and / or self-describing formats such as extensible markup language (XML), JavaScript Object Notation (JSON), or the like, enabling processes or devices to detect categories of data.

[0158] Alternatively or additionally, and continuing to refer to FIG. 5, training data 504 may include one or more elements that are not categorized; that is, training data 504 may not be formatted or contain descriptors for some elements of data. Machine-learning algorithms and / or other processes may sort training data 504 according to one or more categorizations using, for instance, natural language processing algorithms, tokenization, detection of correlated values in raw data and the like; categories may be generated using correlation and / or other processing algorithms. As a non-limiting example, in a corpus of text, phrases making up a number “n” of compound words, such as nouns modified by other nouns, may be identified according to a statistically significant prevalence of n-grams containing such words in a particular order; such an n-gram may be categorized as an element of language such as a “word” to be tracked similarly to single words, generating a new category as a result of statistical analysis. Similarly, in a data entry including some textual data, a person’s name may be identified by reference to a list, dictionary, or other compendium of terms, permitting ad-hoc categorization by machinelearning algorithms, and / or automated association of data in the data entry with descriptors or into a given format. The ability to categorize data entries automatedly may enable the same training data 504 to be made applicable for two or more distinct machine-learning algorithms as described in further detail below. Training data 504 used by machine-learning module 500 may correlate any input data as described in this disclosure to any output data as described in this disclosure. As a non-limiting illustrative inputs may include at least an image, and outputs may include the content of interest as described above.

[0159] Further referring to FIG. 5, training data may be filtered, sorted, and / or selected using one or more supervised and / or unsupervised machine-learning processes and / or models as described in further detail below; such models may include without limitation a training data classifier 516. Training data classifier 516 may include a “classifier,” which as used in this disclosure is a machine-learning model as defined below, such as a data structure representing and / or using a mathematical model, neural net, or program generated by a machine learning algorithm known as a “classification algorithm,” as described in further detail below, that sorts inputs into categories or bins of data, outputting the categories or bins of data and / or labels associated therewith. A classifier may be configured to output at least a datum that labels or otherwise identifies a set of data that are clustered together, found to be close under a distance metric as described below, or the like. A distance metric may include any norm, such as, without limitation, a Pythagorean norm. Machine-learning module 500 may generate a classifier using a classification algorithm, defined as a processes whereby a computing device and / or any module and / or component operating thereon derives a classifier from training data 504. Classification may be performed using, without limitation, linear classifiers such as without limitation logistic regression and / or naive Bayes classifiers, nearest neighbor classifiers such as k-nearest neighbors classifiers, support vector machines, least squares support vector machines, fisher’s linear discriminant, quadratic classifiers, decision trees, boosted trees, random forest classifiers, learning vector quantization, and / or neural network-based classifiers. As a non-limiting example, training data classifier 516 may classify elements of training data into accepted grids or rejected grids based on the content of the grid and whether the content is content of interest.

[0160] Still referring to FIG. 5, Computing device may be configured to generate a classifier using a Naive Bayes classification algorithm. Naive Bayes classification algorithm generates classifiers by assigning class labels to problem instances, represented as vectors of element values. Class labels are drawn from a finite set. Naive Bayes classification algorithm may include generating a family of algorithms that assume that the value of a particular element is independent of the value of any other element, given a class variable. Naive Bayes classification algorithm may be based on Bayes Theorem expressed as P(A / B)= P(B / A) P(A)-^P(B), where P(A / B) is the probability of hypothesis A given data B also known as posterior probability; P(B / A) is the probability of data B given that the hypothesis A was true; P(A) is the probability of hypothesis A being true regardless of data also known as prior probability of A; and P(B) is the probability of the data regardless of the hypothesis. A naive Bayes algorithm may be generated by first transforming training data into a frequency table. Computing device may then calculate a likelihood table by calculating probabilities of different data entries and classification labels. Computing device may utilize a naive Bayes equation to calculate a posterior probability for each class. A class containing the highest posterior probability is the outcome of prediction. Naive Bayes classification algorithm may include a gaussian model that follows a normal distribution. Naive Bayes classification algorithm may include a multinomial model that is used for discrete counts. Naive Bayes classification algorithm may include a Bernoulli model that may be utilized when vectors are binary.

[0161] With continued reference to FIG. 5, Computing device may be configured to generate a classifier using a K-nearest neighbors (KNN) algorithm. A “K-nearest neighbors algorithm” as used in this disclosure, includes a classification method that utilizes feature similarity to analyze how closely out-of-sample- features resemble training data to classify input data to one or more clusters and / or categories of features as represented in training data; this may be performed by representing both training data and input data in vector forms, and using one or more measures of vector similarity to identify classifications within training data, and to determine a classification of input data. K-nearest neighbors algorithm may include specifying a K-value, or a number directing the classifier to select the k most similar entries training data to a given sample, determining the most common classifier of the entries in the database, and classifying the known sample; this may be performed recursively and / or iteratively to generate a classifier that may be used to classify input data as further samples. For instance, an initial set of samples may be performed to cover an initial heuristic and / or “first guess” at an output and / or relationship, which may be seeded, without limitation, using expert input received according to any process as described herein. As a non-limiting example, an initial heuristic may include a ranking of associations between inputs and elements of training data. Heuristic may include selecting some number of highest-ranking associations and / or training data elements.

[0162] With continued reference to FIG. 5, generating k-nearest neighbors algorithm may generate a first vector output containing a data entry cluster, generating a second vector output containing an input data, and calculate the distance between the first vector output and the second vector output using any suitable norm such as cosine similarity, Euclidean distance measurement, or the like. Each vector output may be represented, without limitation, as an n- tuple of values, where n is at least two values. Each value of n-tuple of values may represent a measurement or other quantitative value associated with a given category of data, or attribute, examples of which are provided in further detail below; a vector may be represented, without limitation, in n-dimensional space using an axis per category of value represented in n-tuple of values, such that a vector has a geometric direction characterizing the relative quantities of attributes in the n-tuple as compared to each other. Two vectors may be considered equivalent where their directions, and / or the relative quantities of values within each vector as compared to each other, are the same; thus, as a non-limiting example, a vector represented as [5, 10, 15] may be treated as equivalent, for purposes of this disclosure, as a vector represented as [1, 2, 3], Vectors may be more similar where their directions are more similar, and more different where their directions are more divergent; however, vector similarity may alternatively or additionally be determined using averages of similarities between like attributes, or any other measure of similarity suitable for any n-tuple of values, or aggregation of numerical similarity measures for the purposes of loss functions as described in further detail below. Any vectors as described herein may be scaled, such that each vector represents each attribute along an equivalent scale of values. Each vector may be “normalized,” or divided by a “length” attribute, such as a length attribute I as derived using a Pythagorean norm: I = SF=oai2where at is attribute number i of the vector. Scaling and / or normalization may function to make vector comparison independent of absolute quantities of attributes, while preserving any dependency on similarity of attributes; this may, for instance, be advantageous where cases represented in training data are represented by different quantities of samples, which may result in proportionally equivalent vectors with divergent values.

[0163] With further reference to FIG. 5, training examples for use as training data may be selected from a population of potential examples according to cohorts relevant to an analytical problem to be solved, a classification task, or the like. Alternatively or additionally, training data may be selected to span a set of likely circumstances or inputs for a machine-learning model and / or process to encounter when deployed. For instance, and without limitation, for each category of input data to a machine-learning process or model that may exist in a range of values in a population of phenomena such as images, user data, process data, physical data, or the like, a computing device, processor, and / or machine-learning model may select training examples representing each possible value on such a range and / or a representative sample of values on such a range. Selection of a representative sample may include selection of training examples in proportions matching a statistically determined and / or predicted distribution of such values according to relative frequency, such that, for instance, values encountered more frequently in a population of data so analyzed are represented by more training examples than values that are encountered less frequently. Alternatively or additionally, a set of training examples may be compared to a collection of representative values in a database and / or presented to a user, so that a process can detect, automatically or via user input, one or more values that are not included in the set of training examples. Computing device, processor, and / or module may automatically generate a missing training example; this may be done by receiving and / or retrieving a missing input and / or output value and correlating the missing input and / or output value with a corresponding output and / or input value collocated in a data record with the retrieved value, provided by a user and / or other device, or the like.

[0164] Continuing to refer to FIG. 5, computer, processor, and / or module may be configured to preprocess training data. “Preprocessing” training data, as used in this disclosure, is transforming training data from raw form to a format that can be used for training a machine learning model. Preprocessing may include sanitizing, feature selection, feature scaling, data augmentation and the like.

[0165] Still referring to FIG. 5, computer, processor, and / or module may be configured to sanitize training data. “Sanitizing” training data, as used in this disclosure, is a process whereby training examples are removed that interfere with convergence of a machine-learning model and / or process to a useful result. For instance, and without limitation, a training example may include an input and / or output value that is an outlier from typically encountered values, such that a machine-learning algorithm using the training example will be adapted to an unlikely amount as an input and / or output; a value that is more than a threshold number of standard deviations away from an average, mean, or expected value, for instance, may be eliminated. Alternatively or additionally, one or more training examples may be identified as having poor quality data, where “poor quality” is defined as having a signal to noise ratio below a threshold value. Sanitizing may include steps such as removing duplicative or otherwise redundant data, interpolating missing data, correcting data errors, standardizing data, identifying outliers, and the like. In a nonlimiting example, sanitization may include utilizing algorithms for identifying duplicate entries or spell-check algorithms.

[0166] As a non-limiting example, and with further reference to FIG. 5, images used to train an image classifier or other machine-learning model and / or process that takes images as inputs or generates images as outputs may be rejected if image quality is below a threshold value. For instance, and without limitation, computing device, processor, and / or module may perform blur detection, and eliminate one or more Blur detection may be performed, as a non-limiting example, by taking Fourier transform, or an approximation such as a Fast Fourier Transform (FFT) of the image and analyzing a distribution of low and high frequencies in the resulting frequency-domain depiction of the image; numbers of high-frequency values below a threshold level may indicate blurriness. As a further non-limiting example, detection of blurriness may be performed by convolving an image, a channel of an image, or the like with a Laplacian kernel; this may generate a numerical score reflecting a number of rapid changes in intensity shown in the image, such that a high score indicates clarity and a low score indicates blurriness. Blurriness detection may be performed using a gradient-based operator, which measures operators based on the gradient or first derivative of an image, based on the hypothesis that rapid changes indicate sharp edges in the image, and thus are indicative of a lower degree of blurriness. Blur detection may be performed using Wavelet -based operator, which takes advantage of the capability of coefficients of the discrete wavelet transform to describe the frequency and spatial content of images. Blur detection may be performed using statistics-based operators take advantage of several image statistics as texture descriptors in order to compute a focus level. Blur detection may be performed by using discrete cosine transform (DCT) coefficients in order to compute a focus level of an image from its frequency content.

[0167] Continuing to refer to FIG. 5, computing device, processor, and / or module may be configured to precondition one or more training examples. For instance, and without limitation, where a machine learning model and / or process has one or more inputs and / or outputs requiring, transmitting, or receiving a certain number of bits, samples, or other units of data, one or more training examples’ elements to be used as or compared to inputs and / or outputs may be modified to have such a number of units of data. For instance, a computing device, processor, and / or module may convert a smaller number of units, such as in a low pixel count image, into a desired number of units, for instance by upsampling and interpolating. As a non-limiting example, a low pixel count image may have 100 pixels, however a desired number of pixels may be 128. Processor may interpolate the low pixel count image to convert the 100 pixels into 128 pixels. It should also be noted that one of ordinary skill in the art, upon reading this disclosure, would know the various methods to interpolate a smaller number of data units such as samples, pixels, bits, or the like to a desired number of such units. In some instances, a set of interpolation rules may be trained by sets of highly detailed inputs and / or outputs and corresponding inputs and / or outputs downsampled to smaller numbers of units, and a neural network or other machine learning model that is trained to predict interpolated pixel values using the training data. As a non-limiting example, a sample input and / or output, such as a sample picture, with sample- expanded data units (e.g., pixels added between the original pixels) may be input to a neural network or machine-learning model and output a pseudo replica sample-picture with dummy values assigned to pixels between the original pixels based on a set of interpolation rules. As a non-limiting example, in the context of an image classifier, a machine-learning model may have a set of interpolation rules trained by sets of highly detailed images and images that have been downsampled to smaller numbers of pixels, and a neural network or other machine learning model that is trained using those examples to predict interpolated pixel values in a facial picture context. As a result, an input with sample-expanded data units (the ones added between the original data units, with dummy values) may be run through a trained neural network and / or model, which may fill in values to replace the dummy values. Alternatively or additionally, processor, computing device, and / or module may utilize sample expander methods, a low-pass filter, or both. As used in this disclosure, a “low-pass filter” is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filter design. Computing device, processor, and / or module may use averaging, such as luma or chroma averaging in images, to fill in data units in between original data units.

[0168] In some embodiments, and with continued reference to FIG. 5, computing device, processor, and / or module may down-sample elements of a training example to a desired lower number of data elements. As a non-limiting example, a high pixel count image may have 256 pixels, however a desired number of pixels may be 128. Processor may down-sample the high pixel count image to convert the 256 pixels into 128 pixels. In some embodiments, processor may be configured to perform downsampling on data. Downsampling, also known as decimation, may include removing every Nth entry in a sequence of samples, all but every Nth entry, or the like, which is a process known as “compression,” and may be performed, for instance by an N-sample compressor implemented using hardware or software. Anti-aliasing and / or anti-imaging filters, and / or low-pass filters, may be used to clean up side-effects of compression.

[0169] Further referring to FIG. 5, feature selection includes narrowing and / or filtering training data to exclude features and / or elements, or training data including such elements, that are not relevant to a purpose for which a trained machine-learning model and / or algorithm is being trained, and / or collection of features and / or elements, or training data including such elements, on the basis of relevance or utility for an intended task or purpose for a trained machine-learning model and / or algorithm is being trained. Feature selection may be implemented, without limitation, using any process described in this disclosure, including without limitation using training data classifiers, exclusion of outliers, or the like.

[0170] With continued reference to FIG. 5, feature scaling may include, without limitation, normalization of data entries, which may be accomplished by dividing numerical fields by norms thereof, for instance as performed for vector normalization. Feature scaling may include absolute maximum scaling, wherein each quantitative datum is divided by the maximum absolute value of all quantitative data of a set or subset of quantitative data. Feature scaling may include min-max scaling, in which each value X has a minimum value Xminin a set or subset of values subtracted therefrom, with the result divided by the range of the values, give maximum value in the set or subset X . Feature scaling may J include mean normalization, which ’ involves use of a mean value of a set and / or subset of values, Xmeanwith maximum and — minimum values: Xnew= -mean. Feature scaling may include standardization, where a

[0171] ^max~ min difference between X and Xmeanis divided by a standard deviation a of a set or subset of values: —

[0172] Xnew = — ^2- Scaling may be performed using a median value of a a set or subset Xmedianand / or interquartile range (IQR), which represents the difference between the 25thpercentile value and the 50thpercentile value (or closest values thereto by a rounding protocol), such as: personsskilled in the art, upon reviewing the entirety of this disclosure, will be aware of various alternative or additional approaches that may be used for feature scaling.

[0173] Still referring to FIG. 5, machine-learning module 500 may be configured to perform a lazy-learning process 520 and / or protocol, which may alternatively be referred to as a “lazy loading” or “call-when-needed” process and / or protocol, may be a process whereby machine learning is conducted upon receipt of an input to be converted to an output, by combining the input and training set to derive the algorithm to be used to produce the output on demand. For instance, an initial set of simulations may be performed to cover an initial heuristic and / or “first guess” at an output and / or relationship. As a non-limiting example, an initial heuristic may include a ranking of associations between inputs and elements of training data 504. Heuristic may include selecting some number of highest-ranking associations and / or training data 504 elements. Lazy learning may implement any suitable lazy learning algorithm, including without limitation a K-nearest neighbors algorithm, a lazy naive Bayes algorithm, or the like; persons skilled in the art, upon reviewing the entirety of this disclosure, will be aware of various lazy- learning algorithms that may be applied to generate outputs as described in this disclosure, including without limitation lazy learning applications of machine-learning algorithms as described in further detail below.

[0174] Alternatively or additionally, and with continued reference to FIG. 5, machine-learning processes as described in this disclosure may be used to generate machine-learning models 524. A “machine-learning model,” as used in this disclosure, is a data structure representing and / or instantiating a mathematical and / or algorithmic representation of a relationship between inputs and outputs, as generated using any machine-learning process including without limitation any process as described above, and stored in memory; an input is submitted to a machine-learning model 524 once created, which generates an output based on the relationship that was derived. For instance, and without limitation, a linear regression model, generated using a linear regression algorithm, may compute a linear combination of input data using coefficients derived during machine-learning processes to calculate an output datum. As a further non-limiting example, a machine-learning model 524 may be generated by creating an artificial neural network, such as a convolutional neural network comprising an input layer of nodes, one or more intermediate layers, and an output layer of nodes. Connections between nodes may be created via the process of "training" the network, in which elements from a training data 504 set are applied to the input nodes, a suitable training algorithm (such as Levenberg-Marquardt, conjugate gradient, simulated annealing, or other algorithms) is then used to adjust the connections and weights between nodes in adjacent layers of the neural network to produce the desired values at the output nodes. This process is sometimes referred to as deep learning.

[0175] Still referring to FIG. 5, machine-learning algorithms may include at least a supervised machine-learning process 528. At least a supervised machine-learning process 528, as defined herein, include algorithms that receive a training set relating a number of inputs to a number of outputs, and seek to generate one or more data structures representing and / or instantiating one or more mathematical relations relating inputs to outputs, where each of the one or more mathematical relations is optimal according to some criterion specified to the algorithm using some scoring function. For instance, a supervised learning algorithm may include at least an image, such as macro image or high magnification image as described above as inputs, content of interest grids of the at least an image as outputs, and a scoring function representing a desired form of relationship to be detected between inputs and outputs; scoring function may, for instance, seek to maximize the probability that a given input and / or combination of elements inputs is associated with a given output to minimize the probability that a given input is not associated with a given output. Scoring function may be expressed as a risk function representing an “expected loss” of an algorithm relating inputs to outputs, where loss is computed as an error function representing a degree to which a prediction generated by the relation is incorrect when compared to a given input-output pair provided in training data 504. Persons skilled in the art, upon reviewing the entirety of this disclosure, will be aware of various possible variations of at least a supervised machine-learning process 528 that may be used to determine relation between inputs and outputs. Supervised machine-learning processes may include classification algorithms as defined above.

[0176] With further reference to FIG. 5, training a supervised machine-learning process may include, without limitation, iteratively updating coefficients, biases, weights based on an error function, expected loss, and / or risk function. For instance, an output generated by a supervised machine-learning model using an input example in a training example may be compared to an output example from the training example; an error function may be generated based on the comparison, which may include any error function suitable for use with any machine-learning algorithm described in this disclosure, including a square of a difference between one or more sets of compared values or the like. Such an error function may be used in turn to update one or more weights, biases, coefficients, or other parameters of a machine-learning model through any suitable process including without limitation gradient descent processes, least-squares processes, and / or other processes described in this disclosure. This may be done iteratively and / or recursively to gradually tune such weights, biases, coefficients, or other parameters. Updating may be performed, in neural networks, using one or more back-propagation algorithms. Iterative and / or recursive updates to weights, biases, coefficients, or other parameters as described above may be performed until currently available training data is exhausted and / or until a convergence test is passed, where a “convergence test” is a test for a condition selected as indicating that a model and / or weights, biases, coefficients, or other parameters thereof has reached a degree of accuracy. A convergence test may, for instance, compare a difference between two or more successive errors or error function values, where differences below a threshold amount may be taken to indicate convergence. Alternatively or additionally, one or more errors and / or error function values evaluated in training iterations may be compared to a threshold.

[0177] Still referring to FIG. 5, a computing device, processor, and / or module may be configured to perform method, method step, sequence of method steps and / or algorithm described in reference to this figure, in any order and with any degree of repetition. For instance, a computing device, processor, and / or module may be configured to perform a single step, sequence and / or algorithm repeatedly until a desired or commanded outcome is achieved; repetition of a step or a sequence of steps may be performed iteratively and / or recursively using outputs of previous repetitions as inputs to subsequent repetitions, aggregating inputs and / or outputs of repetitions to produce an aggregate result, reduction or decrement of one or more variables such as global variables, and / or division of a larger processing task into a set of iteratively addressed smaller processing tasks. A computing device, processor, and / or module may perform any step, sequence of steps, or algorithm in parallel, such as simultaneously and / or substantially simultaneously performing a step two or more times using two or more parallel threads, processor cores, or the like; division of tasks between parallel threads and / or processes may be performed according to any protocol suitable for division of tasks between iterations. Persons skilled in the art, upon reviewing the entirety of this disclosure, will be aware of various ways in which steps, sequences of steps, processing tasks, and / or data may be subdivided, shared, or otherwise dealt with using iteration, recursion, and / or parallel processing.

[0178] Further referring to FIG. 5, machine learning processes may include at least an unsupervised machine-learning processes 532. An unsupervised machine-learning process, as used herein, is a process that derives inferences in datasets without regard to labels; as a result, an unsupervised machine-learning process may be free to discover any structure, relationship, and / or correlation provided in the data. Unsupervised processes 532 may not require a response variable; unsupervised processes 532 may be used to find interesting patterns and / or inferences between variables, to determine a degree of correlation between two or more variables, or the like.

[0179] Still referring to FIG. 5, machine-learning module 500 may be designed and configured to create a machine-learning model 524 using techniques for development of linear regression models. Linear regression models may include ordinary least squares regression, which aims to minimize the square of the difference between predicted outcomes and actual outcomes according to an appropriate norm for measuring such a difference (e.g. a vector-space distance norm); coefficients of the resulting linear equation may be modified to improve minimization. Linear regression models may include ridge regression methods, where the function to be minimized includes the least-squares function plus term multiplying the square of each coefficient by a scalar amount to penalize large coefficients. Linear regression models may include least absolute shrinkage and selection operator (LASSO) models, in which ridge regression is combined with multiplying the least-squares term by a factor of 1 divided by double the number of samples. Linear regression models may include a multi-task lasso model wherein the norm applied in the least-squares term of the lasso model is the Frobenius norm amounting to the square root of the sum of squares of all terms. Linear regression models may include the elastic net model, a multi-task elastic net model, a least angle regression model, a LARS lasso model, an orthogonal matching pursuit model, a Bayesian regression model, a logistic regression model, a stochastic gradient descent model, a perceptron model, a passive aggressive algorithm, a robustness regression model, a Huber regression model, or any other suitable model that may occur to persons skilled in the art upon reviewing the entirety of this disclosure. Linear regression models may be generalized in an embodiment to polynomial regression models, whereby a polynomial equation (e.g. a quadratic, cubic or higher-order equation) providing a best predicted output / actual output fit is sought; similar methods to those described above may be applied to minimize error functions, as will be apparent to persons skilled in the art upon reviewing the entirety of this disclosure.

[0180] Continuing to refer to FIG. 5, machine-learning algorithms may include, without limitation, linear discriminant analysis. Machine-learning algorithm may include quadratic discriminant analysis. Machine-learning algorithms may include kernel ridge regression. Machine-learning algorithms may include support vector machines, including without limitation support vector classification-based regression processes. Machine-learning algorithms may include stochastic gradient descent algorithms, including classification and regression algorithms based on stochastic gradient descent. Machine-learning algorithms may include nearest neighbors algorithms. Machine-learning algorithms may include various forms of latent space regularization such as variational regularization. Machine-learning algorithms may include Gaussian processes such as Gaussian Process Regression. Machine-learning algorithms may include cross-decomposition algorithms, including partial least squares and / or canonical correlation analysis. Machine-learning algorithms may include naive Bayes methods. Machinelearning algorithms may include algorithms based on decision trees, such as decision tree classification or regression algorithms. Machine-learning algorithms may include ensemble methods such as bagging meta-estimator, forest of randomized trees, AdaBoost, gradient tree boosting, and / or voting classifier methods. Machine-learning algorithms may include neural net algorithms, including convolutional neural net processes. Still referring to FIG. 5, a machine-learning model and / or process may be deployed or instantiated by incorporation into a program, apparatus, system and / or module. For instance, and without limitation, a machine-learning model, neural network, and / or some or all parameters thereof may be stored and / or deployed in any memory or circuitry. Parameters such as coefficients, weights, and / or biases may be stored as circuit-based constants, such as arrays of wires and / or binary inputs and / or outputs set at logic “1” and “0” voltage levels in a logic circuit to represent a number according to any suitable encoding system including twos complement or the like or may be stored in any volatile and / or non-volatile memory. Similarly, mathematical operations and input and / or output of data to or from models, neural network layers, or the like may be instantiated in hardware circuitry and / or in the form of instructions in firmware, machine-code such as binary operation code instructions, assembly language, or any higher- order programming language. Any technology for hardware and / or software instantiation of memory, instructions, data structures, and / or algorithms may be used to instantiate a machinelearning process and / or model, including without limitation any combination of production and / or configuration of non-reconfigurable hardware elements, circuits, and / or modules such as without limitation ASICs, production and / or configuration of reconfigurable hardware elements, circuits, and / or modules such as without limitation FPGAs, production and / or of non- reconfigurable and / or configuration non-rewritable memory elements, circuits, and / or modules such as without limitation non-rewritable ROM, production and / or configuration of reconfigurable and / or rewritable memory elements, circuits, and / or modules such as without limitation rewritable ROM or other memory technology described in this disclosure, and / or production and / or configuration of any computing device and / or component thereof as described in this disclosure. Such deployed and / or instantiated machine-learning model and / or algorithm may receive inputs from any other process, module, and / or component described in this disclosure, and produce outputs to any other process, module, and / or component described in this disclosure.

[0181] Continuing to refer to FIG. 5, any process of training, retraining, deployment, and / or instantiation of any machine-learning model and / or algorithm may be performed and / or repeated after an initial deployment and / or instantiation to correct, refine, and / or improve the machinelearning model and / or algorithm. Such retraining, deployment, and / or instantiation may be performed as a periodic or regular process, such as retraining, deployment, and / or instantiation at regular elapsed time periods, after some measure of volume such as a number of bytes or other measures of data processed, a number of uses or performances of processes described in this disclosure, or the like, and / or according to a software, firmware, or other update schedule. Alternatively or additionally, retraining, deployment, and / or instantiation may be event-based, and may be triggered, without limitation, by user inputs indicating sub-optimal or otherwise problematic performance and / or by automated field testing and / or auditing processes, which may compare outputs of machine-learning models and / or algorithms, and / or errors and / or error functions thereof, to any thresholds, convergence tests, or the like, and / or may compare outputs of processes described herein to similar thresholds, convergence tests or the like. Event-based retraining, deployment, and / or instantiation may alternatively or additionally be triggered by receipt and / or generation of one or more new training examples; a number of new training examples may be compared to a preconfigured threshold, where exceeding the preconfigured threshold may trigger retraining, deployment, and / or instantiation.

[0182] Still referring to FIG. 5, retraining and / or additional training may be performed using any process for training described above, using any currently or previously deployed version of a machine-learning model and / or algorithm as a starting point. Training data for retraining may be collected, preconditioned, sorted, classified, sanitized or otherwise processed according to any process described in this disclosure. Training data may include, without limitation, training examples including inputs and correlated outputs used, received, and / or generated from any version of any system, module, machine-learning model or algorithm, apparatus, and / or method described in this disclosure; such examples may be modified and / or labeled according to user feedback or other processes to indicate desired results, and / or may have actual or measured results from a process being modeled and / or predicted by system, module, machine-learning model or algorithm, apparatus, and / or method as “desired” results to be compared to outputs for training processes as described above.

[0183] Redeployment may be performed using any reconfiguring and / or rewriting of reconfigurable and / or rewritable circuit and / or memory elements; alternatively, redeployment may be performed by production of new hardware and / or software components, circuits, instructions, or the like, which may be added to and / or may replace existing hardware and / or software components, circuits, instructions, or the like.

[0184] Further referring to FIG. 5, one or more processes or algorithms described above may be performed by at least a dedicated hardware unit 536. A “dedicated hardware unit,” for the purposes of this figure, is a hardware component, circuit, or the like, aside from a principal control circuit and / or processor performing method steps as described in this disclosure, that is specifically designated or selected to perform one or more specific tasks and / or processes described in reference to this figure, such as without limitation preconditioning and / or sanitization of training data and / or training a machine-learning algorithm and / or model. A dedicated hardware unit 536 may include, without limitation, a hardware unit that can perform iterative or massed calculations, such as matrix-based calculations to update or tune parameters, weights, coefficients, and / or biases of machine-learning models and / or neural networks, efficiently using pipelining, parallel processing, or the like; such a hardware unit may be optimized for such processes by, for instance, including dedicated circuitry for matrix and / or signal processing operations that includes, e g., multiple arithmetic and / or logical circuit units such as multipliers and / or adders that can act simultaneously and / or in parallel or the like. Such dedicated hardware units 536 may include, without limitation, graphical processing units (GPUs), dedicated signal processing modules, FPGA or other reconfigurable hardware that has been configured to instantiate parallel processing units for one or more specific tasks, or the like, A computing device, processor, apparatus, or module may be configured to instruct one or more dedicated hardware units 536 to perform one or more operations described herein, such as evaluation of model and / or algorithm outputs, one-time or iterative updates to parameters, coefficients, weights, and / or biases, and / or any other operations such as vector and / or matrix operations as described in this disclosure.

[0185] Referring now to FIG. 6, an exemplary embodiment of neural network 600 is illustrated. A neural network 600 also known as an artificial neural network, is a network of “nodes,” or data structures having one or more inputs, one or more outputs, and a function determining outputs based on inputs. Such nodes may be organized in a network, such as without limitation a convolutional neural network, including an input layer of nodes 604, one or more intermediate layers 608, and an output layer of nodes 612. Connections between nodes may be created via the process of "training" the network, in which elements from a training dataset are applied to the input nodes, a suitable training algorithm (such as Levenberg-Marquardt, conjugate gradient, simulated annealing, or other algorithms) is then used to adjust the connections and weights between nodes in adjacent layers of the neural network to produce the desired values at the output nodes. This process is sometimes referred to as deep learning. Connections may run solely from input nodes toward output nodes in a “feed-forward” network, or may feed outputs of one layer back to inputs of the same or a different layer in a “recurrent network.” As a further nonlimiting example, a neural network may include a convolutional neural network comprising an input layer of nodes, one or more intermediate layers, and an output layer of nodes. A “convolutional neural network,” as used in this disclosure, is a neural network in which at least one hidden layer is a convolutional layer that convolves inputs to that layer with a subset of inputs known as a “kernel,” along with one or more additional layers such as pooling layers, fully connected layers, and the like.

[0186] Referring now to FIG. 7, an exemplary embodiment of a node 700 of a neural network is illustrated. A node may include, without limitation, a plurality of inputs xt that may receive numerical values from inputs to a neural network containing the node and / or from other nodes. Node may perform one or more activation functions to produce its output given one or more inputs, such as without limitation computing a binary step function comparing an input to a threshold value and outputting either a logic 1 or logic 0 output or something equivalent, a linear activation function whereby an output is directly proportional to the input, and / or a non-linear activation function, wherein the output is not proportional to the input. Non-linear activation functions may include, without limitation, a sigmoid function of the form (x) = given eX_e-X input x, a tanh (hyperbolic tangent) function, of the formgX+e-x. a tanh derivative function such as (x) = tanh2(x), a rectified linear unit function such as f(x) = max (0, x), a “leaky” and / or “parametric” rectified linear unit function such as (x) = max (ax, x) for some a, an exponential linear units function such assome va'ue°fa (this function may be replaced and / or weighted by its own derivative in some embodiments), a exsoftmax function such as f(xt) = where the inputs to an instant layer are xt, a swish function such as (x) = x * sigmoid(x), a Gaussian error linear unit function such as f(x) = a(l + tanh + bxr))) for some values of a, b, and r, and / or a scaled exponential linear unit function such as (x) = Fundamentally, there is no limit to the nature of functions of inputs Xi that may be used as activation functions. As a non-limiting and illustrative example, node may perform a weighted sum of inputs using weights w, that are multiplied by respective inputs xt. Additionally or alternatively, a bias b may be added to the weighted sum of the inputs such that an offset is added to each unit in the neural network layer that is independent of the input to the layer. The weighted sum may then be input into a function (p, which may generate one or more outputs; . Weight applied to an input xt may indicate whether the input is “excitatory,” indicating that it has strong influence on the one or more outputs , for instance by the corresponding weight having a large numerical value, and / or a “inhibitory,” indicating it has a weak effect influence on the one more inputs for instance by the corresponding weight having a small numerical value. The values of weights wt may be determined by training a neural network using training data, which may be performed using any suitable process as described above.

[0187] Referring now to FIG. 8, a flow diagram of an exemplary method 800 for detecting content of interest on a slide using machine learning is illustrated. At step 805, method 800 includes receiving, using at least a processor, receiving a first image of the at least an image from the image capturing device, wherein the first image comprises a macro image. This may be implemented as described and with reference to FIGS. 1-7.

[0188] Still referring to FIG. 8, at step 810, method 800 includes identifying, using at least a processor, one or more areas of interest associated with one or more grids of the first image. This may be implemented as described and with reference to FIGS. 1-7.

[0189] Still referring to FIG. 8, at step 815, method 800 includes receiving, using at least a processor, a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with one or more areas of interest of the first image. This may be implemented as described and with reference to FIGS. 1- 7.

[0190] Still referring to FIG. 8, at step 820, method 800 includes classifying, using at least a probed point, one or more grids of the second image, wherein classifying the plurality of grids of the second image comprises classifying the plurality of grids into accepted grids of the plurality of grids and rejected grids of the plurality of grids. This may be implemented as described and with reference to FIGS. 1-7.

[0191] Still referring to FIG. 8, at step 825, method 800 includes scanning, using at least an image capturing device, the accepted grids of the second image. This may be implemented as described and with reference to FIGS. 1-7.

[0192] Still referring to FIG. 8, at step 830, method 800 includes displaying, using a display device, the output image. This may be implemented as described and with reference to FIGS. 1- 7. In an embodiment, wherein displaying the output using a display device may include a remote device, the apparatus, and or shared devices.

[0193] Referring now to FIG. 9, an exemplary embodiment of a method 900 of slide imaging is illustrated. This may aid in reducing out-of-focus errors. At step 905, the entire slide image may be captured at a low resolution (e.g. lx). At step 910, image segmentation may be performed to detect regions where any substance is present. This may demarcate all regions including regions of debris, pen mark, printed text (such as annotations) on a slide, with bounding boxes. At step 915, for each bounding box encompassing a region of interest, a sample presence probability score may be computed. This may be performed by a variety of algorithms such as K means, NLMD (non-local means denoising), features such as Hue color space, and the like for each row, and segmentation models such as U-Net. This may be used to find the best row 920. A best row may include a row that is flanked by rows above and below whose combined weighted score is the highest score for the presence of a sample. Once the best row is determined, the best (x,y) location may be determined. The best (x,y) location may include an (x,y) point that maximizes the probability of sample presence at the point from the specimen boundaries, color, etc. The optimal focus for that bounding box may be determined by collecting the z-stack at the best (x,y) point 925. As used herein, a “z-stack” is a plurality of images at a particular (x,y) location, at varying focus distances. In some embodiments, a z-stack may have a height less than the height of a slide. In some embodiments, a z-stack may include 2, 3, 4, 5, 6, 7, 8, 9, 10, or more images captured at varying focus distances. In some embodiments, images captured as part of a z-stack may be less than a millimeter apart. Capturing fewer images may improve efficiency, for example, because it may be faster. Capturing images close together may allow for high precision in determining an optimal focus distance. In some embodiments, these factors may make it desirable to capture relatively few images over a relatively small height. This may raise the importance of selecting a focus distance to capture a z-stack such that an object to be focused on is positioned within the height of the z-stack. A focus pattern may be used to estimate a focus distance at an (x,y) location where a z-stack is to be captured at. Use of such an estimate may improve the consistency with which an object to be focused on is within the height of a z-stack. In some embodiments, a z-stack distance may be identified and / or captured using a planarity of a field of view of a camera and / or at least two points along that row. Such planarity may include a focus pattern as described herein. At steps 930 and 935, that z-level may be used to scan the row and identify a focus pattern such as a plane. A focus pattern such as a plane may be identified using a set of points along a row as a function of an optimal focus of a point in that row. Such a plane may be used to estimate focus distances at other locations such a location in an adjacent row. Such a plane may be recalculated based on additional data as new data is obtained. For example, an optimal focus may be identified at an additional point, and a plane may be updated based on this additional data. Such a plane may also be used to estimate a focus distance in another region of interest 940. This procedure may be repeated for all regions of interest in the slide 945.

[0194] It is to be noted that any one or more of the aspects and embodiments described herein may be conveniently implemented using one or more machines (e.g., one or more computing devices that are utilized as a user computing device for an electronic document, one or more server devices, such as a document server, etc.) programmed according to the teachings of the present specification, as will be apparent to those of ordinary skill in the computer art. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those of ordinary skill in the software art. Aspects and implementations discussed above employing software and / or software modules may also include appropriate hardware for assisting in the implementation of the machine executable instructions of the software and / or software module.

[0195] Such software may be a computer program product that employs a machine-readable storage medium. A machine-readable storage medium may be any medium that is capable of storing and / or encoding a sequence of instructions for execution by a machine (e.g., a computing device) and that causes the machine to perform any one of the methodologies and / or embodiments described herein. Examples of a machine-readable storage medium include, but are not limited to, a magnetic disk, an optical disc (e.g., CD, CD-R, DVD, DVD-R, etc.), a magnetooptical disk, a read-only memory “ROM” device, a random access memory “RAM” device, a magnetic card, an optical card, a solid-state memory device, an EPROM, an EEPROM, and any combinations thereof. A machine-readable medium, as used herein, is intended to include a single medium as well as a collection of physically separate media, such as, for example, a collection of compact discs or one or more hard disk drives in combination with a computer memory. As used herein, a machine-readable storage medium does not include transitory forms of signal transmission.

[0196] Such software may also include information (e.g., data) carried as a data signal on a data carrier, such as a carrier wave. For example, machine-executable information may be included as a data-carrying signal embodied in a data carrier in which the signal encodes a sequence of instruction, or portion thereof, for execution by a machine (e.g., a computing device) and any related information (e.g., data structures and data) that causes the machine to perform any one of the methodologies and / or embodiments described herein.

[0197] Examples of computing device include, but are not limited to, an electronic book reading device, a computer workstation, a terminal computer, a server computer, a handheld device (e.g., a tablet computer, a smartphone, etc.), a web appliance, a network router, a network switch, a network bridge, any machine capable of executing a sequence of instructions that specify an action to be taken by that machine, and any combinations thereof. In one example, a computing device may include and / or be included in a kiosk.

[0198] FIG. 10 shows a diagrammatic representation of one embodiment of computing device in the exemplary form of a computer system 1000 within which a set of instructions for causing a control system to perform any one or more of the aspects and / or methodologies of the present disclosure may be executed. It is also contemplated that multiple computing devices may be utilized to implement a specially configured set of instructions for causing one or more of the devices to perform any one or more of the aspects and / or methodologies of the present disclosure. Computer system 1000 includes a processor 1004 and a memory 1008 that communicate with each other, and with other components, via a bus 1012. Bus 1012 may include any of several types of bus structures including, but not limited to, a memory bus, a memory controller, a peripheral bus, a local bus, and any combinations thereof, using any of a variety of bus architectures.

[0199] Processor 1004 may include any suitable processor, such as without limitation a processor incorporating logical circuitry for performing arithmetic and logical operations, such as an arithmetic and logic unit (ALU), which may be regulated with a state machine and directed by operational inputs from memory and / or sensors; processor 1004 may be organized according to Von Neumann and / or Harvard architecture as a non-limiting example. Processor 1004 may include, incorporate, and / or be incorporated in, without limitation, a microcontroller, microprocessor, digital signal processor (DSP), Field Programmable Gate Array (FPGA), Complex Programmable Logic Device (CPLD), Graphical Processing Unit (GPU), general purpose GPU, Tensor Processing Unit (TPU), analog or mixed signal processor, Trusted Platform Module (TPM), a floating point unit (FPU), system on module (SOM), and / or system on a chip (SoC).

[0200] Memory 1008 may include various components (e.g., machine-readable media) including, but not limited to, a random-access memory component, a read only component, and any combinations thereof. In one example, a basic input / output system 1016 (BIOS), including basic routines that help to transfer information between elements within computer system 1000, such as during start-up, may be stored in memory 1008. Memory 1008 may also include (e.g., stored on one or more machine-readable media) instructions (e.g., software) 1020 embodying any one or more of the aspects and / or methodologies of the present disclosure. In another example, memory 1008 may further include any number of program modules including, but not limited to, an operating system, one or more application programs, other program modules, program data, and any combinations thereof.

[0201] Computer system 1000 may also include a storage device 1024. Examples of a storage device (e.g., storage device 1024) include, but are not limited to, a hard disk drive, a magnetic disk drive, an optical disc drive in combination with an optical medium, a solid-state memory device, and any combinations thereof. Storage device 1024 may be connected to bus 1012 by an appropriate interface (not shown). Example interfaces include, but are not limited to, SCSI, advanced technology attachment (ATA), serial ATA, universal serial bus (USB), IEEE 1394 (FIREWIRE), and any combinations thereof. In one example, storage device 1024 (or one or more components thereof) may be removably interfaced with computer system 1000 (e.g., via an external port connector (not shown)). Particularly, storage device 1024 and an associated machine-readable medium 1028 may provide nonvolatile and / or volatile storage of machine- readable instructions, data structures, program modules, and / or other data for computer system 1000. In one example, software 1020 may reside, completely or partially, within machine- readable medium 1028. In another example, software 1020 may reside, completely or partially, within processor 1004.

[0202] Computer system 1000 may also include an input device 1032. In one example, a user of computer system 1000 may enter commands and / or other information into computer system 1000 via input device 1032. Examples of an input device 1032 include, but are not limited to, an alpha-numeric input device (e. , a keyboard), a pointing device, a joystick, a gamepad, an audio input device (e.g., a microphone, a voice response system, etc.), a cursor control device (e.g., a mouse), a touchpad, an optical scanner, a video capture device (e.g., a still camera, a video camera), a touchscreen, and any combinations thereof. Input device 1032 may be interfaced to bus 1012 via any of a variety of interfaces (not shown) including, but not limited to, a serial interface, a parallel interface, a game port, a USB interface, a FIREWIRE interface, a direct interface to bus 1012, and any combinations thereof. Input device 1032 may include a touch screen interface that may be a part of or separate from display 1036, discussed further below. Input device 1032 may be utilized as a user selection device for selecting one or more graphical representations in a graphical interface as described above.

[0203] A user may also input commands and / or other information to computer system 1000 via storage device 1024 (e.g., a removable disk drive, a flash drive, etc.) and / or network interface device 1040. A network interface device, such as network interface device 1040, may be utilized for connecting computer system 1000 to one or more of a variety of networks, such as network 1044, and one or more remote devices 1048 connected thereto. Examples of a network interface device include, but are not limited to, a network interface card (e.g., a mobile network interface card, a LAN card), a modem, and any combination thereof. Examples of a network include, but are not limited to, a wide area network (e.g., the Internet, an enterprise network), a local area network (e.g., a network associated with an office, a building, a campus or other relatively small geographic space), a telephone network, a data network associated with a telephone / voice provider (e.g., a mobile communications provider data and / or voice network), a direct connection between two computing devices, and any combinations thereof. A network, such as network 1044, may employ a wired and / or a wireless mode of communication. In general, any network topology may be used. Information (e.g., data, software 1020, etc.) may be communicated to and / or from computer system 1000 via network interface device 1040.

[0204] Computer system 1000 may further include a video display adapter 1052 for communicating a displayable image to a display device, such as display device 1036. Examples of a display device include, but are not limited to, a liquid crystal display (LCD), a cathode ray tube (CRT), a plasma display, a light emitting diode (LED) display, and any combinations thereof. Display adapter 1052 and display device 1036 may be utilized in combination with processor 1004 to provide graphical representations of aspects of the present disclosure. In addition to a display device, computer system 1000 may include one or more other peripheral output devices including, but not limited to, an audio speaker, a printer, and any combinations thereof. Such peripheral output devices may be connected to bus 1012 via a peripheral interface 1056. Examples of a peripheral interface include, but are not limited to, a serial port, a USB connection, a FIREWIRE connection, a parallel connection, and any combinations thereof.

[0205] The foregoing has been a detailed description of illustrative embodiments of the invention. Various modifications and additions can be made without departing from the spirit and scope of this invention. Features of each of the various embodiments described above may be combined with features of other described embodiments as appropriate in order to provide a multiplicity of feature combinations in associated new embodiments. Furthermore, while the foregoing describes a number of separate embodiments, what has been described herein is merely illustrative of the application of the principles of the present invention. Additionally, although particular methods herein may be illustrated and / or described as being performed in a specific order, the ordering is highly variable within ordinary skill to achieve methods according to the present disclosure. Accordingly, this description is meant to be taken only by way of example, and not to otherwise limit the scope of this invention.

[0206] Exemplary embodiments have been disclosed above and illustrated in the accompanying drawings. It will be understood by those skilled in the art that various changes, omissions and additions may be made to that which is specifically disclosed herein without departing from the spirit and scope of the present invention.

Claims

WHAT IS CLAIMED IS1. An apparatus for detecting content of interest on a slide, wherein the apparatus comprises: an image capturing device, wherein the image capturing device is configured to capture at least an image of a received slide; at least a computing device, wherein the computing device comprises: a memory; at least a processor communicatively connected to the memory, wherein the memory contains instructions configuring the at least a processor to: receive a first image of the at least an image from the image capturing device, wherein the first image comprises a macro image; identify one or more areas of interest associated with one or more grids of the first image; receive a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image, classify, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image comprises classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids; scan, using the image capturing device, the accepted grids to generate an output image; and display, using a display device, the output image; and a grid extension model configured to scan the one or more grids of an area of interest wherein scanning the one or more grids comprises: identifying a border row and a border column of the one or more grids; and conditionally extending the grid row and the grid column of the area of interest as a function of whether the border row and the bordercolumn comprises content of interest.

2. The apparatus of claim 1, wherein the image capturing device is further configured to capture, using a macro imaging setup, the macro image of the at least an image of the received slide and capture, using a high magnification imaging setup, the high magnification image of the at least an image of the received slide.

3. The apparatus of claim 1, wherein the memory contains instructions further configuring the at least a processor to utilize a classifier model, wherein the classifier model is configured to classify, using the at least a probe point from the macro image and the high magnification image, a content of interest of the one or more areas of interest into the accepted grids or the rejected grids.

4. The apparatus of claim 1, wherein the apparatus comprises a machine learning model, wherein the machine learning model is trained using a training set comprising labeled high magnification images.

5. The apparatus of claim 4, wherein the machine learning model comprises a neural network.

6. The apparatus of claim 1, wherein the apparatus comprises a Z-plane extrapolation model, wherein the Z-plane extrapolation model is configured to scan the accepted grids, wherein scanning the accepted grids comprises: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z-plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

7. The apparatus of claim 1, wherein the memory contains instructions further configuring the at least a processor to conditionally re-scan the accepted grids if the content of interest is detected in the border column or the border row.

8. The apparatus of claim 1, wherein the output image comprises a whole slide image, wherein the whole slide image comprises one or more content of interest.

9. The apparatus of claim 8, wherein the one or more content of interest of output imagecomprises a complete visual of the content of interest.

10. A method for detecting content of interest on a slide, wherein the method comprises: receiving, by at least a processor, a first image from an image capturing device, wherein the first image comprises a macro image; identifying, by the at least a processor, one or more areas of interest associated with one or more grids of the first image; receiving, by the at least a processor, a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image, classifying, by the at least a processor, using at least a probed point, the one or more grids of the first image, wherein classifying the one or more grids of the first image comprises classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids; scanning, using a grid extension model, the one or more grids of an area of interest, wherein scanning the one or more grids comprises: identifying a border row and a border column of the one or more grids; and conditionally extending the grid row and the grid column of the area of interest as a function of whether the border row and the border column comprises content of interest; scanning, using the image capturing device, the accepted grids to generate an output image; and displaying, using a display device, the output image.

11. The method of claim 10, further comprising: capturing, using a macro imaging setup of the image capturing device, the macro image of the at least an image of the received slide; and capturing, using a high magnification imaging setup of the image capturing device, the high magnification image of the at least an image of the received slide.

12. The method of claim 10, further comprising utilizing, by the at least a processor, a classifier model, wherein the classifier model is configured to classify, using the at least aprobe point from the macro image and the high magnification image, a content of interest of the one or more areas of interest into the accepted grids or the rejected grids.

13. The method of claim 10, further comprising training, using the at least a processor, a machine learning model, wherein the machine learning model is trained using a training set comprising labeled high magnification images.

14. The method of claim 13, wherein the machine learning model comprises a neural network.

15. The method of claim 10, further comprising scanning the accepted grids, wherein scanning the accepted grids comprises: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z-plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

16. The method of claim 10, further comprising conditionally re-scanning the accepted grids if the content of interest is detected in the border column or the border row.

17. The method of claim 10, wherein the output image comprises a whole slide image, wherein the whole slide image comprises one or more content of interest.

18. The method of claim 17, wherein the one or more content of interest of output image comprises a complete visual of the content of interest.

19. An apparatus for detecting content of interest on a slide, wherein the apparatus comprises: an image capturing device; at least a computing device, wherein the computing device comprises: a memory; and at least a processor communicatively connected to the memory, wherein the memory contains instructions configuring the at least a processor to: scan, using the image capturing device, a first image of a received slide; classify one or more grids of the first image, wherein classifying the oneor more grids of the first image comprises classifying the one or more grids into one or more accepted grids of the one or more grids; and scan, using the image capturing device, the one or more accepted grids to generate an output image, wherein scanning the one or more accepted grids comprises: identifying a border row and a border column of the one or more accepted grids; and conditionally extending, using a grid extension model, the border row and the border column of the one or more accepted grids as a function of whether the border row or the border column comprise a content of interest.

20. The apparatus of claim 19, wherein the first image comprises a macro image.

21. The apparatus of claim 19, wherein the at least a processor is further configured to display, using a display device, the output image.

22. The apparatus of claim 19, wherein the memory contains instructions further configuring the at least a processor to identify one or more areas of interest associated with one or more grids of the first image, wherein identifying the one or more areas of interest associated with the one or more grids of the first image further comprises scanning, using the image capture device, a second image of the received slide.

23. The apparatus of claim 22, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image.

24. The apparatus of claim 19, wherein classifying the one or more grids into the one or more accepted grids of the one or more grids comprises classifying the one or more grids into the one or more accepted grids of the one or more grids and one or more rejected grids of the one or more grids.

25. The apparatus of claim 19, wherein the grid extension model comprises a machine learning model.

26. The apparatus of claim 25, wherein training the machine learning model comprises training the machine learning model using high magnification images with one or more contents of interest scattered throughout a plurality of grids.

27. The apparatus of claim 19, wherein identifying the content of interest comprises identifying the content of interest using a classifier model, wherein the classifier model is configured to classify, using at least a probe point, the content of interest.

28. The apparatus of claim 19, wherein the memory contains instructions further configuring the at least a processor to conditionally re-scan the one or more accepted grids if the content of interest is detected in the border column or the border row.

29. A method for detecting content of interest on a slide, wherein the method comprises: scanning, by at least a processor, a first image of a received slide using an image capturing device; classifying, by the at least a processor, one or more grids of the first image, wherein classifying the one or more grids of the first image comprises classifying the one or more grids into one or more accepted grids of the one or more grids; scanning, using the image capturing device, the one or more accepted grids to generate an output image; wherein scanning the one or more accepted grids comprises: identifying a border row and a border column of the one or more accepted grids; and conditionally extending, using a grid extension model, the border row and the border column of the one or more accepted grids as a function of whether the border row or the border column comprises a content of interest.

30. The method of claim 29, wherein the first image comprises a macro image.

31. The method of claim 29, further comprising displaying, using a display device, the output image.

32. The method of claim 29, further comprising identifying, by the at least a processor, one or more areas of interest associated with one or more grids of the first image, wherein identifying, by the at least a processor, the one or more areas of interest associated with the one or more grids of the first image further comprises scanning, using the image capture device, a second image of the received slide.

33. The method of claim 32, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image.

34. The method of claim 29, wherein classifying the one or more grids into the one or moreaccepted grids of the one or more grids comprises classifying the one or more grids into the one or more accepted grids of the one or more grids and one or more rejected grids of the one or more grids.

35. The method of claim 29, wherein the grid extension model comprises a machine learning model.

36. The method of claim 35, wherein training the machine learning model comprises training the machine learning model using high magnification images with one or more contents of interest scattered throughout a plurality of grids.

37. The method of claim 29, wherein identifying the content of interest comprises identifying the content of interest using a classifier model, wherein the classifier model is configured to classify, using at least a probe point, the content of interest.

38. The method of claim 29, further comprising conditionally re-scanning the one or more accepted grids if the content of interest is detected in the border column or the border row.

39. An apparatus for detecting content of interest on a slide, wherein the apparatus comprises: at least a processor; and a memory communicatively connected to the at least a processor, wherein the memory contains instructions configuring the at least a processor to: receive, from an image capturing device, a first image of at least an image of a slide, wherein the first image comprises a macro image; identify one or more areas of interest associated with one or more grids of the first image; classify the one or more grids of the first image, wherein classifying the one or more grids of the first image comprises classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids; identify at least a border row and at least a border column of the one or more grids of the first image; conditionally extend at least a grid row and at least a grid column of the first image as a function of whether the at least a border row and the at least aborder column comprise content of interest; receive a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image and the grid row and the grid column conditionally extended as a function of whether the border row and the border column comprise content of interest; and scan, using the image capturing device, the accepted grids to generate an output image.

40. The apparatus of claim 39, wherein identifying one or more areas of interest associated with one or more grids of the first image further comprises restricting high-magnification image analysis to only a subset of the one or more grids of the first image.

41. The apparatus of claim 39, wherein identifying the border row and the border column comprises using a grid extension model configured to scan the one or more grids of an area of interest.

42. The apparatus of claim 39, wherein conditionally extending at least a grid row and at least a grid column of the first image is performed as a function of a probability score generated by a classifier model indicating a likelihood of content of interest in a border field of view.

43. The apparatus of claim 39, wherein conditionally extending the grid row and the grid column comprises: iteratively extending the grid by one field of view outwards in a direction of a flagged border row and flagged border column; and terminating an extension as a function of detecting a clear border field of view.

44. The apparatus of claim 39, wherein classifying the one or more grids of the first image further comprises: comparing a probability score of each grid against a classification threshold; and assigning each grid of the one or more grids to accepted grids of the one or more grids and rejected grids of the one or more grids as a function of comparing the probability score of each grid against a classification threshold.

45. The apparatus of claim 39, wherein the memory further contains instructions configuringthe at least a processor to classify, using at least a probe point of the first image and at least a probe point of the second image, content of interest of area of interest as accepted grid or rejected grid.

46. The apparatus of claim 39, wherein the memory contains instructions further configuring the at least a processor to: evaluate a border field of view of the accepted grids; and conditionally initiate a re-scan of the accepted grids as a function of detecting content of interest in the border field of view of the accepted grids.

47. The apparatus of claim 39, wherein the at least a processor is further configured to scan the accepted grids using a Z-plane extrapolation model, wherein scanning the accepted grids comprises: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z-plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

48. The apparatus of claim 39, wherein the memory further contains instructions configuring the at least a processor to: determine, using the second image, whether content of interest is included in each of the accepted grids of the one or more grids; and reclassify, as rejected grids of the one or more grids, each the accepted grids of the one or more grids as a function of determining whether content of interest is included in each of the accepted grids of the one or more grids.

49. A method for detecting content of interest on a slide, wherein the method comprises: receiving, from an image capturing device, a first image of at least an image of a slide, wherein the first image comprises a macro image; identifying, using at least a processor, one or more areas of interest associated with one or more grids of the first image; classifying, using the at least a processor, the one or more grids of the first image,wherein classifying the one or more grids of the first image comprises classifying the one or more grids into accepted grids of the one or more grids and rejected grids of the one or more grids; identifying, using the at least a processor, at least a border row and at least a border column of the one or more grids of the first image; conditionally extending at least a grid row and at least a grid column of the first image as a function of whether the at least a border row and the at least a border column comprise content of interest; receiving a second image of the at least an image from the image capturing device, wherein the second image comprises a high magnification image associated with the one or more areas of interest of the first image and the grid row and the grid column conditionally extended as a function of whether the border row and the border column comprise content of interest; and scanning, using the image capturing device, the accepted grids to generate an output image.

50. The method of claim 49, wherein identifying one or more areas of interest associated with one or more grids of the first image further comprises restricting high-magnification image analysis to only a subset of the one or more grids of the first image.

51. The method of claim 49, wherein identifying the border row and the border column comprises using a grid extension model configured to scan the one or more grids of an area of interest.

52. The method of claim 49, wherein conditionally extending the grid row and grid column comprises extending a grid row and grid column as a function of a probability score generated by a classifier model indicating a likelihood of content of interest in a border field of view.

53. The method of claim 49, wherein conditionally extending the grid row and the grid column comprises: iteratively extending the grid by one field of view outwards in a direction of a flagged border row and flagged border column; and terminating an extension as a function of detecting a clear border field of view.

54. The method of claim 49, wherein classifying the one or more grids of the first imagefurther comprises: comparing a probability score of each grid against a classification threshold; and assigning each grid of the one or more grids to accepted grids of the one or more grids and rejected grids of the one or more grids as a function of comparing the probability score of each grid against a classification threshold.

55. The method of claim 49, further comprising classifying, using at least a probe point of the first image and at least a probe point of the second image, content of interest of area of interest as accepted grid or rejected grid.

56. The method of claim 49, further comprising: evaluating a border field of view of the accepted grids; and conditionally initiating a re-scan of the accepted grids as a function of detecting content of interest in the border field of view of the accepted grids.

57. The method of claim 49, further comprising scanning, using a Z-plane extrapolation model, the accepted grids, wherein scanning the accepted grids comprises: scanning, using a predetermined sequence, each grid of the accepted grids; estimating a first grid Z-plane of a first grid; extrapolating, using the first grid Z-plane, a second-grid Z-plane of a second grid; computing, using the first grid Z-plane and the second grid Z-plane, a Z-plane differential; and re-classifying, using the Z-plane differential, the second grid as the accepted grids or the rejected grids using a predefined Z-plane differential threshold.

58. The method of claim 49, further comprising: determining, using the second image, whether content of interest is included in each of the accepted grids of the one or more grids; and reclassifying, as rejected grids of the one or more grids, each the accepted grids of the one or more grids as a function of determining whether content of interest is included in each of the accepted grids of the one or more grids.

Citation Information

Patent Citations

  • Digital tissue segmentation and viewing

    US11983845B1

  • Digital pathology image manipulation

    US20120069049A1

  • Determining biomarkers from histopathology slide images

    US20200258223A1