Method for setting an optical focus and medical device

The described method addresses autofocus drift in optical devices by using threshold comparisons and dynamic focus adjustments, ensuring precise and reliable focus maintenance in optical devices like microscopes.

DE102023119496B3Active Publication Date: 2024-09-26LEICA MICROSYSTEMS CMS GMBH
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
DE102023119496
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-07-24
Publication Date
2024-09-26
Estimated Expiration
2043-07-24

AI Technical Summary

Technical Problem

Autofocus systems in optical devices, such as microscopes, suffer from drift issues due to mechanical vibrations, temperature fluctuations, and thermal expansion, leading to inaccurate and unreliable focus adjustments over time.

Method used

A computer-based method for adjusting optical focus that involves obtaining a threshold value and comparing it with a drift value to determine if the focus needs adjustment, using laser-based and image-based measurements to correct for drift, and dynamically adjusting the focus search area based on measured drift values.

Benefits of technology

The method effectively maintains accurate focus by minimizing phototoxicity and ensuring sharp images by dynamically adjusting the focus search area and correcting for drift, thereby enhancing the reliability and precision of autofocus systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A first aspect of this revelation concerns a computer-based method for setting an optical focus, comprehensively the steps: - Obtaining an initial threshold value for drift of an optical focus; - Obtaining an initial drift value, based on measurements of at least one focus parameter at different times; - Comparing the first drift value with the first threshold value; - Outputting the first drift value if it exceeds the first threshold in an unacceptable manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] This disclosure relates to methods for adjusting an optical focus. Furthermore, medical devices are disclosed, e.g., microscopes, whose optical focus can be operated using corresponding methods. background

[0002] Autofocus, for example in a microscope, is a function that allows the focus of an objective lens to be automatically adjusted to ensure clear and sharp images. However, autofocus systems can be affected by a phenomenon called drift, which refers to the gradual shift or movement of the focal plane over time. Drift can negatively impact the accuracy and reliability of the autofocus function.

[0003] Internal experience has shown that drift can be caused by various factors, such as mechanical vibrations, temperature fluctuations, and thermal expansion / contraction of microscope components. These factors can cause the microscope stage, objective lens, or other components to move, which can lead to a shift in the focal plane. Changes in the sample can also contribute to a loss of focus once it has been initially set.

[0004] DE 10 2016 110 988 A1 relates to a method for digitally recording a sample through a microscope, in which a viewing area (44) of the sample is selected, a microscope objective is moved in a scan route over this viewing area, and in which first a sequence of offset images covering the viewing area is digitally recorded and displayed, and then the scan route is continued with a sequence of images outside the selected viewing area.

[0005] DE 10 2017 119 517 A1 relates to a method for optimizing a focus distance of an adjustable lens in an image processing system, wherein the method comprises receiving a first trigger signal, adjusting the focus distance of the variable lens by a first number of steps in the range of a first target distance, and capturing an image at each step; and calculating a sharpness value for a region of interest (ROI) in each of the images.

[0006] JP 2007 - 101 578 A relates to a device for maintaining the focus of a microscope and a microscope device equipped with a function for correcting focus drift due to a change in room temperature or the like during time-lapse observation by a microscope. JP 2015-082096 A relates to a control device for controlling a microscope with a storage means for storing a large number of images taken by taking the sample into the microscope while changing the distance between the objective lens and the sample.

[0007] DE102008018864 A1 relates to a microscope which is designed to derive a deviation of an existing focus position from a predetermined focus position and, depending on the derived deviation, to change a distance between the sample stage and the imaging optics by means of the movement unit so that the predetermined focus position is maintained.

[0008] DE 103 61 327 A1 relates to a method for correcting drift in an optical device, characterized in that a first image of an object is taken at a first time and a second image is taken at a second time thereafter, the first and second images are divided into blocks using a grid and a block of the second image is compared with the blocks of the first image and the drift is calculated and corrected from the comparison.

[0009] US 2018 / 0149855A1 relates to a method for imaging a sample, comprising providing one or more reference markers near the sample; and imaging the sample using a first imaging system and a second imaging system; to obtain a measure of the drift of the reference markers; and to correct the drift.

[0010] DE 10 2019 008 989 B3 relates to a method for determining the locations of individual fluorescent dye molecules coupled to a structure in a sample; characterized in that, during illumination of the sample, the size of a disturbance is determined and that each element of the set of corresponding numbers of fluorescent photons and sampling positions is assigned a weighting factor, the value of which is determined from the size of the disturbance during detection of the fluorescent photons at the respective sampling position, and that, when determining the location of the fluorescent dye molecule, the elements of the set of corresponding numbers of fluorescent photons and sampling positions are taken into account according to their weighting factor.

[0011] DE19959228 A1 relates to a laser scanning microscope with a temperature sensor that detects the ambient temperature of the microscope and emits electrical or electromagnetic signals, whereby a focus correction is carried out on the basis of the signals from the temperature sensor.

[0012] US 2016 / 0231553 A1 relates to a system with a positioning device configured to hold a sample and adjust the position of the sample in response to receiving a drift compensation signal; wherein logic electrically coupled to an image sensor and the positioning device is configured to determine one or more drift compensation values ​​from images mapped by the image sensor and is configured to send one or more drift compensation signals to the positioning device.

[0013] US 2023 / 0007185 A1 relates to a method for correcting focus drift of an imaging system, whereby it is determined that focus drift has not occurred if an image quality metric is within a threshold of a reference metric; or that focus drift has occurred if the image quality metric is greater than the threshold of the reference metric.

