BROKEN
Loading
Mathematical and machine learning models that help us mitigate, detect, and predict circuit breakage.

Summary: BROKEN investigates ways to mitigate, detect, and predict breakage through mathematical and computational frameworks. We built models to inform the design of our engineered circuits, and general models that predict when circuits will break in the lab and in the environment.

Introduction

BROKEN investigates ways to mitigate, detect, and predict genetic circuit breakage through mathematical and computational modeling. Our modeling efforts followed two complementary approaches. First, we developed mathematical models to inform the design, optimization, and experimental testing of our engineered circuits aimed at mitigating and detecting breakage. Second, we developed more generalizable mathematical and machine learning frameworks to predict when and under what conditions genetic circuits are likely to fail, both in laboratory settings and in realistic environmental conditions.

This modeling section is organized into two major parts:

  1. Modeling to Inform Circuit Design and Experimental Testing: We first describe how mathematical models guided the engineering of our constructs, informed experimental design, and supported iterative improvements through the Design–Build–Test–Learn (DBTL) cycle. These models were developed specifically to support our experimental efforts to mitigate and detect circuit breakage.
  2. Modeling to Predict Circuit Breakage: We then present our broader mathematical and machine learning approaches for predicting circuit failure. Unlike the construct-specific models described in the first section, these frameworks are intended to be generalizable across different genetic circuits and to help predict circuit longevity and failure under both laboratory and realistic environmental conditions.

Together, these two approaches demonstrate how modeling can serve both as a practical tool for engineering more reliable genetic circuits and as a foundation for a broader shift in synthetic biology: from modeling whether a circuit will work initially to predicting how long it will work, under what conditions it may fail, and how that failure might be anticipated before real-world deployment.

Modeling to Inform Circuit Design and Experimental Testing

Overview of Approaches to Model Circuits that Mitigate Failure

Synthetic addiction is a technique used to extend circuit longevity (Rugbjerg et al. 2018). By making the production of an essential gene dependent on production of the desired heterologous genes, mutations that break the circuit lead to the death of the cell. Current synthetic addiction methods use constitutive production of the circuit containing the essential gene, which keeps the essential gene always present but can lead to excessive burden on the cell. To combat this, we designed two pathways for inducible synthetic addiction circuits that periodically relieve burden by taking advantage of thymineless resistance: a temperature inducible circuit and a blue-light inducible circuit.

Temperature Inducible Circuit (cI857)

Purpose: The purpose of this model was to predict how much GFP our circuit makes at 30°C and 42°C over time, and to see how tightly the cI857 lambda repressor can inhibit transcription at low temperatures. This was essential in developing an inducible synthetic addiction system, as an inducible system should keep the essential gene turned off to minimize burden when it is not needed.

The model

The model mainly keeps track of three parts of our circuit: active cI857, denatured (inactive) cI857, and GFP regulated by the concentration of active cI857 repressors. The time scale is in hours and there are two bases for units. The repressor pools are in intracellular nM from the literature, while the GFP pools are in nM/OD600, as the parameters for those were estimated from our plate reader experiments. These concentrations are connected through the pL open fraction, which is between 0 and 1, so the model and units stay consistent.

Results

This model was developed to be supported by and support our wet lab experiments. To calibrate the unknown parameters of our circuit, namely the GFP production rates and the repressor’s leak rates, we estimated them against our collected data from a single condition at 30°C only, using the measured 30°C growth curve. This way the model could be tested to see whether changing the input variable, T, has a measurable effect on GFP production as the lambda repressor proteins denature.

To estimate our parameter values (αx, γ, ε, sR), we used least squares to find the best fit across our 8 time points and 3 replicate wells. Because GFP mRNA degrades quickly relative to our sampling resolution, αx and the GFP translation rate (β) are not separately identifiable from this data. Only their product ever appears in the observed GFP dynamics, so what we report as αx is better described as an effective expression capacity (αx × β) than a standalone transcription rate. We also note that our estimates of the leak rate (ε) and the strength of repression (sR) are highly correlated in this fit (correlation = 0.98), because our circuit represses weakly enough that the data cannot fully distinguish “repression that barely closes the promoter” from “repression that closes further but leaks more”. These two parameters should be read together rather than independently.

