Method, system, and computer program for processing images of optical imaging device, and method, system, and computer program for training one or more machine learning models

Machine learning models and large-scale language models are used to map and predict molecular embeddings, addressing the inefficiencies in identifying fluorescent tags for microscopy, enabling automated and cost-effective selection and validation of suitable candidates.

JP2024144380APending Publication Date: 2024-10-11LEICA MICROSYSTEMS CMS GMBH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
JP2024054220
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-03-28
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing methods for identifying suitable fluorescent tags or labels for biological microscopy are inefficient and exhaustive, often requiring large-scale screening of molecules, which is not feasible in clinical settings, limiting the discovery of non-toxic tags with high quantum yields.

Method used

A method using machine learning models to map chemical properties of candidate molecules into a semantic space, enabling automated verification and de novo selection of molecules by computing embeddings based on their effects on biological samples, and utilizing large-scale language models to generate and predict suitable tags.

Benefits of technology

Facilitates the efficient identification of candidate molecules with desired properties, reducing the need for costly experimental screening and enhancing the discovery of tags that can be validated computationally, thereby improving the selection process for fluorescent tags in microscopy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024144380000001_ABST
    Figure 2024144380000001_ABST
Patent Text Reader

Abstract

To provide a method, a system, and a computer program for predicting an embedding of a candidate molecule that can be a tag from an image of an optical imaging device to select the candidate molecule.SOLUTION: A method for processing images of an optical imaging device comprises: acquiring embeddings of a plurality of candidate molecules (110); acquiring, for each candidate molecule, one or more images (140); inputting an image to a machine learning model to generate a predicted embedding for each candidate molecule (160); comparing the embeddings of the candidate molecules with the predicted embeddings of the candidate molecules (170); and selecting one or more candidate molecules on the basis of the comparison (180). The image displays a visual representation of a target property presented by the candidate molecule in a biological sample.SELECTED DRAWING: Figure 1a
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The examples relate to methods, systems and computer programs for processing images of an optical imaging device, and methods, systems and computer programs for training one or more machine learning models. [Background technology]

[0002] In the field of life science microscopy, there is interest in having highly specific labels or tags, that is, molecules that specifically attach to particular structures in a specimen to create contrast.

[0003] For example, such labels or tags may be low molecular weight chemicals carrying fluorophores, which are residues or portions of molecules that have electronic energy transitions of molecular orbitals in the visible light spectrum and that readily undergo reversible transitions when excited by light. Typically, these fluorophores (for simplicity, the portions referred to are referred to in pulse-prototype fashion instead of the whole molecule) are covalently attached to immunoglobulins (i.e., antibodies) or selectively attached, for example, to cellular structures. A common trade name for such labels / tags is DAPI (4',6-diamidino-2-phenylindole), which is used to label DNA (deoxyribonucleic acid). Fluorescent substances can also be attached to oligonucleotides, where the oligonucleotides hybridize specifically to certain regions of DNA, for example to label gene loci, a technique known as fluorescence in situ hybridization (FISH).

[0004] Alternatively, such labels or tags can be polypeptides (i.e., proteins) that spontaneously fold and undergo chemical reactions with amino acid side chains that effectively create a fluorescent substance inside the folded protein. An entire class of such fluorescent proteins exists, which are typically introduced into transgenic organisms by molecular biology (e.g., DNA fusion techniques) and then expressed under an endogenous promoter or overexpressed under an exogenous promoter. This creates an artificial fusion protein carrying the protein of interest and the fluorescent protein.

[0005] Alternatively, such labels or tags may be low to medium molecular weight compounds that are attached to short peptides engineered as fusions between the protein of interest and the "tagging" peptide. The peptide itself is not fluorescent per se, but certain fluorophores can specifically bind to the peptide to allow visualization of the internal structure of the specimen to which the peptide is attached or localized.

[0006] All of the above are typically identified by forward engineering, which is inherently difficult, or, more commonly, by generating a large number of candidate molecules and then screening these to select for suitable properties. In the context of (biological) microscopy, this may result in the generation of a large number of chemicals, polypeptides, or polynucleotides ("libraries") that are then screened by staining or expressing them in cell cultures, tissues, or the like. In an emerging field of clinical relevance, fluorescent markers are introduced into patients during surgery. In this case, such screening is often not feasible, which may limit the potential chemical space that can be covered to discover new non-toxic tags with high quantum yields for generating contrast.

[0007] It would be desirable to provide improved concepts for identifying molecules that can be used as labels or tags. Summary of the Invention [Means for solving the problem]

[0008] This need is addressed by the subject matter of the independent claims.

[0009] Various examples of the present disclosure are based on the discovery that chemical properties of candidate molecules can be mapped into semantic space by computing embeddings of the molecules that indicate the position of the candidate molecules in the semantic space. For example, a machine learning model can be used to compute embeddings based on a tokenized representation of the molecule, thereby mapping the molecule into the semantic space. At the same time, knowledge of existing molecules, such as molecules already used as tags / labels, in particular images, can be used to train the machine learning model to predict embeddings of molecules based on their effect on biological samples. This allows the creation of a molecular evaluation pipeline in which a molecule with a known embedding is applied to a biological sample, one or more images of the biological sample are taken (along with images displaying the target property exhibited by the molecule), and a machine learning model is used to predict the embedding of the molecule from the one or more images. If the known embedding and the predicted embedding are sufficiently similar, it indicates that the molecule is behaving as expected with respect to the target property. This molecular evaluation pipeline can now be applied to candidate molecules that are expected to behave similarly to the known tags / labels. These candidate molecules can be determined, for example, by selecting molecules that have embeddings similar to those of molecules that are known labels or tags, which not only allows validation of the target properties of the candidate molecules to be performed in a largely automated manner, but also allows de novo selection of candidate molecules to be performed to identify candidates of interest.

[0010] Some aspects of the present disclosure relate to a method for processing images of an optical imaging device. The method includes obtaining embeddings of a plurality of candidate molecules. The method includes obtaining one or more images of an optical imaging device for each candidate molecule. The one or more images display a visual representation of a target property exhibited by the candidate molecule in a biological sample. The method includes processing the one or more images and / or information derived from the one or more images to generate a predicted embedding of the candidate molecule for each candidate molecule using a machine learning model. The machine learning model is trained to output a predicted embedding for an input including the one or more images and / or information derived from the one or more images. The method includes comparing the embedding of the candidate molecule to the predicted embedding of the candidate molecule. The method includes selecting one or more candidate molecules based on the comparison. These techniques can be used to select candidate molecules that behave as expected.

[0011] Generally, different target properties can be verified using the proposed technique. Preferably, these target properties should be observable in one or more images or derivable from one or more images. For example, the target property can be one of spatial distribution (e.g., where is the evidence of the presence of the molecule or payload in one or more images), spatiotemporal distribution (e.g., how the distribution of the molecule or payload in one or more images evolves over time), intensity distribution (e.g., how intensive the presence of the molecule or payload in one or more images is, e.g., over space and / or time), and cell fate (e.g., cell fate that may be caused or affected by the molecule). The aforementioned properties can be observable in one or more images or derivable from one or more images.

[0012] For example, a candidate molecule may be a molecule for transporting or retaining one or more payloads to a target region. Such molecules are useful as labels / tags and usually also have an observable effect in one or more images.

[0013] In some examples, the one or more payloads include fluorescent substances. Additionally or alternatively, the one or more payloads include one or more of agents for affecting gene expression, agents for binding to receptors or enzymes as ligands, agents that function as allosteric regulators of enzymes, and agents that act antagonistically to obtain binding sites as antagonists. These types of molecules usually have an observable effect in one or more images.

[0014] If the target property of the candidate molecule is known, the optical imaging device or the post-processing workflow applied to the images provided by the optical imaging device can be adjusted so that the target property is observable in or derivable from the respective one or more images. Thus, the method can include determining one or more imaging parameters based on the target property of the candidate molecule and acquiring one or more images based on the determined one or more imaging parameters. These one or more imaging parameters can be used, for example, for parameterization of the optical imaging device (e.g., exposure, illumination, etc.) or for post-processing of one or more images.

[0015] Furthermore, the operator may be assisted not only with the task of generating appropriate images, but also with the task of preparing the sample such that the target property is observable or derivable from the one or more images. For example, the method may include determining, for each candidate molecule, one or more parameters related to sample preparation for preparing a sample having the respective candidate molecule, and outputting the one or more parameters related to sample preparation. These one or more parameters may assist the operator in performing the sample preparation or may be usable to parameterize a sample preparation machine.

[0016] In many cases, the effect of a molecule on a biological sample is not static, but changes over time. Thus, multiple images taken at multiple time points can be used to track the target property over time. Thus, a machine learning model can be trained to process a collection of images representing a biological sample at two or more time points and output the predicted embedding of a candidate molecule. This is particularly useful for the "spatiotemporal distribution", "cell fate" and "intensity distribution" of the target property.

[0017] As outlined above, in some cases, instead of (or in addition to) processing one or more images with a machine learning model, one or more images can be preprocessed to derive information from one or more images. For example, the method may include preprocessing one or more images with an image processing workflow to generate information derived from one or more images. For example, the information derived from one or more images may include one or more of an estimated spatial distribution of the molecule or payload, an estimated spatiotemporal distribution of the molecule or payload, an estimated intensity distribution of the molecule or payload, and a cell fate of at least one cell affected by the molecule or payload. For example, machine learning-based approaches can be used to calculate the respective distributions (e.g., using image segmentation), to calculate intensity distributions (e.g., by calculating an intensity map), or to calculate cell fate (e.g., using image classification).

[0018] In the proposed concept, one of the components used is a machine learning model used to predict embeddings of candidate molecules. In some examples, this model can be trained (or improved) as part of the proposed method. For example, the method can include training a machine learning model using supervised learning and a set of training data to output predicted embeddings of candidate molecules based on one or more images or information derived from one or more images. By training the machine learning model, a machine learning model can be created for the particular use case at hand.

[0019] In each of the previous examples, the focus of the method is to validate candidate molecules. However, in some cases, the method may include proposing new candidate molecules, which are then validated using the method of the present invention. For example, the method may include using a second machine learning model to generate embeddings of a plurality of molecules, and selecting a plurality of candidate molecules and corresponding embeddings from the embeddings of a plurality of molecules according to a selection criterion. This can automate the pre-selection of candidate molecules, which are then validated using the above examples.

[0020] Different approaches can be used to preselect suitable candidates. For example, as outlined above, embeddings can be used to project the chemical properties of molecules into semantic space. It has been found that molecules that are similar to each other in semantic space also have similar chemical properties, for example as tags or labels. Therefore, molecules that are similar to molecules with desired properties (e.g., can be used as tags / labels) can be preselected as candidate molecules based on the similarity of the embeddings of these molecules. Thus, the method can include comparing the embedding of a molecule with one or more embeddings of one or more molecules with desired qualities for the target property, and selecting multiple candidate molecules and corresponding embeddings based on the comparison.

[0021] Alternatively or additionally, the second machine learning model can output not only the embedding of the molecule, but also an output indicating the quality of the molecule with respect to the target property, which can be used to preselect candidate molecules with desired quality. Thus, the second machine learning model can have an output indicating the quality of the molecule with respect to the target property. For example, selecting a plurality of candidate molecules and corresponding embeddings can be based on the output indicating the quality of the molecule with respect to the target property. For example, the output indicating the quality of the molecule can be the output of a classifier or regressor included in the second machine learning model. In this case, the comparison with the target quality as presented by known molecules can be omitted, which can reduce the effort for preselecting candidate molecules. Furthermore, candidate molecules that are not similar to known molecules with desired quality can be identified.

[0022] In some cases, the second machine learning model can be used not only to generate embeddings, but also to generate molecular embeddings de novo. For example, the second machine learning model can be used to autoregressively generate embeddings by selecting one or more additional tokens representing one or more additional parts of the molecule based on a starter token representing a portion of the molecule, and generating each embedding by combining each starter token with the corresponding one or more additional tokens. Thus, the second machine learning model can be used to "autocomplete" molecules (or even the tokens that make up the molecule), similar to techniques used for text generation from large language models.

[0023] For example, the second machine learning model can be a large-scale language model (LLM) that has been trained on a corpus of tokenized representations of different molecules. The (large-scale) language model can be trained using a denoised target and / or the (large-scale) language model can be trained to predict one or more additional tokens given one or more starter tokens. Thus, molecules (or rather the tokens that compose the molecules) can be generated using techniques similar to those used for text generation from large-scale language models. For example, the second machine learning model can be trained in this way as part of the proposed method. In other words, the method can include training the second machine learning model using a corpus of tokenized representations of different molecules, the training being performed using a denoised target and / or the second machine learning model being trained to predict one or more additional tokens given one or more starter tokens. This allows for a (second) machine learning model that can be used to generate arbitrary, but viable, molecules based on a corpus of known molecules.

[0024] As outlined above, the second machine learning model can (also) be used to generate an embedding from another representation of the molecule, such as a tokenized representation of the molecule. For example, the second machine learning model can be trained to output an embedding of a molecule based on an input including a representation of at least a portion of the molecule.

[0025] Some aspects of the present disclosure relate to a (second) method for training a machine learning model. The (second) method includes obtaining a set of training data. The set of training data includes a set of multiple training samples. Each training sample includes as training input data: a) one or more images displaying a visual representation of a target property exhibited by a candidate molecule in a biological sample, or b) information derived from the one or more images and an embedding of the molecule as a desired training output. The (second) method includes training a machine learning model using supervised learning and the set of training data to output a predicted embedding of the candidate molecule based on the one or more images or information derived from the one or more images. As already outlined in relation to the (first) method above, training the machine learning model can create a machine learning model for the specific use case at hand to assist in validating and selecting candidate molecules.

