Abstract
Modern data-intensive techniques offer ever deeper insights into biology, but render the process of discovery increasingly complex. For example, exploiting the unique ability of single-molecule fluorescence microscopy (SMFM)1–5. to uncover rare but critical intermediates often demands manual inspection of time traces and iterative ad hoc approaches that are difficult to systematize. To facilitate systematic and efficient discovery from SMFM data, we introduce META-SiM, a transformer-based foundation model pre-trained on diverse SMFM analysis tasks. META-SiM achieves high performance—rivaling best-in-class algorithms—on a broad range of analysis tasks including trace selection, classification, segmentation, idealization, and stepwise photobleaching analysis. Additionally, the model produces high-dimensional embedding vectors that encapsulate detailed information about each trace, which the web-based META-SiM Projector (https://www.simol-projector.org) casts into lower-dimensional space for efficient whole-dataset visualization, labeling, comparison, and sharing. Combining this Projector with the objective metric of Local Shannon Entropy enables rapid identification of condition-specific behaviors, even if rare or subtle. As a result, by applying META-SiM to an existing single-molecule Förster resonance energy transfer (smFRET) dataset6, we discover a previously unobserved intermediate state in pre-mRNA splicing. META-SiM thus removes bottlenecks, improves objectivity, and both systematizes and accelerates biological discovery in complex single-molecule data.
Introduction
In the main strength of single-molecule observation also lies its greatest challenge: while it can reveal transient intermediates and other rare behaviors that would be masked in ensemble measurements, identifying such rare states in datasets of thousands of single-molecule traces is often time- and labor-intensive. While initial population-level characterization through FRET efficiency histograms7,8 or transition occupancy density plots (TODPs)9 is informative, such methods still require careful trace curation, do not capture the entirety of information contained in single-molecule traces, and can still obscure, e.g., minority FRET states or changes in kinetics through the underlying ensemble averaging. This is particularly true in multi-step biological processes such as translation and pre-mRNA splicing, where it may be impossible to strongly enrich for specific intermediates while maintaining conditions that closely resemble the native intracellular context. As a result, manual inspection of traces is still an indispensable step in many SMFM studies, introducing potential bias and slowing the pace of discovery. Furthermore, distinguishing biologically significant minority behaviors from artifacts is not trivial10, and often requires deep domain expertise in single-molecule biophysics. Thus, although the increased commercial availability of turnkey fluorescence microscopes has rendered SMFM more accessible, the analysis of single-molecule results continues to require extensive domain knowledge, and remains time- and labor-intensive despite the community’s progress towards standardizing and streamlining workflows11–14.
A key obstacle to devising a more comprehensive, systematic method for analysis and discovery in SMFM experiments is the diverse array of information it must encompass, such as (i) FRET efficiency as a measure of distances7,8; (ii) kinetics of state transitions15–20; (iii) the presence and number of photobleaching steps21–23; and (iv) the presence and kinetics of fluorophore blinking24,25. Extraction of this information is typically achieved through explicit physical or statistical models with well-defined parameters26 such as with Hidden Markov modeling (HMM)27–29. However, HMM idealizations reflect only a subset of the information contained in the data, potentially discarding useful information (e.g., non-Markovian behavior, or rapid dynamics that may superficially appear as measurement noise in an SMFM trace15). Furthermore, critical decisions such as which segments of traces to include in further analysis depend on features that are not straightforward to encapsulate in conventional algorithms, such as the sequence of disappearance of donor or acceptor fluorophores, the presence or absence of one or more photobleaching steps, and absence of intrinsic measurement artifacts. Due to these complexities and their varying applicability to different systems, researchers often develop customized tools only applicable to specific data analysis tasks and apply them in an ad hoc fashion, reducing the generality as well as the accessibility of these tools to non-experts3.
To address these challenges, we introduce a foundation model, META-SiM or Multitask Enabled Transferrable Attention model neural network for processing Single-Molecule fluorescence traces (Fig. 1). Rather than the task-specific training of earlier deep learning approaches30,31, META-SiM adopts a holistic approach, learning diverse characteristics of fluorescence traces in a network training strategy increasingly popular in natural language processing32–34, but underexploited in scientific research. This strategy divides the network training into upstream pre-training and downstream use cases with specific fine-tuning. Here, we pre-trained META-SiM with simulated fluorescence traces designed to capture a broad range of characteristics (Fig. 1b), and fine-tuned it with experimental or simulated fluorescence traces for specific downstream use cases (Fig. 1h, i, j), covering most single-molecule data analysis needs for one- and two-color measurements, including: (i) trace classification and segmentation; (ii) trace idealization; (iii) photobleaching step counting; and (iv) kinetic fingerprinting. The use of simulated traces for pre-training is important because, unlike experimental data, it provides training datasets of defined ground truth and much larger (~1 million) than those typically collected in single-molecule experiments (hundreds to thousands). META-SiM achieves high performance in all four prototypical use cases, either with no further training or with fine-tuning on very small datasets (comprising ~100 traces), demonstrating its high adaptability compared to previous deep learning approaches14,30,31.
Moreover, to aid in dataset visualization and exploration, we leveraged META-SiM’s unique ability to transform fluorescence time traces (Fig. 1a) into high-dimensional latent space embeddings to create the META-SiM Projector (Fig. 1c), an online interactive visualization tool that streamlines identifying patterns among complex single-molecule datasets. Using this Projector, we constructed an smFRET Atlas (Fig. 1d) as a step towards the comprehensive, standardized representation of information from smFRET traces in a common feature space. To conquer the “black-box” nature of deep neural networks, we introduce a Principal Projection function to help users interpret the clustering of projected traces and easily understand the model’s predictions (Fig. 1l). We also propose two useful metrics calculated from the META-SiM embeddings: a label Self-Consistency Score (SCS; Fig. 1k), which can be used to evaluate the quality of labels created by different users, as well as an objective method for training new users; and Local Shannon Entropy (LSE; Fig. 1e, f), which can be used as an index to quickly identify condition-specific behaviors, even when they are rare—often a key rate-limiting step in discovery. For instance, we show that projecting smFRET datasets from a previous study of paused transcriptional elongation complexes, color-coded by LSE, enables rapid identification of salt-dependent trace behaviors35.
Finally, as a more stringent test of the ability of META-SiM to expedite discovery in SMFM data, we applied it to an smFRET dataset from an in vitro study of the spliceosome in yeast whole cell extract6. Despite this system’s complex multi-state FRET dynamics, users with no prior knowledge of splicing exploited META-SiM and its LSE metric to efficiently (within one week) identify a new intermediate state, not previously detected by bioinformatic cluster analysis6, but later biochemically isolated36, describing an extended pre-mRNA conformation involved in 3’-splice site selection. These results illustrate the potential of META-SiM and its Projector to reduce the burdens of time and expertise, thereby accelerating the pace of discovery from complex single-molecule datasets.
Multitask Pre-Training of META-SiM
As is common with AI foundation models,37 we employed a multitask training strategy (see Methods) in order to (1) reflect all essential capabilities in SMFM and (2) permit optimization of network hyperparameters to simultaneously accommodate all tasks. META-SiM comprises a multi-layer attention model that generates trace- and frame-level embedding vectors (Fig. 2), which are shared among tasks. For each task, we use a task-specific linear projector (“Head”) to convert the embeddings into the target space (Fig. 2). Pre-training was performed using 1 million synthetic traces that simulate a wide range of one- and two-color channel behaviors, including varying kinetics, numbers of states, and signal-to-noise ratio (SNR; Methods, Supplementary Table 1). While such synthetic data run the risk of exhibiting artificial traits or not representing the full range of possible experimental behaviors, leading to potential performance gaps when applied to experimental data, our multitask pretraining leaves no such gaps in downstream tasks (Fig. 3). We hypothesize that the diversity of our training tasks harmonizes the learning from individual tasks, allowing the model to learn fundamental traits more generalizable than those learned from only one or two specific tasks.
META-SiM achieves high performance in diverse downstream tasks with minimal fine-tuning
Performance evaluation and benchmarking is important to establish not only META-SiM’s reliability as an analysis tool, but the accuracy and relevance of the information contained in its output embeddings that are employed for visualization and discovery. We considered four distinct use cases reflecting common needs in analysis of single-molecule time traces—trace classification and segmentation, trace idealization, stoichiometry analysis, and kinetic fingerprinting—and benchmarked performance against existing state-of-the-art or commonly used tools (Fig. 3, Methods, Supplementary Fig. 1). In contrast to earlier task-specific neural network-based tools, META-SiM rivals both advanced computational tools and manual analysis on all tasks. The model successfully curated and segmented traces from five distinct smFRET datasets to build accurate FRET histograms (Fig. 3a–d); idealized traces in a two-state system to extract accurate dwell time distributions, rate constants, and FRET states (Fig. 3e–g); counted photobleaching steps in close agreement with manual analysis (Fig. 3h, i); and discriminated between a point mutant and wild-type DNA sequence by SiMREPS kinetic fingerprinting38 with higher sensitivity and specificity than the original HMM-based analysis (Fig. 3j, k). While supervised fine-tuning of the model based on user-labeled examples using a logistic regression (see Methods) was used to improve the accuracy of the model at most tasks, since such fine-tuning only involved re-training the final layer of the network, it could be achieved with only ~100 examples, 10- to 100-fold fewer than for previous task-specific tools based on deep neural networks14,30,31, and could thus be performed locally on a standard laptop computer (see Methods). In addition, this fine-tuning can typically be skipped entirely if a desired task, such as trace idealization, is already among the tasks the model was pre-trained on (Fig. 3f, g, Supplementary Table 1).
META-SiM Projector: a flexible and powerful tool for visualizing whole single-molecule datasets
The complexity and heterogeneity of single-molecule datasets makes them challenging to visualize in a comprehensive manner with conventional methods, frequently necessitating labor-intensive inspection of individual traces to develop a thorough understanding of an experiment. Since META-SiM generates a trace-level embedding vector broadly encoding the attributes important for the multiple analysis tasks on which the model was trained, entire single-molecule datasets (regardless of complexity) can be visualized by projecting these high-dimensional embeddings into a cloud of points in 2D or 3D space using dimensionality reduction algorithms such as PCA39, UMAP40 and t-SNE41, where each point represents a single time trace (Fig. 4a). To test whether the pattern of point clusters in these projections meaningfully represents the clustering of relevant data attributes, we constructed and visualized synthetic time trace datasets―not used for training―with controlled variations in commonly considered data attributes such as SNR (Fig. 4b), state dwell times (Fig. 4c), FRET values (Supplementary Fig. 2a), number of FRET states (Supplementary Fig. 2b), and number of photobleaching events (Supplementary Fig. 2c) while keeping other attributes constant. The clustering of traces with similar traits in the 2D UMAP plots aligns well with variations in each attribute, demonstrating the effectiveness of the dimensionality reduction. Furthermore, when we performed the UMAP operation on experimental traces from datasets D1 (Fig. 4d) and D2-D5 (Supplementary Fig. 2d-g) that were manually either accepted or rejected by researchers for further analysis, the clustering of points was correlated with the labeled subgroups (Fig. 4d). Note that the META-SiM Projector also allows individual traces to be inspected and their nearest-neighbor traces (most similar in embedding vector) to be highlighted by clicking on points in the projection, enabling interactive exploration of the structure of heterogeneous single-molecule datasets.
While these projections are comprehensive, a limitation is that they may not always yield strong clustering with respect to a variable of interest (Fig. 4e). To enable visualization of datasets based on specific data traits, we leveraged our multitask training strategy to group the 30 training task heads into seven attributes (three attributes for single-channel data; Supplementary Table 1), and calculated the operator for each attribute by low-rank matrix decomposition. In this way, an embedding projected to each attribute’s dimension was generated before the dimensionality reduction operation, yielding a “Principal Projection” that reflects the desired combination of traits (Fig. 4f, Methods). Thus, when specific data attributes are known or suspected to be important in differentiating populations of traces, this Principal Projection operation can be employed to more clearly segregate populations into meaningful clusters (Fig. 4g) than the general UMAP operation (Fig. 4e). In addition, the Principal Projection permits visualization of the basis of decisions by the network, such as those made in classifying traces or counting photobleaching steps (Fig. 4h–j). The network-predicted labels are clustered differently under different Principal Projections (Supplementary Fig. 3), providing insights into the most dominant differentiating factor(s) in the network’s decision-making process. The fractional contribution of each attribute in decision-making can be quantified as the correlation between the network’s head layer and each Principal Projection operator (see Methods), notably yielding quantitative insights into the importance of each attribute in predictions by the network (Fig. 4l, Supplementary Fig. 4). The Principal Projection can also yield tighter clustering based on known combinations of traits, providing a potential basis for multiplexed detection of distinct molecular species based on their trace characteristics. For example, three related macromolecular complexes (DNA walker systems with different stepping rates) were separated well in a Principal Projection based on two dimensions: kinetic rate and FRET value (Fig. 4k).
Although the above methods can greatly facilitate understanding of complex single-molecule datasets and classification decisions made by the network, the experiment-specific projections are not optimal for comparisons between experimental systems or laboratories. To establish a universal framework for such comparisons, we constructed a UMAP model based on 1 million simulated traces to create an smFRET Atlas capturing a broad range of commonly relevant characteristics (Fig. 4m): FRET state number, SNR, FRET values, and transition rates. In this Atlas, traces with similar characteristics (e.g., rapid 2-state transitions between a low- and a mid-FRET state with high SNR) cluster together, and the separation between these clusters increases when only high- or low-SNR traces are considered (Supplementary Fig. 5). This smFRET Atlas thus provides a common coordinate space for visualizing and comparing traces from different datasets based on their FRET states and dynamics, with the potential to standardize SMFM analysis.
Model-derived metrics enable systematic quality control and hypothesis generation
The information META-SiM stores in embedding vectors provides a basis not only for analysis and visualization of single-molecule data, but for extracting quantitative metrics that assess the consistency of analysis or identify behaviors unique to certain experimental conditions. For example, consistency of trace labeling and segmentation—either for conventional analysis or fine-tuning of META-SiM—is a critical aspect of single-molecule analysis, but challenging to objectively assess due to the wide range of data characteristics and use cases that must be considered. To address this need, we leverage the detailed information about trace characteristics encapsulated in the high-dimensional embeddings to define label SCS, whose value (ranging from 0 to 1) indicates the degree of alignment with labels for similar traces (Figs. 1k, 5a; Methods). The label SCS empowers researchers to not only produce high-quality training data for the foundation model, but also to identify possible human errors during manual data analysis. For each of the five datasets examined here, the label SCS initially increases as a researcher labels an increasing fraction of traces, approaching an asymptotic consistency score (generally ≥ 0.8) after ~5–20% of traces are labeled (Fig. 5b). The SCS varies among individual experiments for any given system, but the mean score is generally above 0.8 for our five experimental datasets (Fig. 5c). As many experiment-specific factors can impact labeling consistency, one should be cautious not to over-interpret the absolute value of the SCS between different experimental systems. However, for a given experimental system, the SCS provides meaningful quantitative feedback about labeling consistency. Based on these results, we suggest targeting a label SCS of at least 0.8 as a general rule-of-thumb (Fig. 5c); a lower score may signal inconsistent analysis and/or indicate that further labeling should be performed.
Another critical challenge in single-molecule analysis is the identification of new or unique behaviors in large and heterogeneous datasets. This conventionally requires ad hoc approaches that involve an initial (often manual) trace curation, followed by population-level characterization by FRET histograms, TODPs, and/or kinetic analysis (e.g., dwell time or cross-correlation analysis) tailored to the system in question. Because it may not be known in advance what new behaviors will arise under certain experimental perturbations, and how compatible these behaviors are with model (e.g., HMM) assumptions, the selection of processing methods often involves substantial manual trace inspection as well as trial-and-error, reducing efficiency and possibly missing significant discoveries. To systematize this process of discovery, we propose the LSE metric, which evaluates the level of rarity of trace behaviors across multiple datasets (see Methods). Trace behaviors common across a group of datasets possess a high LSE, while those found only in a minority of datasets have a low LSE. Thus, clusters of traces with low LSE (e.g., on a UMAP projection) may signal the presence of behaviors strongly dependent on experimental conditions. To evaluate the utility of this metric on experimental data, we calculated the LSE for 9 experiments from a titration of KCl into the paused transcriptional elongation complex (D4 in Fig. 3a). In a common UMAP projection space, non-curated traces with low LSE in 50 mM KCl (Fig. 5d) are clustered in a different region than at 1,000 mM KCl (Fig. 5e), indicating KCl-dependent behaviors. These differences are highlighted even more strongly if only the 10% of traces with lowest LSE across all conditions are plotted (Supplementary Fig. 6e, f). Inspection of these low-entropy traces reveals a shift from predominantly low-FRET to high-FRET behaviors as KCl is increased, which is also reflected in FRET histograms of the two conditions (Supplementary Fig. 6d, h). However, unlike FRET histograms, the LSE-coded UMAP plots preserve individual trace information, can encapsulate a broader set of characteristics such as kinetics, and do not require prior trace curation (Supplementary Fig. 6a, b, c, d). The FRET histogram of the 10% lowest LSE traces clearly unveiled that the inflection point from low- to high-FRET resides at 400 mM KCl (Supplementary Fig. 6h), while the change from 300 mM to 400 mM KCl is recognizable, but not obvious in the corresponding traditional FRET histograms (Supplementary Fig. 6i). The LSE metric thus facilitates rapid identification of condition-specific trace behaviors without prior assumptions of which traits to consider, resulting in better informed analysis method selection.
META-SiM Projector and LSE enable efficient discovery of a new intermediate in a complex smFRET system
Single-molecule data are inherently complex, but become even more so in the case of experimental systems that strive to reconstitute multistep biological processes such as translation or splicing. In such systems, observed behaviors result from the often complicated, dynamic interactions between one or more substrates and potentially several catalytic subunits and cofactors. Even with carefully designed controls to stall such pathways at specific steps, finite efficiency and a lack of synchronization dramatically increase the degree of heterogeneity of the observed single-molecule behaviors. As a result, even the intermediates of greatest biological insight, such as those appearing only in complexes stalled by the omission of a specific cofactor, may comprise only a small minority of the traces observed. A general method to quickly identify such condition-specific behaviors would greatly accelerate the pace of discovery. While the single-molecule clustering analysis (SiMCAn) method6, developed to systematically cluster related behaviors from highly heterogeneous datasets from a smFRET study of pre-mRNA splicing, represents progress towards this goal, it still relies on explicit modeling (e.g., HMM) and lacks a quantitative metric like LSE to quickly visualize and identify condition-specific behaviors.
To test its ability to accelerate discovery from such complex biological systems, we used META-SiM to analyze the smFRET data from the SiMCAn study of the yeast spliceosome, in which dynamic rearrangements of a pre-mRNA substrate were monitored as a function of progression through the splicing pathway6. In this study, a Ubc4 pre-mRNA substrate was labeled with a FRET pair comprising a Cy5 seven nucleotides upstream of the 5′ splice site (5′SS) and a Cy3 six nucleotides downstream of the branch point (BP; Fig. 6a), and immobilized via the biotin-streptavidin interaction on a quartz slide for smFRET imaging. The splicing pathway was stalled at specific steps by mutation of the pre-mRNA or of cofactors, or by depletion of specific cofactors from the extract, and the impacts of these perturbations on pre-mRNA dynamics monitored by smFRET (Fig. 6b). We used META-SiM to convert the smFRET traces from all experimental conditions to embeddings and calculated the LSE (Supplementary Fig. 7). Focusing on four of the most critical conditions related to the first and second steps of splicing (Fig. 6c), UMAP projections of the trace embeddings into either the smFRET Atlas (Fig. 6c) or system-specific (Fig. 6d) coordinates clustered low-entropy traces in specific regions. By contrast, for three of the four conditions, any differences in the FRET histograms (Fig. 6e) and TODPs (Fig. 6f) are subtle. By plotting only the 10% lowest-LSE traces across all datasets, we were able to isolate condition-specific behaviors in the UMAP projections (Fig. 6g–h), FRET histograms (Fig. 6i), and TODPs (Fig. 6j). Not only is the transition from a predominantly low-FRET state in the ΔPrp2(WT) condition to a predominantly high-FRET state in Prp16DN(WT) more prominent among the low-entropy traces, but there is evidence of a re-emergence of a minority low-FRET state in the WT(3’SS) and WT(WT) conditions (Fig. 6i). These observations suggest that the pre-mRNA is locked in a high-FRET conformation in the absence of a functional Prp2 helicase (Prp16DN(WT)), but can enter a state with a more extended (low-FRET) pre-mRNA in the presence of a functional Prp2 (WT(3’SS) and WT(WT) conditions; Fig. 6b red dashed box). This minority low-FRET population, not detectable in the original SiMCAn splicing study6, is consistent with observations from a later study that biochemically isolated an inactivated complex with an extended pre-mRNA36, and represents a rare and transient intermediate conformation involved in repeated 3’SS sampling that appears only in the presence of functional Prp2 and Prp22 helicases (Fig. 6b).
Notably, the 10% lowest LSE traces are distributed differently across experimental conditions (Supplementary Fig. 8), which can help identify which conditions may yield the most unique or interesting behaviors. Our unprecedented discoveries from existing smFRET data were not evident until the traces with lowest LSE (most condition-specific behavior) were isolated and their properties examined, thus demonstrating the potential of the LSE metric and META-SiM Projector to readily identify rare, but biologically important behaviors in complex datasets.
Discussion
Despite the power of single-molecule methods to deliver unique insights into the dynamic and heterogeneous properties of many biological systems19,20,42,43, their utility as a discovery tool has been hampered by data complexities that necessitate inefficient manual and ad hoc approaches for analysis. While automated tools and software have been developed to streamline or systematize data analysis, they have to date focused only on narrow sets of tasks30,31 or required the use of explicit physical or statistical models26–29 that, depending on the validity of model assumptions and the quality of fitting, may not accurately capture the full range of behaviors within a dataset. In addition, none of the existing tools provide a means of comprehensively visualizing the structure of SMFM datasets according to trace characteristics, or systematically identifying rare or condition-specific behaviors, without prior assumptions regarding what traits to consider.
Due to its multitask training, META-SiM not only excels at a variety of common single-molecule analysis tasks with little or no fine-tuning data but, by virtue of its high-dimensional output embeddings that encapsulate a rich array of information about each trace, establishes a new paradigm for systematic, open-ended biological discovery in single-molecule datasets. In particular, the META-SiM Projector enables the intuitive visualization of entire datasets and interactive inspection of related behaviors, while the LSE metric permits isolation of condition-specific trace behaviors—even if rare—for rapid hypothesis generation and further analysis. These capabilities not only enable more efficient discovery in conventional single-molecule studies, but may also lay the foundation for much higher-throughput discovery and screening efforts involving single-molecule observation, as well as facile data comparison across research groups.
Strikingly, this systematization allowed non-experts with no prior knowledge of splicing or the smFRET system to quickly identify a new intermediate that was not observed in the original study producing the data, despite the use of advanced data clustering methods6. The dataset visualization and LSE-based filtering tools, together with the automated trace classification and segmentation capabilities of META-SiM, render interpretation of single-molecule results much more accessible to researchers without expertise in single-molecule methods. The SCS metric further promotes accessibility and quality control by providing feedback on the consistency of trace classification and segmentation, while the web-based META-SiM Projector provides intuitive means of labeling datasets for model fine-tuning as well as sharing datasets and analyses with other researchers. Thus, while some domain expertise will still be required for full interpretation of results, META-SiM and its Projector have the potential to greatly streamline the analysis and discovery processes, which may contribute to the democratization of SMFM techniques by rendering their analysis more accessible to researchers outside of single-molecule biophysics.
Finally, the smFRET Atlas (Fig. 4m) offers a powerful means of visualizing and comparing entire single-molecule FRET datasets in a common space that reflects differences in FRET efficiency, number of states, kinetics, and other parameters relevant to smFRET analysis. Importantly, this and other visualizations in the META-SiM Projector can be performed without any prior curation, manual inspection, or model-based processing of traces, thus providing a rapid overview of even complex datasets prior to detailed analysis.
Foundation models have ushered in a revolution in natural language processing and other domains due to their versatility and consideration of a wide range of relevant information. In line with these precedents, we hope META-SiM will greatly increase the pace and scope of discovery in single-molecule biology. In the future, the model may be extended to an even wider range of applications in single-molecule biophysics. Furthermore, connecting the high-dimensional embeddings generated by META-SiM to large language models may allow users to summarize and interact with these complex datasets using natural language for even greater accessibility.
Methods and Materials
Network Formulation
Prior to feeding it into the network, each trace is divided into 50-frame patches and tokenized with a linear projection operation; each token thus reflects more information than a single frame, including short-range intensity changes and fluctuations. To encode the time dimension, we built a tokenizer similar to the one used for images in a vision transformer44: that is, we added a learnable position embedding45 to the tokens before the first layer of the attention model. In addition, we prepended a special learnable “trace-token” to the sequence of trace tokens to represent the intention to seek trace-level information, analogous to the class token in the language model BERT45. The corresponding output of the network from this trace-token is used for trace-level tasks, while output of other tokens was used for frame-level tasks. The attention block consists of multiple identical attention layers and maps the sequence of tokens to a sequence of embedding vectors. As a token represents a patch comprising multiple (50) frames, we further map the embedding vector of each patch to a list of embedding vectors for all frames with a linear projector to yield frame-level resolution for each trace. Both the trace-level and the frame-level embeddings are shared for all tasks.
We represent each time trace as a tensor where is the total number of time steps and is the number of color channels. for two-color smFRET time traces and for single color time traces. For ease of network training, we always use and fill any non-existing color channel with zeros. We set up the tokenizer as a matrix multiplication operator over a segment of time steps. Each segment is a vector denoted as , where is the width of the tokenizer, and the tokenization operation is:
where and are the weights and bias of the tokenizer, respectively, is the dimension of the embedding vectors, and Matmul denotes the matrix multiplication operation.
The tokenized sequence has a length of . We prepend a learnable class token and add a learnable absolute position embedding to the sequence. Therefore, the input sequence to the attention model is of length . We denote it as .
We use N layers of the standard multi-head self-attention model with layer normalization to operate on :
We use the first step of as the trace-level embedding denoted as , and denote the remaining time steps as . We further implement an unstack operator, the reverse operator of the tokenizer, to convert into the embedding for each time step in the original time trace. The unstack operator reads:
where is the weight.
Synthetic Training Data Generation
To obtain enough training data for all tasks, we used a trace simulator31 to generate over 1 million synthetic traces. Ground truth labels were generated from simulation parameters or ideal measurements with no noise. The simulation is based on the stochastic Markov chain process describing the state transitions of a time trace. To sample simulation parameters, we first sample the number of distinct states uniformly ranging from 1 to 4, and then the initial state probability distribution and transition probability matrix from independent uniform distributions, where is the initial state and and are the states before and after a transition. We also sample the total intensity from a uniform distribution. We can thus generate a two-color time trace or one-color time trace that has states and transitions but no noise or photophysical behavior.
Next, we simulated the photophysical behavior including photobleaching, blinking and quantum yield. We sampled the photobleaching lifetime for each color channel from independent exponential distributions with expected lifetime sampled from a uniform distribution ranging from 1 frame to 2000 frames. Then we sampled the blinking of Cy3 dye by sampling the non-blinking lifetime and the blinking lifetime from independent exponential distributions with expected lifetime and sampled from uniform distributions. Finally, we drew the relative acceptor brightness parameter from a uniform distribution from 0.9 to 1.0 and multiplied this value with the original to generate the new .
Lastly, we added Gaussian noise to the intensity traces, as well as a constant offset value, sampled from a uniform distribution yielding 1.8 < SNR < 6, to represent background signal.
Multitask Training and Hyperparameter Optimization
We used the synthetic training data to create various learning tasks (Supplement Table 1) for the network to recognize important features of single molecule time traces. These learning tasks include trace-level tasks such as recognizing kinetic states, SNR, photobleaching lifetime and blinking, and frame-level tasks such as recognizing regions of active kinetic transitions and predicting idealized FRET states. We designed a multitask pre-training strategy to optimize the training on all trace- and frame-level tasks simultaneously using the combined loss of all tasks. One common challenge when combining the loss of multiple tasks is that one or a few tasks can dominate the total loss, leading to the network being poorly optimized on other tasks. For example, the labels measuring photobleaching lifetime have a range of [1, 2000] frames, while the labels measuring FRET ratio have a very different range of [0, 1]. If we use a mean-absolute-error loss, the network will likely be optimized for photobleaching lifetime but poorly optimized for FRET value prediction. In addition, the training dataset includes both classification and regression tasks, necessitating a unified loss function. To address this concern and unify the loss function across all tasks, we employed a cross-entropy loss function and quantized all tasks as multi-class classification problems, unifying classification and regression tasks. Specifically, we quantized the labels for all tasks and used a KL divergence loss function for all the tasks. The loss function, which is denoted as:
and measures the difference between the training labels’ empirical probability distributions and the model’s predictions , is similarly valued for all tasks even though their labels have divergent values. Putting it together, the combined loss function to optimize, ignoring the constant terms, is:
as a function of network parameter .
To generate , we used an independent linear operator for each task followed by a softmax operation to generate a probability distribution. We denote the trace- or frame-level encoding outlined in Network Formulation as , the predicted probability distribution is:
where and are the task-specific weight and bias.
Another common challenge in multitask learning is competing tasks leading to poor optimization. To avoid training tasks in the next iteration of network training unintendedly competing with those of the previous iteration, we made sure each iteration’s training data were sampled evenly from all training tasks (Fig 2b). The network was optimized using the ADAM optimizer46 with and . The network was trained on 1.5 million synthetic time traces, equivalent to 55 gigabytes of float32 data, for 2 days on a single NVIDIA A100 GPU.
The training and validation loss decay approximately linearly as a function of the logarithm of training steps, showing the slow-down of network optimization as the compute time increases (Fig. 2c). We optimized the important hyper-parameters of the network by a grid search of the depth, width, the number of attention heads, the activation function in each attention layer, and the width of the tokenizer (Supplementary Fig. 9a, b, c, d). The lowest validation loss, indicating the best performance, was obtained for a self-attention network 4 layers deep and 96 dimensions wide with 4 attention heads, with a Gaussian Error Linear Units activation function, comprising a total of 7 million parameters. Further increasing the number of network parameters by increasing the depth, the width, or the number of attention heads did not additionally decrease the validation loss (Supplementary Fig. 9e), a sign that the network’s learning capacity is high enough to learn the features of the time traces in the training data. In other words, we do not expect that a larger foundation model would dramatically increase the performance on common single molecule data analysis tasks unless more complex synthetic data generation models—resembling more complex experimental systems—must be included for model training.
Supervised fine-tuning
To fine-tune META-SiM for common downstream tasks (Fig. 3), we assigned a new head to the model containing one linear classification layer for each task, and performed a logistic regression to the head with a small amount of labeled data on the order of 100–1,000 traces. Specifically, we perform supervised fine-tuning with frozen encoders, a widely used fine-tuning strategy for small datasets. In this fine-tuning, referred to as “logistic regression” (LR), only and in the last classification layer are varied during training, while the remaining network parameters in are kept fixed. This vastly reduces the amount of data and computational power required for training; for example, fine-tuning using 100–1,000 labeled traces can be completed on a typical laptop in a few minutes. While the network also supports fine-tuning that updates all the model’s parameters, this is not anticipated to be a common need, and is not used for any of the examples in this study.
Evaluation of Performance in Downstream Tasks
To evaluate the performance of META-SiM fine-tuned for trace classification and segmentation—e.g., to identify traces and segments thereof that provide meaningful information, an essential early step in analysis of smFRET traces—we employed five experimental smFRET datasets (Fig. 3a). For benchmarking, we used the previously reported task-specific deep learning model DeepFRET31, but initially found that its direct application to D1-D5 yielded low concordance (below 80%, Fig. 3b). This suggests that DeepFRET may not generalize well to these five experimental systems without further fine-tuning. Therefore, for a fair comparison we performed the same logistic regression operation with the same fine-tuning dataset as META-SiM to yield a fine-tuned DeepFRET (Fig. 3b, c). Across the five datasets, META-SiM_LR_CS and DeepFRET achieved similar concordance (Fig. 3b), FRET-distribution overlap (Fig. 3c), and area under the receiver-operating characteristic curve (ROC AUC) (Supplementary Fig. 2a), indicating comparable performance of META-SiM to a state-of-the-art task-specific network when both models are similarly fine-tuned for the task. Compared to our previous network Auto-SiM30, a task-specific deep learning network for classification and segmentation that used more than 50,000 manually labeled experimental traces for training, META-SiM_LR_CS achieved a similar ROC AUC while needing only 82–215 (Supplementary Table 2) labeled traces for fine-tuning and no experimental data in pre-training. This >200-fold reduction in the amount of manually labeled data required for fine-tuning makes META-SiM much more practical as a customizable labor-saving tool than task-specific models, while retaining high performance. Note that the web app META-SiM Projector streamlines the creation of these manual labels for new datasets in case any fine-tuning is needed.
To evaluate the performance of META-SiM in trace idealization without fine-tuning, we used META-SiM directly to idealize 19 traces from a dataset in a public benchmark study14 of a two-state smFRET experimental system. Rate constants of FRET transitions were obtained by exponential fitting of the cumulative dwell time distributions in the low- and high-FRET states from these idealizations (Supplementary Fig. 1c). As ground truth values of the rate constants and FRET states in the experimental dataset are unknown, the results from META-SiM were compared with those from 14 other methods (Fig. 3f, g), following the assessment conventions in the prior benchmarking study14. The kinetic constants derived from the idealized FRET states by META-SiM deviate a modest 3.6% and 6.8% from the mean predicted for the kinetic constants and , respectively, while the FRET state values predicted by our model deviated only 0.86% and 0.24% from the mean predictions, respectively. By comparison, the mean deviation from the mean prediction among the 14 other tools were 9.2% and 12.1% for kinetic constants and and 1.4% and a 0.42% for the FRET state values, respectively. The fine-tuned version (META-SiM-FT) for trace idealization gave similar results compared to the non-fine-tuned one (Supplementary Fig. 1g, h). These findings demonstrate that META-SiM performs on par, if not better, than all other currently available, state-of-the-art single molecule analysis tools.
To evaluate the performance of META-SiM in counting photobleaching steps—apparent as instantaneous drops in fluorescence corresponding to the bleaching of single fluorophores—we compared the predictions of the model to those of manual counting by researchers. This strategy was implemented because incomplete labeling and activity of fluorophores makes it challenging to ascertain a ground truth in these experiments. The fine-tuned META-SiM achieved a concordance of 68.0% for exact count matching and 90.0% for exact or off-by-one matching (Supplementary Fig. 1e). For reference, concordance between independent researchers was higher, at 84.5% for exact count matching and 95.0% for exact or off-by-one matching (Supplementary Fig. 1e). However, the histogram of photobleaching steps counted by META-SiM is in close agreement with the manual labeling (Fig. 3i), and the mean number of steps (3.9 +/− 0.14, 1 s.d.) aligns well with the mean value from manual labeling (3.9 +/− 0.13, 1 s.d.).
To evaluate the performance of META-SiM for single-molecule recognition through equilibrium Poisson sampling (SiMREPS)38,47, we tested its ability to distinguish traces resulting from EGFR fragments containing the cancer-related single-nucleotide substitution T790M (mutant) and those from wild-type EGFR fragments (Fig. 3j,k)48. Compared to conventional classification based on HMM fitting followed by kinetic thresholding, META-SiM consistently accepts more true positives and fewer false positives, corresponding to an ~40% increase in sensitivity and an ~3.75-fold increase in specificity (Fig. 3k). META-SiM also increases the sensitivity by 1.4-fold for a standard curve of T790M in the absence of wild-type sequence (Supplementary Fig. 1f). This high performance, despite fine-tuning only for the last layer of the network with less than 200 trainable parameters, suggests that the META-SiM foundation model can be easily adapted to a wide variety of specialized trace-classification tasks.
META-SiM Projector
To help researchers easily visualize dimensionally reduced projections of their own single-molecule data and apply labels for fine-tuning of the foundation model to their own projects, we built an online interactive tool called META-SiM Projector (https://www.simol-projector.org). This tool allows users to visualize the embeddings generated by META-SiM from their own experimental data as 2-D or 3-D projections created with PCA, t-SNE or UMAP algorithms. In these projections, each point represents a single-molecule trace. When a point is selected, the corresponding trace is shown along with a list of other traces ordered by distance in embedding space from the selected trace, facilitating interactive browsing of the dataset by trace similarity. Users can also use a label creation tool to apply numerical, text, and/or Boolean labels to traces; upon so doing, label Self-Consistency Scores (SCS) are calculated in real time for feedback on the consistency of labeling. These labels can then be directly used for fine-tuning of META-SiM via the provided Google Colab notebooks (https://www.simol-projector.org), and can be saved with the raw time traces to a local hard drive. Even in cases where META-SiM performs well without fine-tuning, manual labeling of a small subset of the data (followed by complete labeling with the fine-tuned model) can be very useful as an annotation tool that facilitates recognition of patterns in a dataset from its projection plot (e.g., UMAP). PCA, t-SNE and UMAP embedding projections can be exported as images, and individual time trace plots can be saved as vector graphics files. META-SiM Projector also allows isolation of individual sub-populations within a dataset and re-calculation of the embedding projection to investigate variation within the sub-population. Finally, when a user analyzes data with this tool, a unique link can be generated for easy sharing of traces and embedding projections between users and research groups. More comprehensive guidelines and details about software functions are described in the META-SiM Projector Quick User Guide on the website.
Principal Projection of Embedding Vectors
To provide more direct control over the projection of information contained in the embedding vectors generated by the network into a lower-dimensional space, we developed a method to find linear operations that project a D-dimensional META-SiM trace-level embedding vector into a lower-dimensional embedding vector. The projection operator for a group of tasks is obtained by finding the principal directions that contribute the most to these tasks. This is achieved by computing a single-value decomposition of the concatenated task weight matrix , where the weight matrices are obtained from pre-training.
To reduce the rank of the projection matrix, we keep the largest diagonal components of that account for of total second 2nd momentum, i.e., where is in decreasing order. The matrix is obtained by using the corresponding columns of the left unitary matrix of the singular-value decomposition. The tasks are grouped together based on their common physical meanings for time traces, such as kinetic rate constant, FRET value distributions, signal-to-noise ratio and photophysical properties (Supplementary Table 1).
To measure the alignment of two low-rank projection matrices and , we use the 2-norm of their product matrix, i.e., where we denote the alignment as . For orthogonal and . For equivalent and up to a unitary rotation, . For general and .
Label Self-Consistency Score (SCS)
The label SCS is defined as the probability of observing the same label between two traces if they are -nearest-neighbors in the embedding space, i.e., one trace is among the k nearest neighbors of the other based on the k-nearest neighbors algorithm (k-NN)49, averaged across all traces in the dataset. Given a dataset of traces and their labels where , we first run network inference to obtain the trace-level embedding vectors for each trace. For each , we find the nearest neighbours . The label SCS for a label is defined as:
where is the Kronecker delta function. We used throughout this study.
Local Shannon Entropy (LSE) of Single-Molecule Traces
Given a dataset of traces and their experimental conditions , where is a categorical label belonging to a finite set of experimental conditions , we obtain the trace-level embedding of each trace . Then, for each , we find the nearest neighbors . The LSE for a trace itself and its local nearest neighbors, following the standard definition of Shannon entropy, is written as follows:
where the probability can be calculated by:
where is the Kronecker delta function.
In this study, we used for all Shannon entropy calculations. In principle, should be much smaller than the total number of traces for locality. A very small , however, should also be avoided to minimize fluctuations of the Shannon entropy value due to randomness in small samples. A rule-of-thumb for initial value of is to use where is the total number of traces in the dataset. Users can visualize the Shannon entropy values (as in Figs. 5–6) to empirically determine whether the selected value can reliably detect heterogeneous behaviors in a given dataset.
Single-molecule FRET Atlas
The smFRET Atlas allows sharing and comparison of diverse smFRET datasets in a common, global UMAP projection space. In this Atlas, traces with a given behavior pattern will always appear within certain regions of the coordinate space. To construct this Atlas, we generated 1 million synthetic smFRET traces with varying dynamics, signal-to-noise ratio (SNR) and FRET value distributions, aiming to sample as diverse a set of behaviors as possible to serve as a basis for the global UMAP projection. The UMAP model was optimized with unsupervised training using these synthetic traces.
To annotate this space for greater comprehensibility, the synthetic traces were grouped into 22 categories with a systematic nomenclature based on the simulation parameters used, “number of states - SNR - FRET values – transition rate”. While the number of states (1–3) is already an integer parameter, SNR, FRET values, and transition rates were divided into categories as follows. SNR was divided into “clean” (SNR ≥ 4) and “noisy” (SNR < 4); FRET value into “high” (value > 0.65), “medium”, (0.35 ≤ value ≤ 0.65) and “low” (value < 0.35); and transition rate into “fast” (average rate ≥ 0.05 frame−1 ) and “slow” (average rate < 0.05 frame−1). Categories are labeled using the first number or letter of each classification label. For example, “2-c-mh-f” means a trace with 2 kinetic states, clean SNR, one medium state and one high state, and a fast transition rate. A full list of category labels is presented in Supplementary Table 3. For annotation, we simulated 22,000 traces in total—1,000 for each category— and fit the probability density of the projected UMAP scatter plot with a two-dimensional 4-component Gaussian mixture model. We chose a small probability density to draw the contour of the fitted probability density, which shows an approximate boundary for each category (Fig. 4m, Supplementary Fig. 5).
An end user can directly load the trained UMAP to project their own data and plot the fitted boundary to relate their own data to the categories used in the synthetic smFRET traces, increasing interpretability of this low-dimensional projection of their dataset(s).
Experimental Datasets
Experimental datasets for downstream task analysis evaluation are from 9 different biological systems (Supplementary Table 2). For trace classification and segmentation, 5 systems were included for fine-tuning and testing: a toehold-exchange-based DNA walker15 (D1), a DNA swinging arm50 (D2), a preQ1 riboswitch51 (D3), a paused transcriptional elongation complex35 (D4), A Mn2+ riboswitch52 (D5). For stoichiometry analysis, we used an unpublished dataset (D6) from a 6-subunit protein complex bearing up to one HaloTag Alexa Fluor 660 (Alexa660) label per monomer. For kinetic fingerprinting, the dataset (D7) is from the detection of the EGFR point mutation T790M DNA sequence48. For trace idealization, the dataset (D8) is from a benchmark study of 14 tools where this specific testing dataset is from ACTR-NCBD Binding at 10-ms binning14,53. For the biological discovery assisted by LSE, the dataset is from an smFRET study of pre-mRNA splicing in yeast6.
Acknowledgements
We thank Jingxuan Tang for stepwise photobleaching data. We thank Liuhan Dai and Pavel Banerjee for multiplexing SiMREPS data. We thank Adrien Chauvier for SiM-KARTS data. We thank Zhuoru Li for aesthetic consulting of main text figure 1 design. This work was supported by NIH grant R35 GM131922 to N.G.W.
Footnotes
Competing financial interests The authors declare no competing interests.
Additional information Supplementary information is available in the online version of the paper. Reprints and permissions information is available online at www.nature.com/reprints. Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Correspondence and requests for materials should be addressed to J.L. and N.G.W.
Code Availability
Code for generating embedding vectors and UMAP projections, applying META-SiM for downstream tasks and calculating metrics including the SCS and LSE and is available in our GitHub repository https://www.github.com/simol-lab/meta-sim.
Data Availability
Experimental traces (stored in a customized data format) and META-SiM model weights (stored in HDF5 format) are available in our GitHub repository https://www.github.com/simol-lab/meta-sim.
References
- 1.Shashkova S. & Leake M. C. Single-molecule fluorescence microscopy review: shedding new light on old problems. Biosci. Rep. 37, BSR20170031 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Bacic L., Sabantsev A. & Deindl S. Recent advances in single-molecule fluorescence microscopy render structural biology dynamic. Curr. Opin. Struct. Biol. 65, 61–68 (2020). [DOI] [PubMed] [Google Scholar]
- 3.Lerner E. et al. FRET-based dynamic structural biology: Challenges, perspectives and an appeal for open-science practices. eLife 10, e60416 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Wasserman M. R., Alejo J. L., Altman R. B. & Blanchard S. C. Multiperspective smFRET reveals rate-determining late intermediates of ribosomal translocation. Nat. Struct. Mol. Biol. 23, 333–341 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Shebl B., Norman Z. & Cornish P. V. Ribosome structure and dynamics by smFRET microscopy. Methods Enzymol. 549, 375–406 (2014). [DOI] [PubMed] [Google Scholar]
- 6.Blanco M. R. et al. Single Molecule Cluster Analysis Identifies Signature Dynamic Conformations along the Splicing Pathway. Nat. Methods 12, 1077–1084 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Agam G. et al. Reliability and accuracy of single-molecule FRET studies for characterization of structural dynamics and distances in proteins. Nat. Methods 20, 523–535 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Peter M. F. et al. Cross-validation of distance measurements in proteins by PELDOR/DEER and single-molecule FRET. Nat. Commun. 13, 4396 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Blanco M. & Walter N. G. Chapter 9 - Analysis of Complex Single-Molecule FRET Time Trajectories. In Methods in Enzymology (ed. Walter N. G.) vol. 472 153–178 (Academic Press, 2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Roy R., Hohng S. & Ha T. A practical guide to single-molecule FRET. Nat. Methods 5, 507–516 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Hartmann A. et al. An automated single-molecule FRET platform for high-content, multiwell plate screening of biomolecular conformations and dynamics. Nat. Commun. 14, 6511 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Juette M. F. et al. Single-molecule imaging of non-equilibrium molecular ensembles on the millisecond timescale. Nat. Methods 13, 341–344 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Hellenkamp B. et al. Precision and accuracy of single-molecule FRET measurements—a multi-laboratory benchmark study. Nat. Methods 15, 669–676 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Götz M. et al. A blind benchmark of analysis tools to infer kinetic rate constants from single-molecule FRET trajectories. Nat. Commun. 13, 5402 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Li J. et al. Exploring the speed limit of toehold exchange with a cartwheeling DNA acrobat. Nat. Nanotechnol. 13, 723–729 (2018). [DOI] [PubMed] [Google Scholar]
- 16.Chung H. S. et al. Extracting Rate Coefficients from Single-Molecule Photon Trajectories and FRET Efficiency Histograms for a Fast-Folding Protein. J. Phys. Chem. A 115, 3642–3656 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Mohapatra S., Lin C.-T., Feng X. A., Basu A. & Ha T. Single-Molecule Analysis and Engineering of DNA Motors. Chem. Rev. 120, 36–78 (2020). [DOI] [PubMed] [Google Scholar]
- 18.Schmid S., Götz M. & Hugel T. Single-Molecule Analysis beyond Dwell Times: Demonstration and Assessment in and out of Equilibrium. Biophys. J. 111, 1375–1384 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Di Antonio M. et al. Single-molecule visualization of DNA G-quadruplex formation in live cells. Nat. Chem. 12, 832–837 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Asher W. B. et al. Single-molecule FRET imaging of GPCR dimers in living cells. Nat. Methods 18, 397–405 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Tsekouras K., Custer T. C., Jashnsaz H., Walter N. G. & Pressé S. A novel method to accurately locate and count large numbers of steps by photobleaching. Mol. Biol. Cell 27, 3601–3615 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Leake M. C. et al. Stoichiometry and turnover in single, functioning membrane protein complexes. Nature 443, 355–358 (2006). [DOI] [PubMed] [Google Scholar]
- 23.Ulbrich M. H. & Isacoff E. Y. Subunit counting in membrane-bound proteins. Nat. Methods 4, 319–321 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Uno S.-N. et al. A spontaneously blinking fluorophore based on intramolecular spirocyclization for live-cell super-resolution imaging. Nat. Chem. 6, 681–689 (2014). [DOI] [PubMed] [Google Scholar]
- 25.Püntener S. & Rivera-Fuentes P. Single-Molecule Peptide Identification Using Fluorescence Blinking Fingerprints. J. Am. Chem. Soc. 145, 1441–1447 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Juette M. F. et al. Single-molecule imaging of non-equilibrium molecular ensembles on the millisecond timescale. Nat. Methods 13, 341–344 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.McKinney S. A., Joo C. & Ha T. Analysis of Single-Molecule FRET Trajectories Using Hidden Markov Modeling. Biophys. J. 91, 1941–1951 (2006). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Hon J. & Gonzalez R. L. Bayesian-Estimated Hierarchical HMMs Enable Robust Analysis of Single-Molecule Kinetic Heterogeneity. Biophys. J. 116, 1790–1802 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Bronson J. E., Fei J., Hofman J. M., Gonzalez R. L. & Wiggins C. H. Learning Rates and States from Biophysical Time Series: A Bayesian Approach to Model Selection and Single-Molecule FRET Data. Biophys. J. 97, 3196–3205 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Li J., Zhang L., Johnson-Buck A. & Walter N. G. Automatic classification and segmentation of single-molecule fluorescence time traces with deep learning. Nat. Commun. 11, 5833 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Thomsen J. et al. DeepFRET, a software for rapid and automated single-molecule FRET data classification using deep learning. eLife 9, e60404 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Vaswani A. et al. Attention Is All You Need. Preprint at https://doi.org/10.48550/arXiv.1706.03762 (2023). [Google Scholar]
- 33.OpenAI. ChatGPT. https://chatgpt.com (2023).
- 34.Brown T. B. et al. Language Models are Few-Shot Learners. Preprint at 10.48550/arXiv.2005.14165 (2020). [DOI]
- 35.Widom J. R. et al. Ligand Modulates Cross-Coupling between Riboswitch Folding and Transcriptional Pausing. Mol. Cell 72, 541–552.e6 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Spliceosomal DEAH-Box ATPases Remodel Pre-mRNA to Activate Alternative Splice Sites - PubMed. https://pubmed.ncbi.nlm.nih.gov/26919433/. [DOI] [PMC free article] [PubMed]
- 37.Radford A. et al. Language models are unsupervised multitask learners. OpenAI Blog 1, 9 (2019). [Google Scholar]
- 38.Johnson-Buck A. et al. Kinetic fingerprinting to identify and count single nucleic acids. Nat. Biotechnol. 33, 730–732 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Jolliffe I. T. & Cadima J. Principal component analysis: a review and recent developments. Philos. Transact. A Math. Phys. Eng. Sci. 374, 20150202 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.McInnes L., Healy J. & Melville J. UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. Preprint at 10.48550/arXiv.1802.03426 (2020). [DOI] [Google Scholar]
- 41.Hinton G. E. & Roweis S. Stochastic Neighbor Embedding. in Advances in Neural Information Processing Systems vol. 15 (MIT Press, 2002). [Google Scholar]
- 42.Dong J. et al. Direct imaging of single-molecule electrochemical reactions in solution. Nature 596, 244–249 (2021). [DOI] [PubMed] [Google Scholar]
- 43.Deguchi T. et al. Direct observation of motor protein stepping in living cells using MINFLUX. Science 379, 1010–1015 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Dosovitskiy A. et al. An Image is Worth 16×16 Words: Transformers for Image Recognition at Scale. Preprint at 10.48550/arXiv.2010.11929 (2021). [DOI] [Google Scholar]
- 45.Devlin J., Chang M.-W., Lee K. & Toutanova K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Preprint at 10.48550/arXiv.1810.04805 (2019). [DOI] [Google Scholar]
- 46.[1412.6980] Adam: A Method for Stochastic Optimization. https://arxiv.org/abs/1412.6980.
- 47.Johnson-Buck A., Li J., Tewari M. & Walter N. G. A guide to nucleic acid detection by single-molecule kinetic fingerprinting. Converg. Sci. Technol. Fluoresc. Resolut. Single RNA Mol. 153, 3–12 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Hayward S. L. et al. Ultraspecific and Amplification-Free Quantification of Mutant DNA by Single-Molecule Kinetic Fingerprinting. J. Am. Chem. Soc. 140, 11755–11762 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Fix E. & Hodges J. L. Discriminatory Analysis. Nonparametric Discrimination: Consistency Properties. Int. Stat. Rev. Rev. Int. Stat. 57, 238–247 (1989). [Google Scholar]
- 50.Fu J. et al. Multi-enzyme complexes on DNA scaffolds capable of substrate channelling with an artificial swinging arm. Nat. Nanotechnol. 9, 531–536 (2014). [DOI] [PubMed] [Google Scholar]
- 51.Suddala K. C., Wang J., Hou Q. & Walter N. G. Mg2+ Shifts Ligand-Mediated Folding of a Riboswitch from Induced-Fit to Conformational Selection. J. Am. Chem. Soc. 137, 14075–14083 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Suddala K. C. et al. Local-to-global signal transduction at the core of a Mn2+ sensing riboswitch. Nat. Commun. 10, 4304 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Zosel F., Soranno A., Buholzer K. J., Nettels D. & Schuler B. Depletion interactions modulate the binding between disordered proteins in crowded environments. Proc. Natl. Acad. Sci. 117, 13480–13489 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Experimental traces (stored in a customized data format) and META-SiM model weights (stored in HDF5 format) are available in our GitHub repository https://www.github.com/simol-lab/meta-sim.