Fit at 30°C

0.82R² at 30°C
0.88χ²/dof at 30°C
296 nMGFP peak at t = 16.7 h

Comparing the model output with the measured GFP data, we see that the estimated solution tracks very closely with our measured GFP amounts, including the initial rise in exponential phase and the slow decline in stationary phase. The 30°C fit has an R² = 0.82, which shows a strong correlation between our estimated parameters and the actual wet lab data. For a more rigorous test, the χ²/dof was 0.88, which also shows that the data is a good fit. GFP production peaks at around 296 nM at t = 16.7 hours, which we note before predicting the GFP expression at 42°C.

Prediction at 42°C

We now test whether the parameters estimated at 30°C and the Arrhenius temperature scalings can accurately predict the 42°C growth curve and the time course of GFP production. The only thing that is changed is the temperature, T, and the Arrhenius-scaled rate constants follow naturally.

348 nMpredicted peak at 42°C
345 nMmeasured peak at t = 12 h
0.55R² at 42°C
7.57χ²/dof at 42°C

The model predicted a higher max GFP at 42°C than at 30°C, peaking at around 348 nM at approximately t = 14 hours (versus 296 nM at t = 16.7 hours at 30°C), and this is close to the measured peak (345 nM mean, at t = 12 hours). However, the model substantially underpredicts GFP in the first several hours after the shift: at t = 2 hours it predicts 51 nM against a measured mean of 145 nM, and at t = 6 hours it predicts 215 nM against a measured mean of 312 nM. This is the direction expected if the lambda repressor de-represses more strongly, or more quickly, at 42°C than our Arrhenius temperature scaling captures. In other words, the early miss is itself evidence about repressor behavior, not just noise.

The model also does not fully capture the decline in GFP towards the end of the experiment (at t = 24 hours it predicts 277 nM against a measured mean of 220 nM). During this period, the cell most likely experiences more stress or heat shock due to the high temperatures, which is not explicitly captured in this model outside of the growth rate of the population.

The R² for this fit was 0.55, meaning the model still explains about half the variance in the 42°C data. The χ²/dof statistic, which is the more rigorous measure since it accounts for measurement uncertainty, was 7.57, roughly 6 to 8 times worse than the 30°C in-sample value (0.88), meaning this mismatch is substantially larger than measurement noise would explain. The model predicted the size and approximate timing of the peak reasonably well, but it is not reliable at capturing the shape of the rise and fall around it.

Interpretation

Our dry lab and wet lab results both show that the cI857 lambda repressor provides only weak repression of GFP, and by extension thyA, since they are on the same transcript: removing repression from the model entirely changes the predicted 42°C/30°C fold-change in GFP from about 1.09× to only 1.27×. This weak effect is also confounded with general temperature effects on cell physiology (metabolism, growth rate, and potentially heat stress) that are not attributable to the repressor itself, so we are cautious about calling the repressor outright “ineffective” rather than simply weak. For an inducible synthetic addiction circuit, even this weak level of control is not ideal, as it would lend itself to more burden over time.

Future improvements

This model does not explicitly take into account the effects of heat shock or damage to the E. coli, which may greatly impact GFP expression over time. This alone could explain a lot of the variance between the model fit at 30°C and 42°C. More experiments between small temperature steps of 1–2°C could give us more insight into how well this model can predict lambda repressor functionality. Additionally, this model does not take into account thyA production explicitly, which is very important as it is an essential gene for our system.

Blue-Light Inducible Circuit (pDawn)

Purpose: The purpose of this model was to predict the rise of our reporter gene, mKate2, over time by inducing the system with blue light, and to see how tightly the cI repressor can regulate expression when the system is turned off in the dark compared to being turned on in the light. For constructing an inducible synthetic addiction circuit, regulation of the target gene is crucial to minimize excess burden over time.

The model