[0014] WO 2007 / 144197 A1 relates to a microscope with an objective having a focal plane located in a sample volume, and an autofocus device having a light modulator for generating a luminous, intensity-modulated modulation object, and an autofocus illumination optic that images the luminous modulation object into the focal plane of the objective or intersecting it, so that an image of the modulation object is formed in the sample volume.

[0015] DE 102008018951 A1 relates to a microscope with a sample stage for holding a sample to be examined, a recording sensor, an imaging optic for imaging the sample onto the recording sensor, a movement unit with which the distance between the sample stage and the imaging optic can be changed, a control unit for controlling an image acquisition of the sample and a holding focus unit for maintaining a predetermined focus position for temporally spaced images of the sample, wherein the holding focus device includes at least one hardware element and one software module.

[0016] Improvements are desirable to solve problems caused by drift in focus-based systems. General description

[0017] One objective of the embodiments of this disclosure is the improvement of an autofocus system.

[0018] This problem is solved by the embodiments disclosed herein, which are defined in particular by the subject matter of the independent claims. The dependent claims relate to further embodiments. Various aspects and embodiments of these aspects are also disclosed in the following summary and description, which offer additional features and advantages.

[0019] A first aspect of this revelation concerns a computer-based method for setting an optical focus, comprehensively the steps: - Obtaining an initial threshold for optical focus drift; - Obtaining an initial drift value, based on measurements of at least one parameter related to the focus at different times; - Comparing the first drift value with the first threshold value; - Outputting the first drift value if it does not exceed the first threshold in an impermissible manner.

[0020] Drift is generally an error specific to an autofocus system operating in a particular situation. Drift becomes especially noticeable when a sample is observed over extended periods, for example, when a series of images is taken every 5 minutes to monitor the development of a sample. An initially sharp perspective will lose sharpness over time. This drift is typically corrected with an optical focus system that adjusts the focus accordingly.

[0021] An optical focus can be incorporated into various devices. It can be a focusing system that operates with electromagnetic radiation, such as light or UV radiation. An optical focus can be incorporated into a medical and / or diagnostic device, such as a microscope. It can also be incorporated into an endoscopy or ophthalmoscopy system. Laser systems, such as laser surgery systems, can also have an optical focus. Similarly, an optical focus can be incorporated into a still camera or video camera system.

[0022] A threshold, especially a first threshold, can be received or retrieved, for example, from a cloud, particularly if the optical focus procedure is not performed by a computer (this will be explained in more detail later). An autofocus range threshold refers to a predefined value or range that determines how much the autofocus system changes a new focus value relative to an old one. A threshold can be specified as absolute and / or relative. It can help in establishing a criterion for determining whether an image is sharp or blurry based on certain measurements or parameters. A threshold can be an absolute threshold, for example, a maximum value that must never be exceeded. In this case, any exceedance of the threshold is an unacceptable violation. A threshold can also be a complex threshold, for example...A maximum value and / or an average value that may be exceeded temporarily and / or by a specific amount. In this case, the additional parameters (duration of the exceedance, amount of the exceedance) determine whether a drift value exceeds the threshold impermissibly. A threshold serves to check whether an identified new focus should be set.

[0023] A threshold value can, for example, serve as a plausibility check for a newly identified focus.

[0024] A drift value, especially an initial drift value, can be received or retrieved (by a focus system), similar to a threshold value. A drift value represents an autofocus point that must be adjusted to (re)produce a sharp image. Like a threshold value, a drift value can be specified absolutely or relatively, i.e., in relation to another focus and / or drift value. An initial drift value can consist of a single value. Alternatively, a drift value can consist of several values, particularly those acquired in rapid succession.

[0025] A measured parameter for focus can be, for example, a focal length, the distance of a sample to the lens, and / or a set lens aperture. Additionally or alternatively, a parameter can be a reflection-based parameter, such as the position, deviation, or wavelength of a reflected light beam.

[0026] Comparing the first drift value with the first threshold value can be done in various ways, depending on the type of threshold and drift value, respectively. For example, a comparison can be made by calculating the difference. Alternatively, or additionally, a comparison can be made by correlating the two values. If the threshold and drift value are specified in different dimensions, then at least one of the two values ​​can be transformed accordingly to allow for a comparison of the drift value with the threshold value.

[0027] A check to determine whether a first drift value should be set, thus replacing a previously set drift value, is based on comparing the first drift value with the first threshold. If the first drift value is less than or equal to the first threshold, then the autofocus system can implement the first drift value. The requirement that the first drift value be "less than or equal to" the threshold is a specific implementation characteristic. It can also be required that the first drift value be less than the first threshold, and that if the first drift value and the first threshold are equal, no first drift value is output. In both cases, the threshold represents a maximum threshold. Alternatively, it can be specified that the drift value may exceed the first threshold by a certain amount. In this case, the threshold represents more of an average drift value.

[0028] The first drift value can be output in such a way that the optical focus can process it. For example, the first drift value can be sent to the system operating the optical focus (e.g., a microscope). Alternatively, or additionally, the first drift value can be output in such a way that the system operating the optical focus can retrieve it. For example, the first drift value can be stored in shared storage space, such as a cloud, which the system operating the optical focus can then access.

[0029] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, where the first threshold is specified based on at least one or more of the following parameters: - information from the manufacturer of the device, which includes the focus; - information from the area surrounding the focus; - sample-specific information.

[0030] Such information can be provided, for example, by a microscope manufacturer. Additionally or alternatively, this information can be temperature data. Temperature data can be obtained, in particular, from a temperature sensor located within the focusing system to be adjusted. Additionally or alternatively, such temperature data can be obtained from a temperature sensor operating in the environment, such as a room, where the focusing system is operating. Information for setting a threshold can also be the exposure time of the sample. In particular, if the sample is negatively affected by exposure, this can result in a threshold value, for example, within the range of a maximum exposure time or exposure rate.Additionally or alternatively, a property of the sample being analyzed can provide information on the basis of which a threshold value for drift can be derived; this could be, for example, viscosity. This allows for specific threshold determination. If instrument-specific and / or sample-specific values ​​are provided from a database, situation-specific threshold values ​​can be determined efficiently.