[0026] For example, the (second) method may include generating at least a portion of a set of training data. For example, the set of training data may be generated by generating a set of one or more images displaying a visual representation of a target property exhibited by a molecule in a biological sample, and generating a corresponding embedding for the molecule. For example, the set of training data may include a set of one or more images, or a set of information derived from the set of one or more images, and a corresponding embedding for the molecule. This may be useful for training a machine learning model with molecules known to have desired qualities, which may improve the accuracy of the machine learning model for similar molecules.

[0027] Alternatively or additionally, the (second) method may include generating at least a portion of the training data set by obtaining a set of one or more images from a biological database that display visual representations of target properties exhibited by molecules in a biological sample and generating corresponding embeddings for the molecules. For example, the training data set may include a set of one or more images, or a set of information derived from the set of one or more images, and corresponding embeddings for the molecules. This may be useful for automatically generating training data that covers a wide range of molecules.

[0028] Alternatively or additionally, the (second) method may include generating a portion of the training data set by using a generative machine learning model to generate a set of one or more generated images displaying visual representations of target properties exhibited by molecules in a biological sample and generating corresponding embeddings for the molecules. For example, the training data set may include a set of one or more generated images, or a set of information derived from the set of one or more generated images, and corresponding embeddings for the molecules. For example, this portion of the training data set may be generated using data augmentation techniques.

[0029] Another aspect of the present disclosure relates to a system including one or more processors and one or more storage devices, the system being configured to perform at least one of the methods described above.

[0030] One aspect of the present disclosure relates to a computer program having a program code for performing at least one of the above methods when executed on a processor.

[0031] Some examples of apparatus and / or methods are described below, by way of example only, with reference to the accompanying drawings, in which: [Brief description of the drawings]

[0032] [Figure 1a] 5A-5C are flow charts of example methods for processing images of an optical imaging device. [Figure 1b] 5A-5C are flow charts of example methods for processing images of an optical imaging device. [Diagram 2] FIG. 1 shows the overall flow of an assay for validating candidate molecules, such as potential tags, with optional fine-tuning. [Diagram 3] 1 is a flowchart of an example of a method for training a machine learning model. [Figure 4] 1 is a flow chart of an example of training an image recognition model for automated validation of tag candidates in an assay. [Diagram 5] 1 is a flow chart of an example of a method for selecting candidate molecules. [Figure 6] 1 is a flowchart of an example of a flow for training a large language model on a corpus with sequence data. [Figure 7] FIG. 1 is a flowchart of an example of a flow for autoregressive de novo generation of new tag sequences with in silico selection of suitable candidates. [Figure 8] 1 is a flowchart of an example of a flow for fine-tuning prior to autoregressive de novo generation using classification or regression targets. [Figure 9] 1 is a flowchart of an example of a flow for scoring candidate molecules, such as tag candidates, within a potential embedding space. [Figure 10] 1 is a schematic diagram of an example of a system for implementing one of the methods described herein. [Figure 11] 1 is a schematic diagram of an example of a system including an optical imaging device and a computer system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0033] Various examples will now be described more fully with reference to the accompanying drawings, in which several examples are shown and in which line thicknesses, layer thicknesses and / or area sizes may be exaggerated for clarity.

[0034] Below, some definitions are provided that may be applicable to the concepts described in this disclosure.

[0035] As used herein, a tag can be any type of protein / polypeptide, oligonucleotide / polynucleotide, chemical (including carbohydrates, lipids), or drug.

[0036] A locus can be defined as follows: the tag can be localized to a multiprotein complex, an organelle, a cell, an organoid, a tissue, and an organ. There is often a partial relationship between the above terms in the order of appearance. The term locus (L) can be used as a collective term for the multiprotein complex, organelle, cell, organoid, tissue, or organ to which the tag is localized.

[0037] Payload Y can be defined as follows: The (main) role of the tag in the context of this disclosure is to carry a fluorescent substance or a sequence that can be labeled by a fluorescent substance via a chemical bond or association (i.e., covalent bond, coordinate bond, electrostatic interaction, nucleotide hybridization, or protein-protein and protein-ligand association). In addition to visualizing the locus, the tag can be bound or associated with a molecule that has an alternative function, such as acting as a drug, regulator, inhibitor, activator, affecting gene expression, or modifying the binding properties of another molecule. This alternative molecule is called the payload. This alternative molecule can be covalently bound to the tag or associated with the tag (and thus can be the same sequence as predicted by the present invention).

[0038] A sequence, as used herein, is a representation of a polypeptide, polynucleotide, or chemical. A polypeptide is determined by its primary structure, i.e., the amino acid sequence. Similarly, a polynucleotide is represented as a sequence of nucleotides. For chemicals, there are IUPAC-compliant textual representations such as SMILES, see D. Weininger, “SMILES, a chemical language and information system. 1. Introduction to methodology and encoding rules,” J. Chem. Inf. Comput. Sci., vol. 28, no. 1, pp. 31-36, Feb. 1988, doi: 10.1021 / ci00057a005. Using such representations, molecules (e.g., tags or payloads) can be represented as strings, which allows for the generation / discovery of dense representations using large language models.

[0039] Cell fate (F) can be defined as follows: cells can proliferate (i.e., undergo mitosis) or die (by necrosis in tissues, or apoptosis (controlled cell death), or unspecified cell death at the cellular level). Other cell fates include migratory and static. Cell fates can be derived from the time-resolved intensity distribution D(r) by identifying objects of interest in D(r) when each object instance is known, and / or by following individual objects, as in the case of single particle tracking (objects can be mobile, stationary, splittable, merged), and / or (optionally) by performing statistical analysis of loci and movement patterns (e.g., free diffusion, directed movement, constrained movement) as well as ensemble statistics.

[0040] The distribution D(r) is a spatiotemporal map of intensities proportional to the molecular concentrations in the imaged medium (cell, organelle, tissue). The vector r concatenates the three spatial dimensions with time for simplicity. Thus, D(r) represents a probability map of encountering a particular entity E at position x ("at r") at time t, proportional to the concentration of E at x. x is a function of R n ,n∈{2,3}, where n can include spatial coordinates from 2 to 3. D can depend on additional dimensions available to the imaging device, such as channel (emission wavelength or window) coordinates, excitation wavelength, fluorescence lifetime and derivative, vibrational spectral properties (e.g., wavenumber), and other spatially resolvable properties such as multiphoton excited fluorescence, second or third harmonic, polarization, or other physical properties of the electromagnetic radiation recorded by the imaging device.

