Microscope system and method for calibration verification
By capturing and converting panoramic images within a microscope system to evaluate the effectiveness of calibration parameters, the problem of inaccurate calibration parameters after user component replacement is solved, achieving precise alignment and consistency of panoramic images and ensuring stable system operation.
Patent Information
- Application Number
- CN202111129866.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-10-09
- Filing Date
- 2021-09-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2041-09-26
AI Technical Summary
In microscope systems, calibration parameters may become inaccurate after users replace or reconfigure components, leading to reduced navigation accuracy and the risk of equipment damage. Existing technologies make it difficult to accurately assess the effectiveness of calibration parameters.
By capturing at least two panoramic images at different sample positions or sample stage positions, calculating displacement mapping and converting them to the same viewpoint, evaluating the effectiveness of calibration parameters based on the consistency of the panoramic images, and using computing devices to control the panoramic camera and microscope components.
It enables precise evaluation of calibration parameters, ensuring accurate alignment and consistency of panoramic images, and avoiding navigation errors and equipment damage caused by inaccurate calibration.
Smart Images

Figure CN114326078B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to a microscope system and a method for calibration testing. Background Technology
[0002] Automation plays an increasingly important role in modern microscopy systems. Microscopy systems should be able to image, approach, and examine samples in greater detail in a partially or fully automated manner. For this purpose, panoramic cameras capture panoramic images of the sample and its environment. For example, a navigation map can be generated from the panoramic image, allowing the user to select a location and then automatically approach that location via a motorized sample stage. Panoramic images can also be used for automated sample identification, such as by identifying and optionally more precisely automating the examination of cells in a microtiter plate. Panoramic images can also be used for autofocusing, for example by estimating the sample height from the panoramic image or determining the appropriate location for subsequently performing autofocusing methods.
[0003] To use panoramic images in this way, the relationship between the image coordinates and spatial information of the panoramic image must be known, for example, through the panoramic camera's pose (viewpoint and position) relative to a reference point on the microscope. For this purpose, the panoramic camera is calibrated. For example, a panoramic image of the calibration object with known dimensions can be taken, thus determining the relationship with the image coordinates. Distortions in the panoramic camera can also be determined through this calibration and corrected through calculation.
[0004] Therefore, this type of microscope system includes a panoramic camera for capturing panoramic images of the sample's location environment and a computing device set up to evaluate the panoramic images, wherein the computing device has calibration parameters for interpreting the image coordinates of the panoramic images.
[0005] In US9344650B2 and DE102013012987A1, the applicant describes calibration using a reference object to process subsequently acquired images with the aid of calibration data. In DE102017109698A1, the applicant discloses a microscope in which panoramic images of a calibrated panoramic camera are evaluated, for example, to classify microscope components and load information about the identified components. In DE102013222295A1, the applicant describes another calibration method for a microscope with a rotating support to achieve automatic focusing and image center tracking. In DE102013006994A1, the applicant describes the evaluation of panoramic images, for example, for determining and automatically approaching sample positions. In DE102019114117, the applicant describes further image evaluation for automating the microscope's workflow, for which calibration and special samples are identified in the panoramic image. Furthermore, the applicant describes the evaluation of panoramic images of a microscope in DE102020118801. Specifically, the distance between the panoramic camera and the sample plane is estimated from the panoramic image, for which reference markers in the panoramic camera's field of view can be used. In DE102020101191, the applicant described the evaluation of panoramic images from a microscope, in which homography is determined, and the panoramic image is converted into another representation by this homography. Correct homography in terms of perspective can be determined by photographing a calibration sample of known size, etc.
[0006] In DE102018133188A1, the applicant describes a microscope in which, among other things, two panoramic images are taken at different positions of the sample stage. The location of a specific structure is determined in the two panoramic images. The pixel distance between the locations in the two panoramic images gives information about the height or distance of the structure shown.
[0007] Ensuring correct calibration becomes more difficult if users can reconfigure, replace, or position components differently. For example, the limit switches of a motorized stage can be reconfigured. Even if the instruction manual provides instructions to perform new calibrations according to these measures, users may ignore them. Changes can also occur unnoticed due to vibration, loose connections, or temperature variations. Therefore, there is a risk that navigation will only proceed with reduced accuracy, potentially leading to collisions that damage equipment components or samples.
[0008] To determine whether calibration is needed, the applicant proposed a machine learning model in DE102018133196A1. This model identifies deviations from correct cases in panoramic images, for example, through a neural network trained for anomaly detection. Therefore, error messages can, in principle, be generated based on panoramic images if maintenance is required. It is expected that more precise determinations of whether or to what extent calibration is needed will still be applicable. Summary of the Invention
[0009] The purpose of this invention can be seen as providing a microscope system and a method for calibration inspection that achieves the most accurate and reliable assessment possible, i.e., whether or to what extent the calibration parameters used to interpret panoramic images are applicable.
[0010] This objective is achieved by a microscope system having the features of claim 1 and by a method for calibration testing having the features of claim 2.
[0011] In the microscope system of the type described above, according to the present invention, a computing device is configured to control a panoramic camera to capture at least two panoramic images at different sample positions or stage positions. The computing device is further configured to calculate a displacement mapping for stacking the panoramic images, wherein the panoramic images are converted to the same viewpoint by means of calibration parameters. Based on the consistency between the stacked panoramic images, the computing device evaluates whether the calibration parameters are valid.
[0012] A calibration verification method according to the present invention includes: acquiring at least two panoramic images of a microscope system at different sample positions or stage positions; calculating a displacement mapping to overlay the panoramic images, wherein the panoramic images are converted to the same viewpoint by means of calibration parameters; and evaluating whether the calibration parameters are valid based on the goodness of consistency between the overlaid panoramic images.
[0013] To understand this more quickly, consider this example: the image content of two panoramic images taken at different stage positions should, under ideal calibration parameters, be able to correspond very precisely with each other. If, for example, a top view is calculated from the panoramic images using calibration parameters, the image content from the observed planes in the two top views should only be shifted relative to each other, not distorted relative to each other in terms of perspective. Therefore, under ideal calibration parameters, image displacement should be possible, through which the image content corresponds very well with each other, and thus has a high degree of consistency. However, if the image content in the two top views is distorted relative to each other or scaled differently, the degree of consistency is lower. In this case, it can be concluded that only an inaccurate top view is calculated using the calibration parameters. Therefore, the insufficient accuracy or effectiveness of the calibration parameters can be determined.
[0014] Optional design
[0015] Advantageous variations of the microscope system and method according to the invention are the subject of the dependent claims and are explained in the following description.
[0016] Perspective mapping using calibration parameters; panoramic image as top view
[0017] By using calibration parameters, panoramic images are converted to the same viewpoint. Viewpoint can be specifically understood as the direction of observation from a certain distance by the panoramic camera towards a plane, structure, or object in the corresponding panoramic image. If the sample stage is moved while the panoramic camera is in a fixed position, the shape and size of the structure on the sample stage in the panoramic image will typically change. By converting panoramic images to the same viewpoint using calibration parameters, it is possible to ensure that the shape and size of the planar structure are the same in the converted panoramic image, regardless of the sample stage position.
[0018] The transformation of a panoramic image to the same viewpoint can be performed as a homography mapping, which maps or projects one plane in space onto another. Homography can be described, for example, by a 3x3 matrix whose terms depend on the height of the plane to be mapped (along the optical axis of the microscope), where the height is described by calibration parameters.
[0019] Specifically, a top view / plan view can be calculated from each panoramic image. The top view corresponds to a vertical observation of a plane. This plane may, for example, correspond to the surface of the sample stage, the top or bottom surface of the sample carrier, or the plane of the holding frame. In the top view of a plane, structures located within that plane should always have the same size and shape, regardless of their location within the plane. If the sample stage is moved within that plane, the shape and size of the structures within that plane should remain the same in the top view. Only displacement of the structures should appear in the panoramic image that exists as a top view. This is predicated on the correct consideration of the plane's position relative to the panoramic camera. This is accomplished using calibration parameters. Depending on the accuracy of the calibration parameters, the calculated top view deviates slightly from the actual top view, thus the shape and size of the structures will change slightly when the sample stage moves. The evaluation of this deviation is described in more detail later. If movement occurs between the capture of panoramic images within the plane mapped to the top view, the two panoramic images can be mathematically converted into top views in the same way. The movement can be translation and / or rotation. In principle, the motion can also be performed obliquely or vertically relative to the plane being transformed into a top view. In these cases, the changed distance of the plane relative to the camera is also taken into account during the transformation to a top view using calibration parameters.
[0020] Among other things, a top-down view is also suitable because optional computations, such as segmentation which will be described in more detail later, can often be implemented more robustly or with less training data. However, converting to a top-down view is not mandatory. Any other pose can be calculated with the help of calibration parameters, which is identical with respect to the structure being evaluated for both images. Identical pose means the same position and orientation of the structure relative to the camera after conversion in the panoramic image.
[0021] Alternatively, other image transformations can be performed, such as converting to isometric perspective.
[0022] segmentation
[0023] Panoramic images can be selectively segmented. This can be done specifically through a learned model (segmentation model), which learns from training data using a learning algorithm. One output of the segmentation model is a segmentation mask, particularly a binary mask, in which certain structures are characterized by identical pixel values, while other pixel values describe the background or indicate that the corresponding pixel does not belong to that structure. The training data pre-determines which structures are characterized by segmentation. For example, a segmentation model can be trained to segment samples, sample carriers, sample carrier containers, or holding frames / holding frame clips used to hold sample carriers. In principle, segmentation can also be implemented using classical algorithms without a machine learning model. Typically, the segmentation mask does not have to indicate the object to be segmented through different pixel values; instead, the edges of the object to be segmented can be input into the image, or a graph with coordinates of the local object shape can be used as a segmentation mask.
[0024] Segmentation calculations can be performed after calculating the same viewpoint. Therefore, in particular, panoramic images can first be converted to a top view and then segmented. One advantage of segmenting only the top view is that less training data is generally required to learn the segmentation. For example, the retaining frame clamps on the sample stage always have the same shape in the top view, regardless of their position. Cells of a microtiter plate should have a common size and circular shape in the planar view, while in other views they have different sizes and elliptical shapes protruding to varying degrees. If segmentation is performed before registration (calculating the displacement map), the advantage is that image content from other height planes has no interfering effect on the calculation of the displacement map. For example, segmentation can be performed relative to the top surface of a (partially) transparent microtiter plate; due to transparency, parts from other height planes are also included in the panoramic image and continue to be included interferingly after perspective transformation (e.g., conversion to a top view), but this will be removed by segmentation.
[0025] However, in principle, segmentation can also be performed before converting the panoramic image to the same viewpoint. Thus, segmentation errors can be avoided in some cases, such as when incorrect attempts are made to convert the panoramic image to the same viewpoint.
[0026] Segmentation can be semantic segmentation, where a segmented region is assigned a meaning. For example, the semantics could indicate "sample carrier," "holding frame," "sample stage," or "background." Optionally, segmentation models can also be designed for entity segmentation. Here, different objects of the same object type are distinguished from each other. In particular, entity segmentation can be advantageous in the case of objects of the same object type that are in contact or overlapping, for example, when comparing the position or distance of these objects between two panoramic images.
[0027] Displacement mapping
[0028] Displacement mapping between panoramic images can specifically be the movement and / or rotation of the image content of one panoramic image relative to the image content of another panoramic image. In principle, the two panoramic images can also be moved and / or rotated, for example, to orient the edges mapped in the two panoramic images to a predetermined direction.
[0029] The translation mapping can be computed as the movement and / or rotation that maximizes the consistency between the image content in a panoramic image. Panoramic images, in particular, can be segmented and converted into a top-down view. In this case, the translation mapping that maximizes consistency can be computed relatively easily from the segmented panoramic image. Maximization can be computed iteratively or, for example, by finding the maximum value of the convolution of two images. However, in principle, the translation mapping can also be performed based on the panoramic image without computationally calculating segmentation.
[0030] Permissible limits for movement and / or rotation can be pre-specified for the calculation of the displacement mapping. These permissible limits restrict the possible areas of movement or rotation of the images relative to each other and can be determined specifically based on calibration parameters. In the case of iterative calculations of the displacement mapping, the initial value for the iteration can also be determined alternatively or additionally based on calibration parameters. Besides calibration parameters, the limits and initial values can also depend on data obtained relating to the stage position or stage movement performed between panoramic image captures. If the stage moves between two panoramic image captures, the image displacement can be estimated, for example, by calibration parameters and control commands to a movable stage (by which the stage is moved between captures) or by position values provided by a stage sensor. This estimated displacement can be used as the initial value for iteration and / or to determine the limits for the displacement to be determined. If it is known that only stage movement occurred between panoramic image captures, the displacement mapping can further be limited to movement without rotation.
[0031] In principle, the displacement mapping can also be calculated by means of, or solely by, known adjustments between the stage positions of at least two panoramic images. Therefore, in this variant, it is not necessary to forcibly evaluate the image content of the panoramic images in order to determine the displacement mapping. Conversely, in other embodiments, the movement distance of the stage adjustments need not be known and need not be estimated, since the panoramic images are pushed onto each other without considering the magnitude of the corresponding image displacement for further evaluation.
[0032] If at least two panoramic images are first converted into a top view using calibration parameters, the displacement mapping can then be calculated as a linear displacement.
[0033] If a segmentation mask is first calculated from at least two panoramic images, then the displacement mapping can be calculated based on the segmentation mask.
[0034] In other variations, perspective transformation is performed together with or simultaneously with the calculation of calibration parameters and displacement mapping. In this case, in particular, the unchanged panoramic images can be iteratively moved or rotated relative to each other, wherein for each of these moves / rotations, a perspective transformation of the moved or rotated panoramic image is performed, depending on that move / rotation.
[0035] The entire panoramic image or only a part of it
[0036] To simplify the linguistic understanding, different invention variants name a panoramic image, which can be understood as the entire panoramic image or only a portion thereof. Specifically, the displacement mapping can also be determined by the panoramic image only over one or more image regions. The consistency goodness can also be calculated either based on the entire panoramic image or only based on one or more image regions.
[0037] The remaining regions of the panoramic image can either be cropped or included in the calculation; for example, in displacement mapping, although the entire panoramic image can be moved relative to each other, the determination of the displacement mapping is based solely on specific relevant regions, and the remaining image regions do not affect the determination of the displacement mapping. Specifically, at least one relevant region can be determined from the panoramic image first; then the displacement mapping is calculated for that at least one relevant region. The at least one relevant region can be determined, for example, by a machine learning model trained for segmentation or detection. For example, a segmentation model can be trained to distinguish the holding frame clamp from the remaining image content (= background). After such segmentation, only the movement or rotation of the holding frame clamp between the two panoramic images takes effect, while changes to the remaining image content have no impact on the determination of the displacement mapping. In the case of detection, image regions of one or more pre-given objects can be determined. For example, detection can be used to search for edges or corners of holding frame components or sample carriers. Subsequently, the displacement mapping is determined only by considering the image regions surrounding these objects. For example, the displacement between panoramic images can be determined in such a way that the consistency between the panoramic images is greatest in the image portions surrounding the corners of the holding frame, regardless of whether the consistency between the two panoramic images is small in other image portions.
[0038] Therefore, the calculation of displacement mapping and consistency goodness can be performed either over the entire image content or only over the image region, where the image region is either fixed and pre-given or determined based on the image content, for example by a detection model and / or a segmentation model.
[0039] Panoramic images from different sample or sample stage positions
[0040] At least two panoramic images must cover the sample location environment. The sample location is intended to indicate where the sample is positioned during the measurement operation. However, the sample does not necessarily need to be visible or even present in the panoramic images. For example, panoramic images of an empty sample carrier or only the sample stage (without the sample carrier) can also be captured.
[0041] Movement of the sample or sample stage is performed between two captured panoramic images. Specifically, the motorized sample stage can be adjusted laterally, i.e., within the plane formed by the top surface of the sample stage. However, movement in other directions is also possible in principle. The sample stage or the sample itself can also be manually moved, particularly laterally, between the capture of panoramic images. The design of the sample stage is essentially irrelevant to the working principle of the described invention and can therefore be understood very generally as a movable component by which the object to be examined can be moved. The object itself can be located on the sample stage, housed in a container, or held by, for example, clamps or gripping arms. The sample stage itself can be visible in the panoramic image, or alternatively, only the object on the sample stage or only the object support can be visible.
[0042] Any object to be examined can be used as an object or sample, such as a biological sample, a semiconductor or electronic component, a rock or material sample.
[0043] Overlaid panoramic images
[0044] A superimposed panoramic image can be understood as two panoramic images after a translation mapping is computed, their image content being shifted onto each other through the translation mapping. This is also known as the registration of two panoramic images. A superimposed panoramic image can be formed from separately presented images or from individual images, the content of which represents a superposition of the corresponding panoramic images. If a segmentation mask is computed from the panoramic images, for example, the segmentation masks can be superimposed to form a single image. Different pixel values in this single image indicate whether the corresponding pixel belongs to the segmented object only in the first panoramic image, only in the second panoramic image, in both panoramic images, or not in any panoramic image. Alternatively, only relevant image regions of the panoramic images can be selected and superimposed as described.
[0045] Consistency superiority
[0046] Goodness of consistency is a measure of the similarity between at least two superimposed panoramic images. Similarity is determined after applying displacement mapping, so that, provided the calibration parameters are valid, the panoramic images should be substantially consistent with each other. Consistency should be particularly high, at least in the case of flat objects or flat surfaces located in a plane assumed by the calibration parameters.
[0047] As a simple method for calculating consistency goodness, the image area of segmentation masks (after shifting) placed on top of each other can be determined, where the two segmentation masks are distinguishable from each other. This image area can be compared to a predetermined threshold to distinguish between correct and incorrect calibration.
[0048] The calculation of displacement mapping and consistency goodness can also be performed through a common computation process, such as through the convolution of two panoramic images.
[0049] The goodness of consistency between superimposed panoramic images can also be alternatively calculated using the ratio of superimposed to non-superimposed regions in the superimposed panoramic images. An offset direction can also be calculated for each non-superimposed region. For example, panoramic images can be overlaid on each other as segmented panoramic images (segmentation masks). In the superimposed region, the two segmentation masks have the same pixel values. Conversely, the two segmentation masks have different pixel values in the non-superimposed regions. If the calibration parameters are inaccurate, multiple non-superimposed regions generally appear at the edges of the segmented object. The offset direction or movement direction of the non-superimposed regions indicates the image orientation in which the next superimposed region (of the segmented object) is located. The ratio of superimposed to non-superimposed regions, along with their respective offset directions, is used to characterize the deviation of the calibration parameters from the correct calibration parameters. What can be utilized here is that, due to inaccurate calibration parameters, field-related displacement and scaling of the segmentation mask or image content occur, which qualitatively distinguishes it from, for example, inaccurate segmentation.
[0050] Consistency goodness of performance can be determined based on the entire overlaid panoramic image or only on a specific image region (evaluation image region) of the panoramic image. Specifically, the evaluation image region on which consistency goodness of performance is computed can be selected by the machine learning model. At least one image in the panoramic image, or at least one image computed from one or both of the panoramic images, is input to the machine learning model. As output, the machine learning model provides the image region used as the evaluation image region. For example, a learned detection model can be used, which has learned to label specific image regions in the input image based on pre-given training images with annotated image regions. For example, the detection model can be trained to locate all corners of the holding frame or sample carrier, or only specific corners, such as those corners of the holding frame adjacent to the edge of the holding frame facing the sample carrier.
[0051] The calculation of the consistency goodness between overlaid panoramic images can also be performed by one (or another) trained machine learning model that takes the overlaid panoramic images or image regions as input and calculates the consistency goodness as output.
[0052] Instead of calculating the ratio between the superimposed and non-superimposed regions, or additionally in addition to calculating the ratio between the superimposed and non-superimposed regions, the consistency goodness can also be determined based on the image distance between corresponding structures in the superimposed panoramic images. As structures, specific objects or parts of objects can be located, such as multiple corners of an object. Panoramic images can be moved and / or rotated relative to each other such that the image distance between corresponding corners in the two panoramic images is minimized. Image distances can be measured, for example, as pixel distances. In the case of non-ideal calibration parameters, systematic errors exist due to scaling effects, particularly since the image distances at the corners point in different directions, where the validity or invalidity of the calibration parameters can be inferred from the magnitude and direction of the image distances.
[0053] The superimposed panoramic images on which consistency goodness is determined can also be represented by a two-dimensional point sequence. Here, instead of the entire image content of the panoramic image, only the individual points of the panoramic image are used. As the consistency goodness, the degree of accuracy to which the point sequences of different panoramic images achieve consistency is calculated.
[0054] Time variation curve of consistency goodness
[0055] Optionally, more than two panoramic images are captured sequentially, and the time-varying curves of the consistency goodness are calculated using these panoramic images. Specifically, the corresponding consistency goodness can be calculated separately from a pair of sequentially captured panoramic images. Based on the time-varying curves of the consistency goodness, the effectiveness of the calibration parameters can be evaluated.
[0056] By analyzing the time-varying curves, one-time poor goodness of conformity can be distinguished from permanently poor goodness of conformity. A one-time poor value may be caused, for example, by incorrect segmentation or displacement calculations, rather than necessarily by inappropriate calibration parameters. Conversely, if the goodness of conformity repeatedly falls below a pre-defined limit, the invalidity of the calibration parameters can be reliably inferred.
[0057] Repeated panoramic images are captured while the sample stages are moved relative to each other, a practice often employed in typical microscope operations for height estimation using triangulation methods. These panoramic images, necessary for height estimation in any case, can be additionally used by the present invention in the manner described. Thus, additional panoramic image captures and sample stage movements are unnecessary for verifying the described calibration parameters, which are not intended for height estimation in any way.
[0058] Validity of calibration parameters and follow-up actions
[0059] Whether a calibration parameter is valid can be determined as a clear classification (e.g., yes / no) or by means of quality indicators using discrete or continuous numerical data within a range of values.
[0060] The calculated goodness of conformity can be used directly as a quality indicator of the calibration parameters or as a measure of them. Alternatively, the quality indicator of the calibration parameters can be inferred from the average of the goodness of conformity or from the time-varying curves described above.
[0061] If a calibration parameter is classified as invalid, a warning or prompt indicating that calibration is required can be displayed to the user. Alternatively, or additionally, the calibration process can be triggered automatically.
[0062] General characteristics
[0063] A microscope system is understood to be a device that includes at least one computing device and a microscope. A microscope can, in principle, be understood as any magnifying measuring device, particularly optical microscopes, X-ray microscopes, electron microscopes, macroscopes, or also includes magnifying image-taking devices of various designs.
[0064] The computing device can be physically designed as part of the microscope, placed independently within the microscope environment, or located at any position remote from the microscope. It can also be designed in a distributed manner and communicate with the microscope via data connections. It can typically be formed by any combination of electronic devices and software, and in particular includes computers, servers, cloud-based computing systems, or one or more microprocessors or graphics processors. The computing device can also be configured to control the microscope camera, image acquisition, sample stage control, and / or other microscope components.
[0065] In addition to a sample camera used to capture a more significantly magnified image of the sample area, a panoramic camera may also be present for capturing panoramic images. Alternatively, however, this may also be the same camera, with different objectives or optical systems used to capture both the panoramic image and the more significantly magnified sample image. The panoramic camera may be attached to a fixed device frame, such as a microscope holder, or to a movable component, such as a sample stage, focus driver, or objective mount. The panoramic image may be a raw image, as it was captured by the camera, or a processed image from one or more raw images. The captured raw / panoramic image may be further processed before being evaluated in the manner described herein. Variations of the method of the invention may be based on previously captured panoramic images and may be obtained, for example, from memory, or alternatively, the capture of panoramic images may also be part of the claimed method variation. Images described herein, such as panoramic images, may consist of pixels, may be vector graphics, or may be formed as a mixture of them. In particular, the segmentation mask may be a vector graphic or may be converted to a vector graphic. For easier understanding, different embodiments are described with respect to two panoramic images, which can be understood in the sense of exactly two or at least two panoramic images.
[0066] The computer program according to the invention includes instructions that, when executed by a computer, cause the execution of one of the described method variations.
[0067] The learning model or machine learning model described herein each represents a model that learns based on training data through a learning algorithm. A machine learning model may, for example, include one or more convolutional neural networks (CNNs) that take at least one input image, particularly a panoramic image, or an image computed by it as input. Training of the machine learning model can be performed through a monitored learning process, wherein training panoramic images with corresponding annotations / labels are given in advance. A learning algorithm is used to determine the model parameters of the machine learning model based on the annotated training panoramic images. For this purpose, a pre-given objective function can be optimized, for example, minimizing a loss function. The loss function describes the deviation between the pre-given labels of the machine learning model and the current output, which is calculated using the current model parameter values from the training panoramic images. The model parameter values are changed to minimize the loss function, which can be calculated, for example, by (stochastic) gradient descent. In the case of a CNN, the model parameters may specifically include terms of the convolutional matrices of different layers of the CNN. Other model architectures of deep neural networks are also possible instead of CNNs. Instead of a monitored learning process, unsupervised training can also be performed, where no annotations are provided beforehand for the training images. Partially monitored training or reinforcement learning methods are also possible.
[0068] When used as intended, the features of the invention described as additional device characteristics also lead to variations of the method according to the invention. Conversely, a microscope system can also be configured to perform the described method variations. In particular, a computing device can be configured to perform the described method variations and / or output control instructions for performing the described method steps. Furthermore, the computing device may include the described computer program. Although some variations use a fully trained machine learning model, other inventive variations of the invention arise by performing corresponding training steps. Attached Figure Description
[0069] Other advantages and features of the invention are described below with reference to the accompanying schematic diagrams:
[0070] Figure 1 This is a schematic diagram of an embodiment of the microscope system of the present invention;
[0071] Figure 2 This is a schematic diagram of a process according to an embodiment of the method of the present invention;
[0072] Figure 3 yes Figure 2 The continuation of the diagram;
[0073] Figure 4 This is a schematic diagram of a process for processing panoramic images according to a variation of the present invention;
[0074] Figure 5 This is a flowchart of a process according to an embodiment of the present invention; and
[0075] Figure 6 This is a flowchart of a process according to an embodiment of the present invention. Detailed Implementation
[0076] Various embodiments are described below with reference to the accompanying drawings. Identical and functional components are generally identified by the same reference numerals.
[0077] Figure 1
[0078] Figure 1 An embodiment of a microscope system 100 according to the present invention is shown. The microscope system includes a computing device 20 and a microscope 1, which in the illustrated example is an optical microscope, but in principle could be a different type of microscope. The microscope 1 includes a support 2 by which other microscope components are held. Specifically, it may include: an objective turret or objective mount 3, on which, in the illustrated example, an objective lens 4 is mounted; a sample stage 5 having a holding frame 6 for holding a sample carrier 7; and a microscope camera 8. If the objective lens 4 is rotated into the microscope beam path, the microscope camera 8 receives detection light 7 from one or more samples held by the sample carrier to capture an image of the sample. The sample carrier 7 may be, for example, a microtiter plate, an object carrier made of a flat carrier with coverslips, a chamber object carrier, a petri dish, a gel, or a gel holder.
[0079] Microscope 1 also includes a panoramic camera 9 for capturing panoramic images of the sample environment. The panoramic image can thus specifically show the sample carrier 7 or a portion thereof. The field of view 9A of the panoramic camera 9 is larger than the field of view when capturing the sample image. In the example shown, the panoramic camera 9 observes the sample carrier 7 through a mirror 9B. The mirror 9B is arranged on the objective mount 3 and can be selected to replace the objective lens 4. In a variation of this embodiment, the mirror or another deflecting element can also be arranged in other positions. Alternatively, the panoramic camera 9 can also be arranged such that it directly observes the sample carrier 7 without the mirror 9B. Although in the example shown, the panoramic camera 9 observes the top surface of the sample carrier 7, alternatively, the panoramic camera 9 can also point towards the bottom surface of the sample carrier 7. In principle, the microscope camera 8 can also be a panoramic camera if another objective lens, particularly a macro objective lens, is selected via the objective mount 3 to capture a panoramic image.
[0080] The computing device 20 uses a computer program 80 according to the invention to process the panoramic image and optionally control the microscope components based on the processing results. For example, the computing device 20 can evaluate the panoramic image to such an extent as to where the cells of the microtiter plate are located so as to control the sample stage 5 in a manner close to the specific cells. To properly process the panoramic image and to realize how the microscope components are controlled based on positional information from the panoramic image, the computing device 20 uses calibration parameters P. These calibration parameters allow for the interpretation of the panoramic image, such as how orientation in the panoramic image relates to orientation on the sample stage, particularly quantitatively. The calibration parameters P may also include information about the scaling scale, particularly the shape or size of objects in the panoramic image at a specific sample stage height. To evaluate the panoramic image, the calibration parameters P and optionally the current settings of the microscope components, such as the current height of the motorized sample stage, can then be considered; alternatively, the height of the sample carrier can be estimated from the panoramic image, for example, without knowing the settings of the microscope components, by means of the calibration parameters P. The calibration parameters P can particularly describe the relationship between positional information from the panoramic image and positional information about the microscope reference position.
[0081] If the user replaces or repositions microscope components, the calibration parameter P may lose its validity. Vibration, loose connections, or changes in environmental parameters such as air humidity or temperature can also cause misalignment of microscope components, rendering the calibration parameter P inaccurate or inapplicable. To automatically determine such changes, the computing device 20 analyzes panoramic images taken at different locations. This will be described in more detail with reference to the following figures.
[0082] Figure 2 and Figure 3
[0083] Figure 2 and Figure 3 The flowchart of an embodiment of the method of the present invention is illustrated schematically. This method can be performed by... Figure 1 It is executed by a computer program or computing device.
[0084] exist Figure 2 In this process, at least two panoramic images 11 and 12 are first acquired using the same panoramic camera, wherein the structure being photographed is moved between image captures. In the example shown, panoramic images 11 and 12 show a sample carrier 7, which is circular in cross-section and held between two retaining frame clamps 6A and 6B of a retaining frame. The surface of the sample stage 5 is also visible in the background. The sample stage is moved between the two image captures, thereby shifting the retaining frame clamps 6A and 6B and the sample carrier 7 to the right in panoramic image 12. In principle, the object shown can also be moved manually between the two image captures.
[0085] In the example shown, the image content of the original captured images has been converted into a top view, which can be done via homography mapping using calibration parameters. The top view corresponds to a vertical view of the sample stage plane and therefore also to a vertical view of the top surfaces of the holding frame clamps 6A, 6B and the sample carrier 7. The same homography mapping can be performed for both images. As a result, any movement of the sample stage between image captures (in a direction perpendicular to the viewing direction of the top view) should only result in movement in the panoramic images 11 and 12 presented as top views. Without calculating the top view, the movement of the sample stage would cause the image content to not only move between panoramic images but also, additionally, be distorted in perspective corresponding to that movement.
[0086] Figure 2 The variant implementation utilizes the fact that, in the case of an accurate calculation of the top view, the displacement of the sample stage should result in an accurate displacement of the image content of the plane in the panoramic images 11, 12 presented as a top view. If this is not the case, it can be concluded that the top view has not been calculated accurately. This is because the top view is calculated using calibration parameters, which means that the calibration parameters used are inaccurate or invalid.
[0087] The implementation of these steps is based on Figure 2 The process is as follows: In step S1, two panoramic images 11 and 12, presented as top-down views, are first input into the segmentation model S. The segmentation model S is a learned model, which may include a deep neural network, such as a CNN. The current segmentation model S is trained based on annotated training data to distinguish the frame clippings from the rest of the image content. For each input image, the segmentation model S outputs a segmentation mask, i.e., the input panoramic image 11 is computed into a segmented panoramic image 21 and the input panoramic image 12 is computed into a segmented panoramic image 22, step S2.
[0088] In the segmented panoramic images 21 and 22, specific pixel values represent image regions 26 that are classified as frame-holding regions, while the remaining image regions are classified as background 27 by different pixel values. As can be seen in the exemplary segmented panoramic images 21 and 22, slight segmentation errors may occur here.
[0089] In step S3, the segmented panoramic images 21 and 22 are now input into a displacement calculation program 30, which is configured to calculate a displacement mapping 31 to superimpose the segmented panoramic images 21 and 22 as consistently as possible. Since a top view exists in this example and stage movement occurs in or parallel to the plane mapped in the top view, the displacement mapping 31 can be pre-specified as a linear displacement. The displacement calculation program 30 then iteratively calculates which displacement between the two segmented panoramic images 21 and 22 results in the greatest consistency of the image content. Knowledge of the stage movement that has occurred is not absolutely necessary and can be used optionally, for example, to determine the starting value for iteration or the limit value of the displacement to be calculated. Alternatively, the displacement of the segmented panoramic images 21 and 22 can also be calculated from known stage movement using calibration parameters, in which the image content of the segmented panoramic images 21 and 22 has no effect on the magnitude of the displacement.
[0090] Using the calculated displacement map 31, the superimposed panoramic image 32 is calculated in step S4. This corresponds to the pixel-by-pixel aggregation of the two panoramic images 21 and 22 after they have been moved relative to each other according to the displacement map 31. Thus, in the example shown, panoramic image 22 is moved to the left, and can then be aggregated pixel-by-pixel by, for example, addition, subtraction, multiplication, or division of the respective pixel values of panoramic images 21 and 22.
[0091] The superimposed panoramic image 32 includes a superimposed region 38 in which both the segmented panoramic images 21 and 22, which are moved relative to each other according to displacement mapping 31, show a segmented object (here, one of the holding frame clips 6A and 6B). The superimposed panoramic image 32 also includes a background 37 in the image region in which both the segmented panoramic images 21 and 22, which are moved relative to each other according to displacement mapping 31, show a background 27. Furthermore, the superimposed panoramic image 32 includes non-superimposed regions 38 and 39. In non-superimposed region 38, the object (holding frame clip) is identified only in panoramic image 21, while no object is identified in panoramic image 22, which is moved according to displacement mapping 31. Similarly, in non-superimposed region 39, the object is located only in panoramic image 22, while no object is located in panoramic image 21, where panoramic images 21 and 22 are compared to each other after displacement mapping 31 is applied.
[0092] Reference Figure 3The remaining steps describe the process flow. In step S5, the overlaid panoramic image 32 is fed to the detection model 40, which is trained to detect certain image regions, hereinafter referred to as evaluation image regions 41-44. The detection model 40 is a machine learning model learned from annotated training images. Instead of the overlaid panoramic image 32, one or more of the panoramic images 11, 12, 21, and 22 can also be used as input. In step S6, the detection model 40 outputs the determined boundaries of the evaluation image regions 41-44, which are located within... Figure 3 For better understanding, it is shown in the overlaid panoramic image 32.
[0093] Additionally, the evaluation image region 41-44 is in Figure 3 The left half is shown in magnification. Figure 3 The right half of the diagram exemplarily shows the corresponding evaluation image regions 41-44, which are calculated against two additional panoramic images in the manner described herein.
[0094] The detection model 40 can be specifically trained to find the edges or corners of the segmentation mask and identify them as evaluation image regions 41-44. The degree of image consistency can be evaluated particularly convincingly within the image regions surrounding these edges or corners. Furthermore, it can be considered in which direction the image content shown within evaluation image regions 41-44 is erroneously moved or deviated, the image content originating from the two based panoramic images 11, 12 and 21, 22. For example, in the image content from… Figure 3 In the example on the left, the non-overlay region 38.3 in the evaluation image region 42 is relatively narrow, while in the example on the right it is relatively wide. The deviation direction can be defined as the direction of region 38 relative to the overlay region 36.
[0095] The accuracy of the calibration parameters determines the area size of the non-overlapping regions 38 and 39, how the non-overlapping regions 38 and 39 are related to each other, and the direction of their respective deviations. Based on the above characteristics, inaccurate segmentation can also be distinguished from inaccurate calibration parameters. The evaluation of these features can, in principle, be performed using classical algorithms without a learning model, where, in the example shown, a trained machine learning model 50 is used for this purpose. This machine learning model can include a deep neural network, such as a CNN, which exemplarily shows model parameters P1-P9 as terms in a convolution matrix. The machine learning model 50 can be designed as a classification or regression model and obtains multiple evaluation image regions 41-44 as common input in step S7. From this input, the machine learning model 50 calculates a consistency goodness Q in step S8 as a measure of consistency between the overlaid panoramic images. The consistency goodness Q is exemplarily a classification of good or bad consistency, where, however, finer category divisions or continuous values as output are also possible. In this example, the consistency goodness Q is used directly as an evaluation of whether the calibration parameters are effective. Figure 3 In the examples on the left, validity is confirmed, while in the examples on the right, it is denied. This can also be used to determine the accuracy of the calibration parameters in the context of a more detailed breakdown of their validity.
[0096] Figure 4
[0097] Figure 4 This illustrates how panoramic images are processed into top-view images and further processed into segmentation masks in various embodiments of the invention.
[0098] In the example shown, a panoramic image 11' was captured, in which the panoramic camera observes the top surface of the sample carrier 7 at an angle. The sample carrier 7 is a microtiter plate with multiple circular cells, serving as a sample container. The condenser 10 is also visible.
[0099] In step S0, computer program 80 converts the panoramic image 11' into a different viewpoint, i.e., a top view, using calibration parameter P, as shown in panoramic image 11'. For the plane of the top surface of sample carrier 7, the top view corresponds to an observation perpendicular to the top surface of sample carrier 7. Conversely, the illustrations of other planes in panoramic image 11' (e.g., the partially transparent bottom region of sample carrier 7) do not correspond to a top view. In order to correctly convert the plane of the top surface of sample carrier 7 into a top view, the height level of the top surface of sample carrier 7 must be accurately determined using calibration parameters.
[0100] The panoramic image 11”, presented as a top-down view, is then segmented, as in the same manner for... Figure 2As described. Therefore, in step S1, the panoramic image 11” is fed to the segmentation model S', which in this case is trained to segment the sample container of the sample carrier 7. In step S2, the segmentation model S' outputs a segmentation mask, which shows an overlay 21’ composed of the panoramic image 11” and the segmentation mask.
[0101] Other methods and steps can be as follows: Figure 2 and 3 Proceed as described.
[0102] Figure 5
[0103] Figure 5 A flowchart illustrating different sequences of steps for explaining embodiments of the method according to the present invention is shown.
[0104] In step S10, at least two panoramic images are captured, specifically by the same camera. Between shots, the object being photographed, such as a sample or sample stage, is moved or moved in different ways.
[0105] Subsequently, in step S11, for the panoramic image, a process of segmentation, movement, and transformation to a common viewpoint is performed using calibration parameters. The order of these processes can be variably selected.
[0106] For example, such as Figures 2 to 4 As shown, one or more panoramic images can first be homographically converted to a common viewpoint, specifically by homographically mapping all panoramic images onto a top view, step S12. Then, in step S13, the panoramic images presented as the top view are segmented. Then, in step S14, a displacement mapping is calculated to superimpose the segmented panoramic images presented as the top view.
[0107] The order can be changed such that the panoramic image is first segmented in step S13', and then the homography mapping from the segmented panoramic image to the top view is calculated in step S12' using calibration parameters. Step S14 can then follow.
[0108] Another possible sequence is to first segment according to step S13', and then calculate the displacement mapping in step S14', where perspective adaptation is performed simultaneously with the aid of calibration parameters. When the image content of the panoramic image moves a certain distance, perspective adaptation is performed such that it corresponds to the movement of the shown object in actual space, which can be calculated using calibration parameters.
[0109] Step S14 or S14' is followed by step S15, in which the goodness of consistency between the superimposed (push-above-each-other) panoramic images presented as segmentation masks is calculated in order to evaluate the effectiveness of the calibration parameters.
[0110] Other variations of the illustrated embodiment are possible. For example, the described segmentation can be performed as semantic segmentation or as entity segmentation. Figure 3 The determination of the evaluation image region described herein can be replaced by selecting one or more objects, or pre-defined portions thereof, determined by entity segmentation as the evaluation image region. Furthermore, from Figure 2 The entire overlaid panoramic image 32 can be used as input to the machine learning model 50 to compute the consistency goodness Q. In other implementations, segmentation can be omitted. For example, according to... Figure 3 The detection in step S6 can also be performed on a panoramic image that can be optionally converted to a top view, without pre-computed segmentation. Specifically, the positions of multiple objects in the corresponding panoramic image can be determined by detection, where these positions in each panoramic image form a dot pattern. The consistency among the dot patterns after movement determines the consistency quality.
[0111] Figure 6
[0112] Figure 6 A flowchart of a method variation is shown, in which the verification of calibration parameters is integrated into the process for triangulation-based height estimation. As will be explained, no additional image acquisition or additional equipment or markers are required to supplement the verification of calibration parameters into the triangulation-based height estimation.
[0113] In step S20, the process for height estimation based on triangulation begins. For example, this can be performed at a microscope within the range of automated navigation.
[0114] In step S21, at least two panoramic images of the same object are captured in two sample stage positions that are laterally moved relative to each other.
[0115] In step S22, height estimation is performed based on the principle of triangulation. This is achieved by utilizing the fact that the magnitude of the image displacement caused by the movement of the sample stage depends on the height level of the structure shown. The structure or object shown can be, for example, a sample carrier, a holding frame, or a component of the sample stage. In this case, the distance the sample stage moves can be known. The relationship between the image displacement and the height level is determined using pre-specified calibration parameters.
[0116] In addition to step S22, now (simultaneously, before, or subsequently) in step S23 in the manner already described, particularly according to... Figure 5 Steps S11 and S15 in the process involve estimating the validity or accuracy of the calibration parameters.
[0117] Subsequently, in step S24, the estimated value of the high level can be output along with information on the accuracy of the estimate, based on the consistency goodness determined as described.
[0118] The segmented panoramic image, converted to a top view, can be used not only for calibration verification but also for height estimation. Similarly, the determined displacement can optionally be used for triangulation-based height estimation.
[0119] Based on the results from S24, for example, a calibration process can be initiated or component control / motion can be adapted. For instance, a safe distance to avoid collisions can be determined based on the accuracy or validity of the calibration parameters. In a variation of this embodiment, step S23 for verifying the calibration parameters is performed first, and step S22 for estimating the height level is performed only if the validity of the calibration parameters is confirmed in this case.
[0120] The described embodiments are purely illustrative and modifications thereto are possible within the scope of the appended claims.
[0121] List of reference numerals
[0122] 1. Microscope
[0123] 2 brackets
[0124] 3 Objective mount
[0125] 4. Microscope Objectives
[0126] 5 sample stages
[0127] 6. Maintain the frame
[0128] 6A retaining frame clip
[0129] 6B retaining frame clip
[0130] 7 Sample carriers
[0131] 8 microscope cameras
[0132] 9 panoramic cameras
[0133] 9A panoramic camera's field of view
[0134] 9B reflector
[0135] 10 Concentrators
[0136] Panoramic images 11 and 12
[0137] 11' Panoramic image before perspective is converted to top view
[0138] 11” Panoramic image after perspective conversion to top view
[0139] 20 computing devices
[0140] 21-segment panoramic image
[0141] 21' is a superposition of the panoramic image 11" and its corresponding segmentation mask.
[0142] 26 were segmented into image regions that retain the frame clips.
[0143] 27 image regions segmented as background
[0144] 30 Displacement Calculation Program
[0145] 31 Displacement Mapping
[0146] 32-layered panoramic images
[0147] 36 Overlay area in superimposed panoramic images
[0148] 37 Background in the overlaid panoramic image
[0149] 38 Non-overlay areas in overlaid panoramic images
[0150] 39. Non-overlay areas in superimposed panoramic images
[0151] 40 detection models / machine learning models
[0152] 41-44 Evaluate the image region
[0153] 50 machine learning models
[0154] 80 The computer program of the present invention
[0155] 100 The microscope system of the present invention
[0156] P calibration parameters
[0157] P1-P9 model parameters
[0158] Q-consistency superiority
[0159] S-segmentation model
[0160] S' segmentation model
[0161] S0-S8 Method steps of embodiments of the present invention
[0162] S10-S15, S12'-S14' Method steps of embodiments of the present invention
[0163] S20-S24 Method steps of embodiments of the present invention
Claims
1. A microscope system, comprising: A panoramic camera (9) used to capture panoramic images (11, 12) of the sample location environment and A computing device (20) is configured to evaluate panoramic images (11, 12), wherein the computing device (20) has a calibration parameter (P) for interpreting the image coordinates of the panoramic images (11, 12). Its features are, The computing device (20) is configured to, - Control the panoramic camera (9) to capture at least two panoramic images (11, 12) at different sample positions or sample stage positions. - Calculate the displacement mapping (31) for overlaying the panoramic images (11, 12; 21, 22), wherein the panoramic images (11, 12; 21, 22) are converted to the same viewpoint by means of a calibration parameter (P); and - The validity of the calibration parameter (P) is evaluated based on the goodness of consistency (Q) between the superimposed panoramic images (32), wherein the goodness of consistency (Q) is used as a measure of consistency between the superimposed panoramic images.
2. A calibration and testing method, comprising: Acquire at least two panoramic images of the sample location environment at different sample positions or sample stage positions on the microscope system (11, 12). Calculate the displacement mapping (31) to overlay the panoramic images (11, 12; 21, 22), wherein the panoramic images (11, 12; 21, 22) are converted to the same viewpoint by means of a calibration parameter (P); and Whether the calibration parameter (P) is effective is evaluated based on the goodness of consistency (Q) between the superimposed panoramic images (32), where the goodness of consistency (Q) is used as a measure of the consistency between the superimposed panoramic images.
3. The method according to claim 2, Its features are, Using the calibration parameter (P), the at least two panoramic images (11, 12) are converted into a top view (S0), and thereafter the displacement mapping (31) is calculated as a linear displacement.
4. The method according to claim 2, Its features are, First, the at least two panoramic images (11, 12) are segmented (S2) using a segmentation model (S) and the displacement mapping (31) is calculated based on the segmented panoramic images (21, 22).
5. The method according to claim 2, Its features are, The displacement mapping (31) is calculated as the displacement that maximizes the consistency between the panoramic images (11-12; 21-22).
6. The method according to claim 2, Its features are, Based on the calibration parameter (P), determine the allowable displacement limit value used to calculate the displacement mapping (31), and / or The starting value for the iterative calculation of the displacement mapping (31) is determined based on the calibration parameter (P).
7. The method according to claim 2, Its features are, The displacement mapping (31) is calculated by means of known adjustments between the sample stage positions in the at least two panoramic images (11, 12).
8. The method according to claim 2, Its features are, Along with calculating the displacement mapping (31), the perspective change corresponding to the displacement mapping (31) is also calculated using the calibration parameter (P).
9. The method according to claim 2, Its features are, At least one relevant region is determined from the panoramic images (11, 12), and the displacement mapping (31) is calculated for the at least one relevant region.
10. The method according to claim 9, Its features are, The at least one relevant region is determined by a machine learning model trained for segmentation or detection.
11. The method according to claim 2, Its features are, To calculate the consistency quality (Q) between the superimposed panoramic images (32), the ratio of the superimposed region (36) to the non-superimposed regions (38, 39) is calculated, wherein the offset direction is calculated for each non-superimposed region (38, 39).
12. The method according to claim 2, Its features are, The evaluation image region (41-44) on which the consistency goodness (Q) is calculated is selected by the machine learning model (40), wherein at least one panoramic image (11, 12) or at least one image (32) calculated thereon is input into the machine learning model (40) and the machine learning model (40) outputs an image region, which is used as the evaluation image region (41-44).
13. The method according to claim 2, Its features are, The consistency goodness (Q) between the superimposed panoramic images (32) is calculated by a trained machine learning model (50), which takes the superimposed panoramic image (32) or its image region as input and calculates the consistency goodness (Q) as output.
14. The method according to claim 2, Its features are, The consistency quality (Q) is determined based on the image distance between corresponding structures in the superimposed panoramic images (11, 12).
15. The method according to claim 2, Two or more panoramic images (11, 12) were captured successively, and the temporal distribution curve of the consistency goodness (Q) was calculated using these panoramic images (11, 12). The validity of the calibration parameter (P) is evaluated based on the time distribution curve of the consistency goodness (Q).
16. A computer-readable storage medium having instructions that, when executed by a computer, cause to perform the method according to any one of claims 2 to 15.
Citation Information
Patent Citations
Digital microscope and methods for optimizing the workflow in a digital microscope
DE102013006994A1
Methods for calibrating a digital optical device and optical device
DE102013012987A1
Digital microscope, calibration methods and methods for automatic focus and image center tracking for such a digital microscope
DE102013222295A1
Determination of Context Information for Switching Components of an Optical System
DE102017109698A1
DISTANCE DETERMINATION OF A SAMPLE PLANE IN A MICROSCOPE SYSTEM
DE102018133188A1