This model’s primary outputs are the concentration of cI lambda repressor and mKate2. The YF1 and FixJ, which are essential for the light activation part of the circuit, are modeled as well, but we assume that the total concentrations of YF1 and FixJ are conserved (each normalized to 1), as was done by Hennemann et al. (2018), since we are interested in the accumulation of our reporter and repressor system. The time scale of this model is in hours, and YF1 is a dimer with four combinations of states.

Results: medium copy (2-frag)

α and s are fitted to the 2-frag dark and light means at 4, 8, and 12 hours with SciPy least_squares. The result is α = 6.05 nM/OD/h and s = 0.723. With 4 degrees of freedom, χ² = 18.7, so χ²/dof = 4.7 and p = 0.0009. The fit is poor at the assumed error. The dark curve fits well, but the light curve does not: the data are flat and then burst, while the model rises steadily.

In this construct, 2-frag has too much leaky expression in the off state: at 12 hours the dark output is 9.5 nM against 135 nM in light, a light/dark ratio of only 14. To reduce this leak, we looked into how copy number could affect the tightness of the switch.

Prediction: higher copy number (HiCo)

Since our parameters have now been calibrated with our first circuit design, we examined whether a second design with a higher copy number could increase the fluorescence even more while remaining off in the dark. Only c changes, from 1 to r. HiCo’s own OD600 curve sets the growth rate, and the reporter starts at HiCo’s measured 0 hour value. We show r = 3 (the value that fits the HiCo dark data) and r = 2 (the value that fits dark and light together).

In the dark, the prediction at 12 hours (0.47 nM) is within the measurement (0.44 nM), but this is partly circular because r = 3 was chosen from the dark data. The HiCo dark level is also below our detection limit (0.61 nM, mean + 3 SD of 24 untransformed wells; the quantification limit is 1.74 nM), so the dark drop is only a lower bound of about 16-fold and the light/dark ratio is at least about 390. The light data do not agree with r = 3: the model predicts a 2.96-fold rise in light from 2-frag to HiCo, against 1.74 measured, and at 4 hours the model is about 26 times too high. The model is statistically rejected: χ² = 154 for 6 points (p about 10−30).

Unfortunately, r is not well determined. The HiCo dark data alone give r = 3.0, the light data alone give r of about 1 or below, and both together give r = 2.0 (χ² = 128, 5 degrees of freedom). The value of r also depends on the Hill exponent n: the same dark drop needs r = 3, 5.1 or 26 for n = 4, 3 or 2. So the data support a tighter switch at a higher copy number, but not the size of c.

In the model, pR opens within minutes of light. In the dark, pR is about 15% open for 2-frag and about 0.2% open for HiCo with r = 3. This is the mechanism of the tighter switch.

Limits and future directions

The fit for this model is fairly poor, with χ² = 18.7 for 6 points and 2 fitted parameters, so the model is rejected. For HiCo, χ² is about 150. The model is able to match the 12 hour dark levels but is unable to capture the burst in the light.

The plasmid copy multiplier r is not identified. The dark data give r = 3 and the light data give r = 1. Additionally, the leak is assumed to be near zero, in which case a higher plasmid copy number would not tighten the dark state. In the future, an experiment with more time points may help with fitting, as this data was only collected up to 12 hours.

Discussion

These results, which have been partially validated by the wet lab, were qualitatively consistent in direction but quantitatively rejected. We have shown that the pDawn circuit, especially at higher copy numbers, is extremely efficient at inhibiting transcription of genes in its dark state, which makes it very valuable for exact control of an inducible synthetic addiction circuit. Through our design, build, test, and learn stages, we showed that our light sensitive circuit is more effective than the temperature sensitive circuit at preventing unwanted expression of our essential genes, and the mathematical model was able to partially model and predict different configurations for changes within our circuits.

Overview of Approach to Model Circuit Designed to Detect Failure (dCas13)

Overview of approach: A mechanism for synthetic circuits to detect breakage in vivo would be very useful to diagnose circuit dysfunction before it completely breaks. We use a novel dCas13 NOT-gate mechanism that represses production of an integrated mCherry by binding to mCherry transcripts and blocking translation. As the circuit begins to break, less dCas13 or guide RNA is produced, preventing effective binding of the dCas13 and gRNA complexes to the target mRNA transcripts. This allows translation of the mCherry, providing a signal that the inserted circuit is beginning to break.