[0041] Any observable, such as a distribution D, may depend on a joint condition with more than one variable: one or more conditions, one or more relations R, and the existence of one or more entities E. Thus, P(D p |(E1;R;E2,K1,K2,···,K n ) may exist, in which case the distribution of e.g. protein E2 may be determined by the interaction of chemical E1 with E2 (its activator, etc.) and certain culture conditions K 1,···,n This is observed taking into account the relationship between the temperature, the presence of E1 in the culture vessel at a certain concentration, etc.

[0042] A DNN is a deep neural network that may include any algorithm such as MLP (Multilayer Perceptron), CNN (Convolutional Neural Network), RNN (Recurrent Neural Network), or Transformer (a neural network primarily based on the Attention mechanism).

[0043] Fine-tuning is a form of training of a deep learning model during which only a few model parameters are varied, while other model parameters are either kept fixed or trained using a much (order of magnitude) smaller learning rate.

[0044] An image is, for example, a digital image with dimensions XY (i.e., two lateral dimensions X and Y), XYZ (i.e., two lateral dimensions X+Y plus a depth dimension Z), XY+T (XY+time), XYZ+C (XYZ+channels), XYZ+T (XYZ+time), XYZCT (XYZ+channels+time), XYZCT+other modalities, or in other words, a 2D or nD digital image (tensor), where n∈N.

[0045] Various examples of the present disclosure relate to concepts (e.g., methods, systems and / or computer programs) for generating chemicals or macromolecules that specifically target organelles in cells, organoids, or cells within tissues.

[0046] 1a and 1b show flow charts of examples of methods for processing images of an optical imaging device 240 (as shown in FIG. 2). The method includes obtaining 110 embeddings 215 (shown in FIG. 2) of a plurality of candidate molecules. The method includes obtaining 140 one or more images 250 (shown in FIG. 2) of the optical imaging device for each candidate molecule. The one or more images display a visual representation of a target property exhibited by the candidate molecule in a biological sample 230 (shown in FIG. 2). The method includes processing 160 the one or more images and / or information derived from the one or more images to generate, for each candidate molecule, a predicted embedding 270 (shown in FIG. 2) of the candidate molecule using a machine learning model. The machine learning model is trained to output a predicted embedding for an input including one or more images and / or information derived from the one or more images. The method includes comparing 170 the embeddings 215 of the candidate molecules to the predicted embeddings 270 of the candidate molecules and selecting 180 one or more candidate molecules based on the comparison. For example, the method can be implemented by a computer system, such as the system 1010 introduced in connection with FIG. 10 and / or the computer system 1120 introduced in connection with FIG.

[0047] The present disclosure relates to biomedical imaging, and in particular to the validation and design of chemical tags. In this context, a tag is a chemical or macromolecule (polypeptide, polynucleotide, etc.) that specifically targets an organelle or another biochemically definable structure. The proposed concept relates to both the validation of such tags (described in conjunction with Figs. 1a-4) and the design of such tags (described primarily in conjunction with Figs. 5-9). In the following, reference is made to the design of such tags, but the design of tags is considered to be an optional aspect of the method of Figs. 1a and 1b. The design of such tags is described in conjunction with Figs. 5-9. In some examples, both the design and validation of tags are part of the method. In this case, one or more operations of the method of Fig. 5 can be included in the method of Figs. 1a and / or 1b. In some examples, even the training of the (second) machine learning model used to generate the tags can be part of the method of Figs. 1a and / or 1b.

[0048] In some examples, training of a machine learning model (used to predict the embeddings) may be part of the method of Figures 1a and / or 1b, in which case one or more operations of the method of Figure 3 may be included in the method of Figures 1a and / or 1b.

[0049] All of the above aspects are described below in conjunction with one another, however both the generation of the candidate molecules (and their embeddings) and the training of the machine learning model (and the second machine learning model) are optional with respect to the method of Figure 1a and / or Figure 1b.

[0050] The proposed concept as shown in relation to Figs. 1a-2 is based on the discovery that (chemical) molecules can be represented as words in a semantic space, such as a semantic protein space or a semantic nucleotide space, or in a chemical space. A semantic space is a mathematical structure used to represent the meaning of words by measuring their relationship to each other. A semantic space maps words onto a space where each word is represented by a vector, which captures the meaning of each word based on their similarity or relativeity to other words in the space. Semantic spaces are commonly used in natural language processing and computational linguistics to analyze and understand the meaning of words and to perform tasks such as text classification, information retrieval and machine translation. In the present case, the semantic space is not used to represent words in the usual sense, but to represent a string representation of the respective molecule. For example, the above-mentioned string representation of molecules may be based on the SMILE notation of molecules. The SMILE notation, which stands for "Simplified Molecular Input Line Entry System" of molecules, is a technique for representing the structure of molecules using strings. Each character in the string represents an atom or bond in the molecule. SMILE notation is commonly used in chemical databases and software applications to represent and search molecular structures.

[0051] In this context, the semantic space may be a semantic protein space, a semantic nucleotide space, or a semantic chemical space, and the molecules are represented in each semantic space based on the string representation of each molecule. To project each molecule into the semantic space, an embedding is created from the string representation of each molecule. For example, the molecules can be encoded as tokens, involving at the chemical level (by subdividing the chemical into individual nucleotides / amino acids and chemical residues) or at the string level (by subdividing the string representation of the molecule into substrings, for example using byte pair encoding or WordPiece tokenization). For each token, a corresponding embedding in the semantic space can be calculated, for example using a second machine learning model, which is introduced in more detail below. To obtain an embedding of the molecule, the embeddings of the tokens can be pooled, for example using global max pooling or global average pooling.

[0052] In the proposed concept, the aforementioned embeddings are used for different purposes. With respect to the method of Fig. 1a and Fig. 1b, the embeddings are used for a comparison loop in which embeddings are predicted based on the impact that candidate molecules have on biological samples, for example with respect to gene loci or cell fate. Care can be taken to ensure that the embedding space, i.e. the semantic space, is contiguous, so that molecules with similar properties correspond to nearby embeddings. Contiguousness is encouraged by tokenizing the string representation using methods such as BPE (byte pair encoding) and WordPiece, designed in this way. Contiguousness is also encouraged by masked language modeling, which promotes learning context (for classification) by passing the output through linear (dense) layers, and softmax nonlinearity, which treats the predictions as probability distributions.

[0053] The method of FIG. 1a and FIG. 1b begins by obtaining 110 embeddings of a plurality of candidate molecules. In a simple implementation, the embeddings can be obtained by retrieving predefined embeddings of the candidate molecules from a memory or storage, or by computing embeddings from string representations of the candidate molecules. For example, a large-scale language model (LLM) corresponding to the second machine learning model described above can be used to compute embeddings of string representations of the candidate molecules, e.g., using the tokenization described above. For example, as described in more detail in connection with FIG. 5-9, if a tokenized representation of the molecule is fed to the large-scale language model (LLM), the output of the last hidden layer of the Transformer block of the large-scale language model (LLM) can be used as the embedding. Thus, the second machine learning model can be trained to output an embedding of the molecule based on an input including a representation of at least a portion of the molecule, e.g., based on an input including one or more tokens of the tokenized representation of the molecule.

[0054] However, in some examples, the proposed concept is not limited to computing embeddings for a given set of candidate molecules, but rather to (pre)selecting the candidate molecules themselves. In particular, some examples of the present disclosure relate to procedures and embodiments that use multiple deep learning models to significantly accelerate in silico (i.e., computationally, as opposed to in vivo / in vitro, meaning experimentally) screening of large candidate libraries for fluorescent tags. The latter aspect of the method of Fig. 1a and Fig. 1b, i.e., validation of candidate molecules, can then be applied to candidates generated using the aforementioned LLM. Using the method of Fig. 1a and Fig. 1b, imaging equipment such as a microscope can be used to test multiple in silico-validated candidate molecules, which in the following will also be referred to as tag candidates, as will become clear below.

[0055] To explain the generation of candidate molecules to be included in the plurality of candidate molecules, a brief digression will be made regarding the type of molecules at the center of the different examples of the present disclosure. As outlined above, the different examples of the present disclosure relate to the design and validation of tags. A tag is a chemical or macromolecule (polypeptide, polynucleotide, etc.) that specifically targets an organelle or another biochemically definable structure. Such tags can be used for different purposes. Different examples search for tags that can be used to affect a target outcome at a target location of a sample. For example, a first use may be to bind these tags to fluorescent substances as contrast agents in optical microcopy. A second potential use is to bind tags to chemicals that can function as drugs or drug delivery systems. In both cases, the tag is used to transport or retain a payload, such as a fluorescent substance or a drug, to a target location of a sample. Thus, a candidate molecule may be a molecule for transporting or retaining one or more payloads to a target area. As outlined above, one or more payloads may include fluorescent substances. Additionally or alternatively, the one or more payloads may include one or more of an agent for affecting gene expression, an agent for binding to a receptor or enzyme as a ligand, an agent that functions as an allosteric regulator of the enzyme, and an agent that acts antagonistically to obtain a binding site as an antagonist.

[0056] Various examples of the present disclosure can generate "tags" with any or a combination of the following properties. For example, the tag can include one or more low molecular weight chemicals or fluorescent substances that selectively or specifically bind directly to a target structure in the specimen. Alternatively or additionally, the tag can include one or more low molecular weight fluorescent substances that can be covalently attached to a delivery system such as an antibody or FISH probe. Alternatively or additionally, the tag can include at least one polypeptide that can be folded into a fluorescent protein and engineered to be expressed in a biological specimen. Alternatively or additionally, the tag can include one or more low to medium molecular weight fluorescent substances that specifically bind to peptides or nucleotides within cells. Both fluorescent substances and target sequences can be predicted and tested using the proposed concepts. Alternatively or additionally, the tag can include one or more adapter molecules whose sole purpose is to transport and specifically attach another molecule that can function as a fluorescent substance or a drug to a target in the specimen. It is clear that all of the above tags fit the above description of delivering or retaining a payload, such as a fluorescent substance or drug, to a target area.

[0057] Thus, one embodiment of the proposed concept can be used to predict suitable tags that will transport (or retain) the fluorophore to a target region, i.e., at a specific locus, where these suitable tags can be detected by a bioimaging device (e.g., a fluorescent microscope). In this sense, the tag may be considered as a shuttle that transports the fluorophore or other "payload" to the target. The tag / shuttle is effectively a chemical adaptor between the cellular target molecule and the fluorophore / payload. Due to the structure of the tag / shuttle, the cell targets the tag / shuttle to a specific compartment (e.g., using protein targeting). A secondary aim of this embodiment of the proposed concept can be to (optionally) transport a molecule (payload) alternatively or additionally to the fluorophore. This secondary payload can function as a drug, i.e., affect gene expression (e.g., as an upregulator, downregulator), bind to a receptor or enzyme as a ligand, function as an allosteric regulator of the enzyme, or act antagonistically for the binding site as an antagonist. The main idea behind secondary payloads is to manipulate live cells, organoids, or tissues in biological experiments to study metabolism, signal transduction, cell biology, or neurobiology using bioimaging systems (e.g., microscopes). Thus, payloads can be expected to serve as research tools that can be added as commercially available consumables to cell cultures or other specimens. In principle, this concept is also applicable for pharmaceutical applications.

[0058] The aim in discovering suitable tags is to identify molecules that have an effect on a desired outcome in a target region. Thus, the suitability of a molecule for use as a tag depends on whether the tag has a desired outcome in the target region. This allows the methodology used herein, in which images are used to verify the suitability of the tag. By taking images of a biological sample, information can be collected about how the molecule has an effect on the biological sample. In particular, the images can display how the molecule and / or payload is distributed across the biological sample, or what effect on the fate of a cell is caused by the distribution of the molecule or payload. Thus, the target characteristic observed herein can be one of spatial distribution (e.g., where is the evidence of the presence of the molecule or payload in one or more images), spatiotemporal distribution (e.g., how the distribution of the molecule or payload in one or more images evolves over time), intensity distribution (e.g., how intensive the presence of the molecule or payload in one or more images is, for example, over space and / or time), and cell fate (e.g., cell fate that may be caused or affected by the molecule). The target property can be used both to validate candidate molecules and to preselect candidate molecules that are likely to have desired qualities.

[0059] To generate multiple candidate molecules, a large-scale language model can be used to predict candidate molecules (e.g., "tags"). Large-scale language models (LLMs) are a type of artificial intelligence model used for natural language processing tasks such as text generation, machine translation, sentiment analysis, etc. LLMs are designed to mimic human language patterns and are trained on large amounts of linguistic data, typically in the form of text. LLMs can generate contextually appropriate and coherent sentences, and can often generate output that is indistinguishable from that generated by a human. Examples of common LLMs include GPT-3 (Generative Pre-trained Transformer 3) and BERT (Bidirectional Encoder Representations from Transformers). In the present case, as outlined above, large-scale language models are not used for the task of natural language processing or natural language generation, but rather for the task of computing embeddings from string representations of molecules, and also for the purpose of generating valid molecules (as sequences and embeddings) that could potentially be used as candidate molecules.

[0060] The aforementioned LLMs can be used to generate candidate molecules or molecules some of which can be included in a plurality of molecules. For example, the LLM can be pre-trained to create dense embeddings of nucleotide sequences, protein sequences, textual representations of chemicals (SMILE, SELFIE, etc.), or graph representations of molecules. For example, the second machine learning model can be a large-scale language model that has been trained on a corpus of tokenized representations of different molecules. For example, the second machine learning model can be trained to output sequences representing molecules (e.g., as strings or as sequences of tokens representing candidate molecules) and embeddings of the molecules. In some cases, the second machine learning model can be trained as part of the method. Thus, in some examples, the method can include training 510 the second machine learning model using a corpus of tokenized representations of different molecules. In particular, the language model can be trained using a denoising target and / or the language model can be trained to predict one or more additional tokens given one or more starter tokens. Examples of training the LLM and selecting suitable candidate molecules are provided in connection with FIGS. 5-9. Instead of training an LLM, a pre-made LLM model may be used that has been trained to create dense embeddings of nucleotide sequences, protein sequences, textual representations of chemicals, or graph representations of molecules, or the training may be performed by an entity different from the entity performing the methods described herein.

[0061] This LLM can then be used to perform autoregressive de novo synthesis of tag candidates (optionally after fine-tuning to a locus prediction goal as shown in connection with FIG. 7). Thus, as shown in FIG. 5, the method may include generating 520 embeddings of a plurality of molecules using a second machine learning model. The output of the model can be stored, along with an output that includes the sequence and the activation function output by the last hidden layer of the model's Transformer block, which is a hidden representation of the model as a latent vector of the tag candidates. This latent vector is also referred to as a (molecule) embedding in the context of this disclosure.

[0062] The generation of candidate molecules (and embeddings of candidate molecules) is shown in more detail, for example, in relation to Figures 6 and 7. As a brief summary, candidate molecules (and in particular embeddings of candidate molecules) can be autoregressively generated by feeding a starter token (representing a portion of a molecule) to a second machine learning model and having the second machine learning model repeatedly select additional tokens to be combined with the starter token until a stopping condition is met. In other words, multiple embeddings can be autoregressively generated using a second machine learning model to select one or more additional tokens representing one or more additional portions of the molecule based on the starter token representing a portion of the molecule, and generate respective embeddings by combining each starter token with the corresponding one or more additional tokens. In practice, this process is similar to the generation of text by LLMs such as BERT.

[0063] As further shown in Figure 5, the method may include (pre-)selecting 530 a plurality of candidate molecules and corresponding embeddings according to a selection criterion from a plurality of molecular embeddings. For clarity, selecting 530 a plurality of candidate molecules according to a selection criterion is distinct from selecting 180 one or more candidate molecules based on a comparison of the molecular embeddings to predicted embeddings. The (pre-)selection performed at this stage is used to (pre-)select candidate molecules to be tested in a biological sample.

[0064] To perform the (pre)selection, one or both of the following approaches can be used: In the first approach, the generated molecular embedding is compared to the embedding of molecules with known desired qualities. The output of the model (i.e., the embedding, and thus the position in the semantic space) can be used to calculate the distance between the embedding of the tag candidate (i.e., the embedding of the candidate molecule) and the embedding of a known dye with a known biological property, such as a gene locus. The distance metric can be used to effectively test the tag candidate for the desired property in silico. Thus, the method can include comparing the embedding of the molecule to one or more embeddings of one or more molecules with desired qualities for the target property, and selecting a number of candidate molecules and corresponding embeddings based on the comparison.

[0065] In a second approach, shown in relation to FIG. 8, a second machine learning model can be trained to output an output indicative of the quality of the molecule with respect to the target property in addition to the sequence (i.e., the string or token representation of the candidate molecule) and embedding. In other words, the second machine learning model can have an output indicative of the quality of the molecule with respect to the target property. For example, the output indicative of the quality of the molecule can be the output of a classifier or regressor included in the second machine learning model. In this case, selecting the plurality of candidate molecules and the corresponding embeddings can be based on the output indicative of the quality of the molecule with respect to the target property. For example, if the output indicative of the quality of the molecule with respect to the target property indicates that a molecule exhibits a desired quality with respect to the target property, those molecules can be selected for the plurality of candidate molecules.

[0066] Up to this point, this aspect of the proposed concept has generated plausible tag candidates (i.e., molecule candidates) with the desired properties (i.e., desired qualities), thereby narrowing the search space for costly chemical synthesis and validation by microscopy. To further automate validation, a training corpus of pairs of images with matching tag embeddings can be created to train a visual model (i.e., machine learning model). Such visual models can be used to a) validate micrographs to score successful loci (or other visible properties / qualities) of tag candidates, b) search a repository of images for spatiotemporal distributions with the desired properties (e.g., discover existing molecules / tags), and / or c) serve as a perceptual loss function in training the deep learning models used in the proposed concept in an end-to-end manner across tag candidate prediction, synthesis, and microscopy. Thus, different examples of the present disclosure relate to a system that uses large-scale language models and image generation by deep learning combined with biomedical imaging devices to design chemical tags. The training of such machine learning models is described in connection with Figures 3 and 4.

