Bayesian Models of Brain Connectomes
How Small Neural Differences Can Produce Individual Behavioral Differences
The central puzzle: different behavior despite the same genes and environment
Animals with the same genome and similar life experiences can still behave differently. In controlled experiments, fruit flies raised under standardized conditions may show distinct, persistent preferences for one odor over another. These differences can last for much of an animal’s life.
This poses a puzzle because behavior is often explained in terms of nature—genetic differences—and nurture—environmental differences. If those factors are held as similar as possible, what accounts for the remaining variation?
One proposed explanation is that small fluctuations inside an organism can accumulate as it develops and operates. At the smallest scales, molecules move and interact in ways that may differ from one animal to another. Those differences might affect how genes are transcribed, how much protein is made, how neurons develop, and how neural circuits are wired. Differences in circuit function could then influence behavior.
This is a proposed chain of causes, not a fully established mechanism. The smallest-scale events are difficult to observe or manipulate directly. Some may be fundamentally deterministic, but too many details are inaccessible to measure; for practical purposes, their combined effect can be treated as random variation. The broad hypothesis is that nanoscale and microscale fluctuations can propagate through levels of biological organization and eventually contribute to behavioral differences.
A useful analogy is a tiny deviation in the first stage of a long manufacturing process. A small difference may seem unimportant at first, but if each later stage builds on the previous one, the final products can become noticeably different. Biological development may work in a comparable way: small differences can be amplified or reshaped as they pass through interacting layers of regulation.
From molecular variation to behavior
A possible sequence is:
- Molecular conditions differ slightly between individuals.
- Those conditions affect the activity of enzymes that transcribe genes into RNA.
- Differences in transcription change how much of particular proteins a cell produces.
- Protein differences influence how neurons grow and connect.
- Circuit wiring and function vary between individuals.
- The variation contributes to different patterns of behavior.
The sequence is plausible, but it is hard to test from beginning to end. Researchers have ways to manipulate genes and neural circuits, but they do not have a simple method for turning developmental fluctuations on or off. That makes computational models useful: a model can provide a controlled setting in which some kinds of variation can be included or removed.
The key idea is that behavioral individuality may arise not only from differences in genes or environments, but also from small biological fluctuations that accumulate across development and neural function.
Think About It: If two animals receive the same sensory input but respond differently, at what point in the process might their neural representations begin to diverge?
Measuring individual differences in behavior
One way to study individuality is to measure how flies respond to two aversive odors. The odors are delivered from opposite ends of a narrow chamber. Carefully controlled airflow creates two relatively stable odor regions, with a boundary near the middle. Researchers track where each fly spends its time and calculate its preference from the proportion of time spent in one odor region rather than the other.
The individual outcomes vary widely. Some flies spend nearly all their time in one odor region, some spend nearly all their time in the other, and many divide their time more evenly. Across a group, the preferences form a broad, single-peaked distribution.
This measure is not a perfect, unchanging description of an animal. Flies can quickly habituate to the odors, and their first encounter with the odor boundary may cause them to turn around. Such effects account for some of the variation. When the same animals are tested again on a later day, their preferences tend to be correlated with the earlier measurements, but the relationship is not perfect. The assay also provides only a limited number of meaningful choice events before the flies become less responsive.
Different behaviors can offer different amounts of data. For example, a fly’s tendency to turn left or right can be measured repeatedly in a Y-shaped maze over many hours. Odor preference is more difficult to measure repeatedly because of rapid habituation. The amount of data available for each behavior therefore affects how precisely individual differences can be estimated.
Two different questions about variation
Studies of individuality can ask two related but distinct questions:
- What controls the amount of variation? This asks how wide the range of possible outcomes is. A dice analogy is helpful: it asks how many different outcomes the die can produce.
- What explains an individual outcome? This asks why one particular animal preferred one odor while another preferred the other. In the dice analogy, it asks why a particular roll produced a particular number.
The second question motivates the search for loci of individuality: parts of a neural circuit where differences between individuals are associated with differences in their behavioral biases.
Think About It: A behavior may be repeatable but not perfectly consistent. Which factors could make a behavioral measurement more or less reliable?
Where does a shared sensory signal become individual behavior?
A simplified way to think about the brain is as a system that transforms sensory information into motor output. If multiple animals receive the same stimulus, their early sensory representations may be similar. Yet their actions can differ. Somewhere along the pathway, a representation that is initially shared must become more individual—or at least become linked to individual differences in the eventual response.
The precise location of that change is not known in advance. It could occur mainly at one particular connection, or it could develop gradually across many neurons and synapses. In principle, neural activity near the motor output might reveal an animal’s behavioral tendency, because those signals help control the movements that produce the behavior. Earlier sensory areas, by contrast, might represent the stimulus similarly across animals.
The fly olfactory system offers a useful way to investigate this problem because its organization is well mapped and researchers can gain access to specific neuron types.
The organization of fly olfaction
Olfactory receptor neurons, or ORNs, are sensory neurons that bind to odorants and carry odor information into the brain. Their signals are organized into channels associated with structures called glomeruli in the antennal lobe.
Within each glomerulus, the outputs of ORNs connect with the inputs of a small number of projection neurons, or PNs. These neurons carry information onward to brain regions involved in association and in producing innate behavioral responses.
The shared glomerular organization is valuable for comparisons. ORN activity and PN activity can each be represented as a vector of responses across odor channels. Because the vectors use the same general format, researchers can compare how odor information is represented at the sensory periphery and one stage deeper in the brain. They can then ask whether one representation is more closely related to individual behavior than the other.
Relating neural activity to odor preference
In the experiment, each fly’s odor preference was measured first. The flies were then prepared for neural activity imaging. During imaging, odors were delivered to the flies and calcium-based indicators were used to measure neural responses. Behavior and neural activity were therefore measured in separate stages rather than simultaneously.
The imaging data covered five glomeruli and twelve odors. For each fly, the response to every odor–glomerulus combination formed a collection of sixty measurements. These values could be arranged as a vector with 60 entries. Across flies, each row of the data represented one individual, while each column represented a particular odor–glomerulus pair.
The central question was whether patterns in those neural responses predicted the previously measured odor preference.
Principal components as summaries of variation
To summarize the many neural measurements, researchers used principal components analysis, or PCA. PCA finds new dimensions that capture patterns of variation in a dataset. Rather than examining all sixty measurements separately, it identifies a smaller number of combined response patterns.
The analysis considered the first five principal components and tested whether each was linearly associated with behavior. For the comparison between one aversive odor and another, the second principal component in PNs was significantly related to odor preference. In other words, a pattern in PN responses across individuals predicted how those individuals had behaved in the odor-choice assay.
The same relationship was not found in the first five principal components of ORN responses. This result suggests that, for this odor-versus-odor choice, a behavior-related signature was detectable one step deeper in the brain than the sensory receptor neurons. It does not establish that PNs cause the behavior; it establishes a statistical association between a PN response pattern and preference.
The loadings of the relevant component—the contributions of individual odor–glomerulus measurements to that pattern—clustered by glomerulus. This means that the variation was organized partly according to which glomerulus was active, rather than simply according to which odor had been delivered. For example, an individual’s responses in one glomerulus could tend to vary in opposition to responses in another glomerulus across the odor panel.
Different comparisons can reveal different sources of variation
A separate comparison asked whether an animal preferred an odor or air. In that case, the first principal component of ORN responses was associated with preference, and a similar sensitivity-related pattern appeared in PNs.
This result is consistent with a straightforward interpretation: an animal that is more sensitive to an aversive odor may find it more repellent than an animal that is less sensitive. Thus, the neural location associated with behavioral variation can depend on the question being asked. For odor versus air, individual differences in sensory sensitivity may be important. For choosing between two odors, a difference in how odor representations are compared may become evident farther into the circuit.
The response patterns were also reasonably stable across repeated odor presentations during an imaging session. That stability indicates that the measured individual differences were not simply changing at every moment, although the experiment did not test whether the same neural patterns persisted from day to day.
What the measurements can and cannot show
The findings do not identify one universal location where individuality always arises. The experiment tested whether neural response patterns predicted behavior across individuals; it was not designed to determine whether every individual’s behavioral bias arose at the same circuit location. Different individuals could, in principle, reach similar behavioral outcomes through different neural changes.
The results are also correlational. A neural pattern associated with preference might help cause the behavior, might result from other differences, or might reflect a third factor that influences both neural activity and behavior. Further experiments are needed to distinguish these possibilities.
Think About It: Why might odor-versus-air preference be related to sensory sensitivity, while choosing between two odors may involve a different stage of processing?
Using a connectome to build a dynamical brain model
Because developmental variation is difficult to manipulate directly in living animals, the researchers turned to computational models. A model can act as a digital testing ground: developmental variation can be added or removed, and the effects on neural activity can be examined.
The simulations used a connectome, a detailed map of which neurons connect to which other neurons. A connectome can be constructed from electron microscopy. The brain is prepared so that extremely thin slices can be imaged, and computational methods help trace neurons and identify their synapses across the image series.
The resulting data can be represented as an N×N matrix, where N is the number of neurons. An entry records the number of chemical synapses connecting one neuron to another. The connectome therefore supplies the model with a detailed wiring diagram. A limitation is that a connectome describes one individual, while neural activity may have been measured in other individuals.
Leaky integrate-and-fire neurons
The model used leaky integrate-and-fire neurons. Each neuron has a changing voltage. Inputs from upstream neurons add to that voltage, while a leak causes it to drift back toward its resting level. When the voltage reaches a threshold, the neuron produces a spike, or action potential. The spike is associated with the release of output to downstream cells.
Odor-sensitive neurons receive odor-specific input. The network then passes activity along the connections recorded in the connectome. In schematic form, the network input to a neuron can be thought of as depending on the weighted activity of its upstream partners:
Iinetwork∝αcij∑WjiIjHere, Wji represents the connection from neuron j to neuron i, and αci represents the responsiveness or sensitivity of neuron i, associated with its cell type ci. This is a schematic description of the model’s logic, not a complete specification of its voltage dynamics.
Many model parameters came from the connectome or from previous physiological measurements. These included properties such as membrane capacitance, resting potential, resistance, and odor-driven input. A key adjustable parameter described how strongly a downstream neuron responded to the combined input from its upstream partners. It could be treated as one value for the whole system or assigned separately to different cell types.
The model tracked neurons as point-like units rather than simulating the detailed geometry of each neuron. This made it possible to focus on network activity while using the connectome’s wiring information.
Calibrating the model and testing developmental variation
The model’s predictions were compared with known experimental measurements. These included neuron firing rates, response curves, firing-rate distributions, and properties of odor representations such as how sparse or broadly distributed the activity was.
Initially, one global sensitivity parameter was adjusted until the simulated activity resembled the experimental data. With this adjustment, the model could reproduce several broad features of the measured olfactory responses. This calibration was important: it gave the researchers a model whose behavior was at least qualitatively consistent with known biology before using it to test new hypotheses.
The model was then used to simulate different developmental scenarios. To represent variation, researchers grouped neurons by cell type and resampled neurons from the existing connectome with replacement. This produced alternative, related wiring configurations. The method relies on a simplifying assumption: cells within a type can be treated as samples from a developmental process. Individual cells are not literally identical or independent, so the resampling is an approximation rather than a complete description of development.
The simulations showed that adding developmental variation to ORNs could produce patterns of response variation organized by glomerulus, resembling the organization seen in the calcium-imaging data. Adding variation to local neurons or PNs did not produce the same pattern in the tests described. This result points to developmental variation associated with ORNs as a possible explanation for the glomerular structure of individual response differences.
It remains a hypothesis, not proof that ORN development is the cause of the behavioral differences. The simulation makes the hypothesis testable by predicting where a particular pattern of variation could arise.
Think About It: Why is it useful to simulate a biological process that cannot easily be turned on or off in a living animal?
Bayesian inference for uncertain model parameters
A model contains parameters, and those parameters are often uncertain. Rather than selecting a value by repeatedly adjusting it until the output looks reasonable, Bayesian inference provides a way to estimate which values are supported by the data while representing uncertainty.
Bayesian inference combines three ingredients:
- A prior, which describes what parameter values are considered plausible before using the current data.
- A likelihood, which describes how probable the observed data are for a particular set of parameter values.
- A posterior, which describes how plausible the parameter values are after the data have been considered.
The relationship is summarized by:
P(θ∣D)∝P(D∣θ)P(θ)Here, θ represents the model parameters and D represents the observed data. The posterior probability P(θ∣D) is proportional to the likelihood P(D∣θ) multiplied by the prior P(θ).
In this application, the model’s measured parameters remained fixed, while a small number of parameters were estimated. These could include the global sensitivity parameter, separate sensitivities for different cell types, or parameters describing gap-junction effects. A gap junction is a direct connection between cells that can allow electrical influence; in the model, its strength could be approximated from contact information in the connectome.
The model is numerically integrated to generate neural dynamics. Those predictions are compared with experimental data through a likelihood, and the prior and likelihood together determine the posterior over model parameters.
Why the computation is challenging
Each likelihood calculation requires running a relatively expensive simulation. In this case, a single calculation took about forty-five minutes. Standard sampling methods such as Hamiltonian sampling or Metropolis–Hastings often require many thousands of evaluations, making them impractical when each evaluation is costly.
Because the number of inferred parameters was small—typically one to three—the researchers used a grid search. The model was evaluated over a set of parameter combinations, and the posterior was calculated across that grid. This approach is practical in a low-dimensional parameter space, though it would become inefficient if the number of parameters grew substantially.
Biological hints in the posterior
The posterior can reveal relationships among parameters, not merely a best-fitting value. In a model with separate sensitivities for excitatory local neurons and inhibitory local neurons, the posterior showed a diagonal band of plausible combinations. This indicates that the two parameters are related: the model can match the physiological data when their values maintain an appropriate balance between excitation and inhibition.
In a model that included gap junctions, the posterior favored a nonzero gap-junction contribution. This is consistent with the known presence of gap junctions in the antennal lobe. Such agreements suggest that the model and inference procedure may be capturing meaningful aspects of the biology, although agreement with known facts does not by itself validate every detail of the model.
Bringing the ideas together
The study of individual behavior connects several levels of explanation. Flies can show persistent differences in odor preference even when genetic and environmental conditions are closely matched. One possible source is the accumulation of small biological fluctuations across development and neural function.
To investigate where those differences become behaviorally relevant, researchers measure individual behavior and compare it with neural activity across stages of the olfactory circuit. The observed results differ by behavioral comparison: sensory sensitivity is associated with odor-versus-air preference, while a response pattern in projection neurons is associated with preference between two odors. These are important correlations, but they do not alone establish causation.
A dynamical model adds a way to test mechanisms that are difficult to manipulate experimentally. The connectome supplies the wiring, leaky integrate-and-fire dynamics describe how activity moves through the network, and simulated developmental variation can generate predictions about where individual response patterns might arise. Bayesian inference then helps estimate uncertain parameters and quantify which model settings are supported by physiological data.
Taken together, the approach treats a connectome-based model as a controlled sandbox for hypothesis testing. Its value lies not in replacing experiments, but in connecting circuit structure, neural dynamics, uncertainty, and behavior in ways that can guide future experiments.

Ask anything
We've read this whole study set, so questions about it get the best answers.