Purpose: The purpose of this model is to predict the effectiveness of blocking translation of an integrated reporter given the plasmid copy number and the effectiveness of the guide RNA. From our experimental data, we were only able to collect one fluorescence ratio from one time point, which was not sufficient to inform engineering design improvements. Through this model, the steady-state equation converts that measured ratio into one mechanistic number, the complex pool relative to the binding affinity (C/Kd), which can be directly compared to what a useful circuit would need.

1.55×repression measured
0.55C/Kd (95% CI 0.04–1.9)
9C/Kd needed for 10×
~16×more functional complex needed

The model

We have a system of five ODEs to describe our circuit. Each intracellular species is modeled by its production, degradation, and dilution rates. The system describes dCas13 mRNA, total dCas13 protein, total gRNA, mCherry mRNA, and mCherry protein, respectively. The rate constants and plasmid copy number N are illustrative and are not required for the final result. B is how much mCherry mRNA is currently bound and blocked by the complex.

R*/R0 is the fraction of mCherry signal left in the circuit strain relative to a strain with no complex, which is a direct read of how much repression happened. C/Kd is a single dimensionless number: how much functional complex exists, scaled against how tightly it binds to the target mRNA. A small C/Kd means weak repression, while a large one means strong repression. C/Kd also bundles two things a single measurement cannot separate: how much gRNA was made, and how much of it is functional. This model reports their product, not which one is limiting.

Results

The mCherry in the circuit strain was measured to be 0.645 as fluorescent as the control (Welch p = 0.040, n = 3), indicating a 1.55-fold repression. By inputting 0.645 into our equation, we get C/Kd = 0.55. For a 10-fold repression, we would require a C/Kd of 9, so our circuit was about 16 times less functional than it should have been.

Design target for the next cycle

Since R*/R0 = 1/(1 + C/Kd) holds for any C/Kd, it is a design curve instead of just one data point. Any future circuit’s repression can be read directly off this curve once C/Kd is known. The model’s testable prediction is that reaching 10-fold repression requires increasing the functional complex pool roughly 16-fold relative to the current circuit. The model cannot say from this measurement alone whether gRNA quantity or competency is limiting; that is the hypothesis for the next cycle to test directly.

Future directions

From our results, we hypothesized that gRNA competency was probably the issue and designed a new gRNA that folds more cleanly. More time points would also allow us to estimate more of the unknown rate constants of our original system of ODEs.

Modeling to Predict Circuit Breakage

Overview of Approach to Predictive Circuit Failure Modeling

In addition to the modeling that we conducted for the design and testing of our genetic circuits, we aimed to create models that would predict when genetic circuits will break. We adopted two approaches: a mathematical model at the population level, and two machine learning models.

Mathematical Model: Population-Level Environmental Failure

Mathematical model

The purpose of this model was to predict general genetic circuit failure in an environment by coupling burden and mutation of genetic circuits in an active environment, where harsh abiotic conditions and active predation can influence the time before the engineered cells in the system disappear.

This was best done by coupling a model of bacteria and phage population dynamics by Egilmenz et al. (2021) with a general model of population takeover due to mutation and burden experienced by the engineered cell population. While the model from Egilmenz et al. (2021) uses a system of PDEs for a reaction-diffusion equation, we assume that the environment is well-mixed and use a system of ODEs instead. This greatly decreased computational time, while still allowing us to view the changes of bacteria and phage populations over time. The model has been optimized for soil conditions, but can be reparameterized to model varying levels of growth, death, nutrient concentration, and infection to mimic other environments.

There are six populations output by this model: engineered cells, mutated cells, lysogenic engineered cells, lysogenic mutated cells, lytic cells, and phage. The growth of the cells is based on the nutrient concentration following Monod growth kinetics, as well as the carrying capacity. We assume that our growth-limiting substrate is organic carbon. The primary inputs of this model are the starting concentrations of bacteria, nutrient, and phage, the mutation rate, and the burden cost. These can be freely adjusted to see how long it takes for the population to reach stationary phase, mutate out, or be eliminated by phage.