[0067] In the method of FIG. 1a and / or FIG. 1b, such machine learning models are used for the purpose of a) validating micrographs to score successful loci (or other visible properties / qualities) of tag candidates. To this end, the method includes acquiring 140 one or more images 250 of an optical imaging device for each candidate molecule, the one or more images displaying a visual representation of the target properties (i.e., spatial distribution, spatiotemporal distribution, intensity distribution and cell fate) exhibited by the candidate molecule in the biological sample 230. For example, the one or more images 250 can be acquired from an optical imaging sensor of a microscope, such as the microscope 1020 shown in FIG. 10. For example, the one or more images can include images taken using different imaging modes (e.g., white light imaging and fluorescence imaging in one or more wavelength bands) or using different illumination modes (e.g., white light illumination and fluorescence excitation illumination). For example, the one or more images (or even two or more images) can be taken at two or more different time points (of an experiment). Additionally or alternatively, the one or more images may be taken by different optical imaging sensors of the optical imaging device.

[0068] In some cases, the image or images are processed by the machine learning model as is. However, in some cases, some amount of pre-processing can be applied to the image or images, and the results of this pre-processing can be processed by the machine learning model. Thus, as further shown in FIG. 1b, the method can include pre-processing 150 the image or images using an image processing workflow to generate information derived from the image or images. For example, the image processing workflow can include both one or more deterministic image processing steps (contrast enhancement, wavelength band filtering, etc.) and one or more machine learning based image analysis steps (image segmentation, object detection, regression and classification, etc.). In particular, the pre-processing of the image or images can be performed to determine an estimate of the respective target property (e.g., using a machine learning based image analysis step such as image segmentation or object detection to identify the location / spread of a molecule or payload in the image or images, or classification to classify cell fate). For example, pre-processing can be used to determine one or more of an estimated spatial distribution of the molecule or payload, an estimated spatiotemporal distribution of the molecule or payload, an estimated intensity distribution of the molecule or payload, and a cell fate of at least one cell affected by the molecule or payload. Thus, the information derived from the one or more images can include one or more of an estimated spatial distribution of the molecule or payload, an estimated spatiotemporal distribution of the molecule or payload, an estimated intensity distribution of the molecule or payload, and a cell fate of at least one cell affected by the molecule or payload. For example, the information derived from the one or more images can be provided as an image or as a two-dimensional map having values ​​derived from the one or more images.For example, if the information derived from the one or more images includes an estimated spatial distribution, the estimated spatial distribution can be provided as a monochrome image, where the color (black or white) of each pixel indicates whether a payload or molecule was detected at the corresponding pixel of one of the one or more images. If the information derived from the one or more images includes an estimated spatiotemporal distribution, the estimated spatial distribution can be provided as a series of monochrome images, where each monochrome image represents the spatial distribution at one of two or more time points during the experiment. If the information derived from the one or more images includes an intensity distribution, a visual representation of the intensity distribution in the resulting image, e.g., a position on the grayscale or color gradient of the resulting single channel / grayscale image, can reflect the number of molecules or payloads detected at a pixel of the one or more images. If the information derived from the one or more images is provided as a map, the values ​​indicated by the map can be selected similarly to an image, e.g., 0 and 1 can be selected instead of a monochrome image, or in the case of an intensity distribution, a range of values ​​can be selected, e.g., 0 to 255. In the context of the present application, such information derived from one or more images is also referred to as the intensity distribution D(r) (which in the case of an intensity distribution may be a spatiotemporal intensity distribution), or cell fate F.

[0069] To aid in the analysis of target characteristics, the image processing workflow and / or image acquisition by the optical imaging sensor can be adjusted according to the target characteristics being analyzed. For example, as further shown, the method can include determining 120 one or more imaging parameters based on the target characteristics of the candidate molecule, and acquiring one or more images based on the determined one or more imaging parameters. For example, different illumination wavelength bands, different wavelength band filtering parameters, different image analysis models, etc. can be used depending on the target characteristics.

[0070] The machine learning model is trained to output predicted embeddings for inputs including one or more images and / or information derived from one or more images. Details regarding training are provided in connection with FIG. 3 and FIG. 4. As a brief summary, a machine learning model can be trained to output embeddings for inputs including one or more images or information derived from one or more images using supervised learning based training. Since training of the machine learning model can be performed as part of the method, the method can include training 320 the machine learning model using supervised learning and using a set of training data to output predicted embeddings of candidate molecules based on one or more images or information derived from one or more images. In particular, since the spread of a molecule or payload over time is of interest, two or more images (or two or more sets of information respectively derived from the images of the two or more images) taken over two or more time points during an experiment can be input to the machine learning model. Thus, the machine learning model can be trained to process a set of images (or a set of information derived from a set of images) displaying a biological sample at two or more time points to output predicted embeddings of candidate molecules. For example, in some cases, a collection of images (or two or more collections of information) may be input to a machine learning model via two or more separate inputs of the machine learning model. Alternatively, the machine learning model may include a "memory" such as a long short-term memory, or LSTM, to "store" the images or information derived from the images. In this case, a single input may be sufficient.

[0071] The one or more images and / or information derived from the one or more images are processed 160 to generate predicted embeddings of the candidate molecules using the machine learning model. In other words, based on the one or more images, the machine learning model predicts what / which molecules have affected the biological sample (with respect to the target property) as points in the semantic space (i.e., predicted embeddings). The resulting predicted embeddings are then compared 170 with the embeddings of the candidate molecules to determine whether these candidate molecules 170 have the expected effect with respect to the target property. For example, if the predicted embeddings based on one or more images displaying a visual representation of the target property exhibited by the candidate molecule in the biological sample are similar to the embeddings calculated (using the second machine learning model) for a candidate molecule, then the candidate molecule can be selected 180 for the one or more candidate molecules because the candidate molecule is behaving as expected. However, for one or more candidate molecules, if the predicted embedding based on one or more images displaying a visual representation of the target property exhibited by the candidate molecule in the biological sample is not similar to the embedding calculated (using the second machine learning model) for the candidate molecule, then it may not be possible to select 180 the candidate molecule because the candidate molecule is not behaving as expected.

[0072] In the following, Figure 2 shows the overall flow from de novo generation of embeddings of candidate molecules to comparison 280 of predicted embeddings with embeddings computed for the de novo generated candidate molecules. Note that operations 215, 250, 260 and 280 are the core of the method of Figures 1a and / or 1b. Additional operations such as generation of embeddings of candidate molecules using a pre-trained LLM 200, chemical synthesis 220, sample preparation 230 and imaging 250 are optional or entirely outside the scope of the method of Figures 1a and / or 1b.