[0031] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, wherein the first drift value is based on temporally successive, image-based measurements of the focus.

[0032] An image-based measurement can be based on images captured with the optical focus. Additionally or alternatively, an image-based measurement can be based on images acquired by a separate imaging system. This is particularly feasible because drift, as described above, is based on changes in the focus system and / or the sample. If these changes are known or measured, drift can be determined accordingly.

[0033] Image-based drift measurement, which relies on the hardware of the optical focus system, can therefore be performed electronically or via software. Furthermore, image-based drift measurement can be 2- or 3-dimensional. It can also be a passive measurement, in which a sensor measures only environmental information that is not based on a signal generated by the sensor.

[0034] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, where the first drift value is based on laser-based measurements of the focus.

[0035] Laser-based drift measurement uses laser beams to measure movement or changes in position with high accuracy. In laser interferometry, a laser beam is split into two separate paths, one of which serves as a reference and the other interacts with the object being measured, e.g., a sample. The resulting interference pattern is analyzed to determine the drift of the object.

[0036] In drift measurement based on a laser tracking system, laser beams and optical sensors are used to measure the position and / or movement of a sample in three-dimensional space. A laser beam can be directed either at the sample itself or at a system encompassing the optical focus. An optical sensor detects the reflection of the emitted laser beam and analyzes it to determine the drift of the object.

[0037] Laser-based drift measurement is an example of a reflection measurement. Furthermore, laser-based drift measurement is an example of a one-dimensional drift measurement, provided it involves only a single laser beam. In contrast to passive (image-based) drift measurement, a reflection-based drift measurement is an active drift measurement. Instead of a laser, other light sources can also be used, such as an LED.

[0038] Since laser-based drift measurement typically operates at a high repetition rate, it is particularly suitable for focus holding devices where the focus position is controlled via the reflected laser beam. In contrast, the previously described software-based drift measurement can be used as a focus finding device, especially because the two or three dimensions being sampled provide more information, enabling the correct focus to be found.

[0039] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, where the focus measurements are taken at different positions.

[0040] Drift measurements can be taken at various locations on a sample. Measurements can be taken simultaneously at different locations and / or sequentially, particularly by repeatedly measuring the same locations. A separate drift value can then be determined for each of these locations, and / or a single drift value can be calculated that applies to multiple locations. If images are to be taken at different positions on a sample, it may happen that one of these positions no longer contains any sample. During drift correction, the autofocus then attempts to focus on an empty area. This can lead to at least the subsequent images at this position having incorrect focus. If foci for other positions are also determined based on the focus calculated at this location, then these foci will also be incorrect.

[0041] This problem can also occur if the autofocus focuses on an incorrect value for another reason, such as contamination or damage to the sample, or improper sample storage (e.g., a crack in a Petri dish). A method based on the first aspect can specifically filter out implausible foci resulting from one or more of these reasons.

[0042] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, comprehensively the step: - Discard the first drift value if it is equal to or exceeds the first threshold value.

[0043] A drift value obtained can exceed the threshold for various reasons. Firstly, a drift value may be implausible because it likely or certainly resulted from a faulty situation. In that case, the drift value can be completely, i.e., permanently, discarded.

[0044] However, a drift value can also exceed a threshold because the threshold was set too low, and changes, e.g., in the sample or the microscope, can lead to drift values ​​larger than the threshold. This can occur particularly when rapid focusing is desired, for example, to avoid phototoxicity of a sample. (Phototoxicity refers to damage to a sample caused by electromagnetic radiation, such as exposure to infrared, visible, or UV radiation.) A resulting reduction in the focus search range in which drift is detected, and which may be accompanied by a lower threshold, can lead to a detected drift, e.g., at the edge of the focus search range, being discarded as unrealistic even though it would be realistic. In such a case, the drift value cannot initially be output because it is larger than the threshold.However, further verification, for example with a different optical focusing system (software focus, hardware focus), may reveal that the drift value is indeed realistic. Therefore, a drift value can only be provisionally discarded and, in particular, saved for later use.

[0045] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, comprising the steps of: - Obtaining a second drift value; - Comparing the second drift value with the first threshold value; - Outputting the second drift value if it does not exceed the first threshold.

[0046] A second drift value can be acquired, particularly after the first drift value, and specifically, a second drift value can be acquired at the same position as the first drift value. Additionally or alternatively, a second drift value can be acquired concurrently, for example, with a different focus system (e.g., a hardware-based focus if the focus to be set is a software-based focus). The second drift value can be acquired at the same position, particularly to obtain an integrated drift value with greater reliability. Additionally or alternatively, the second drift value can be acquired at a different position.

[0047] Comparing a second drift value with the first threshold can provide a simple and quick plausibility check. The second drift value can then be output according to the first drift value or discarded, either completely or temporarily. Alternatively, a second drift value can be stored for later use.

[0048] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, comprehensively the steps: - Obtaining a second threshold; - Obtaining a second drift value; - Comparing the second drift value with the second threshold value; - Outputting the second drift value if it does not exceed the second threshold.

[0049] Comparing a second drift value with a second threshold value can enable a dynamic plausibility check. The second threshold value can be defined based on the parameters mentioned above and, in particular, can replace the first threshold value, at least temporarily. A second threshold value can also be specifically defined over a predetermined time period and / or depending on different positions.