Results

We ran the model with the default parameter values while holding nutrient concentration constant to see infection and mutation dynamics over time. Holding nutrients constant has a constant effect on the growth rate of the population that does not change over time, unless modified by the carrying capacity.

Simulation 1 (b = 0.1, T = 30.0°C, E0 = 1e7, P0 = 1e5, N0 = 1e-4). Due to the large population of phage compared to bacteria, there is a large increase in the number of lysogenic cells that are still maintaining circuit function over time. Although phage start at a 100-fold lower population than bacteria, their high adsorption rate and large burst size (105 phage per lysed cell) let the phage population expand quickly, driving most susceptible cells into the lysogenic state rather than the lytic pathway at this temperature. This allows the lysogens to dominate the non-wild-type population over time. Over the simulated window, the mutated population still takes many days to overtake the engineered population.

Simulation 2 (b = 0.2, T = 30.0°C, all other inputs unchanged). Increasing the burden cost on cell growth even slightly, from 0.1 to 0.2, greatly decreases the time it takes for the mutated population to take over, and the engineered cell population is much less stable in this case. This agrees with findings in the literature for lab conditions (Radde et al. 2024).

Simulation 3 (b = 0.2, T = 34.5°C, all other inputs unchanged). Raising the temperature to 33°C increases the thermal growth factor by around 27% compared to 30°C, but it also raises the lytic-favored fraction of adsorption events from about 0.03% to about 5% due to the steepness of the lytic/lysogenic switch. This shift is enough for phage amplification to compound over the simulated days and collapse the bacterial population, even though the nominal 50/50 switch point itself is not reached until closer to 34.8°C. As the bacterial population drops, the phage population quickly drops as well, since there are no susceptible bacteria left.

Interpretation

Just like in the lab, the burden cost of the engineered cells still has a large impact on the time it takes for the genetic circuit to fail, even in the environment. However, this model omits the impact that the population entering stationary phase can have on the circuit, and predicts that the mutated population takes an extremely long time to take over. Realistically, this drastically underestimates the rate at which failure happens, due to factors like environmental stress breaking circuit functionality or reducing gene expression in general. While an engineered cell population may last for a long time when phage predation is not a threat, that does not guarantee it is still functional, especially for cells that work best during exponential phase. The phage population and abiotic conditions have a large impact on bacterial survival, which still lends itself to circuit failure if the population cannot survive in its deployed environment.

Future direction

This model is presented as an unvalidated proof of concept. This approach was suggested during one of our IHP meetings, who advised having two separate models: one that can be verified very well, while having another approach or level that is more exploratory to push the field of synthetic biology. Environmental factors like phage predation remain a genuine threat to deploying engineered bacteria, and this framework combines essential components of nutrient limitation, carrying capacity, lytic/lysogenic switching, and burden-driven mutation to learn about how this drives circuit failure.

The most direct next step would be to fit this model to real deployment data. Over the course of this project, we collected longitudinal data from water microcosms, including the approximate time at which the engineered circuit lost function. We did not track the phage population over that same timeline, which would have let us fit the adsorption, induction, and lysis parameters to our own system rather than relying on Egilmenz et al. (2021)’s values from a different context.

Separately, environmental stress can accelerate the rate at which a population loses a functional genetic circuit independent of growth-coupled mutation. We have included this as an optional term in the model that adds a stress-dependent conversion from the engineered to the mutant population.

This ODE model is best understood as a lightweight, mechanistic complement to our RNA-seq-based ML model, which is the primary tool this project uses to predict circuit failure from gene expression data over time.

Machine Learning Models for Prediction of Circuit Failure

We created two machine learning models to predict when an engineered E. coli circuit will ‘break’. For the two models, failure of a circuit is characterized in two ways:

  • Label trained model: failure is a labeled timepoint at which the circuit is identified as no longer working (for example, when measurable fluorescence of the circuit’s GFP ceases).
  • Population model: failure is the time at which mutated cells that have lost the circuit make up 50% of the population.

Label Trained Model

Purpose: We created this model to search for indicators of circuit failure in literature-derived RNA-seq data and relate them to the time of experimental sampling, with the goal of predicting when a circuit would fail.