[0073] Further details and aspects of the method of Figure 1a and / or Figure 1b are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 2-11). The method may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0074] Figure 2 shows the overall flow of an assay for validating candidate molecules, such as tag candidates, with optional fine tuning. Figure 2 shows, among other things, testing predicted tags using an imaging device. To test the validity of potential tag candidates, the respective molecules can be synthesized and samples can be generated (e.g., stained, transgenic) and imaged.

[0075] The pre-trained large-scale language model 200 (i.e., the second machine learning model) predicts de novo tag candidates (i.e., candidate molecules) 210 and their semantic embeddings 215. The chemical synthesis 220 of the candidate molecules, as well as the sample preparation 230 of the biological sample with the respective candidate molecules, can be automated as much as possible. Thus, the method of FIG. 1b may further include determining 130, for each candidate molecule, one or more parameters for the sample preparation 220 for preparing the sample with the respective candidate molecule, and outputting the one or more parameters for the sample preparation. Chemical synthesis may include operations such as expression and purification of proteins in bacterial or metazoan cell systems, synthesis and amplification of DNA / RNA, direct synthesis of peptides, combinatorial chemical synthesis followed by additional purification and quality control. Sample preparation may include 2D or 3D cell culture, organoid, spheroid culture, tissue sectioning, or organ preparation (e.g., by dissection, cleaning), or whole animal preparation for in vivo imaging (e.g., cranial window in mouse cerebral cortex imaging).Sample preparation may further include generating samples in appropriate containers for microscopy, and staining, electroporating, fixing, transfecting, or washing samples in the presence of respective tag molecules.

[0076] The design of the data recording unit 240 depends on the aim (i.e. target property) of the new polymer or compound to be discovered. For example, if the target (target property) is localized, imaging devices are used. If binding assays (such as ligands and proteins) are performed, it is more practical to use optical testing, i.e. any form of spectrophotometric measurement. In the latter case, the molecule of interest can be chemically linked to a primary chromophore that will reveal its chromogenic or fluorescent reporter property upon chemical cleavage or enzymatic reaction. The latter readout is more easily scalable than imaging. Reporter readouts in optical testing may include one or more of UV light, visible light in absorption or fluorescence, infrared absorption, light polarization, optical rotatory dispersion, static and dynamic light scattering, fluorescence lifetime spectroscopy, and fluorescence correlation spectroscopy. Imaging 240 may typically include microscopy, high content screening, and / or mesoscopy (for observing large specimens such as whole organs or whole organisms in vivo). Imaging modalities may include one or more of visible and UV (ultraviolet) light, infrared light (including vibrational microscopy such as coherent anti-Stokes Raman scattering, or CARS, or stimulated Raman scattering, or SRS), multiphoton excitation microscopy and other forms of nonlinear microscopy, fluorescence lifetime imaging, fluorescence correlation spectroscopy, image correlation microscopy, polarized light microscopy, label-free contrast including phase contrast, differential interference contrast, and intensity modulation contrast, optical nanoscopy below the Abbe limit, or combinations thereof. However, regardless of the data recording modality, the respective information can be obtained as an image or an image-like data structure (e.g., a two-dimensional map).

[0077] Some of the operations, especially chemical synthesis 220, sample preparation 230 and data recording 240, are laborious, costly and require manual intervention to some extent. It may therefore be desirable to reduce the number of tag candidates that are validated in vitro or in vivo by the assay. Since the embeddings of the tag candidates are expected to be closely localized in semantic space, a probabilistic sample of the set of tag candidates can be obtained and only these probabilistic samples can be validated in vitro. As described in relation to FIG. 4, other tag candidates can be assayed in silico (i.e., computationally) by replacing operations 220-240 with a generative model using a conditional generative neural network approach. In effect, a "digital twin" can be generated to predict the effect of the candidate molecules on the sample. Such a model takes the tag embeddings as input and generates plausible images as output. The latter can be passed forward through an image recognition model 260. The accuracy of this approach can be increased if one does not only consider one desired characteristic such as a gene locus, but also other molecular characteristics such as toxicity or biological activity or chemical properties (see also embodiment 3 for such characteristics). As shown in Figure 8, a large language model 200 can be fine-tuned to predict multiple such characteristics. This approach can help reduce the number of candidates until the feasibility of the actual in vitro / in vivo assay is increased.

[0078] The multiple images 250 generated using the data records 240 or using the generative model display observables such as the spatiotemporal distribution D(r) or cell fate (F). Typically, these observables are image stacks with dimensions X, Y, Z, T, CH (three spatial dimensions, time and "channels" which are proxies for spectral emission wavelength bands). Other dimensions may include one or more of the stage position (in x and y dimensions), logical positions on the sample carrier ("well", "biopsy core number", "object number"), direction of illumination for light sheet imaging, polarization and fluorescence lifetime in continuous or gated representation. The microscopically visible spatiotemporal distribution D(r) as a readout for success can be complemented by additional laboratory instrumentation to test physicochemical properties of the predicted and synthesized tags, such as solubility (as a function of temperature, pH and ionic strength) or toxicity to cell cultures, organoids, or whole animals. In particular, toxicity can be assessed by microscopy via the ratio of live to dead cells as a function of tag concentration in the culture (i.e., microscopy specimen).

[0079] The image (and / or information derived from the image) and optionally additional readouts as described above are input to a trained (image recognition) model 260 (i.e., machine learning model) to infer possible tag embeddings 270. The latter tag embeddings 270 are predicted to be close to the de novo predicted tags in the embedding space. The proximity of the tag embeddings 270 to the de novo predicted tags can be measured using a distance metric. At that point, a quantitative validation can be completed and a ranking of potential candidate tags can be generated. Optionally, a differentiable loss can be calculated 280, which can be used to fine-tune all or part of the deep learning models included in the assay, in particular the large-scale language model (i.e., second machine learning model) 200 for de novo prediction and the (image recognition) machine learning model 260 used for scoring, in an end-to-end manner. In some cases, the parameters of the machine learning model 260 can be kept fixed and activation functions from one or more layers can be extracted while fine-tuning the second machine learning model 200. In this case, the machine learning model 260 effectively serves as a perceptual loss function for training the second machine learning model 200. Predictions, loss functions, or extracted activation functions / hidden representations from the machine learning model 260 as well as the second machine learning model 200 can be fed back to laboratory instruments and imaging equipment, such as in chemical synthesis 220, sample preparation 230, or data recording 240, to modify the control flow and / or modify parameters of the machine learning model in the control flow.

[0080] The proposed concept can be used to design not only tags (with desired loci), but also other "payload" molecules with their own respective properties (such as biological or drug activity). For example, the tag molecule acts as a shuttle (such as a locus determining a signal sequence) and / or an adapter molecule for a payload molecule to be specifically targeted. In the latter case, the proposed concept can be used to jointly optimize two such molecules (tag, payload). As a result, both the second machine learning model 200 and the machine learning model 260 can have two outputs instead of one, and each output is fine-tuned by the loss function 290.

[0081] The backpropagation of loss gradients in Figure 2 can be used to influence the control flow of a laboratory instrument or imaging device. If the control flow of these devices is governed by a machine learning model, the parameters of the machine learning model can be fine-tuned as well. In this way, all components of the assay can be adapted to achieve the minimum error (loss) between the de novo predicted tag candidates and the inferred embeddings of the actual observables manifested by these tag candidates.

[0082] Further details and aspects of the flow of Figure 2 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-1b, 3-11). The flow may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0083] FIG. 3 shows a flow chart of an example of a method for training a machine learning model, i.e., a method for training a machine learning model for processing one or more images or information derived from one or more images, as described in relation to FIGS. 1a-2. The method includes obtaining 310 a set of training data. The set of training data includes a set of multiple training samples. Each training sample includes at least one of a) one or more images displaying a visual representation of a target property exhibited by a candidate molecule in a biological sample, and b) information derived from the one or more images and an embedding of the molecule as a desired training output, as training input data. The method includes training 320 a machine learning model using supervised learning and using the set of training data to output a predicted embedding of the candidate molecule based on the one or more images or information derived from the one or more images. For example, the method can be implemented by a computer system, for example by the system 1010 introduced in relation to FIG. 10 and / or by the computer system 1120 introduced in relation to FIG. 11. For example, the method may be performed by the same computer system as the method of FIG. 1a and / or FIG. 1b and the method of FIG. 5, or by a different computer system.

[0084] 1a-2 are mainly related to the application of machine learning models, while FIG. 3 and FIG. 4 are related to the training of machine learning models. (Image recognition) machine learning models can be generated using the following operations. In the following, the machine learning models are also referred to as "image recognition" machine learning models. However, this does not necessarily indicate that the machine learning models perform recognition (e.g. object recognition) on image data. This merely indicates that the machine learning models process images or information derived from images. This terminology is chosen to distinguish the machine learning models from the second machine learning models, i.e. (large-scale) language models.

[0085] In the following, a brief introduction to machine learning is given in relation to training machine learning models, as described in relation to Figures 3 and 4. Instead of relying on models and inference, machine learning may refer to algorithms and statistical models that a computer system may use to perform a particular task without using explicit instructions. For example, in machine learning, instead of rule-based data transformations, data transformations inferred from analysis of past data and / or training data may be used. For example, image content may be analyzed using a machine learning model or using a machine learning algorithm. For a machine learning model to analyze image content, the machine learning model may be trained with 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 image content, such that image content not included in the training data becomes recognizable using the machine learning model. The same principle may be used for other types of sensor data in a similar manner: by training the machine learning model with training sensor data and a desired output, the machine learning model "learns" a transformation between sensor data and output, which can be used to provide an output based on the non-training sensor data provided to the machine learning model. The provided data (e.g., sensor data, metadata and / or image data) may be pre-processed to obtain feature vectors that are used as input to a machine learning model.

[0086] The machine learning model may be trained using training input data. The above example uses a training method called "supervised learning". In supervised learning, the machine learning model is trained using multiple training samples, where each sample may include multiple input data values ​​and multiple desired output values, i.e., each training sample is associated with a desired output value. By specifying both the training samples and the desired output value, the machine learning model "learns" during training which output value to provide based on input samples that are similar to the provided sample. Besides supervised learning, semi-supervised learning may be used. In semi-supervised learning, some of the training samples lack a corresponding desired output value. Supervised learning may be based on supervised learning algorithms (e.g. classification algorithms, regression algorithms or similarity learning algorithms). Classification algorithms may be used when the output is restricted to a limited set of values ​​(categorical variables), i.e., the input is classified into one of a limited set of values. Regression algorithms may be used when the output may have any numerical value (within a range). Similarity learning algorithms may be similar to 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.

[0087] The method of Figure 3 also uses supervised learning to train a machine learning model. Since the output of the machine learning model is a prediction of the embedding, i.e., the location in semantic space, the machine learning model can be trained as a regressor to output the embedding as a number (or numbers) that point to a location in semantic space.