[0050] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, where the second threshold is based on the first drift value, especially if the first drift value is smaller than the first threshold.

[0051] It can happen that an initially selected first threshold is too high and therefore validates unrealistic, erroneous drift values ​​as realistic drift values. To avoid this, the second threshold can be specified based on the first drift value. This can be done, in particular, by exceeding the second threshold by a predefined absolute or relative value. For example, the second threshold can be chosen as a value that exceeds the first drift value by 5%, 10%, 20%, 50%, 100%, or 1000%. This way, a threshold can always be selected that adapts to the current situation.

[0052] In particular, a second threshold can be predefined based on a first drift value, provided the first drift value has been reliably validated. Reliable validation can be achieved, for example, by measuring the first drift value multiple times and then calculating an average. Multiple measurements of the first drift value can be taken sequentially, in parallel, with the same optical focus, and / or with a different optical focus. This can be done only at specific time points to conserve resources and reduce phototoxicity. The second threshold can then be updated at these same time points.

[0053] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, where the second threshold is based on a laser-based measurement of the focus; and the determination of the second drift value is based on an image-based measurement of the focus, or vice versa.

[0054] The second threshold can be provided, in particular, by a laser-based measurement that operates at a higher repetition rate than the image-based measurement of the second drift value. This ensures that a current threshold value is always available, especially when the repetition rate of the image-based focus determination is low to minimize phototoxicity. Alternatively, another type of focus measurement can be used to measure the second threshold instead of a laser-based measurement. Similarly, another type of focus measurement can be used to measure the second drift value instead of an image-based measurement.

[0055] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, where the laser-based measurement of the focus is performed at a higher repetition rate than the image-based measurement of the focus.

[0056] A repetition rate for threshold determination that does not cause phototoxicity can be, in particular, <10 kHz. This applies especially to laser-based or LED-based threshold determination. An image-based measurement, especially one that causes phototoxicity, can be repeated at intervals of <1 s, <10 s, <100 s, <1 min, <5 min, or <10 min.

[0057] One embodiment of the first aspect relates to a computer-based method for setting an optical focus, where the first threshold and / or the second threshold is determined by machine learning and based on information in a database.

[0058] Based on a machine learning algorithm, such as a neural network, a threshold value can be automatically determined based on various parameters (e.g., microscope type, ambient temperature, sample type). A fully connected single- or multi-layer neural regression network can be used to determine this threshold. The neural regression network can be a feedforward neural network, such as a multi-layer perceptron. The parameters used to train and operate the network can be retrieved from a database.

[0059] A second aspect of this revelation concerns a computer-based method for setting a search area for optical focus, comprising the steps: - Obtaining an initial search area for measurements to a focus; - Obtaining an initial drift value and / or an initial focus value; - Determining a second search area based on at least one of the following pieces of information: -- of the first drift value; -- of the first focus value.

[0060] A focus search area is the area in which a focus is analyzed to determine the current focus and thus also the currently prevailing drift. An initial search area can be defined, in particular, based on a threshold value.

[0061] By determining a second search area based on the first drift value and / or focus value, the search area for an automatically operating optical focus can be automatically adjusted. Specifically, a second search area can be chosen to be larger than the first drift value and / or focus value by an absolute or relative value. Alternatively, a second search area can be replaced by a continuous or quasi-continuous sequence of search areas that are based on a obtained, especially a current, drift value or focus value. This allows the search area to be continuously adjusted to reflect the current drift behavior and, in particular, avoids wasting time focusing on an area that contains no or only uninteresting structures.

[0062] To prevent a new drift value from being missed due to an insufficiently defined second search area, the second search area can be enlarged. This can occur, for example, after predefined intervals. Additionally or alternatively, a focus search area can be enlarged if a new drift value is located at the edge of a currently defined focus search area. Specifically, a second search area can be enlarged if a new drift value falls below a predefined absolute or relative distance to the edge of a focus area. Additionally or alternatively, a focus search area can be enlarged if a threshold for a detected drift is exceeded once or several times.

[0063] One embodiment of the second aspect relates to a computer-based method for setting a search area for an optical focus, comprising the steps: - Determining a threshold for drift of an optical focus, where the threshold is based on the second search area; - Obtaining a drift value based on measurements of the focus at different times; - Comparing the drift value with the threshold value; - Outputting the drift value if it does not exceed the threshold.

[0064] A third aspect of this revelation concerns a medical device, specifically a microscope, with autofocus, set up for this purpose: - to carry out a method according to one of the previous embodiments; or - to communicate with a device, in particular via an Application User Interface, which performs a method according to one of the previous embodiments.

[0065] A medical device can also be a laboratory device and / or a diagnostic device. An application user interface can be configured, in particular, to allow the medical device to exchange information with a central server, e.g., in a cloud. Specifically, a procedure according to the first or second aspect can be operated in the cloud and, in particular, can work together with multiple medical devices to adjust their optical focus. Brief description of the characters

[0066] Further advantages and features will become apparent from the following embodiments, some of which refer to the figures. The figures do not always show the embodiments to scale. The dimensions of the various features may be enlarged or reduced, particularly for the clarity of the description. For this purpose, the figures are at least partially schematic. Fig. Figure 1 shows a validation of a new drift value according to an embodiment of this disclosure. Fig. Figure 2 shows the adaptation of a focus search area according to one embodiment of this disclosure. Fig. Figure 3 shows a block diagram for a method according to an embodiment of this disclosure. Fig. Figure 4 shows a schematic representation of a system for carrying out a procedure of this disclosure.

[0067] The following description refers to the accompanying figures, which are part of the disclosure and illustrate certain aspects and embodiments under which the present disclosure may be understood. Identical reference numerals refer to identical or at least functionally or structurally similar features.

