# US 2022/0028116 A1 · Learning autofocus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0028116 A1
- Document ID: US20220028116A1
- Status: Published application
- Kind: A1
- Application number: 17/294,692
- Filed: 2019-11-20
- Published: 2022-01-27
- Earliest claimed: 2019-11-20
- Assignees: Leica Microsystems CMS GmbH
- Applicants: Leica Microsystems Cms GmbH
- Inventors: Frank SIECKMANN; Constantin KAPPEL
- Web page: https://patentgrep.com/patent/US20220028116A1

## CPC

- G02B 21/244: {using image analysis techniques}
- G02B 21/367: {providing an output produced by processing a plurality of individual source images, e.g. image tiling, montage, composite images, depth sectioning, image comparison}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06T 7/80: Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- G06V 10/255: {Detecting or recognising potential candidate objects based on visual cues, e.g. shapes}
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/82: using neural networks
- G06V 20/693: {Acquisition}
- H04N 23/67: Focus control based on electronic image sensor signals
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G02B: OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for determining a focus position includes recording at least one first image, wherein image data of the at least one recorded first image are dependent on at least one first focus position during the recording of the at least one first image. A second focus position is determined based on an analysis of the at least one recorded first image using a trained model. At least one second image is recorded using the second focus position. The at least one first image and the at least one second image contain items of information which are in a context with a training of the trained model.

## Claims

### Claim at position 1

1: A method for determining a focus position, the method comprising:
recording at least one first image, wherein image data of the at least one recorded first image are dependent on at least one first focus position during the recording of the at least one first image;
determining a second focus position based on an analysis of the at least one recorded first image using a trained model; and
recording at least one second image using the second focus position,
wherein the at least one first image and the at least one second image contain items of information which are in a context with a training of the trained model.

### Claim at position 2 (depends on 1)

2: The method according to claim 1, wherein at least one object of one or more objects which are imaged in one or more of the at least one recorded first image are imaged more sharply in the at least one recorded second image than in the at least one recorded first image, wherein the at least one object is in a context with a training of the trained model.

### Claim at position 3 (depends on 2)

3: The method according to claim 2, wherein the at least one first image is recorded at a lower resolution than the at least one second image.

### Claim at position 4 (depends on 2)

4: The method according to claim 2, wherein the at least one recorded first image images one or more objects, wherein the at least one recorded second image images at least one of the one or more objects more sharply than the at least one recorded first image.

### Claim at position 5 (depends on 2)

5: The method according to claim 2, wherein:
trained models are exchanged and reloaded at the runtime of an experiment or a measurement to support other object types, other colorations, and other applications in general, and/or
a master model performs a classification of the area of use and automatically selects suitable models, which are then executed, and/or
trained models are offered in an app store.

### Claim at position 6 (depends on 1)

6: The method according to claim 1, wherein:
the second focus position is determined during a measurement, and/or
the at least one first focus position is displaced along an optical axis in relation to the second focus position.

### Claim at position 7 (depends on 1)

7: The method according to claim 1, wherein the at least one first focus position corresponds to at least one first focal plane and the second focus position corresponds to a second focal plane, and wherein the second focal plane approximately corresponds to an object plane.

### Claim at position 8 (depends on 1)

8: The method according to claim 1, wherein the determination of the second focus position comprises a determination of a three-dimensional (3D) scanning range.

### Claim at position 9 (depends on 1)

9: The method according to claim 1, further comprising setting a device to the second focus position, wherein the device comprises an optical system and a sensor.

### Claim at position 10 (depends on 9)

10: The method according to claim 9, wherein:
the setting of the device to the second focus position comprises a displacement of the optical system relative to the sensor, and/or
the setting of the device to the second focus position comprises a displacement of the optical system and the sensor relative to an object.

### Claim at position 11 (depends on 1)

11: The method according to claim 1, further comprising acquiring data.

### Claim at position 12 (depends on 11)

12: The method according to claim 11, wherein the acquisition of the data comprises an acquisition of a third image, wherein image data of the acquired third image are dependent on a user-defined focus position, wherein the user-defined focus position deviates from the second focus position, and wherein the data comprise the acquired third image, and a representation of a deviation from the second focus position to the user-defined focus position and/or a representation of the user-defined focus position.

### Claim at position 13 (depends on 12)

13: The method according to claim 12, wherein:
the acquisition of the data comprises an acquisition of an image stack wherein the image data of each image of the image stack are dependent on a focus position, which has a known distance to the user-defined focus position, and/or
the acquired third image associated with the user-defined focus position is marked as a target state for a training on the basis of the acquired data.