[0088] A set of training data is used as training data for training the machine learning model. Since the machine learning model should be applied to one or more images and / or information derived from one or more images, the training data may include images and / or information derived from one or more images similar to the one or more images and / or information derived from one or more images used in connection with the method of FIG. 1a and / or FIG. 1b. Thus, each training sample includes as training input data at least one of a) one or more images displaying a visual representation of the target property exhibited by the candidate molecule in the biological sample, and b) information derived from the one or more images having a format similar to the format used in connection with the method of FIG. 1a and / or FIG. 1b. For example, in some examples, the same optical imaging device may be used to acquire the images included in the set of training data, or the images used may be processed to resemble the images output by the optical imaging system used for the method of FIG. 1a and / or FIG. 1b. Similarly, the same image processing pipeline may be used to calculate / determine the information derived from one or more images. Similarly, the embeddings used as the desired output have a format similar to that used for the embeddings of candidate molecules introduced in connection with Figures 1a-2.

[0089] First, a training corpus can be created consisting of pairs of images (e.g., corresponding to D(r)) and their respective tag embeddings. Once it is clear what kind of sequences S (e.g., what kind of molecules) should be predicted, a training corpus (i.e., a collection of training data) can be created. The training corpus can include or consist of sequence embeddings of molecules with known loci (i.e., the target trait can be one or more loci) as labels, and distributions D(r) or cell fates F (as one or more images, or as information derived from one or more images) as input. These pairs are subsequently used for (supervised) training.

[0090] Below, we present three approaches for collecting training samples for a set of training data. These three approaches may be used alone or in combination with each other to obtain a set of training data.

[0091] For example, the training corpus can be created by recording images using an imaging device using microscopy and a bank of known tags, and by staining specific structures specifically with known tags. Thus, the method can include generating 312 at least a portion of a set of training data by generating a set of one or more images displaying visual representations of target properties exhibited by molecules in a biological sample, and generating corresponding embeddings for the molecules. In this case, the set of training data can include a set of one or more images, or a set of information derived from the set of one or more images, and corresponding embeddings for the molecules. For example, each property, such as a spatiotemporal intensity distribution D(r) or cell fate F, can be measured using an imaging device with a sample displaying a locus of interest. The sample can be labeled with a tag of a known locus for each D(r) / F. For each pair of input and (tag) embedding, multiple instances can be recorded. Typically, imaging devices and laboratory equipment such as liquid and sample handling instruments can be set up to allow screening of a large number of tags at a particular sample locus and to automatically record their corresponding observables (D(r) / F, i.e., target properties).

[0092] Alternatively or additionally, one or more publicly available atlases of recorded images can be used to create (at least a portion of the training corpus). Thus, the method may include generating 314 at least a portion of the set of training data by obtaining from a biological database a set of one or more images displaying a visual representation of the target properties exhibited by the molecules in the biological sample and generating corresponding embeddings for the molecules. In this case, the set of training data may include a set of one or more images, or a set of information derived from the set of one or more images, and corresponding embeddings for the molecules. The scientific research community in life sciences publishes a large amount of data with images of biological samples. Typically, these data are labeled with tags of known origin and, in the same database, the labeling protocol is recorded. In case such publicly accessible data repositories are available, these data repositories can be used to provide the ground truth. In other respects, this publicly available data can be supplemented with images recorded by an imaging device (see above) or with images generated using a conditional generative neural network (see below).

[0093] Alternatively or additionally, images for the training corpus can be generated as predicted intensity distributions by using a conditional generative neural network trained to use candidate tag embeddings as conditions (e.g., in the case of semi-supervised training with synthetic data). Thus, the method may include generating 316 a portion of a training data set by using a generative machine learning model to generate a set of one or more generated images displaying visual representations of target properties exhibited by molecules in biological samples and generating corresponding embeddings for the molecules. In this case, the training data set may include a set of one or more generated images, or a set of information derived from the set of one or more generated images, and corresponding embeddings for the molecules. Since screening a large library of molecules and samples tagged with molecules is costly, a generative neural network can be used to generate (a portion of) the training corpus. Since tag embeddings are either known or can be easily created using trained large language models (as described in connection with Figures 5-9), expected observables for a given tag embedding can be predicted. However, variational autoencoders do not seem to be suitable for creating both the images (D / F) and the tag embeddings. From the literature, forms of conditional generative adversarial networks (cGANs) are known, which may have drawbacks such as inaccurate sampling of the probability distribution, difficulty in training, or mode collapse. However, it would still be possible to use such cGANs to generate parts of the corpus.

[0094] Alternatively, images may be created using a regularized flow model (also a form of DNN) that creates expected observables D(r) / F conditional on the desired tag embeddings. Such models can be used to create visual representations of the predicted observables in a human-understandable format for laboratory data analysis, quality control, and documentation, and to extend the training corpus for training machine learning models by adding additional data for semi-supervised training.

[0095] For example, in this context, the following Bayes' rule can be used: Bayes' rule, also known as Bayes' theorem or Bayes' rule, is a mathematical formula used to calculate the probability of an event based on prior knowledge or information. In the present case, the posterior probability P(S|D) is the probability of a tag (embedding) given a particular image D, where S is the tag embedding and D is the intensity distribution D(r). The likelihood P(D|S) is the probability of seeing image D when the sample is stained with tag (embedding) S. The prior knowledge P(S) is the probability of finding tag (embedding) S given the entire corpus of all possible tags (i.e., chemicals).

[0096] A machine learning model can then be trained as an image recognition deep neural network configured to predict tag embeddings given images of the likely distribution of this tag in cells or tissues.

[0097] The imaging device can then be used to test the predicted and synthesized tags in live cells, organoids or tissues, or another setup suitable for imaging, as shown in connection with Figures 1a-2, and confirm that the tags are localized as shown in the training images. This latter image recognition neural network, when fully trained, can be used to evaluate images of synthesized / expressed tags imaged in vivo / in vitro. This evaluation allows for automated validation or scoring of image tag candidates by applying a distance metric between the tag embeddings predicted by this image recognition model and tag embeddings of known properties, as calculated by a large-scale language model (i.e., the second machine learning model introduced in connection with Figures 1a-2, 5-9).

[0098] Additionally, automation of validation of tag candidates can be implemented by using the trained image recognition model as a perceptual loss function to fine-tune a language model (i.e., a second machine learning model) and potentially to influence the control flow of microscopes and other laboratory automation instruments involved in tag candidate synthesis, sample handling and liquid handling, and imaging.

[0099] Further details and aspects of the method of Figure 3 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-2, 4-11). The method of Figure 3 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0100] An example of training a machine learning model is given in Fig. 4. Fig. 4 shows a flow chart of an example of training an (image recognition) machine learning model for automated validation of tag candidates in an assay. The training is used to train the machine learning model to predict tags with a desired localization pattern. A training corpus 400 compiled as above, containing pairs of images and corresponding tag embeddings, is used to train an (image recognition) machine learning model 410 with images as input and a regression to the corresponding tag embeddings provided in output 420. A suitable objective function such as the L1 norm or L2 norm can be used to calculate and back-propagate the loss gradient 430 for training.

[0101] The machine learning model 410 thus trained is now configured (i.e., trained) to predict the most likely tag embedding for a given input image (of an observable D(r) or F). For example, the model thus trained can be used to validate images from an assay and test the predicted tag embeddings that are synthesized and applied to a specimen imaged. The model output can then be compared to the de novo predicted tag embeddings for each tag. This allows for automated validation of newly designed tags. Additionally or alternatively, the machine learning model can be used to measure the error between the de novo predictions and the embeddings that correspond to the actual observables (e.g., gene loci, intensity distributions, cell fates) using an appropriate objective function. Errors can be back-propagated in an end-to-end manner to train or fine-tune image recognition models and / or large-scale language models.

[0102] Further details and aspects of the flow of Figure 4 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-3, 5-12). The flow of Figure 4 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0103] FIG. 5 shows a flow chart of an example of a method for selecting candidate molecules. The method includes generating 520 embeddings of a plurality of molecules using a second machine learning model. The method includes selecting 530 a plurality of candidate molecules and corresponding embeddings according to a selection criterion from the embeddings of the plurality of molecules. This selection process has been previously described in relation to FIGS. 1a-2. Additional examples are provided in relation to FIGS. 8 and 9. In some examples, the method further includes training 510 the second machine learning model using a corpus of tokenized representations of different molecules. In particular, the language model may be trained using the denoising target and / or the language model may be trained to predict one or more additional tokens given one or more starter tokens. Both the training of the second machine learning model (as an LLM) and the selection of candidate molecules will now be described in more detail in relation to FIGS. 6-9.

[0104] For example, the method can be performed by a computer system, such as the system 1010 introduced in connection with Figure 10 and / or the computer system 1120 introduced in connection with Figure 11. For example, the method can be performed by the same computer system as the methods of Figures 1a and / or 1b and 3, or by a different computer system.

[0105] Further details and aspects of the method of Figure 5 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-4, 6-11). The method of Figure 5 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0106] The following description relates to pre-training a large language model for molecular embedding. Figure 6 shows a flowchart of an example of a flow for training a large language model (i.e., a second machine learning model) on a corpus with sequence data (e.g., sequence data in nucleotide, peptide, or chemical markup languages). A large corpus 600 of data containing nucleotide sequences, protein sequences, or chemicals in an appropriate notation (e.g., SMILE) can be used as a starting point. Tokenization 610 of items in the corpus is possible as one of the following: individual nucleotides / amino acids (polynucleotides / polypeptides only) as tokens, subword tokenization such as byte pair encoding or WordPiece tokenization for polypeptides, polynucleotides or low molecular weight chemicals and chemical residues (for low molecular weight chemicals represented mainly as SMILE) as tokens. Note: In the case of nucleotide sequences (DNA, RNA), it makes the most sense biologically to encode trinuclear units (trimers of nucleotides) instead of individual nucleotides as one token, since this trinuclear unit is the smallest biological unit that can be translated into an amino acid.

[0107] An LLM (e.g., a second machine learning model) 620 is trained on such a large corpus using a type of denoising target such as masked language modeling, see J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.” Alternatively, the pre-training target is to predict the following token given a truncated input sequence.

[0108] The pre-trained model can then be used to extract features in the form of latent vectors 630, which are essentially semantic embeddings of the (sub)molecules. These features can be extracted from activation functions computed by the pre-trained model after the last hidden layer of the last Transformer block, see A. Vaswani et al., “Attention Is All You Need”. For example, the activation functions can be computed as per-token embeddings. These activation functions can be pooled to obtain per-molecule (whole) embeddings. This pooling can be, for example, global max pooling or global average pooling.

[0109] Further details and aspects of the flow of Figure 6 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-5, 7-11). The flow of Figure 6 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0110] The pre-trained model can now be used for sequence generation (i.e., to generate embeddings for multiple molecules) with the predicted tag embeddings. Figure 7 shows a flowchart of an example of a flow for autoregressive de novo generation of new tag sequences (i.e., candidate molecules) with in silico (i.e., computational) selection of suitable candidates. In particular, bulk de novo generation of sequence embeddings can be performed via zero-shot generation.