[0068] In general, a disclosure of a described method also applies to a corresponding device for carrying out the method or a corresponding system comprising one or more devices, and vice versa. For example, if a specific method step is described, a corresponding device may include a feature for carrying out the described method step, even if this feature is not explicitly described or illustrated in the figure. Conversely, if, for example, a specific device is described based on functional units, a corresponding method may include one or more steps for carrying out the described functionality, even if these steps are not explicitly described or illustrated in the figures. Similarly, a system may include corresponding device features or features for carrying out a specific method step.The features of the various exemplary aspects and embodiments described above or below can be combined unless expressly stated otherwise. Detailed description

[0069] Fig. Figure 1 shows, using two scenarios, a validation of a new drift value according to one embodiment of this disclosure. The scenarios abstractly represent settings of an optical focus of a microscope.

[0070] In the first scenario, 100a, a validation of a newly acquired drift value is shown. At time t=0, a sample 102a is located at a first focal plane. A threshold value 104 relative to the focal plane 102a is also shown. The threshold value 104 indicates the expected maximum drift of the sample. A currently determined drift 106 is also shown relative to sample 102. Such drift can occur, in particular, with a non-image-based focusing system, e.g., a laser-based focusing system, to reduce / avoid phototoxicity of an analyzed sample. A comparison of the threshold value 104 with the acquired drift value 106 shows that the drift value 106 is smaller than the expected maximum drift 104. In this case, the drift value can be validated, as it is plausible. A parameter corresponding to the drift value 108 is then output to the autofocus of the microscope.

[0071] At time t=1, the validated drift value 106 is translated by the microscope's optical focusing system to a new focal plane 102c. The sample's former focal plane is represented by the rectangle 102b with a dashed outline. The change in focus corresponding to the drift 106 is shown by the arrows 108. The same threshold value 104 is again applied to the newly focused sample 102c to validate further drift movements. In the first scenario 100a, the drift is therefore within the expected range. The sample is thus shifted to the new focal plane by applying the validated drift. The threshold value 104 for the expected drift is also shifted accordingly.

[0072] In the second scenario, 100b, a newly acquired drift value is not validated. At time t=0, sample 102 is again located at a first focal plane. A threshold value 104 is displayed relative to sample 102, as in scenario 100a. A currently determined drift value 110 is also displayed relative to sample 102, or rather, to its focal plane. A comparison of the threshold value 104 with the acquired drift value 110 reveals that the drift value 110 is larger than the expected maximum drift 104. In this case, the drift value cannot be validated. The drift value is implausible. Consequently, the drift value 106 is not output to the microscope's autofocus. At time t=1, the focal plane of the microscope's optical focus remains in the same position. When another drift value is available, it is again compared with the threshold value 104. In scenario 100b, the measured drift 106 is greater than the expected drift 104.Therefore, drift is not applied and the sample remains in its position.

[0073] Fig. Figure 2 shows the adaptation 200 of a focus search area according to an embodiment of this disclosure. At time t=0, a sample is shown in a first focus plane 202a. New drift values ​​are sought in a first focus search area 204a, which has a first width 206a.

[0074] At time t=1, a new drift value 208a is recorded in the first focus search area 204a, and a new focus plane 202b is set for the sample. A new value for the focus search area is also output according to the new drift value 208a.

[0075] At time t=2, the microscope uses the new focus search area 204b. This new focus search area 204b has a width 206b, which is smaller than the width 206a of the originally set focus search area. The width 206b of the new focus search area 204b was determined based on the drift value 208a and is 700% of the drift value 208a. This allows for faster drift value determination than with the focus search area 204a. Furthermore, the new focus search area 204b is still large enough to detect even significant drifts. Additionally, the center point of the new focus search area 204b is located at height 210, where the second focal plane 202b was aligned based on the detected drift 208a.

[0076] In the new focus search area 204b, a further drift 208b is detected and accordingly a third focus plane 202c is set for the sample.

[0077] In a further development of this embodiment, a threshold value can also be used, as in Fig. 1. The focus search range can be specified based on a recorded drift value, particularly if the drift was recorded with high measurement accuracy. Alternatively, the focus search range can also be specified based on a predefined threshold value.

[0078] Fig. Figure 3 shows a block diagram for a method 300 according to various embodiments of this disclosure.

[0079] In a first step, an initial threshold is determined. This threshold can be based, for example, on an ambient temperature and / or on a drift specification provided by the manufacturer of an optical focus. The threshold determination can be automated, particularly using a machine learning-based algorithm. This could be, for example, a neural network that is continuously fed with information from theory and / or practice to predict drift values ​​in specific situations. Such a learning algorithm can be run on a central server and receive information about various optical foci that are operated decentrally, for example, in a clinic or laboratory, within optical devices.Input and environmental information, along with actual measured drift values, can be provided together, allowing the algorithm to learn and extrapolate the relationships involved in drift formation. Based on this, a threshold value, such as a maximum value, for drift can then be determined.

[0080] In a second step, a first drift value is determined. This can be done using hardware- and / or software-based focus measurement. The currently set focus can be compared with a new focus to be set. If these are not the same, or if the current image is blurry, then drift is present. The drift measurement can be performed within the device in which the optical focus to be set is operated, e.g., in a microscope. Additionally or alternatively, the drift measurement can be performed by an external device, e.g., a camera or a laser interferometer, which is operated near the optical focus.

[0081] In the next step, the measured first drift value is compared with the first threshold value. This can be done simply by calculating the difference between the drift value and the threshold value. If the threshold value is available as a statistical measure, e.g., as a distribution, a correlation can also be performed, e.g., based on convolution. Depending on the type of threshold value (maximum drift value, average drift value), a valid drift value may require that it be smaller than or that it does not exceed the threshold value by a certain amount.

