ADAPTIVE COMPRESSION MODEL WITH STRUCTURE-BASED COMPRESSION RATE
Various examples of the disclosure relate to the use of an adaptive compression model, wherein a compression rate is set depending on structure information or generally semantic information for structures in a microscope image. For example, a so-called “adaptive particle representation”, APR, compression method can be used.
Latest Carl Zeiss Microscopy GmbH Patents:
- Distance measuring device and method for ascertaining a spatial orientation of a sample carrier in microscopy
- METHOD AND MICROSCOPE FOR DETERMINING PROPERTIES OF MOVING OBJECTS IN A BIOLOGICAL SAMPLE
- Apparatus for attaching a microscope objective
- Method and device for preparing data for identifying analytes
- Method of operating an ion beam source, ion beam source and computer program
Various examples of the disclosure relate to techniques for compressing image data of a microscope image. In particular, an adaptive compression model is used, the compression rate of which is adapted depending on the structures in the microscope image.
BACKGROUNDIn various fields of application, image sources are available that supply image data with ever higher resolution. For example, microscopes are available that supply image data with particularly high image resolution. For example, image data captured with a light microscope may have a resolution of several terabytes. Such an amount of data arises e.g. when recording tile images that are combined to form a mosaic image. A further example of particularly big image data is multi-beam electron microscopes, in which a plurality of electron beams simultaneously scan a sample.
Compression methods can be used to reduce the amount of data in the image data. For example, the so-called APR compression method (“adaptive particle representation”) is a known technique for generating compressed representations of image data. The APR compression method is particularly useful because specific image processing operations can be performed directly in the compression space (instead of in the image space as usual). See for example: Cheeseman, B. L., Günther, U., Gonciarz, K., Susik, M., & Sbalzarini, I. F. (2018). Adaptive particle representation of fluorescence microscopy images. Nature communications, 9(1), 5160. The APR compression method generates a sparse representation of the image data. This representation has sampling points with a plurality of resolutions. The different resolutions are associated with different hierarchical levels. The required resolution is determined by an implicit resolution function at different image regions of the image data; that involves allocating a high resolution to image regions in which the intensity changes rapidly in spatial terms (e.g. edges), and a low resolution to regions with small intensity fluctuations (e.g. background or uniform foreground). Different image regions are thus stored with different resolutions. Such image regions which have sampling points with a high resolution are compressed with higher data rates and at the same time less loss (low compression rate) than such image regions which have sampling points with a low resolution (high compression rate).
However, it has been observed that the achievable compression rate is often not optimal in an APR compression method. Sometimes the image is compressed over a large area with sampling points with a high resolution, and so the compression rate is relatively low. In some cases, the image is compressed over a large area with sampling points with a low resolution, causing important details to be lost.
BRIEF SUMMARYThere is therefore a need for improved techniques for the compression of image data, in particular of microscope images. Techniques are required that eliminate or alleviate at least some of the abovementioned disadvantages and limitations. Techniques for the compression of image data of microscope images which use an adaptive compression model, as is the case in the context of the APR compression method, for example, are required.
This object is achieved by the features of the independent patent claims. The features of the dependent claims define embodiments.
Techniques for determining a compressed representation of image data by applying an adaptive compression model are described below. Such an adaptive compression model can implement the APR compression method, for example. The adaptive compression model adaptively sets the compression rate (also referred to as degree of compression) for different image regions. In various examples, the compression rate is set for example depending on the presence or absence of specific structures depicted in the microscope image. In this regard, for example, a low compression rate (high quality) can be used if important structures for a specific application are depicted in a specific image region of the microscope image. On the other hand, a high compression rate (low quality) can be used if less important structures, contaminants, image artefacts or the background is/are depicted in an image region. In the various examples, the compression rate is thus selected depending on the semantic information of the microscope image to be compressed. That means that the compression rate is set locally depending on depicted structures or objects. In particular, it is possible to differentiate between less relevant and more relevant structures located at different positions in the image space. A high or low compression rate can be selected depending on the structure type. Which structures are less relevant or more relevant can either be fixedly predefined or be determined automatically or manually. This enables the compression model to specialize in different applications.
A computer-implemented method comprises obtaining image data of a microscope image. The microscope image depicts a plurality of structures. On the basis of the image data, the method furthermore comprises determining structure information for the structures. The structure information localizes at least some of the structures in the microscope image. The method furthermore comprises determining a compressed representation of the image data by applying an adaptive compression model to the image data. The compression model adapts a compression rate for different image regions of the microscope image depending on the structure information.
Multiple instances of the structures localized by the structure information can be arranged in a manner distributed over the microscope image. The structures can be sparsely arranged. That means that the image area of the microscope image that is covered by the structures is significantly smaller than the complementary image area. For example, the structures of a specific structure type for which the structure information is present can cover not more than 10% or optionally not more than 1% of the image area of the microscope image. Therefore, it can be especially worthwhile to determine a sparse, compressed representation of the image data on the basis of the structure information.
An electronic data processing device is also disclosed. The latter comprises at least one processor unit and a memory, wherein the at least one processor unit is designed to load program code from the memory and execute it. The at least one processor unit is designed to execute techniques such as are described above and below, on the basis of executing the program code.
The features set out above and features described below can be used not only in the corresponding combinations explicitly set out, but also in further combinations or in isolation, without departing from the scope of protection of the present invention.
The above-described properties, features and advantages of this invention and the way in which they are achieved will become clearer and more clearly understood in association with the following description of the exemplary embodiments which are explained in greater detail in association with the drawings.
The present invention is explained in greater detail below on the basis of preferred embodiments with reference to the drawings. In the figures, identical reference signs designate identical or similar elements. The figures are schematic representations of various embodiments of the invention. Elements illustrated in the figures are not necessarily illustrated as true to scale. Rather, the various elements illustrated in the figures are rendered in such a way that their function and general purpose become comprehensible to a person skilled in the art. Connections and couplings between functional units and elements illustrated in the figures can also be implemented as indirect connection or coupling. A connection or coupling can be implemented in a wired or wireless manner. Functional units can be implemented as hardware, software or a combination of hardware and software.
Modern microscopes generate ever larger amounts of data. In order to be able to store and archive them in an acceptable time, they are generally compressed. A compression model operating according to the APR compression method enables specific image processing operations to be performed, after compression, very efficiently in the compression space (instead of the usual image space). Such an APR compression method generates in particular a sparse representation of the image data of a microscope image. Aspects in connection with such a sparse representation of the image data of a microscope image are described below.
the resolution is thus 4/a2, i.e. four times greater than for the hierarchical level 111.
In principle, the sampling points of the sparse representation can—as shown in the example in
In box 3005, image data are obtained. The image data obtained in box 3005 can be present in the pixel space. That means that an image with uniformly distributed pixels can be obtained, cf. for example
However, it would also be possible for the image data themselves to be a compressed representation of an image. For example, the image data can be a sparse representation of an image. For example, the image data can thus comprise a plurality of sampling points with different resolutions that correspond to different hierarchical levels.
In box 3005, the image data can be loaded from an image database, for example. This can be for example a cloud-based image database (so-called “picture archive”). However, it would also be conceivable for the image data to be obtained from a microscope in box 3005. For example, box 3005 can also include sending control data to the microscope to trigger image capture of the image data. The image capture can be initiated from a graphical user interface with microscope control software.
Subsequently, in box 3010, context information concerning the microscope image is obtained. Such context information can generally be used to determine which structures are relevant or less relevant, and which structures ought therefore to be compressed correspondingly strongly or less strongly.
Different variants for the context information or the data source of the context information are conceivable. Some examples are explained below.
For example, the context information could comprise a description of an experiment in the context of which the microscope image was created. For example, such an experiment description could specify a type of sample and additionally indicate which properties of the sample ought to be evaluated in the context of the experiment. For example, which properties of a cell culture ought to be evaluated could be specified. For example, it could be indicated that specific cell types ought to be examined. In connection with a semiconductor sample, which properties of which semiconductor structures ought to be examined could be indicated. The structures of Interest (SOI) can be indicated. For example, it could be indicated that specific cell constituents, such as cell nuclei, are of particular interest. It would also be conceivable for specific large-area regions in the microscope image to be indicated as relevant. For example, the microscope image could depict a counting chamber that defines a plurality of regions in which cells are intended to be counted; then only specific regions of the counting chamber might be of interest, while other regions are less relevant. Here, counting chamber geometries can be recognized as structures. The context information can alternatively or additionally comprise a further context image. Such a context image can be a so-called overview image, which is captured with a magnification factor that is smaller than the magnification factor of the actual microscope image. For example, the overview image can depict an entire sample; while the microscope image depicts only a portion of the sample (on account of the higher magnification factor). The context information could also comprise a classification of a sample type of the sample depicted by the microscope image.
Such a classification can thus concern a global classification of the sample type, without individual structures of the sample being localized or individually classified.
Box 3010 can comprise the inference of a corresponding classification model. For example, the image data from box 3005 can be used as input into the classification model. Alternatively or additionally, other image data, for example an overview image, can be used as input into the classification model. For example, the classification model can be a broadly trained machine-learned (ML) model. For example, a cross-domain machine-learned model (“foundation model”) could be used, e.g. with a vision transformer architecture. The context information is then obtained as output from the classification model. The context information can comprise information concerning a type of microscope image and/or the type of structures depicted in the microscope image (for example without localizing them).
A further example for determining the context information relates to metadata of a microscope used to capture the microscope image. Such metadata can comprise for example information concerning resolution, optics or illumination used to capture the microscope image, the imaging modality used (e.g. phase contrast, intensity contrast, oblique illumination, structured illumination, laser scanning, etc.), etc. These are just a few examples of information associated with image capture of the microscope image. Such metadata can be helpful because such settings used for image capture often allow a statement about the structures depicted in the microscope image. For example, the use of a phase contrast with a specific magnification could indicate the examination of cells. On the other hand, the use of structured illumination could be used for the measurements of the surface topography of a workpiece.
The context information in box 3010 can be obtained on the basis of a user input. For example, such a user input could comprise an attention map of the microscope image (also referred to as a “saliency map”). The attention map can describe which image regions of the microscope image are associated with a particularly high level of user attention. There are various possibilities for creating such an attention map. For example, a local degree of attention could be determined by the user's processing of the microscope image in a graphical user interface. For example, it would be considerable for the user to zoom into specific image regions and then to examine such specific image regions closely, while the user does not examine other image regions more closely. In such a case, therefore, the user interaction with the microscope image is monitored in a graphical user interface and the attention map is derived therefrom. In other cases, the user could also explicitly mark specific SOI in the microscope image. The user could manually mark specific image regions of interest.
In a further variant, the context information could be determined on the basis of an image evaluation task that is applied or is to be applied to the microscope image, or could indicate this task. For example, a graphical user interface could be used to specify that cells ought to be counted or that a degree of confluence of the cells ought to be determined. For example, it can be specified that specific colours are to be localized in the microscope image (which are caused for example by fluorescence of a specific wavelength). Such information concerning the intended use of the microscope image is also suitable for defining SOI and thus reliably determining the structure information.
In box 3015, a suitable model for determining the structure information (this model is referred to hereinafter as the “structure information model”) can be selected on the basis of the context information. Box 3015 is optional. In other examples, it would be conceivable for the structure information model to already be predefined and for no further selection to be needed. In box 3015, a structure information model can be selected from a predefined number of candidate models (“model catalogue”). For example, the context information could be taken as a basis for determining that only cell nuclei are of interest in the context of the experiment to be carried out. A structure information model specialized in the localization of cell nuclei could then be selected. In general, therefore, a different structure information model could be selected depending on the classification of the sample type of the sample. Such a structure information model can be specialized in the localization of structures of a specific type. For example, in box 3010, in the context of the classification of the sample, it could be determined that the sample depicts cell structures. In particular, it could be determined that the sample depicts both living and dead cells. In the context of a corresponding experiment description, it can additionally be specified that in particular living cells ought to be counted, while dead cells ought to be ignored. It would then be conceivable for a structure information model to be selected in box 3015 which is able both to perform a localization of living cells; but at the same time also to discriminate between living and dead cells. If a different sample is examined, it could be established that the image data depict an arrangement of semiconductor transistors. In such a case, a different structure information model could be selected in box 3015, this model being specifically trained to localize semiconductor transistors. It is evident from the above that in particular a structure information model which is used for determining the context information in box 3010 can be trained comparatively more broadly and can be more broadly applicable than the structure information model which is subsequently selected in box 3015 for the specific application and is subsequently used in box 3020 for determining the structure information. For example, in box 3010, a cross-domain trained model could be used for classifying the sample, for example for determining the sample type or the structures depicted by the microscope image. Typically, such a classification task can be performed with high accuracy even with a broadly trained ML model. A structure information model which is specialized can then subsequently be selected for determining the structure information. For example, an ML structure information model can be used which was specifically trained on the basis of training samples in a specific domain, for example cells or even a specific cell type. Typically, the localization of the structures can then be effected with a higher accuracy. This is because a localization task is often more complex than a classification task, and the specialization of the structure information model enables this higher degree of complexity to be taken into account.
In box 3020, the structure information is then determined. The structure information localizes at least some of the structures depicted in the microscope image. The structure information can provide such localization for example by the use of a segmentation mask. The structure information model can thus perform a segmentation of at least some of the depicted structures in order to obtain the segmentation mask.
For example, the structure information can selectively localize SOI. This therefore means, in other words, that a segmentation mask is obtained, for example, which only localizes the structures of interest; other structures that are not of interest (for example dirt, image artefacts, etc.) are however not localized. For example, the structure information could differentiate between cells of different cell types. For example, the structure information could targetedly localize cells of one specific cell type and not localize cells of another cell type. Structure information could also be provided which provides for example a plurality of segmentation masks for different cell types. A further example concerns the differentiation between structures belonging to a foreground structure type and structures belonging to a background structure type. For example, foreground structure types can include structures which are relevant to a specific measurement task or are arranged on the sample. Background structure types can include for example structures such as contaminants or artefacts (for example reflections at the optics of the microscope), special effects in the edge region, or else features of the sample carrier on which the sample is arranged.
If structures of a plurality of structure types are localized, the structure information can distinguish between the structure types. For example, a semantic segmentation can be effected; that means that by using a plurality of segmentation masks or additional information concerning the segmentation mask, it is possible to distinguish between the different structure types. A specific structure can thus be assigned to a structure type selected from a plurality of predefined structure types. Such a differentiation with respect to a plurality of structure types enables the compression rate to be adapted in a differentiated manner for the different structure types.
In some examples, an instance segmentation can be performed, which makes it possible to distinguish between different instances of structures of the same type.
In addition to the use of a segmentation mask, however, it would also be conceivable to use for example bounding boxes, midpoint localization or density maps—to name just a few examples—to perform the localization. A further option is probability maps, which locally indicate the probability of the presence of an instance of a specific structure.
In box 3025, a prioritization between a plurality of structures localized by the structure information can optionally be performed. This can be done for example on the basis of the context information from box 3010.
In box 3025, therefore, for different structures it is possible to decide whether the corresponding structure is of high or low priority (accordingly, a lower or higher compression rate can then subsequently be selected).
In particular, a prioritization between a plurality of structure types can be determined on the basis of the context information. On the basis of an assignment of the localized structures to the plurality of structure types, the prioritization between the plurality of structures localized by the local structure information can then be determined.
In this regard, for example, a high priority could be ascertained for dead cells and a low priority for living cells. In the context of the structure information, each cell could then be localized, i.e. irrespective of whether the respective cell is living or dead. A classification could subsequently be performed for each localized cell by means of a classification model. An assignment of the respective cell to the cell type “living” or “dead” is obtained as output of the classification model. On the basis of this assignment, a prioritization of each cell instance can subsequently be formed, i.e. a high prioritization for all dead cells and a low prioritization for all living cells. In another example, the structure information could only localize dead cells from the outset. In this case, the subsequent classification of the cells as “living” or “dead” is omitted, since no living cells are localized.
In summary, in association with box 3020 and optionally box 3025, techniques have been described in which structures are localized in the image space of the microscope image, which influence the compression rate. Only such structures for which a low compression rate is desirable can be selectively localized. However, it is also possible to localize structures for which both a low and a high compression rate are desirable. In such a case, the different structures can be assigned to different classes with different prioritizations. In any case, however, the semantic image content is recognized by the localization of the structures. In association with box 3030, a description is given below of how non-semantic image information can also be taken into account in addition to such semantic image content.
In box 3030, it would be optionally conceivable for one or more further local properties of the microscope image to be determined. The compression rate can then furthermore be adapted depending on said one or more further local properties. Such local properties can comprise for example pixel statistics of image pixels of the microscope image in the different image regions. For example, in box 3030 the local property could be determined depending on a local rate of change in the intensity of the microscope image. For example, an edge density could be determined on the basis of the image data. Said one or more further local properties of the microscope image in box 3030 can be determined independently of the semantic content of the microscope image. Rather, an evaluation of image pixels or intensity information of the microscope image can be carried out, i.e. agnostically in respect of the structure types of the structures depicted in the microscope image.
In addition to the structure information from box 3020, the local property from box 3030 thus provides a further measure for determining the local compression rate. Optionally, a weighting of the different measures for the determination of the local compression rate could be carried out in box 3035. For example, a relative weighting of the structure information from box 3020 in relation to one or more local properties from box 3030, for instance the edge density or the intensity gradient, could be carried out. In this case, the compression rate can be adapted taking into account the weighting. Put simply, a relative weighting of semantic with respect to non-semantic information for the determination of the compression rate can thus be carried out in box 3035.
Box 3040 involves determining a compressed representation of the image data obtained in box 3005. This is done taking into account the structure information from box 3020 and optionally taking into account said one or more local properties of the image data or the microscope image from box 3030 (if appropriate taking into account a relative weighting, as discussed above in association with box 3035).
In particular, the compression rate can be adapted in such a way that such image regions in which one or more SOI are located are compressed less lossily; while such image regions in which no SOI are located are compressed more lossily. A higher (lower) compression rate can be used for such regions of the microscope image which depict structures of a lower (higher)-prioritized structure type. For a compression model that implements an APR compression method, this means for example that for image regions with an SOI sampling points are used with higher resolution than for image regions without SOI. Therefore, while conventional APR compression methods calculate the local combinability on the basis of the intensity distribution of the image pixels of the microscope image, in the present case at least in addition semantic information concerning the structures in the form of the structure information is also taken into account. That means, therefore, that the semantics of the image content of the microscope image are taken into account. Such a technique has the advantage that even structures of little relevance such as for example contaminants, reflections or disturbance structures are compressed with a low compression rate, since these structures also have a characteristic intensity distribution of the pixel values which is similar or comparable to the intensity distribution of SOI. In this regard, for example, contaminants and cells may have a similar edge density or a similar intensity gradient. By taking into account the semantics, a differentiation between SOI and other structures is possible, so that the less relevant structures can be compressed with a greater compression rate.
In one example, heuristic rules can be used for determining the compression rate on the basis of the structure information. For example, an if-then decision could be implemented, for instance: if an image region includes an SOI, then choose a predefined low compression rate; otherwise, choose a predefined high compression rate. However, it would also be conceivable to implement the determination of the compression rate on the basis of the structure information on the basis of an ML module. This ML module can be trained to reward the highest possible degrees of compression. Furthermore, however, e.g. an application-specific loss function can also be considered, which quantifies a quality of an image evaluation.
There are various possibilities as to how the adaptation of the compression rate can be implemented algorithmically. In one example, the local structure information for the entire microscope image can be determined before applying the adaptive compression model. For example, a segmentation mask or density map can be determined for the entire microscope image. That therefore means, in other words, that firstly the local structure information necessary for the determination of the local compression rate is determined and the adaptive compression model is subsequently applied. In other examples, however, it would also be conceivable for the adaptive compression model and determining the local structure information to be implemented in nested or interlaced fashion (that is to say, therefore, that for example box 3020 and box 3040 in
The recursion level 3100 starts at box 3105 and supplies an image region 3110 to be processed. For example, the first recursion level 3100 could involve the entire microscope image. It would also be conceivable for the microscope image to be fragmented into equal-sized parts in the first recursion level, so that each of these parts is obtained as an image region to be processed. In the first recursion level, the one or more image regions to be processed could also originate from a previous compression model, which operates for example according to the traditional APR compression method. Here, the microscope image could be divided into image regions on the basis of the pixel intensity statistics. A check could subsequently be made to establish whether a different or further division is possible on the basis of the structure information.
In later recursion levels 3100, the image region is obtained from the higher recursion level 3100.
The structure information for the image region from box 3110 is then determined in box 3115. A corresponding part of the structure information is thus determined for the respective image region. In box 3110, the structure information model can thus be applied.
On the basis of the structure information, it is then possible to establish in box 3120 whether a further decomposition of the current image region into a plurality of image regions ought to take place for the next lower recursion level 3100. If that is not the case, then the recursion level 3100 ends in box 3125. Otherwise, in box 3130, a further decomposition into further image regions takes place and then the next recursion level 3100 is executed individually for each of the further image regions, box 3135.
For example, in box 3120, a check could be made to establish whether there is one or more SOI in the respectively processed image region. If this is not the case, a further decomposition can be dispensed with; the corresponding image region can be sampled with the sampling points associated with the respective recursion level (or hierarchical level). Each image region can be associated with one or more sampling points. These sampling points can then be stored in the compressed representation of the image data for the corresponding image region (also called image patch). On the other hand, however, if there is an SOI in the image region respectively to be processed, subsequently a further decomposition into smaller image regions can be carried out. For example, these smaller image regions are then associated with higher-resolution sampling points.
For example, in box 3120, an ML module could be used which takes the structure information as a basis for making a decision as to whether a further decomposition ought to take place. Such an ML module can be part of the compression model. The ML module can be trained e.g. in an application-specific manner in order to ensure not only an optimization of the compression rate but also an optimization of the quality of a downstream image evaluation. Such an ML module can optionally be trained separately from a structure information model.
For example, in box 3115 or in box 3120, a trained ML structure information model could be used which determines for the current image region whether or not the latter ought to be separated (“yes/no”). This determination is effected taking into account the structures depicted in the respective image region. In such a case, there is no need to determine a segmentation mask; rather, it is possible just to carry out a localization of the structures with the granularity of the image regions taken into account by the compression model. In other examples, however, it would also be conceivable to check in each case whether the currently considered image region has an intersection with a predetermined segmentation mask; such a segmentation mask can be determined for the entire microscope image and can perform the localization of the structures independently of the image regions defined by the compression model.
In
Whereas in
Referring once again to
In box 3045, information can be output to a user. For example, specific states of the structures can be ascertained. Box 3045 thus corresponds to performing a measurement task on the basis of the image data. In this regard, for example, cells could be counted. This could involves determining how many cells are dead and how many are living. A cell confluence measurement could be carried out. Statistics about the size and/or shape of organoids could be created. A graphical user interface can output the result of the measurement task to the user. The result can also be used for generating a control signal to control an experiment.
The application can also provide user feedback on the quality of the image evaluation model result. The quality of this result depends inter alia on the quality of the compression. For example, if specific SOI are compressed too much, the result of the image evaluation can be unreliable. This user feedback can be used to optimize the compression model and in particular the determination of the structure information. For this purpose, a structure information model can be adapted on the basis of explicit or implicit user feedback. For example, an ML structure information model can be trained in a supplementary manner. This is explained in detail below.
In box 3050, optionally labels or pseudo-labels can be obtained on the basis of the quality of the results of the application in box 3045. For example, pseudo-labels can be implemented on the basis of monitoring user interaction with a result of the application. For example, a check could be made to establish which image regions the user analyses in detail in a result of the application. A check could be made to establish which structures or structure types the user analyses in detail. A check could be made to establish which image regions the user examines, marks or measures for a particularly long time. It is then possible to compare whether the structure information in box 3020 or a prioritization in box 3025 or, as a result, the compression rate in box 3040 has been determined appropriately for this purpose. A result of the image evaluation could also be compared with a reference result, which is obtained for example on the basis of an application of the image evaluation model to the image data without (more extensive) compression. Such a comparison can provide ground truth labels. On the basis of such (pseudo-)labels from box 3050, training of the segmentation model in order to improve the localization of SOI can then be performed in box 3055.
The cells localized by the segmentation mask 905 thus have a high priority, while the dirt particles localized by the segmentation mask 906 have a low priority.
The two segmentation masks 905, 906 are subsequently transferred to a compression model 961, which determines a compressed representation 910. In the example in
The resolution of the sampling points corresponds to an adaptive compression rate. It is evident from
Referring once again to
At a later time, the compressed representation 910 can be reloaded from the image database 960. In the example illustrated, a decompressed representation 911 of the microscope image 900 is determined by means of a decompression model 962. It is evident here that the dirt particles are suppressed in the reconstructed representation 911. This is due to the low resolution of the sampling points in the corresponding image regions.
In association with the compressed representation 910, further data 919 can optionally be stored. For example, such further data 919 could be indicative of a noise level of the microscope image. If the reconstructed representation 911 is determined on the basis of the compressed representation 910, the reconstructed representation 911 could additionally become noisy on the basis of a corresponding indicator that is indicative of the noise level. Such techniques are based on the insight that the image noise often also has high-frequency components which are not obtained or are obtained only to a limited extent by corresponding compression models. The process of artificially becoming noisy enables the original noise level to be restored. The noise level could also be determined in a manner resolved for different image regions in the image space. In particular, the noise level could be determined for the different image regions having the different resolutions.
Instead of—as illustrated in
In general, it is thus possible to train the structure information model for determining the local structure information on the basis of an application-related image evaluation model—for example for segmentation or other localization of specific structures. On the basis of uncompressed or only weakly compressed image data, a corresponding prediction can be obtained by the image evaluation model; this prediction has a high reliability and can therefore be used as a ground truth label for the training of the structure information model. For example, the application could concern the determination of bounding boxes for cells. An application-related image evaluation model can then supply bounding boxes firstly on the basis of uncompressed image data (cf.
In such a scenario, in particular the structure information model 950 and the image evaluation model 990 can be trained modularly; i.e. separate optimization passes (e.g. backpropagation) can be used to optimize these two models 950, 990.
In addition or as an alternative to training of the models 950, 980, an ML module of the compression model could also be trained, which—on the basis of the structure information—determines the local compression rate. In such a case, the semantic evaluation of the image data for determining the structure information or the image evaluation can remain unchanged; and just the compression rate can be optimized. As an optimization goal in this case, for example, a file size of the image data can be taken into account; alternatively or additionally, however, an application-specific loss function can be taken into account.
A description is given below of a possible first example of a scenario which can be performed with the data processing device 30 or more generally with the techniques described herein. A microscope image of a cell arrangement is obtained. The image is recorded as a three-dimensional fluorescence image using a fluorescent dye, for example DAPI or Hoechst. The microscope image has a relatively poor signal-to-noise ratio. The structure information is determined in order to localize the cell nuclei. For the image regions in which the cell nuclei are arranged, a high resolution of the corresponding sampling points is used, i.e. a low compression rate is used. Other image regions that do not contain cell nuclei are more strongly compressed, that is to say that the sampling points have a lower resolution. This also concerns image regions with a high noise level, contaminants, or accumulations of dyes. According to reference implementations where only intensity gradients or variations of pixel values are taken into account for the choice of the compression rate, such image regions with a high noise level and impurities or accumulations of dyes would be compressed with a relatively low compression rate. This is because in these image regions there is also a strong variance of the intensity values of the image pixels, even though no prioritized structures (i.e. no cell nuclei in the present example) are depicted. In the present example, it would be conceivable to define three hierarchical levels with three associated resolution levels. The lowest resolution is used for image regions that represent dye accumulations outside cells or impurities, or the background. The next higher resolution is used for image regions that represent cells outside the cell nuclei. The highest resolution is used for image regions that represent cell nuclei.
A description is given below of a second example of a scenario implemented by the data processing device 30 or generally by the techniques described herein. For example, a microscope image depicting spheroids or organoids can be obtained. Image regions that do not depict spheroids or organoids are irrelevant and can be compressed with a particularly high compression rate. The labels for the training of an ML structure information model which determines the corresponding structure information can be determined for example with the aid of a fitted parametrized model. This exploits the fact that a spheroid has specific predefined geometric properties. Specific stains could also be detected. For example, the cell membrane could be stained, in which case a corresponding structure information model then determines the region enclosed by the cell membrane. Unsupervised or weakly supervised training of the ML structure information model becomes possible as a result. However, a manual annotation would also be possible.
In a third example, the degree of confluence for an arrangement of cells is intended to be estimated. Ground truth labels can be determined in an automated manner on the basis of an image evaluation model present. The latter determines the degree of confluence on the basis of an uncompressed image. These ground truth labels are then used to train a structure information model. The output of this structure information model, i.e. the local structure information, is then used to set the compression rate. For example, where a cell is located, the lowest compression rate is used (that is to say the maximum resolution), while where no cell is located, the highest compression rate is used (that is to say the minimum resolution).
In a fourth example, a foundation model is used to segment all image regions of the microscope image. For example, “Segment Anything” could be used; in this respect, see: Kirillov, Alexander, et al.: “Segment Anything.” Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023. 2023. Then, by clicking on specific image regions, the user can select one or more structures or even structure types that are of interest in the respective application. In this way, the local structure information can be determined by the interaction of a user input with the prediction of the foundation model and the compression rate of the adaptive compression model can be regulated.
In summary, the following EXAMPLES, in particular, have been described above:
EXAMPLE 1. Computer-implemented method, comprising:
-
- obtaining image data of a microscope image depicting a plurality of structures,
- on the basis of the image data, determining structure information for the structures, wherein the structure information localizes at least some of the structures in the microscope image, and
- determining a compressed representation of the image data by applying an adaptive compression model to the image data,
- wherein the compression model adapts a compression rate for different image regions of the microscope image depending on the structure information.
EXAMPLE 2. Computer-implemented method according to EXAMPLE 1,
-
- wherein the structure information selectively localizes structures of interest, SOI,
- wherein the compression model compresses image regions of the microscope image which comprise the SOI less lossily than other regions of the microscope image which do not comprise the SOI, by adaptation of the compression rate.
EXAMPLE 3. Computer-implemented method according to EXAMPLE 1 or 2,
-
- wherein the structure information distinguishes between a plurality of structure types of the structures,
- wherein the microscope image depicts one or more corresponding structures for each structure type.
EXAMPLE 4. Computer-implemented method according to EXAMPLES 2 and 3,
-
- wherein the local structure information localizes one or more structures of a first structure type as SOI,
- wherein the local structure information does not localize one or more structures of a second structure type as SOI.
EXAMPLE 5. Computer-implemented method according to EXAMPLE 4,
-
- wherein the plurality of structure types comprise different cell types,
- wherein the structure information localizes cells of at least one cell type as SOI.
EXAMPLE 6. Computer-implemented method according to EXAMPLE 4 or 5,
-
- wherein the plurality of structure types comprise foreground structure types and background structure types,
- wherein the structure information localizes the foreground structures of the foreground structure types as SOI.
EXAMPLE 7. Computer-implemented method according to any of EXAMPLES 4 to 6,
-
- wherein the plurality of structure types comprise at least one out of contaminants or edge regions,
- wherein the structure information does not localize contaminant structures or edge region structures as SOI.
EXAMPLE 8. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the method furthermore comprises:
- obtaining context information concerning the microscope image, and
- on the basis of the context information, determining a prioritization between a plurality of structures localized by the structure information.
- wherein the method furthermore comprises:
EXAMPLE 9. Computer-implemented method according to EXAMPLE 8,
-
- wherein the method furthermore comprises:
- on the basis of the context information, determining a prioritization between a plurality of structure types,
- wherein the prioritization between the plurality of structures localized by the local structure information is determined on the basis of the prioritization between the plurality of structure types and an assignment of the plurality of structures to the structure types.
- wherein the method furthermore comprises:
EXAMPLE 10. Computer-implemented method according to EXAMPLE 8 or 9,
-
- wherein the compression model uses a lower compression rate for such image regions of the microscope image which depict structures of a higher-prioritized structure type,
- wherein the compression model uses a higher compression rate for such image regions of the microscope image which depict structures of a lower-prioritized structure type.
EXAMPLE 11. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the method furthermore comprises:
- obtaining (3010) context information concerning the microscope image,
- wherein at least one model for determining the structure information is selected on the basis of the context information.
- wherein the method furthermore comprises:
EXAMPLE 12. Computer-implemented method according to any of EXAMPLES 8 to 11,
-
- wherein the context information is obtained on the basis of an output of a classification model applied to the microscope image or a further image associated with the microscope image.
EXAMPLE 13. Computer-implemented method according to any of EXAMPLES 8 to 12,
-
- wherein the context information comprises metadata of a microscope, wherein the metadata are associated with the microscope image and specify image capture information for the microscope image.
EXAMPLE 14. Computer-implemented method according to any of EXAMPLES 8 to 13,
-
- wherein the context information is obtained on the basis of a user input.
EXAMPLE 15. Computer-implemented method according to EXAMPLE 14,
-
- wherein the user input comprises an attention map of the microscope image,
- wherein the attention map is determined by the user's processing of the microscope image in a graphical user interface.
EXAMPLE 16. Computer-implemented method according to any of EXAMPLES 8 to 14,
-
- wherein the context information is indicative of an image evaluation task to be applied to the microscope image.
EXAMPLE 17. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein a machine-learned module is used to adapt the compression rate on the basis of the structure information.
EXAMPLE 18. Computer-implemented method according to any of the preceding EXAMPLES, wherein the method furthermore comprises:
-
- performing a segmentation of at least some of the plurality of structures depicted by the microscope image, in order to obtain at least one segmentation mask for said some of the plurality of structures,
- wherein the structure information comprises the at least one segmentation mask.
EXAMPLE 19. Computer-implemented method according to EXAMPLE 18,
-
- wherein the segmentation is a semantic segmentation that effects a classification of different structures with respect to a plurality of structure types.
EXAMPLE 20. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the method furthermore comprises:
- performing the determination of a density map that localizes the plurality of structures in the microscope image,
- wherein the structure information comprises the density map.
- wherein the method furthermore comprises:
EXAMPLE 21. Computer-implemented method according to any of EXAMPLES 1 to 20,
-
- wherein determining the local structure information is performed before applying the adaptive compression model.
EXAMPLE 22. Computer-implemented method according to any of EXAMPLES 1 to 20,
-
- wherein the structure information is determined in each case for image regions to be compressed of the microscope image which are defined by the compression model.
EXAMPLE 23. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the adaptive compression model performs recursive decomposition of the microscope image into image regions,
- wherein the adaptive compression model determines a recursion depth of the recursive decomposition on the basis of the structure information, said recursion depth corresponding to the compression rate.
EXAMPLE 24. Computer-implemented method according to EXAMPLE 22 or 23,
-
- wherein the adaptive compression model, for a determination of whether or not a further recursion level of the recursive decomposition is performed, in each case triggers a corresponding image evaluation operation for determining a corresponding part of the structure information.
EXAMPLE 25. Computer-implemented method according to any of EXAMPLES 1 to 22,
-
- wherein the adaptive compression model performs a recursive fusion of image regions of the microscope image,
- wherein the adaptive compression model determines a recursion depth of the recursive fusion on the basis of the structure information, said recursion depth corresponding to the compression rate.
EXAMPLE 26. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the method furthermore comprises:
- selecting the adaptive compression model depending on the structure information.
- wherein the method furthermore comprises:
EXAMPLE 27. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the compression model determines a sparse representation of the microscope image with sampling points on a plurality of hierarchical resolution levels representing the image regions,
- wherein a resolution of the sampling points corresponds to the compression rate.
EXAMPLE 28. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the method furthermore comprises:
- determining one or more further local properties of the microscope image,
- wherein the compression model furthermore adapts the compression rate for the different image regions of the microscope image depending on said one or more further local properties.
- wherein the method furthermore comprises:
EXAMPLE 29. Computer-implemented method according to EXAMPLE 28,
-
- wherein the method furthermore comprises:
- allocating a weighting to each of said one or more further local properties and the structure information,
- wherein the compression model adapts the compression rate for the different image regions taking into account the weighting.
- wherein the method furthermore comprises:
EXAMPLE 30. Computer-implemented method according to EXAMPLE 28 or 29,
-
- wherein said one or more further local properties comprise image pixel statistics of image pixels of the microscope image.
EXAMPLE 31. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the compression model resets image pixel values in image regions to predefined values depending on the structure information.
EXAMPLE 32. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the image data are a further compressed representation of the image data.
EXAMPLE 33. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein the method furthermore comprises:
- storing the compressed representation of the image data in an image database,
- loading the compressed representation of the image data from the image database, and
- applying an image evaluation model for evaluating properties of at least some of the structures on the basis of the compressed representation of the image data.
- wherein the method furthermore comprises:
EXAMPLE 34. Computer-implemented method according to EXAMPLE 33,
-
- wherein the method furthermore comprises:
- on the basis of the image data: determining a noise level of the microscope image,
- storing an indicator indicative of the noise level in association with the compressed representation of the image data in the image database,
- loading the compressed representation of the image data and the indicator from the image database,
- generating a reconstructed representation of the image data on the basis of the compressed representation of the image data, and
- making the reconstructed representation of the image data noisy on the basis of the indicator.
- wherein the method furthermore comprises:
EXAMPLE 35. Computer-implemented method according to EXAMPLE 33 or 34,
-
- wherein the image evaluation model and a model for determining the structure information are modularly trained.
EXAMPLE 36. Computer-implemented method according to EXAMPLE 33 or 34,
-
- wherein the image evaluation model and a model for determining the structure information are trained end-to-end.
EXAMPLE 37. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein a model for determining the structure information is trained on the basis of an application-specific loss function.
EXAMPLE 38. Computer-implemented method according to any of the preceding EXAMPLES,
-
- wherein a machine-learned module of the compression model, which adapts the compression rate on the basis of the structure information, is trained on the basis of an application-specific loss function.
EXAMPLE 39. Computer-implemented method for training the machine-learned module according to a method according to EXAMPLE 17 or 38,
-
- wherein the method comprises:
- obtaining an output of an image evaluation model on the basis of a compressed representation of image data of the microscope image, wherein the output of the image evaluation model specifies properties of at least some of the structures, and
- on the basis of a comparison of the output of the image evaluation model with a ground truth, training the machine-learned module for determining the structure information.
- wherein the method comprises:
EXAMPLE 40. Computer-implemented method for training a model for determining the structure information for structures depicted by a microscope image according to a method according to any of the preceding EXAMPLES,
-
- wherein the method comprises:
- obtaining an output of an image evaluation model on the basis of a compressed representation of image data of the microscope image, wherein the output of the image evaluation model specifies properties of at least some of the structures, and
- on the basis of a comparison of the output of the image evaluation model with a ground truth, training the model for determining the structure information.
- wherein the method comprises:
EXAMPLE 41. Computer-implemented method according to EXAMPLE 40,
-
- wherein the method furthermore comprises:
- obtaining a further output of the image evaluation model or a reference image evaluation model on the basis of the image data of the microscope image, wherein the further output of the image evaluation model specifies the properties of said at least some of the structures, and
- determining the ground truth on the basis of the further output.
- wherein the method furthermore comprises:
EXAMPLE 42. Electronic data processing device comprising at least one processor unit and a memory, wherein the at least one processor unit is designed to load program code from the memory and to execute it, wherein the at least one processor unit is designed to execute a method according to any of the preceding EXAMPLES on the basis of executing the program code.
It goes without saying that the features of the embodiments and aspects of the invention described above can be combined with one another. In particular, the features can be used not only in the combinations described but also in other combinations or on their own, without departing from the field of the invention.
For example, an APR compression method, in particular, has been discussed above as an example of an adaptive compression model. However, other compression methods are also conceivable. For example, a JPEG compression method could be used, which permits a different number of JPEG coefficients for the different image regions depending on the importance of an image region or, put generally, depending on the local structure information. Yet another example concerns delta compression with locally varying levels of regularization, which is selected depending on the structure information. A further technique is to use dummy pixel values. For example, in image regions that do not have SOI or structures with sufficient high priority, the image pixel values can all be “zeroed”; the actual image information is thus discarded. In this way, a particularly high compression rate can then be achieved with the compression model.
Furthermore, techniques have been described above in which a compression rate of an adaptive compression model is adapted depending on local structure information. Alternatively or additionally, it would also be possible to change or select the compression model depending on local structure information. For example, neural codecs could be used, having for example a neural coding branch and a neural decoding branch. Such neural codecs can be trained using self-supervised or weakly supervised machine learning processes. In particular, reconstruction loss functions can be used for training. The quality of the neural codec depends on whether the latter is operated within or outside the distribution of the training samples (“out-of-distribution”). Therefore, such neural codecs can often be specialized for specific structure types. In the various variants described herein, it would be conceivable to select the appropriate neural codec for the different image regions on the basis of structure information that provides a classification for specific structure types. These different neural codecs can also be set in order to achieve different degrees of compression.
Furthermore, techniques have been described above in which image data of a microscope image are compressed by means of an adaptive compression model. However, the techniques described herein can also be used for other kinds of images in which structures of specific structure types occur. One example is satellite images that capture large regions of the Earth's surface or the atmosphere with high resolution. In medical imaging or radiology, too, ever greater amounts of data are being produced. One example is so-called whole-body scans, in which for example computed tomography recordings of the entire body are captured.
Claims
1. A computer-implemented method, comprising:
- obtaining image data of a microscope image depicting a plurality of structures,
- on the basis of the image data, determining structure information for the structures, wherein the structure information localizes at least some of the structures in the microscope image, and
- determining a compressed representation of the image data by applying an adaptive compression model to the image data,
- wherein the adaptive compression model adapts a compression rate for different image regions of the microscope image depending on the structure information.
2. The computer-implemented method according to claim 1,
- wherein the structure information selectively localizes structures of interest, SOI,
- wherein the compression model compresses image regions of the microscope image which comprise the SOI at a reduced loss than other regions of the microscope image which do not comprise the SOI, by adaptation of the compression rate.
3. The computer-implemented method according to claim 1,
- wherein the structure information distinguishes between a plurality of structure types of the structures,
- wherein the microscope image depicts one or more corresponding structures for each of the structure types.
4. The computer-implemented method according to claim 1,
- wherein the method furthermore comprises: obtaining context information concerning the microscope image, and on the basis of the context information, determining a prioritization between a plurality of the at least some of the structures localized by the structure information.
5. The computer-implemented method according to claim 4,
- wherein the method furthermore comprises: on the basis of the context information, determining a prioritization between a plurality of structure types,
- wherein the prioritization between the plurality of the at least some of the structures localized by the structure information is determined on the basis of the prioritization between the plurality of structure types and an assignment of the plurality of the at least some of the structures localized by the structure information to the structure types.
6. The computer-implemented method according to claim 4,
- wherein the compression model uses a lower compression rate for such image regions of the microscope image which depict structures of a higher-prioritized structure type,
- wherein the compression model uses a higher compression rate for such image regions of the microscope image which depict structures of a lower-prioritized structure type.
7. The computer-implemented method according to claim 1, wherein the method furthermore comprises:
- obtaining context information concerning the microscope image,
- wherein at least one model for determining the structure information is selected on the basis of the context information.
8. The computer-implemented method according to claim 4,
- wherein the context information is obtained on the basis of an output of a classification model applied to the microscope image or a further image associated with the microscope image.
9. The computer-implemented method according to claim 4,
- wherein the context information comprises metadata of a microscope, wherein the metadata are associated with the microscope image and specify image capture information for the microscope image.
10. The computer-implemented method according to claim 4,
- wherein the context information is obtained on the basis of a user input,
- wherein the user input comprises an attention map of the microscope image,
- wherein the attention map is determined by the user's processing of the microscope image in a graphical user interface.
11. The computer-implemented method according to claim 4,
- wherein the context information is indicative of an image evaluation task to be applied to the microscope image.
12. The computer-implemented method according to claim 1, wherein the method furthermore comprises:
- performing a segmentation of at least some of the plurality of structures depicted by the microscope image, in order to obtain at least one segmentation mask for said some of the plurality of structures depicted by the microscope image,
- wherein the structure information comprises the at least one segmentation mask.
13. The computer-implemented method according to claim 1,
- wherein the determining of the structure information is performed before applying the adaptive compression model.
14. The computer-implemented method according to claim 1,
- wherein the structure information is determined in each case for image regions to be compressed of the microscope image which are defined by the compression model.
15. The computer-implemented method according to claim 1,
- wherein the adaptive compression model performs recursive decomposition of the microscope image into image regions,
- wherein the adaptive compression model determines a recursion depth of the recursive decomposition on the basis of the structure information, said recursion depth corresponding to the compression rate.
16. The computer-implemented method according to claim 1,
- wherein the compression model determines a sparse representation of the microscope image with sampling points on a plurality of hierarchical resolution levels representing the image regions,
- wherein a resolution of the sampling points corresponds to the compression rate.
17. The computer-implemented method according to claim 1,
- wherein a model for determining the structure information is trained on the basis of an application-specific loss function.
18. The computer-implemented method according to claim 1,
- wherein a machine-learned module of the compression model, which adapts the compression rate on the basis of the structure information, is trained on the basis of an application-specific loss function.
19. The computer-implemented method for training the machine-learned module according to a method according to claim 18,
- wherein the method comprises: obtaining an output of an image evaluation model on the basis of a compressed representation of the image data of the microscope image, wherein the output of the image evaluation model specifies properties of one or more of the structures, and on the basis of a comparison of the output of the image evaluation model with a ground truth, training the machine-learned module for determining the structure information.
20. The computer-implemented method for training a model for determining the structure information for structures depicted by a microscope image according to a method according to claim 1,
- wherein the method comprises: obtaining an output of an image evaluation model on the basis of a compressed representation of the image data of the microscope image, wherein the output of the image evaluation model specifies properties of one or more of the structures, and on the basis of a comparison of the output of the image evaluation model with a ground truth, training the model for determining the structure information.
21. The computer-implemented method according to claim 20,
- wherein the method furthermore comprises: obtaining a further output of the image evaluation model or a reference image evaluation model on the basis of the image data of the microscope image, wherein the further output of the image evaluation model specifies the properties of the one or more of the structures, and determining the ground truth on the basis of the further output.
Type: Application
Filed: May 26, 2026
Publication Date: Nov 26, 2026
Applicant: Carl Zeiss Microscopy GmbH (Jena)
Inventors: Manuel AMTHOR (Jena), Daniel HAASE (Zöllnitz)
Application Number: 19/687,592