[0111] A (second machine learning) model, pre-trained as outlined above (FIG. 6, 620), trained as a language model, can create de novo sequences 710 in an autoregressive manner. This means that the model is seeded with one or more tokens and creates the remaining tokens one by one in a loop. Seeding with one token can be performed using a specific <start> token. Seeding with multiple tokens can start with a <start> token and a fixed number of randomly selected tokens (e.g., amino acids, nucleotides). In each iteration of the loop, the input elements at time step t can result in an output o(t). The output o(t) is then input to the next time step t+1, resulting in an output o(t+1). The loop ends when the last token of the sequence is generated or a maximum length is reached. The generated sequence can be represented as a sequence of token embeddings. From these generated sequences, an embedding of "total protein" can be calculated as the arithmetic mean. The protein embeddings can be used later to train image models 400, 410 (see FIG. 4) or for comparison in the embedding space 970 (see FIG. 9). The predicted sequences (i.e., string or token representations of the molecules) can be saved and stored along with the protein embeddings.

[0112] The "double book-keeping" by using a complete architecture can be improved as follows: Large-scale language models for text generation usually follow the encoder-decoder paradigm. Transformer falls into this class. Therefore, once trained, it is (only) necessary to seed the decoder part with the whole embedding of proteins / polynucleotides / chemical compounds (which are equivalent to sentences in natural languages). This can be done using the following operations: The pre-trained transformed decoder can be loaded. Then, the sentence embedding vectors can be defined or loaded from the de novo array 710 shown in FIG. 7. Then, the decoder state can be initialized with the sentence embeddings and the generated sentence array can be initialized. Then, words can be generated by taking the probability of the next word from the decoder, sampling the next word from the probability distribution, adding the word to the generated array, and updating the state with the newly generated word until a stopping criterion is met. After the word generation is finished, the final generated text array can be returned.

[0113] In this way, a large number of new candidate compounds 710 can be generated, which can then be tested. First, candidates can be selected 720 in silico (i.e., computationally) for a desired locus 730 or other desired property (a plurality of candidate molecules and corresponding embeddings can be selected 530 from the embeddings of a plurality of molecules according to a selection criterion) and their embeddings 740 can be output. Thus, the selection criterion can be related to the target property, and in particular, whether the molecule is expected to have a desired quality with respect to the target property. Second, the candidates can be tested in vitro (experimentally, i.e., "in the test tube", as described in connection with Figures 1a-2) using chemical synthesis and imaging.

[0114] Further details and aspects of the flow of Figure 7 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-6, 8-11). The flow of Figure 7 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0115] FIG. 8 shows a flowchart of an example of a flow for fine-tuning prior to autoregressive de novo generation using a classification or regression target to achieve targeted de novo generation via fine-tuning. To give more control over the desired characteristics of the tag candidates generated, the (second machine learning) model 620 can be fine-tuned by adding a classification 800 or regression 810 goal. In the case of FIG. 8, the classification or regression goal can be used to select a molecule over multiple candidate molecules. In the case of a particular desired locus, a training set can be created that includes or consists of sequences with known loci and loci coded in an appropriate manner (e.g., one-hot). A classifier head can then be added to the model output. In the simplest case, this can be a logistic regression layer with a softmax nonlinearity (often referred to as "linear" or "fully connected" in deep learning) to convert the model output into a probability distribution over the classes of interest.

[0116] For example, instead of the spatiotemporal distribution D(r), the proposed concept can use the cell fate F as an observable to optimize the tag. For example, in addition to the locus, one or more additional objectives can be used, such as predicted toxicity, solubility in water or hydrophobic media (such as phospholipid bilayers), quantum yield (in the case of fluorescent substances), or other properties such as binding affinity or biological activity as inhibitors, activators, allosteric regulators, ligand binding affinity, enzymatic activity, etc. These additional objectives can act as constraints to narrow down the number of predicted target molecules (tags, payloads). Since many molecules may localize to the same locus, this additional constraint is beneficial to limit the space of candidate molecules that need to be evaluated.

[0117] After fine-tuning the model 800 in a supervised manner with this training set, the model can then autoregressively generate de novo sequences as above in Figure 7 by de novo generating candidate molecules 810 (with embeddings) and selecting 820 several candidate molecules for the desired locus 830 (thus selecting candidate molecules according to a selection criterion for multiple candidate molecules, i.e., according to the desired locus). The model can now specifically generate sequences with the desired locus.

[0118] As an alternative to one-hot coding of loci, sequences with known loci (or other known characteristics) can be created and passed through a pre-trained model. The output of the last hidden layer is an embedding that captures all the characteristics the model learned during pre-training, e.g., including loci. The (sequence; embedding) pair 810 can then be used to fine-tune the model, which will bias it to be more selective in future generation of new sequences with loci of interest.

[0119] De novo generated molecular embeddings can have the following general properties: Since molecular embeddings predicted by trained language models are vectors in a semantic molecular space (such as semantic protein space or nucleotide space or chemical space), the following properties can be expected: For example, spatial proximity in the respective space can encode the similarity of molecular properties. Thus, points in this space corresponding to specific molecules or tags can be clustered in an unsupervised manner for visual data inspection. For example, molecular embeddings of tags with similar properties, e.g., loci, can have a shorter distance than molecular embeddings of tags with dissimilar properties. Thus, a distance metric can be used to identify groups of candidates and select candidate molecules with a short distance to molecules with known desirable properties. Molecular properties can be combined with each other or excluded from each other using simple arithmetic. For example, one molecule can be localized at two (or n) loci, which is done by summing the vectors of molecular embeddings corresponding to these two (or n) loci. Similarly, properties that are different can be omitted. If there are sequences or molecular residues known to be toxic, then the embedding of each of those known sequences or molecular residues can be subtracted from the otherwise desirable candidates in order to suppress this property.

[0120] Further details and aspects of the flow of Figure 8 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-7, 9-11). The flow of Figure 8 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0121] FIG. 9 shows a flowchart of an example of a flow for scoring candidate molecules, such as (predicted) tag candidates, in a potential embedding space. A repository of known tags 900 with known properties can be passed forward through a trained large-scale language model (i.e., a second machine learning model) 910 to compute their embeddings. This new repository of embeddings 920 represents a set of points 930 in the corresponding semantic space. A subset of desired properties can be selected, the centers of which can be calculated, for example, using medoids. In parallel, the large-scale language model (possibly fine-tuned as above) can be used (autoregressively) to predict 940 embeddings 950 of de novo tag candidates (thus generating embeddings 520 of a plurality of molecules) and to identify a subset of candidates (candidate molecules) 960 with desired properties (thus selecting candidate molecules and corresponding embeddings 530 according to a selection criterion from embeddings of a plurality of molecules) by computing distances 930, 970 between the de novo candidates and clusters of known properties. Distance metrics may include dot product, cosine similarity, vector norm, and the like.

[0122] A possible prerequisite for the above to work is that the embedding space is contiguous (molecules with similar properties correspond to nearby latent vectors). Continuity is encouraged by tokenizing the vocabulary using methods like BPE (byte pair encoding) and WordPiece designed in this way. Continuity is also encouraged by masked language modeling, which promotes learning context (for classification) by passing the output through a linear (dense) layer, and softmax nonlinearities that treat predictions as probability distributions.

[0123] One aspect of the proposed concept is a mechanism not only for predicting candidate tags, but also for predicting what the distribution of candidate tags in a specimen will look like. There is growing evidence that currently hand-curated categories for, for example, subcellular localization may be too coarse to fully capture the nuances of the spatiotemporal distribution D(r) of tags in a specimen [1]. (See H. Kobayashi, KC Cheveralls, MD Leonetti, and LA Royer, “Self-Supervised Deep-Learning Encodes High-Resolution Features of Protein Subcellular Localization.” bioRxiv, p. 2021.03.29.437595, Mar. 29, 2021. doi: 10.1101 / 2021.03.29.437595.) Using the proposed concept, one can predict expected distributions and then test them using microscopy by comparing the expected with the observed D(r). Therefore, manually curated labels are not explicitly required, even though these may be useful for visualizing and interpreting the results.

[0124] Further details and aspects of the flow of Figure 9 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-8, 10-11). The flow of Figure 9 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0125] Fig. 10 illustrates an example of a system suitable for implementing at least one of the above methods. Fig. 10 illustrates a schematic diagram of an example of a system 1010 and an example of an imaging system 1000 including the system 1010 and an imaging device 1020 (e.g., a microscope, such as a laboratory microscope). The system 1010 includes one or more processors 1014 and one or more storage devices 1016. Optionally, the system 1010 further includes one or more interfaces 1012. The one or more processors 1014 are coupled to the one or more storage devices 1016 and the one or more interfaces 1012. In general, the functionality of the system 1010 can be provided by one or more processors 1014 in conjunction with one or more interfaces 1012 (for exchanging data / information with one or more other components of the imaging system and outside the imaging system, such as one or more optical imaging sensors of the imaging device 1020, another system (e.g., a cloud-based system), or a display device of the imaging system) and one or more storage devices 1016 (for storing information such as machine-readable instructions of a computer program executed by the one or more processors). In general, the functionality of the one or more processors 1014 can be implemented by the one or more processors 1014 executing machine-readable instructions. Thus, any features attributed to the one or more processors 1014 can be defined by one or more of the machine-readable instructions. The system 1010 can include machine-readable instructions, for example within the one or more storage devices 1016.

[0126] Such a system can be used to perform a variety of different tasks. For example, the system can be configured to perform the method illustrated in relation to Figures 1a and / or 1b. Alternatively or additionally, the system can be configured to perform the method illustrated in relation to Figure 3. Alternatively or additionally, the system can be configured to perform the method illustrated in relation to Figure 5.

[0127] In various examples, the system 1010 is used together with an optical imaging device 1020 of an imaging system. In particular, the system 1010 may be co-located with the optical imaging device 1020, which may be a laboratory microscope. Alternatively, the system 1010 may be part of a server (e.g., a cloud node) and may be coupled to the optical imaging device 1020 via a computer network (e.g., via the Internet). In general, the optical imaging device may be configured to generate a set of images to be processed. Obviously, the system may be implemented differently depending on which aspects of the above method are performed by the system. For example, the system may be one of a server, a cloud computing node, and a workstation computer.

[0128] The one or more interfaces 1012 of the system 1010 may correspond to one or more inputs and / or outputs for receiving and / or transmitting information, which may be digital (bit) values ​​according to a specified code, within a module, between modules, or between modules of different entities. For example, the one or more interfaces 1012 may include an interface circuit configured to receive and / or transmit information. The one or more processors 1014 of the system 1010 may be implemented using one or more processing units, using one or more processing devices, using any processing means such as a processor, computer, or programmable hardware components operable with appropriately adapted software. In other words, the above-mentioned functions of the one or more processors 1014 may also be implemented in software, in which case this software is executed on one or more programmable hardware components. Such hardware components may include general-purpose processors, digital signal processors (DSPs), microcontrollers, etc. The one or more storage devices 1016 of the system 1010 may include at least one element of a group of computer-readable storage media, such as a magnetic or optical storage medium, e.g., a hard disk drive, a flash memory, a floppy disk, a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electronically erasable programmable read-only memory (EEPROM), or network storage.