[0082] In a fourth step, the first drift value is output if it does not exceed the first threshold in a permissible manner. A permissible exceedance can occur, in particular, if the drift value is derived from several values ​​recorded sequentially, and only one of these values ​​exceeds the threshold. A permissible exceedance can also occur if the threshold is a statistical value that may only be exceeded by a predetermined amount. For example, the threshold can be an average drift value, and a measured drift value is still considered plausible even if it exceeds the average drift value by 10%, 50%, or 100%.

[0083] In a further step (350), a previously set focus search range for drift adjustment is changed. This step can occur before, in parallel with, or after step 340. A focus search range, similar to a threshold, can depend on various parameters. For example, a focus search range can be determined based on an ambient temperature and / or on a manufacturer's specification for an optical focus. Determining a focus search range can be automated, particularly using a machine learning-based algorithm. This can be done in essentially the same way as determining a threshold.

[0084] The new focus search range is predefined based on the currently identified drift value. Specifically, a focus search range can be 10%, 50%, 100%, or 500% larger than a drift. In particular, a focus search range can only be predefined based on a validated drift value, i.e., a drift value that has been positively compared to a threshold value. Alternatively, the new focus search range can also be predefined based on a threshold value. By predefined a focus search range based on a current drift value and / or a current threshold value, a new focus can be determined more quickly, and phototoxicity of the sample can be reduced or kept within acceptable limits.

[0085] Some embodiments relate to a microscope comprising a system such as that used in conjunction with one or more of the Fig. 1 to 3. Alternatively, a microscope can be part of a system or connected to a system, as described in connection with one or more of the Fig. 1 to 3 are described.

[0086] Fig.Figure 4 shows a schematic representation of a system 400 configured to perform a procedure described herein. The system 400 comprises a microscope 410 and a computer system 420. The microscope 410 is configured to acquire images and is connected to the computer system 420. The computer system 420 is configured to perform at least part of a procedure described herein. The computer system 420 may be configured to execute a machine learning algorithm. The computer system 420 and the microscope 410 may be separate units or integrated into a common housing. The computer system 420 may be part of a central processing system of the microscope 410 and / or the computer system 420 may be part of a subcomponent of the microscope 410, such as a sensor, actuator, camera, or illumination unit, etc.

[0087] The Computer System 420 can be a local computing device (e.g., a personal computer, laptop, tablet computer, or mobile phone) with one or more processors and one or more memory devices, or it can be a distributed computing system (e.g., a cloud computing system with one or more processors and one or more memory devices distributed across different locations, such as a local client and / or one or more remote server farms and / or data centers). The Computer System 420 can include any circuit or combination of circuits. In one embodiment, the Computer System 420 can include one or more processors, which can be of any type. The term "processor" as used herein can refer to any type of computing circuit, such as...a microprocessor, a microcontroller, a CISC (Complex Instruction Set Computing) microprocessor, a RISC (Reduced Instruction Set Computing) microprocessor, a VLIW (Very Long Instruction Word) microprocessor, a graphics processor, a digital signal processor (DSP), a multi-core processor, an FPGA (Field Programmable Gate Array), e.g., of a microscope or a microscope component (e.g., camera), or any other type of microscope (e.g., camera), or any other type of processor or processing circuit. Other types of circuitry that may be included in the Computer System 420 may be a custom circuit, an application-specific integrated circuit (ASIC), or the like, such as one or more circuits (e.g., a communications circuit) for use in wireless devices such as mobile phones, tablet computers, laptop computers, two-way radios, and similar electronic systems.The Computer System 420 may include one or more storage devices, which may comprise one or more storage elements suitable for the application, such as main memory in the form of random-access memory (RAM), one or more hard disks, and / or one or more drives capable of handling removable media such as compact discs (CDs), flash memory cards, digital video discs (DVDs), and the like. The Computer System 420 may also include a display device, one or more speakers, and a keyboard and / or control device, which may include a mouse, trackball, touchscreen, speech recognition device, or other device enabling a system user to input information into and receive information from the Computer System 420.

[0088] Some or all of the process steps can be performed by (or using) a hardware device, such as a processor, a microprocessor, a programmable computer, or an electronic circuit. In some embodiments, one or more of the key process steps can be performed by such a device.

[0089] Depending on specific implementation requirements, embodiments of the invention can be implemented in hardware or in software. The implementation can be carried out using a non-transient storage medium such as a digital storage medium, for example, a floppy disk, DVD, Blu-ray disc, CD, ROM, PROM, EPROM, EEPROM, or FLASH memory, on which electronically readable control signals are stored that interact (or can interact) with a programmable computer system to execute the respective method. Therefore, the digital storage medium can be computer-readable. Some embodiments of the invention include a data carrier with electronically readable control signals capable of interacting with a programmable computer system to execute one of the methods described herein.

[0090] In general, embodiments of the present invention can be implemented as a computer program product with program code, wherein the program code serves to carry out one of the methods when the computer program product runs on a computer. The program code can, for example, be stored on a machine-readable medium.

[0091] Other embodiments include the computer program for carrying out one of the methods described herein, which is stored on a machine-readable medium.

[0092] In other words, an embodiment of the present invention is therefore a computer program with program code for carrying out one of the methods described herein when the computer program is running on a computer.

[0093] Another embodiment of the present invention is therefore a storage medium (or a data carrier or a computer-readable medium) on which the computer program for carrying out one of the methods described herein is stored when executed by a processor. The data carrier, the digital storage medium, or the recorded medium is typically tangible and / or non-transferable. Another embodiment of the present invention is a device as described herein comprising a processor and the storage medium.