Evaluation and results

0.880leave-one-series-out AUC
0.830accuracy

We validated the accuracy of the model using leave-one-series-out AUC, which scored 0.880, with an accuracy of 0.830.

AUC scores (the closer to 1 the better; 0.5 is roughly a coin flip) show how well each feature set separates early samples from late ones (tracking the progress from time 0 to the broken timepoint, and which features best distinguish them). The result emphasizes the importance of considering multiple factors as they contribute to final circuit failure, with that track resulting in an AUC of 0.88.

The model’s predictions show that each culture has a low P(broken) at the first time point and a higher P(broken) at the later time point, showing that the circuit broke. One unexpected result is that one series never had a P(broken) of 0.5 or more, challenging the assumption that greater elapsed time automatically results in increased circuit failure.

Furthermore, we wanted to evaluate which of the features we accounted for drove the circuits to the point of “broken”. From this, we see that the data from gene expression, the stress gene score and mutation supply, contributed most strongly, indicating that within the model’s scope, the observation of differential gene expression remains vastly important.

Finally, we explored targets outside of established stress genes to identify factors more indicative of circuit breakage. Some genes were chosen repeatedly across all of the leave-one-out series, with ldhA being chosen in all, and ldhA also shows a high mean shift from the earlier time point to the later time point. ldhA stands out on both measures despite not being classified as a stress gene, but rather a metabolic/fermentative one.

Running on exclusively the synthetic labeled data, the results speak to the value and potential of using time series RNA-seq data to train an ML model: to find determinants of circuit failure outside of those already known and to predict these failures early in the development of a construct.

Wet lab validation

Once we received results from the experimental testing of our circuits, we wanted to test our existing model to evaluate its performance and assess how accurate it is with our own labeling.

Beta-carotene circuit. We tested a beta-carotene circuit that is typically used for biomanufacturing purposes in E. coli. After many days of testing, extracting DNA and RNA, and using functional assays to review whether the circuit is broken, we found that the circuit did not reach a point of being broken. Although these samples lack the label of “broken”, we wanted to see whether the model would report them as broken or not. We input our featureCounts results along with a sample table (CSV) that included the series and time points.

For three out of the four series the model never predicts a P(broken) above 0.5, properly reflecting the condition of our sample, which we never observed to break over time points 1 to 28. However, there were some high peaks, even one with P(broken) above 0.5 after time point 20. This result could be reflective of a model that has learned failure signals and subsequently could not find these signals in our sample. For C3, which had the peak, it likely had similarities to the synthetically labeled training data. However, since the circuit likely was not broken at that point, the model misasserted it as broken because that is what it learned from the limited training data available. It could be possible that these are markers that could lead to breakage, but not enough to push the circuit to actual failure. There could also be sampling discrepancies at a particular time point to account for the change. Ultimately, this result shows signs that the model can learn features. It may just need real labels and more samples to determine the weights of breakage, or the factors that truly push a circuit over the edge to break.

Kill switch circuit. Later, we tested the model using data from our circuit with a kill switch that we observed to have broken at t = 10, to see if the model could assess the sample as broken on or around that time.

This result supports our initial assessment that the model does not assert broken simply due to a late culture, as most lines rise to a peak between t4 and t8 and fall by t14. However, the prediction placed P(broken) > 0.5 earlier than what we observed in our experimentation. For this test it is important to note that our kill switch circuit’s time points are on the scale of days, failing on the tenth day, but the model received counts of day 0, 4, 8 and 14. In contrast, the initial training set with synthetic labels was a 60 minute window. This huge discrepancy in the sampling window is likely why the model was unable to transfer.

Based on the observed result, we wanted to see what features were driving the model’s assessment of P(broken) being highest at t = 8. Although the drivers of circuit breakage reached a peak, they eventually fell much lower, possibly reflecting the host returning to an unburdened state.

From this, we hypothesize that the model is roughly following circuits in the host up until the circuit breaks, and the drop in P(broken) afterwards is not reflective of the circuit but of the host, since the model is trained on the combination of circuit and host feature counts.