[0129] Further details and aspects of the system of Figure 10 are referred to in connection with the proposed concepts or in connection with one or more examples described above or below (e.g., Figures 1a-9, 11). The system of Figure 11 may include one or more additional optional features corresponding to one or more aspects of the proposed concepts or corresponding to one or more examples described above or below.

[0130] As used in this specification, the term "and / or" includes any and all combinations of one or more of the associated listed items and may be abbreviated as " / ".

[0131] Although some aspects have been described in the context of an apparatus, it will be apparent that these aspects also represent a description of a corresponding method, where a block or apparatus corresponds to a step or feature of a step, and similarly, aspects described in the context of a step also represent a description of a corresponding block or item or feature of a corresponding apparatus.

[0132] The embodiments may be based on the use of machine learning models or algorithms.

[0133] In the above example, the training of the machine learning model and the second machine learning model was described according to a "supervised learning" training technique.

[0134] In addition to supervised or semi-supervised learning, unsupervised learning may be used to train machine learning models. In unsupervised learning, input data may be (only) provided, and unsupervised learning algorithms may be used to find 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 containing multiple input values ​​into multiple subsets (clusters), such that input values ​​in the same cluster are similar according to one or more (predefined) similarity criteria, but are not similar to input values ​​contained in another cluster.

[0135] Reinforcement learning is a third group of machine learning algorithms. In other words, reinforcement learning may be used to train machine learning models. In reinforcement learning, one or more software actors (referred to as "software agents") are trained to take actions in their surroundings. Based on the actions taken, rewards are calculated. Reinforcement learning is based on training one or more software agents to select actions that result in an increasing cumulative reward (as manifested by an increasing reward), resulting in the software agent becoming better at a given task.

[0136] Furthermore, some techniques may be applied to parts of the machine learning algorithm. For example, feature representation learning may be used. In other words, the machine learning model may be trained at least in part with feature representation learning, and / or the machine learning algorithm may include a feature representation learning component. A feature representation learning algorithm, which may be referred to as a representation learning algorithm, may not only preserve information in its input, but may also transform the information to make it useful, often as a pre-processing step before performing classification or prediction. Feature representation learning may be based on, for example, principal component analysis or cluster analysis.

[0137] In some examples, anomaly detection (i.e., outlier detection) may be used, which aims to provide identification of input values ​​that raise suspicion by differing significantly from the majority of the input or training data. In other words, a machine learning model may be trained at least in part with anomaly detection and / or a machine learning algorithm may include an anomaly detection component.

[0138] In some examples, the machine learning algorithm may use a decision tree as a predictive model. In other words, the machine learning model may be based on a decision tree. In a decision tree, an observation about an item (e.g., a set of input values) may be represented by a branch of the decision tree, and an output value corresponding to this item may be represented by a leaf of the decision tree. The decision tree may support both discrete and continuous values ​​as output values. If discrete values ​​are used, the decision tree may be represented as a classification tree, and if continuous values ​​are used, the decision tree may be represented as a regression tree.

[0139] Association rules are another technique that may be used in machine learning algorithms. In other words, a machine learning model may be based on one or more association rules. Association rules are created by identifying relationships between variables in large amounts of data. A machine learning algorithm may identify and / or utilize one or more association rules that represent knowledge derived from the data. These rules may be used, for example, to store, manipulate, or apply the knowledge.

[0140] Machine learning algorithms are typically based on machine learning models. In other words, the term "machine learning algorithm" may refer to a set of instructions that can be used to create, train, or use a machine learning model. The term "machine learning model" may refer to a set of data structures and / or rules that represent learned knowledge (e.g., based on training performed by a machine learning algorithm). In embodiments, the use of machine learning algorithm may refer to the use of an underlying machine learning model (or underlying machine learning models). The use of machine learning model may refer to the machine learning model and / or the set of data structures / rules that are the machine learning model being trained by a machine learning algorithm.

[0141] For example, the machine learning model may be an artificial neural network (ANN). An ANN is a system influenced by biological neural networks, such as those found in the retina or the brain. An ANN contains multiple interconnected nodes and multiple junctions, so-called edges, between the nodes. Typically, there are three types of nodes: input nodes that receive input values, hidden nodes that are (only) connected to other nodes, and output nodes that provide output values. Each node may represent an artificial neuron. Each edge may convey information from one node to another. The output of a node may be defined as a (non-linear) function of its inputs (e.g. the sum of its inputs). The inputs of a node may be used in a function based on the "weights" of the edges or nodes that provide the inputs. The weights of the nodes and / or edges may be adjusted during the learning process. In other words, training an artificial neural network may involve adjusting the weights of the nodes and / or edges of the artificial neural network to obtain a desired output for a given input.

[0142] Alternatively, the machine learning model may be a support vector machine, a random forest model, or a gradient boosting model. A support vector machine (i.e., a support vector network) is a supervised learning model with an associated learning algorithm that may be used to analyze data (e.g., in classification or regression analysis). A support vector machine may be trained by providing input with multiple training input values ​​that belong to one of two categories. A support vector machine may be trained to assign new input values ​​to one of two categories. Alternatively, the machine learning model may be a Bayesian network, which is a probabilistic directed acyclic graphical model. A Bayesian network may represent a set of random variables and their conditional dependencies using a directed acyclic graph. Alternatively, the machine learning model may be based on a genetic algorithm, which is a heuristic method that mimics search algorithms and the process of natural selection. [Explanation of symbols]

[0143] 110 Obtain embeddings for multiple candidate molecules 120 Determine one or more imaging parameters 130 Determine one or more parameters related to sample preparation 140 Acquire one or more images 150 Preprocessing one or more images 160 Process one or more images or information derived from one or more images to generate a predicted embedding. 170 Compare embeddings to expected embeddings 180 Select one or more candidate molecules 200 pre-trained large-scale language models 210 tag suggestions 215 Semantic Embedding 220 Chemical Synthesis 230 Sample Preparation 240 Data Recording 250 images 260 trained image recognition models 270 predicted / potential tag embeddings 280 comparison 290 Fine Tuning 310 Obtain a set of training data 312~314 Generate a part of the training data 320 Train a Machine Learning Model Train on 400 corpora 410 Image Recognition Machine Learning Model 420 Embedded 430 Loss Gradient 510 Train a second machine learning model 520 Generate embeddings of multiple molecules 530 Select multiple candidate molecules 600 Large corpus of data 610 Tokenization 620 trained large language models 630 Latent Vectors / Embeddings 710 de novo generated sequences 720 Select a candidate 730 Desired locus 740 Embedded Train with 800 classification objectives 810 Training with regression objectives 820 Select a candidate 830 Desired locus 900 Tags with known properties 910 Large-scale Language Models 920 Embedded Repositories 930 A set of points in a semantic space Predict 940 embeddings 950 Predicted Embeddings 960 A subset of candidates with desired properties 970 distance 1000 Imaging System 1010 System 1012 Interface 1014 Processor 1016 Storage device 1020 Optical imaging device / microscope 1100 System 1110 Microscope 1120 Computer Systems

Claims

1. A method for processing an image of an optical imaging device (240; 520), said method comprising the steps of: Obtaining (110; 200) embeddings (215) of a plurality of candidate molecules; acquiring (140) one or more images (250) of the optical imaging device for each candidate molecule, the one or more images displaying a visual representation (140) of a target property exhibited by the candidate molecule in the biological sample (230); processing the one or more images and / or information derived from the one or more images (160; 260) to generate, for each candidate molecule, a predicted embedding of the candidate molecule (270) using a machine learning model, the machine learning model being trained to output the predicted embedding for an input comprising the one or more images and / or the information derived from the one or more images (160; 260); comparing (170; 680) the embedding (215) of the candidate molecule with the predicted embedding (270) of the candidate molecule; selecting 180 one or more candidate molecules based on said comparison; and The method includes:

2. The target property is one of spatial distribution, spatiotemporal distribution, intensity distribution, and cell fate. The method of claim 1.

3. The candidate molecule is a molecule for transporting or retaining one or more payloads to a target area; 3. The method according to claim 1 or 2.

4. The one or more payloads include one or more of a fluorescent substance, an agent for affecting gene expression, an agent for binding to a receptor or enzyme as a ligand, an agent that functions as an allosteric regulator of the enzyme, and an agent that acts antagonistically to obtain a binding site as an antagonist. The method of claim 3.

5. The method includes determining (120) the one or more imaging parameters based on the target property of the candidate molecule; and acquiring the one or more images based on the determined one or more imaging parameters; and / or The method includes determining (130) for each candidate molecule one or more parameters related to a sample preparation (220) for preparing a sample having the respective candidate molecule, and outputting the one or more parameters related to the sample preparation.

5. The method according to any one of claims 1 to 4.

6. the machine learning model is trained to process a set of images representing the biological sample at two or more time points and output the predicted embeddings of the candidate molecules.

6. The method according to any one of claims 1 to 5.

7. The method includes training (320) the machine learning model using supervised learning and using a set of training data to output the predicted embeddings of the candidate molecules based on the one or more images or the information derived from the one or more images.

7. The method according to any one of claims 1 to 6.

8. The method comprises: generating embeddings of a plurality of molecules using a second machine learning model (520); selecting 530 a plurality of candidate molecules and corresponding embeddings from the plurality of molecular embeddings according to a selection criterion; Including, 8. The method according to any one of claims 1 to 7.

9. The method includes comparing an embedding of the molecule to one or more embeddings of one or more molecules having desired qualities with respect to the target property, and selecting a plurality of candidate molecules and corresponding embeddings based on the comparison; or the second machine learning model has an output indicative of a quality of the molecules with respect to the target property, and selecting the plurality of candidate molecules and corresponding embeddings is based on the output indicative of a quality of the molecules with respect to the target property. The method of claim 8.

10. using the second machine learning model to autoregressively generate the plurality of embeddings by selecting one or more additional tokens representing one or more additional portions of the molecule based on a starter token representing a portion of the molecule, and generating respective embeddings by combining each starter token with a corresponding one or more additional tokens.

10. The method according to claim 8 or 9.

11. The method includes training the second machine learning model using a corpus of tokenized representations of different molecules (510); The training is performed using a denoising target; and / or the second machine learning model is trained to predict one or more additional tokens given the one or more starter tokens.

11. The method according to any one of claims 8 to 10.

12. the second machine learning model is trained to output an embedding of the molecule based on an input including a representation of at least a portion of the molecule.

12. The method according to any one of claims 8 to 11.

13. 1. A method for training a machine learning model, the method comprising: Obtaining 310 a set of training data, the set of training data comprising a set of a plurality of training samples, each training sample comprising as training input data: a) one or more images displaying a visual representation of a target property exhibited by a candidate molecule in a biological sample; or b) information derived from the one or more images and embeddings of the molecule as a desired training output; training the machine learning model (320) using supervised learning and using the set of training data to output predicted embeddings of the candidate molecules based on the one or more images or the information derived from the one or more images; The method includes:

14. A system (1010) including one or more processors (1014) and one or more storage devices (1016), The system is configured to perform at least one of the methods according to claims 1 to 12 and the method according to claim 13. System (1010).

15. having a program code for performing the method according to any one of claims 1 to 12 or the method according to claim 13 when the program code is executed on a processor, Computer program.

Citation Information

Cited By

  • Learning device, inference device, learning method, and program

    WO2026115636A1