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:
- 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.
- 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.
Why predicting circuit breakage matters
This work represents a particularly important conceptual and computational contribution of BROKEN. While much of the existing mathematical modeling in synthetic biology focuses on predicting initial circuit behavior, optimizing performance, or describing circuit dynamics under controlled conditions, comparatively little attention has been devoted to predicting when circuits will fail, how their reliability changes over time, or how environmental conditions influence their longevity. Our approaches seek to move beyond these traditional applications by explicitly incorporating circuit failure, longevity, and environmental variability into predictive frameworks.
Importantly, we view these models not simply as tools for our own project, but as foundational frameworks that other researchers and iGEM teams can further develop, refine, validate, and apply to a wide range of engineered biological systems. In this way, our work aims to help establish predictive failure analysis as a more integral component of synthetic biology engineering.
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.
Overview
The cI857 lambda repressor is a mutated cI repressor gene that responds to temperature. At low temperatures around 30°C, the lambda repressor is able to form active dimers that bind to bacteriophage lambda operators like pL and pR, but at high temperatures around 42°C, the lambda repressor proteins denature and are unable to bind to operator sites, allowing downstream transcription to take place. This model is largely based on the kinetic model developed by Leipold et al. (1994), with some algebraic simplifications and additions for our reporter gene.
We aimed to use this mechanism to create an inducible synthetic addiction system that minimizes burden. In our circuit, cI857 represses transcription of our reporter gene, GFP, and our essential gene, thyA, which are formed in an operon. This way, the fluorescence data we gather from plate reader measurements can also be used as a proxy for thyA production.
To understand this thermal regulation, we built a mass-action ODE model of the circuit’s transcription, translation, and folding, to find whether the circuit is able to tightly turn the genes off at 30°C to minimize burden over time. From our dry lab and wet lab results, however, the repressor is largely ineffective at keeping the gene turned off. This led to a new Design-Build-Test-Learn cycle, where we used optogenetics and the pDawn circuit for better repressor efficiency.
To predict the effect of temperature on the lambda repressor, we first fit our model to data from the lab at 30°C using the least squares method within SciPy. This gave us a starting point for parameter values that were difficult to find in the literature, but described our system very well based on our measurements. We then changed the temperature to 42°C using our fitted parameters and observed the effect on GFP production before validating the model results with our wet lab experiments.
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.
Assumptions
Due to the time scale, we assume that pairing and operator binding events are fast, so they are treated as instantaneous and solved with algebraic constraints. We also assume that heat denatures the whole active repressor pool and that GFP has no maturation delay. The operator binding sites have been collapsed to a Hill function with n=2 for cooperative binding. All simulations start with the cell at 30°C, and the temperature is then changed instantly at time zero to model the effect of temperature.
Additionally, our chassis lacks thyA and no thymidine was supplied, so the measured growth rate we feed into the model is itself partly a readout of how much thyA was produced. It is not a fully independent input to the model.
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
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.
Sensitivity of the fit to the assumed measurement error
We checked this result’s sensitivity to our assumed measurement error. Using only a 10% relative error, with no absolute floor, makes χ²/dof blow up to the hundreds, because a purely relative error model is undefined near zero, exactly where several of our early and low-signal readings sit. This confirms that the small, fixed background-uncertainty term we include is a physically necessary part of the error model, not an arbitrarily generous choice that is propping up the 0.88 result.
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.
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.
Overview
The pDawn circuit uses a YF1 gene that undergoes a conformational change from a kinase into a phosphatase when exposed to blue light. This dephosphorylates FixJ, which can then no longer activate transcription of the cI lambda repressor. This allows us to control the activity of any gene regulated by the lambda cI repressor using blue light (Ohlendorf et al. 2012).
From our dry lab predictions and wet lab experiments, we found that our temperature sensitive addiction system would be ineffective at regulating transcription of our essential gene. To combat this, we designed a new construct using the pDawn circuit from Ohlendorf et al. (2012).
Our initial wet lab experiments showed that the functionality worked, but we wanted to reduce leaky expression and control the tightness of the switch in its light and dark states. To understand this functionality, we adapted a model of the pDawn circuit created by Hennemann et al. (2018) to include growth dilution and a copy number multiplier, to examine the nonlinear effects of plasmid copy number on repressor function.
To predict the functionality of this circuit at different copy numbers, we used least squares to estimate our unknown parameter values from mKate2 fluorescence measurements in a medium copy plasmid (2-frag). We then modified the copy number by multiplying the effective synthesis rate of mKate2 to predict the regulation of the cI lambda repressor, and compared our results to empirical data. Only the copy multiplier was changed to represent the higher copy plasmid (HiCo).
The data supported the direction of the effect: a tighter switch with a higher copy number. The model matches the dark levels at 12 hours but is two times low for 2-frag in light, misses the timing of the light response, and is rejected statistically (χ²/dof = 4.7, p = 0.0009 for 2-frag). The result is preliminary.
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.
Overview
A catalytically dead Cas13 (dLwCas13a) paired with a gRNA against mCherry inhibits translation by blocking ribosomes from binding to the transcript. We built a mass action model of this mechanism and reduced it to a steady state. This reduction has a useful property: when we convert a measured repression ratio into the dimensionless complex-to-affinity number C/Kd, every rate constant defined in the model cancels out algebraically. The result therefore depends only on the measured ratio itself, rather than on hard-to-find parameters from the literature.
Our circuit achieved a 1.55-fold repression (C/Kd of 0.55, 95% confidence interval of 0.04–1.9). A highly functional circuit can be targeted to have 10-fold repression, or C/Kd = 9. Since C/Kd bundles the gRNA quantity and competency together, the model cannot say which one is the limiting factor from this measurement, but it provides a concrete target for the next design cycle of this repression mechanism. Over time, as the circuit breaks, less dCas13 or gRNA may be produced, weakening repression. This will eventually lead to a rise in fluorescence over time, detecting circuit breakage.
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.
Why this estimate is a mild lower bound
The simplification used here assumes the mCherry mRNA is small relative to Kd and the complex pool. Using the reported in-vitro affinity for Cas13a-family proteins binding target RNA (Kd = 5–40 nM; East-Seletsky et al. 2016; Tambe et al. 2018; Yang et al. 2023 for LwaCas13a; not measured in E. coli or for this construct), the correction raises the estimate modestly, to roughly 0.55–0.7, which still falls short of 9. The comparison between our measured C/Kd and the 9 needed for 10-fold repression uses no numeric Kd. It is a ratio of two C/Kd values, and Kd cancels out of that ratio since it is the same physical constant on both sides.
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.
Assumptions and limits
Assumptions. The dCas13:gRNA binds target mRNA as a reversible 1:1 complex. The mRNA and protein pools reached a steady state. The mCherry mRNA pool is small relative to Kd and the complex pool. The strain comparison isolates repression. No assumptions about transcription or translation rates, copy number, or growth rate are required for the headline C/Kd.
Limits. With a single time point, we cannot verify the steady-state assumption directly, though sampling during log phase supports it. Since gRNA production and competency are coupled in C/Kd, this model cannot distinguish them. Additionally, the plasmid-free control means our estimate is an upper bound on true repressive capacity.
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.
Math and equations explained
Math and equations for this section go here. A short description of each equation is below.
Temperature inducible circuit
The rate constants are given at 37°C and scaled to the temperature T with an Arrhenius factor. This rescales a rate constant k from its 37°C value to its value at T based on Ea.
Algebraic constraints. These equations define the concentration of free lambda repressor monomers, active dimers, and the fraction of bound pL promoter. Pairing and binding events are fast compared to transcription and translation, so they are defined algebraically.
Lambda repressor mRNA. The concentration of lambda repressor mRNA depends on transcription rate, degradation, and dilution.
Active lambda repressor. The concentration of active lambda repressors depends on translation, heat unfolding, refolding, and dilution.
Inactive lambda repressor. The concentration of inactive lambda repressors depends on unfolding, refolding, and dilution.
GFP mRNA. The concentration of GFP mRNA depends on scaled and leaky expression, degradation, and dilution.
GFP. The concentration of GFP depends on translation, GFP loss, and dilution.
Blue-light inducible circuit
All YF1 states. These equations dictate the rate at which YF1 undergoes conformational changes based on light intensity.
All FixJ states. These equations define the rate of phosphorylation of FixJ based on light intensity and active YF1 dimers.
Concentration of cI lambda repressor. This equation defines the production of cI lambda repressor based on copy number and production rate, degradation, and dilution.
Concentration of mKate2 reporter. This equation defines the production of mKate2 based on copy number, production rate, and leaky expression, and removal by dilution.
Most parameter values are fixed at the Hennemann et al. (2018) values. Only α and s are fitted, to the 2-frag data. Light intensity was not measured, so we assume 130 µW/cm², the maximum in Hennemann et al. (2018); the fit is unchanged for any intensity above about 10 µW/cm². We assume leaky expression (ε) is near zero. Only the ratio c enters the model, so the absolute copy number (about 50 assumed for 2-frag) is not used.
Growth rate μ is derived from our OD600 measurements over time. The YF1, FixJ and cI amounts are in arbitrary units (Hennemann et al. 2018). mKate2 is in nM at culture level: the total molar mKate2 concentration in the liquid volume of the well (cells and medium together), not per cell. The model pool R is in nM per OD600, so culture-level nM = R × OD600(t). We converted fluorescence with sulforhodamine standards: nM = 0.0879 × net RFU, where net RFU is the well minus the blank and the paired untransformed well. Our samples lie below the lowest standard, so this conversion is an extrapolation (about ±15%).
dCas13 detection circuit
CT is the total number of dCas13:gRNA complexes, and depends on whichever quantity is smaller. This complex binds to mCherry mRNA in a reversible reaction with a dissociation constant Kd.
Our mCherry was measured once after an extended incubation, with no time-course data. Rather than fitting the full dynamics, we assume the system had reached a steady production/loss balance by the time it was measured. The mRNA half-lives of a few minutes make this reasonable for the mRNA pools regardless of growth phase. For the protein pools, this assumption requires that dilution had not yet fully arrested at the time of sampling, which was done in late log phase, when cells were still actively growing.
We define R0 as the mCherry level with no complexes (our control strain).
Every rate constant for mCherry cancels in the ratio R*/R0. The only thing that R*/R0 depends on is how much of the mCherry mRNA pool is bound (B).
By solving the equation for B, using the fact that the mCherry mRNA pool is small (a single chromosomal copy) relative to the complex and Kd, we get the free mRNA fraction, where C*T is the total number of dCas13:gRNA complexes at steady state:
Substituting this into our equation for R*/R0 gives R*/R0 = 1/(1 + C/Kd).
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
Overview
This model aimed to expand our understanding of how a genetic circuit deployed in a real environment may fail. Many population models currently focus on population-level failure as evolutionary takeover in lab conditions, where cells are free to grow indefinitely without limits on nutrients or volume (Radde et al. 2024; Ingram & Stan 2024). But to understand how a circuit may break when deployed in real life, limits on nutrients, total number of cells, harsh environmental conditions, and active phage predation can all have an impact on how long a synthetic circuit may last.
Previous population modeling primarily includes an engineered and a mutated cell population, with a mutation rate that determines the transition between the two. The engineered population, due to carrying a synthetic circuit, experiences a heavy burden, which we define as a reduction in growth rate. This mechanism allows a mutated cell with no burden to quickly overtake the engineered population over time.
A mathematical model that can predict the time it takes for any circuit population to fail would be useful for many researchers designing circuits, but these predictions require prior data to accurately assess and validate the model and its assumptions. After looking through much of the literature, there was next to no data available for predicting the lifespan of genetic circuits when deployed in an environment. To address these limitations, we provide a proof of concept ODE model that can be used to predict the survival and functionality of an engineered bacterial population over time in various environments.
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.
Math Equations
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.
Overview
Our project aimed to analyze how and when a circuit breaks. Currently, many of the analyses that exist have a binary approach where the circuit is either “working” or “failing”. Machine learning is a valuable approach to finding patterns in data, and using it towards our goal can allow us to find early signals of future failures. We can use this insight to predict when a circuit will fail. However, for machine learning to work, it needs data on which to train. Over the course of numerous literature reviews and extensive data mining, we were unable to find enough data that could be directly applied to the creation of an ML prediction tool for circuit failure. Much of the available data focuses primarily on the DNA level. Genomic data alone lacks critical insight into transcription and translation, which can provide early signals of failure. Additionally, for all levels of measurement, including RNA-seq, there was a severe lack of consideration for failure analysis.
However, despite the lack of data, we understood that in order to properly and efficiently account for circuit failure in the DBTL cycle and allow for the creation of safe and reliable constructs in the future, we must have a tool that predicts failures before they occur. We therefore worked with what data was available and built two models that use RNA-seq. Both models were built with real experimental data, one with synthetic labeling and the other coupled with a population calculation. Both serve as foundational predictors of circuit failure, proving the value of integrating ML with RNA-sequencing data, and providing a modeling framework to guide future experimentation.
Our ML models allow the field of synthetic biology to test their constructs and receive an estimate of failure. The models are buildable, so that once new data arises, they can train and learn from those experiments, becoming even more valuable predictors. Our approach combines established understandings of circuit failure from the literature, and underwent many iterations of DBTL to prevent issues such as model overfitting, in order to present the best possible models to the field. We therefore created two machine learning models: 1. the Label Trained Model and 2. the Population Model.
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.
Background
Published literature on characterizing circuit failure suggests that RNA-seq can reveal internal failures of a circuit as well as the interaction between the host and circuit through the analysis of differentially expressed genes. With our knowledge of how machine learning can find patterns even in complex data such as RNA-seq, we sought to train a model on time-series RNA-seq data to find early signs of future circuit failure and predict when a circuit would break.
However, as we searched for training data, we found very few time-series RNA-seq studies of a host transformed with a circuit, and none considered circuit failure. This longitudinal analysis of circuit failure is essential for a model to learn what constitutes failure. Although this data does not currently exist, we wanted to provide a starting point and a proof of concept that emphasizes the value of further experimentation measuring the longevity of an engineered construct.
We used RNA-seq data taken at two time points from Ceroni et al. (2018), and labeled the last time point (60 minutes) as ‘broken’. This is our synthetic label. The label tracks elapsed time from the time point at which the circuit was inserted. The model is then used to learn the relation of genes, transcription, and translation to the time of circuit failure.
Inputs and outputs
Input. The model takes in:
- A counts table (gene names, samples, raw read counts for host and circuit)
- A sample table (sample, series, time). Ideally it also has a broken/not-broken (0/1) or time-to-failure column.
- Optionally a stress gene list with genes and stress scores
- A sequence-based mutation rate can also be added as a feature with the added column
u_eff_log10
Output.
- Predicted failure time per series and P(broken) for each sample
- Factors behind the prediction, which reveal the share each of burden, stress, and mutation contributes to the output
- Validation scores using leave-one-series-out AUC and accuracy
- Host genes that shift most between early and late samples, and genes found without any gene list (for example, stress genes)
- In single sample mode, an estimated time to failure from one RNA-seq sample
Additionally, our frontend user interface includes a simulator that roughly illustrates the effect of different feature values on the output.
Assumptions
- The biggest consideration with this model is that it was trained with synthetic labeled data. We used an RNA-seq dataset of constructs from the literature taken at two time points, and labeled the last time point (60 minutes) as ‘broken’. This assumes that the circuit broke at time 60 whether or not it actually did.
- The earliest time point is the baseline, assumed to be when the chassis transformed with the circuit is healthy and not under stress conditions.
- Features combine linearly on the log-odds scale, since the logistic regression adds weighted features.
- We trained only on inputs from E. coli, so this model would be less applicable to circuits in other hosts.
Evaluation and results
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.
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.
Overview of Population Model
Due to the lack of labeled data, we wanted to see if we could apply another approach to predict when a circuit would fail. We understood that various factors lead to circuit failure, but at the population level, key considerations include burden and mutation as they relate to the selection of the circuit.
We know that inserting a circuit into a host takes valuable resources, such as using the host’s RNA polymerase to transcribe the circuit’s DNA sequence, posing a burden on the host. This burden typically leads to cells with the circuit not being selected for once a mutated cell that lacks the circuit arises, eventually causing the circuit to fail. As such, for this model we define failure as the point at which 50% of the population are mutated cells, where the circuit cells would no longer be the majority and would be outcompeted.
RNA-sequencing can enable the measurement of this burden, as we can see how much of the cell’s transcript pool goes to the circuit versus the host through the circuit’s share of reads relative to the host. Additionally, it gives gene-level read counts, so we can find which genes are being activated, particularly genes related to the host being stressed, adding another layer of indication that the circuit poses a burden on the host.
Our approach combines this circuit fraction with a stress score, which is the average change in expression of host stress response genes relative to a reference, and uses a ridge regression model to extract how burdened the cell is and feed that into calculations of generations to failure.
Inputs and outputs
Input. To use this model, a user inputs their RNA-seq BAM file, which stores sequence reads and their alignments to a reference genome. Since the model calculates a circuit fraction, the reads must be aligned to both the host and circuit reference sequences. Additionally, it takes the circuit’s DNA sequence as a FASTA file. Optionally, users can input the growth rate of their control.
Output. With this input the model outputs generations to failure, which is the point where 50% of the population are mutated cells. We offer two versions of the same result, one with and one without genes, so the effect of the genes is visible.
The math behind our process
- Circuit fraction: circuit signal divided by host signal × 100. This acts as the share of transcription the circuit takes.
- Burden from the ratio: a ridge model maps circuit fraction to relative growth (r), then burden (b) is calculated as b = 1 − r.
- Burden with genes: when a matched control is available, the mean log2 fold change of a fixed list of stress genes against that control (the stress score) is added to the circuit fraction in the same ridge model.
- Mutation rate (ueff) from sequence: calculated by adding slippage in simple sequence repeats, deletion between repeated sequences, and a fixed point mutation. The total is then carried as a range (log10 SD 0.5).
- Failure time: engineered cells E and failed cells F follow the population equations. We run the calculation multiple times with the burden and mutation-rate ranges to get the interval.
Assumptions
- The circuit share reflects the resources it takes.
- Reads are counted over a fixed list of stress genes, but there may be other genes more indicative of failure.
- Training is all from one time point and not series data.
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.
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.
Math and equations explained
Math and equations for this section go here. A short description of each equation is below.
Population-level environmental failure model
Engineered cells are determined by growth rate, burden, mutation rate, infection, and death.
Lysogenic engineered cells are determined by growth rate, burden, mutation rate, infection, induction, and death.
The mutated and lysogenic mutated populations are defined similarly, but mutations from the engineered population are added to the mutated population.
The lytic population is defined by infection, induction, and lysis.
The phage population is defined by burst, infection, and death.
Nutrient (substrate) consumption is defined by growth of the different bacterial populations.
Our supporting equations define the total population pool, the growth rate based on substrate concentration, carrying capacity, and temperature, the lysogenic growth rate, and the lysogenic/lytic adsorption rate and induction rate, all based on temperature.
ML + Population Equations
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
- Leipold, R. J., Krewson, C. E., & Dhurjati, P. (1994). Mathematical model of temperature-sensitive plasmid replication. Plasmid, 32(2), 131–167.
- 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.
- 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.
- Hennemann, J., Iwasaki, R., Grund, T., Diensthuber, R., Richter, F., & Möglich, A. (2018). Optogenetic Control by Pulsed Illumination. ChemBioChem, 19(12), 1296–1304.
- 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.
- 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.
- 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.
- Chen, X., & Zhang, J. (2013). No gene-specific optimization of mutation rate in Escherichia coli. Molecular Biology and Evolution, 30(7), 1559–1562.
- 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.
- 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.
- 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.