[0094] Another embodiment of the invention is therefore a data stream or a sequence of signals that represents the computer program for carrying out one of the methods described herein. The data stream or signal sequence can, for example, be designed such that it can be transmitted via a data communication connection, e.g., via the Internet.

[0095] Another embodiment comprises a processing means, e.g. a computer or a programmable logic device, configured or adapted to perform one of the methods described herein.

[0096] Another embodiment comprises a computer on which the computer program for carrying out one of the methods described herein is installed.

[0097] Another embodiment of the invention comprises a device or system configured to transmit a computer program for carrying out one of the methods described herein to a receiver (e.g., electronically or optically). The receiver may be, for example, a computer, a mobile device, a storage device, or the like. The device or system may, for example, include a file server for transmitting the computer program to the receiver.

[0098] In some embodiments, a programmable logic device (e.g., a field-programmable gate array) can be used to perform some or all of the functions of the methods described herein. In some embodiments, a field-programmable gate array can cooperate with a microprocessor to perform one of the methods described herein. In general, the methods are preferably performed by any hardware device.

[0099] The term “and / or” used here includes all combinations of one or more of the listed aspects and can be abbreviated with “ / ”.

[0100] Although some aspects related to a device have been described, it is clear that these aspects also constitute a description of the corresponding process, where a block or device corresponds to a process step or a feature of a process step. Similarly, aspects described in connection with a process step also constitute a description of a corresponding block, element, or feature of a corresponding device.

[0101] Implementations can be based on the use of a machine learning model or a machine learning algorithm. Machine learning can refer to algorithms and statistical models that computer systems can use to perform a specific task without explicit instructions, relying instead on models and inferences. For example, in machine learning, instead of rule-based data transformation, data transformation derived from an analysis of historical and / or training data can be used. For instance, the content of images can be analyzed using a machine learning model or algorithm. To enable the machine learning model to analyze the content of an image (or another parameter), it can be trained using training images as input and training content information as output.By training the machine learning model with a large number of training images and / or training sequences (e.g., words or sentences) and associated training content information (e.g., labels or annotations), the machine learning model "learns" to recognize the content of the images, so that the content of images not included in the training data can be recognized using the machine learning model. The same principle can also be used for other types of sensor data: By training a machine learning model with training sensor data and a desired output, the machine learning model "learns" a transformation between the sensor data and the output, which can be used to provide an output based on non-training sensor data provided to the machine learning model. The provided data (e.g.,Sensor data, metadata and / or image data) can be preprocessed to obtain a feature vector that is used as input for the machine learning model.

[0102] Machine learning models can be trained using training data. The examples above use a training method called "supervised learning." In supervised learning, the machine learning model is trained using a large number of training samples, where each sample can include a variety of input data values ​​and a variety of desired output values; that is, each training sample is associated with a desired output value. By providing both training patterns and desired output values, the machine learning model "learns" which output value to produce based on an input pattern similar to the patterns provided during training. In addition to supervised learning, semi-supervised learning can also be used. In semi-supervised learning, some of the training patterns lack a corresponding desired output value.Supervised learning can be based on a supervised learning algorithm (e.g., a classification algorithm, a regression algorithm, or a similarity learning algorithm). Classification algorithms can be used when the output values ​​are restricted to a limited set of values ​​(categorical variables); that is, the input is assigned to one of the limited set of values. Regression algorithms can be used when the outputs can have any numerical value (within a range). Similarity learning algorithms can resemble both classification and regression algorithms but are based on learning from examples using a similarity function that measures how similar or related two objects are. In addition to supervised or semi-supervised learning, unsupervised learning can also be used to train the machine learning model.In unsupervised learning, (only) input data can be provided, and an unsupervised learning algorithm can be used to find a structure in the input data (e.g., by grouping or clustering the input data, finding commonalities in the data). Clustering is the assignment of input data, which comprises a large number of input values, into subsets (clusters) such that input values ​​within the same cluster are similar according to one or more (predefined) similarity criteria, while differing from input values ​​contained in other clusters.

[0103] Reinforcement learning is a third group of machine learning algorithms. In other words, reinforcement learning can be used to train the machine learning model. In reinforcement learning, one or more software actors (so-called "software agents") are trained to perform actions in an environment. A reward is calculated based on the actions performed. Reinforcement learning trains one or more software agents to choose actions that increase the cumulative reward, leading the software agents to perform the assigned task increasingly better (which is reflected in increasing rewards).

[0104] Furthermore, some techniques can be applied to certain machine learning algorithms. For example, feature learning can be employed. In other words, the machine learning model can be at least partially trained using feature learning, and / or the machine learning algorithm can incorporate a feature learning component. Feature learning algorithms, which can also be called representational learning algorithms, can preserve the information in their inputs but also transform them to make them useful, often as a preprocessing step before performing classifications or predictions. Feature learning can be based, for example, on principal component analysis or cluster analysis.

[0105] In some examples, anomaly detection (i.e., outlier detection) can be used to identify input values ​​that raise suspicion because they differ significantly from the majority of the input or training data. In other words, the machine learning model can be trained, at least partially, using anomaly detection, and / or the machine learning algorithm can include an anomaly detection component.

[0106] In some examples, the machine learning algorithm can use a decision tree as a predictive model. In other words, the machine learning model can be based on a decision tree. In a decision tree, observations about an element (e.g., a set of input values) can be represented by the branches of the decision tree, and an output value corresponding to the element can be represented by the leaves of the decision tree. Decision trees can support both discrete and continuous values ​​as output values. If discrete values ​​are used, the decision tree can be called a classification tree; if continuous values ​​are used, the decision tree can be called a regression tree.