Redesign of the model based on our wet lab training data

Now that we collected data for our samples with real functionality labels, we wanted to build a pilot model that can be directly built upon in the future with other ‘tested for failure’ circuit series data. Unlike our original design, the window of time (t) is across days and not minutes. This updated window allows a more robust model that can handle long-term sampling results.

This redesigned model was trained on a sample set of N = 16 (4 induced cultures at 4 different time points) which, although small, is fully real and experimentally verified data, making it extremely valuable long term. However, in its current state it is hard to tell how accurate the model is, even through model validation. The small training set and the gap in time points (we train on t = 8 and t = 14 but our known observed failure is at t = 10) make it hard to distinguish what is happening in the day 8 to 14 period, and whether the model is just associating greater elapsed time with failure.

1.0AUC, redesigned model
0.21AUC, synthetic label model

We used AUC scores for scoring, and our redesigned model scored better with AUC = 1.0 than the original synthetically labeled model, which had AUC = 0.21. The synthetically labeled model result is from testing using our induced samples. However, the redesigned model was simply tested with the same induced samples it was trained on, which would be a huge contributor to the discrepancy. Ultimately, our original synthetically labeled model is still synthetically labeled, so we have no way of knowing that the time labeled as broken was when the circuit broke.

Although our new model scored highly, more samples would be helpful to fully test its accuracy; for a model to be a perfect predictor from just 16 samples is highly unlikely. However, it does show that learning is ultimately possible, especially with real sample labels.

Discussion

These results show that our original synthetic labeled model is not driven by time alone, as it does not automatically assume failure just from extended time. However, it does respond to the drivers in the genes. This shows that studying RNA-seq feature counts and time to failure of a circuit, and inputting that into a machine learning architecture, constitutes a baseline for a future full predictive model. It emphasizes the value of further failure analysis testing to understand why a circuit breaks and to predict when it will fail.

Future direction

These models can be turned into even better prediction tools with more data. With long-term time series, including observed failure and sequencing of a circuit, we can gain valuable knowledge of how a circuit breaks. The more samples there are to train on, the better a model can generalize and find common patterns and features that lead to circuit breakage. Going forward, iGEM teams can add their own results to train the model and form a repository of circuits and their analyzed failures.

Machine Learning + Population Model

Purpose: For an additional approach towards failure, we created this model to discover indicators of circuit failure directly from real experimental data and relate them to the time of experimental sampling, ultimately predicting when a circuit would fail.

Evaluation and results

Model evaluation procedure. We evaluated the model using leave-one-out R² to penalize overfitting. We chose this method because of our small training set (N = 16): an 80/20 train/test split would be impractical, as the model would have even less to train on. With leave-one-out we were able to use as much of the training set as possible (n − 1 inputs), looping through and leaving one input out each time, allowing thorough training and validation.

Benchmarking. We performed benchmarking, which is the process of evaluating and comparing the accuracy of various models on the same fixed dataset, since some models learn better than others on a particular training set. We focused on less complex models to avoid overfitting (memorizing the training data instead of learning to predict on new data). We tested models better suited to this data size: OLS, Ridge regression, Lasso, Elastic net, random forest, and Gaussian process.

0.61leave-one-out R² (Ridge)
16training samples

We compared various models suited to a dataset of this size, comparing results based on circuit fraction alone and on circuit fraction + stress genes. We found that a Ridge regression performed best, with a leave-one-out R² of 0.61 when trained on circuit fraction and stress genes combined.

Our chosen model is able to reasonably map circuit fraction + stress score to relative growth. Our results supported the importance of taking gene expression into account for specific insight into a particular sample in order to understand circuit failure, as the inclusion of genes improved all models that were tested. Additionally, the model was able to explain roughly 60% of the variation with our small training set of N = 16. This further highlights the value of this model as a baseline predictor, coupling experimental data with theoretical modeling to estimate when a circuit will break.

Going forward, this model can be fit on more samples, and expanded to evaluate not just known stress genes but any genes that seem most indicative of transcriptional burden, which may not even be characterized yet.

Discussion