### Claim at position 14 (depends on 11)

14: The method according to claim 11, wherein the acquisition of the data comprises an acquisition of metadata, and wherein the metadata comprise at least one of the following: items of information on image recording modalities, items of information on an illumination, items of information on a sample, items of information on an object, items of information on system parameters of a device for acquiring images, items of information on image recording parameters, items of context information, and items of information on objective parameters.

### Claim at position 15 (depends on 11)

15: The method according to claim 11, further comprising adapting the trained model using the acquired data.

### Claim at position 16 (depends on 15)

16: The method according to claim 15, wherein the step of adapting the trained model comprises at least one of the following steps:
training a part of the trained model using the acquired data; and
retraining the trained model using aggregated data, wherein the aggregated data originate from one or more sources and/or comprise the acquired data.

### Claim at position 17 (depends on 1)

17: The method according to claim 1, wherein:
the trained model is based on one or more neural networks or one or more deep learning result networks; and/or
the trained model was selected from a plurality of models, wherein:
the plurality of trained models is classified by an area of use,
each of the plurality of trained models was trained in a specific way,
the plurality of trained models is hierarchically organized, and/or
individual trained models from the plurality of trained models are specialized for individual types of samples, experiments, measurements, or device settings.

### Claim at position 18

18: A device for determining a focus position, the device comprising:
one or more processors; and
one or more computer-readable storage media, on which computer-executable instructions are stored which, upon being executed by the one or more processors, provide for execution of the following steps:
at least one sensor acquires at least one first image, wherein image data of the at least one acquired first image are dependent on at least one first focus position during the acquisition of the at least one first image;
a second focus position is determined, wherein the second focus position is determined based on an analysis of the at least one acquired first image using a trained model; and
at least one second image is recorded using the second focus position,
wherein the at least one first image and the at least one second image contain items of information which are in a context with a training of the trained model.

### Claim at position 19 (depends on 18)

19: The device according to claim 18, wherein the computer-executable instructions, upon being executed by the one or more processes, further provide that, based on an acquisition of a setting on a user-defined focus position, further data are acquired, wherein the further data comprise image data in dependence on the user-defined focus position, and a representation of the deviation from the second focus position to the user-defined focus position and/or a representation of the user-defined focus position.

### Claim at position 20 (depends on 19)

20: The device according to claim 19, wherein the acquisition of the further data comprises an acquisition of an image stack, wherein image data of each image of the image stack are dependent on focus positions, which are offset at a distance of an axial resolution of an objective used in relation to the user-defined focus position along an optical axis, and/or the image data acquired in dependence on the user-defined focus position are marked as a target state, wherein the acquired data are used for a training of the trained model.

### Claim at position 21 (depends on 19)

21: The device according to claim 19, wherein the computer-executable instructions, upon being executed by the one or more processors, further provide that the trained model is adapted, wherein the adapting of the trained model comprises at least one of the following:
training a part of the trained model using the further data; and
retraining the trained model using aggregated data, wherein the aggregated data originate from one or more sources and/or comprise the further data.

### Claim at position 22 (depends on 18)

22: An image recording system for setting a focus position, the image recording system comprising:
the device according to claim 18;
the at least one sensor;
an optical system configured to image one or more objects on the at least one sensor; and
at least one actuator configured to set the image recording system on the second focus position.

### Claim at position 23 (depends on 22)

23: The image recording system according to claim 22, wherein:
the at least one actuator comprises at least one of the following: a Z drive of a tripod, a Z galvanometer, a piezo focus on an objective of the optical system, a direct drive, a linear motor, a stepping motor, an ultrasonic motor, a ring motor, a micromotor, and a piezo table, and/or
wherein the at least one actuator is part of a focusable objective, and wherein the focusable objective is based on focus technologies without piezo drive.

### Claim at position 24 (depends on 22)

24: The image recording system according to claim 22, wherein the image recording system is configured to download trained models from a cloud and/or to upload acquired data to the cloud via a network.

### Claim at position 25 (depends on 22)

25: The image recording system according to claim 22, wherein the image recording system furthermore comprises a user interface, which is configured such that a user-defined focus position can be set and/or input parameters can be acquired by the user interface.

### Claim at position 26 (depends on 22)

26: The image recording system according to claim 22, wherein:
the image recording system comprises a digital camera, a portable computer with a camera, or a microscope or microscope system, and/or
the device is part of a microscope or microscope system.