[0107] Association rules are another technique that can be used in machine learning algorithms. In other words, the machine learning model can be based on one or more association rules. Association rules are created by identifying relationships between variables in large datasets. The machine learning algorithm can identify and / or use one or more relational rules that represent the knowledge derived from the data. The rules can be used, for example, to store, manipulate, or apply this knowledge.

[0108] Machine learning algorithms are typically based on a machine learning model. In other words, the term "machine learning algorithm" can refer to a set of instructions that can be used to create, train, or use a machine learning model. The term "machine learning model" can refer to a data structure and / or a set of rules that represent the learned knowledge (e.g., based on the training performed by the machine learning algorithm). In some implementations, the use of a machine learning algorithm may imply the use of an underlying machine learning model (or multiple underlying machine learning models).The use of a machine learning model may mean that the machine learning model and / or the data structure / rule set that represents the machine learning model has been trained by a machine learning algorithm.

[0109] The machine learning model could, for example, be an artificial neural network (ANN). ANNs are systems modeled on biological neural networks, such as those found in the retina or brain. ANNs consist of a multitude of interconnected nodes and a multitude of connections, called edges, between the nodes. There are typically three types of nodes: input nodes, which receive input values; hidden nodes, which are (only) connected to other nodes; and output nodes, which provide output values. Each node can represent an artificial neuron. Each edge can transmit information from one node to another. The output of a node can be defined as a (non-linear) function of its inputs (e.g., the sum of its inputs).The inputs to a node can be used in the function based on a "weight" assigned to the edge or the node providing the input. The weighting of nodes and / or edges can be adjusted during the learning process. In other words, training an artificial neural network can involve adjusting the weights of the network's nodes and / or edges to achieve a desired output for a given input.

[0110] Alternatively, the machine learning model can be a support vector machine, a random forest model, or a gradient boosting model. Support vector machines (i.e., support vector networks) are supervised learning models with associated learning algorithms that can be used to analyze data (e.g., in classification or regression analyses). Support vector machines can be trained by providing an input with a variety of training input values ​​belonging to one of two categories. The support vector machine can then be trained to assign a new input value to one of the two categories. Alternatively, the machine learning model can also be a Bayesian network, which is a probabilistic, directed acyclic graphical model. A Bayesian network can represent a set of random variables and their conditional dependencies using a directed acyclic graph.Alternatively, the machine learning model can be based on a genetic algorithm, a search algorithm, and a heuristic technique that mimics the process of natural selection. List of reference symbols 100a First scenario for validation 100b second scenario for validation 102 Sample at original focal plane 102a Probe at original focal plane 102b Focus plane before drift 102c drift-corrected focal plane 104 Threshold 106 first drift value 108 drift-related change focus plane 110 first drift value 200 Adjustment of focus search area 202a first focal plane 202b second focal plane 202c third focus level 204a first focus search area 204b second focus search area 206a Width of the first focus search area 206b Width of second focus search area 208a first drift value 208b second drift 210 Reference height 300 methods for focusing 310 Determination of first threshold 320 Measurement of first drift value 330 Comparison of first drift value with first threshold value 340 Outputting a valid drift value 350 Update focus search area 400 microscope system 410 microscope 420 computers

Claims

[1] Computer-based method for adjusting an optical focus, comprising the steps: - Obtaining a first threshold value (104) for a drift of an optical focus; - Obtaining a first drift value (106) based on measurements of at least one parameter for focus at different times, the measurements being taken at different locations of a sample; - comparing the first drift value with the first threshold value; - Output of the first drift value only if it does not exceed the first threshold value; and - Shift the focus plane by the amount of the first drift value when the first drift value is output. [2] Method according to claim 1, wherein the first threshold value (106) is predetermined on the basis of at least one or more of the following parameters: - information from the manufacturer of the device containing the focus; - information from the environment of the focus; - sample-specific information. [3] Method according to one of the preceding claims, wherein the first drift value (106) is based on image-based measurements of the focus carried out successively in time. [4] Method according to one of the preceding claims, wherein the first drift value (106) is based on laser-based measurements of the focus. [5] Method according to one of the preceding claims, comprising the step: - Discarding the first drift value (106) if it is equal to or exceeds the first threshold value (104). [6] Method according to one of the preceding claims, comprising the steps: - Obtaining a second drift value; - comparing the second drift value with the first threshold value (104); - Output the second drift value if it does not exceed the first threshold. [7] Method according to one of the preceding claims, comprising the steps: - Obtaining a second threshold value; - Obtaining a second drift value; - comparing the second drift value with the second threshold value; - Output the second drift value if it does not exceed the second threshold. [8] Method according to the preceding claim, wherein the second threshold value is based on the first drift value (106), in particular when the first drift value is smaller than the first threshold value. [9] The method of claim 7, wherein the second threshold value is based on a laser-based measurement of the focus; and the determination of the second drift value is based on an image-based measurement of the focus, or vice versa. [10] Method according to the preceding claim, wherein the laser-based measurement of the focus is carried out at a higher repetition frequency than the image-based measurement of the focus. [11] Method according to one of the preceding claims, wherein the first threshold value (104) and / or the second threshold value is determined by machine learning and on the basis of information in a database. [12] Medical device, in particular a microscope, with autofocus, adapted for: - to carry out a method according to one of the preceding claims.

Citation Information

Patent Citations

  • microscope with holding focus control

    DE102008018864A1

  • Microscope with holding focus unit

    DE102008018951A1

  • method for digitally recording a sample through a microscope

    DE102016110988A1

  • systems and methods for reducing temperature-induced drift effects in a liquid lens

    DE102017119517A1

  • Methods for interference correction and laser scanning microscope with interference correction

    DE102019008989B3