Using available data, we were able to train and test two ML models using two different approaches. These models were built with our small N in mind, focusing on effective, less complex models. When tested against our experimental results, our models still show their value by producing reasonable estimates and laying a foundation for future experimentation.

Final Overview and Application

All parts of our modeling come together to allow users to test their circuits with failure in mind: to verify the viability of a circuit for its intended goal by analyzing its failure and estimating how long the circuit would last.

All of our related code, with extensive documentation and comments throughout, is available at our iGEM W&M GitLab. It comes with instructions for use through both the terminal and a user-friendly web interface, so users at all levels can use our modeling in their work.

Future Directions

Our work has laid the foundation to show the potential of predicting engineered circuit success through both ODEs and machine learning.

Current Limitations

The biggest limitation of our current models is the lack of relevant publicly available data. Not many studies have been structured to analyze the failures of successfully engineered constructs, especially longitudinally, to see how long they last. Although our wet lab experimentation did include longitudinal testing of four different circuits, more complex and thorough modeling at the ML and ODE level would require more studies.

The Road Ahead

Continued testing can better inform future experiments and can vastly improve and build upon the current models we created in our project. With BROKEN, we set a framework and guide for future iGEM teams on how to set up their projects to evaluate their circuits’ potential failures and duration. With continuous experimentation and evaluation of various circuits, we can take modeling from proof of concept to a full and even more accurate evaluator.

References

  1. Leipold, R. J., Krewson, C. E., & Dhurjati, P. (1994). Mathematical model of temperature-sensitive plasmid replication. Plasmid, 32(2), 131–167.
  2. Shea, M. A., & Ackers, G. K. (1985). The OR control system of bacteriophage lambda. A physical-chemical model for gene regulation. Journal of Molecular Biology, 181(2), 211–230.
  3. Ohlendorf, R., Vidavski, R. R., Eldar, A., Moffat, K., & Möglich, A. (2012). From dusk till dawn: one-plasmid systems for light-regulated gene expression. Journal of Molecular Biology, 416(4), 534–542.
  4. Hennemann, J., Iwasaki, R., Grund, T., Diensthuber, R., Richter, F., & Möglich, A. (2018). Optogenetic Control by Pulsed Illumination. ChemBioChem, 19(12), 1296–1304.
  5. Lützow, M., Leifeld, J., Kainz, M., Kögel-Knabner, I., & Munch, J. (2002). Indications for soil organic matter pools in soils under different management. Geoderma, 105, 243–258.
  6. Radde, N., Mortensen, G., Bhat, D., Shah, S., Clements, J., Leonard, S., McGuffie, M., Mishler, D., & Barrick, J. (2024). Measuring the burden of hundreds of BioBricks defines an evolutionary limit on constructability in synthetic biology. Nature Communications, 15(1), 6242.
  7. Eiler, A., Langenheder, S., Bertilsson, S., & Tranvik, L. J. (2003). Heterotrophic bacterial growth efficiency and community structure at different natural organic carbon concentrations. Applied and Environmental Microbiology, 69(7), 3701–3709.
  8. Chen, X., & Zhang, J. (2013). No gene-specific optimization of mutation rate in Escherichia coli. Molecular Biology and Evolution, 30(7), 1559–1562.
  9. Bernstein, J. A., Khodursky, A. B., Lin, P. H., Lin-Chao, S., & Cohen, S. N. (2002). Global analysis of mRNA decay and abundance in Escherichia coli at single-gene resolution using two-color fluorescent DNA microarrays. Proceedings of the National Academy of Sciences, 99(15), 9697–9702.
  10. Rugbjerg, P., Sarup-Lytzen, K., Nagy, M., & Sommer, M. O. A. (2018). Synthetic addiction extends the productive life time of engineered Escherichia coli populations. Proceedings of the National Academy of Sciences, 115(10), 2347–2352.
  11. Ceroni, F., Boo, A., Furini, S., Gorochowski, T. E., Borkowski, O., Ladak, Y. N., Awan, A. R., Gilbert, C., Stan, G. B., & Ellis, T. (2018). Burden-driven feedback control of gene expression. Nature Methods, 15(5), 387–393.