Culturing platform for longitudinal live imaging
For our in vitro experiments, we utilized a three-dimensional, self-assembled, primary cortical culture previously shown to contain myriad cell types and produce an endogenous extracellular matrix13,14. To facilitate live imaging, we adapted a spheroid cortical culture model into a “trampoline” shaped microtissue previously described by Schell et al34. Trampoline microtissues are large multicellular cultures with a heterogeneous cell composition (Supplemental Fig. 1) and a physically stabilized center region, approximately 800 µm wide and 300 µm thick. The trampoline shape was implemented to provide a larger viewable surface area compared to spheroids, increasing the number of imageable cells within the z-axis constraints of the microscope.
As high magnification objectives have very limited optical working distances, 3D cultures typically require physical manipulation to bring them closer to the objective by either transferring into a glass bottom imaging dish or removal of media to prevent samples from floating. As neural cultures are sensitive to environmental changes20, we aimed to collect image data without disrupting the culturing environment. To achieve this, we designed a custom agarose mold to place the cells within 350 µm of the bottom of the plate and, importantly, within the working distance of high-power objectives. Our mold is built upon published work utilizing agarose “stamping” for live imaging of spheroids38. We created a custom machined stainless steel injection mold consisting of a hollow tube with an endcap containing 6 machined holes to form the agarose pegs (Fig. 1A). The injection mold is placed into a single well of a multi-well culture plate, suspended by a 3D printed holder (Fig. 1B). Hot liquid agarose can be pushed through the injection mold and into the well with a syringe (Fig. 1C, Supplemental Fig. 2). When the agarose cools, the injection mold can be removed (Fig. 1D), leaving behind the agarose pegs within the microwell (Fig. 1E). After primary tissue collection and dissociation, cells were seeded into the microwell (Supplemental Fig. 3), placing them approximately 350 µm from the bottom of the plate and within the working distance of the objective for live imaging (Fig. 1F).


Custom injection mold positions the microtissue for live inverted imaging without the need for physical manipulation of tissues. (A) The injection mold design consists of a hollow tube with patterned end cap. The 6 holes in the endcap will form the 600 µm diameter agarose pegs of the microwell. (B) A cross section image of the injection molding apparatus. The injection mold (gray) is placed in the well, suspended to the correct height by a 3D printed holder (turquoise), and hot liquid agarose (red) is pushed into the hollow tube of the injection mold with a sterile syringe. (C) Liquid agarose moves through holes in the endcap and into the well. (D) When the agarose (red) is cooled, the mold can be gently pulled upward and removed. (E) Removal of the injection mold reveals the microwell with 6 pegs to produce the “trampoline” tissue shape. (D) This process places the microtissue (tan) around 350 µm from the bottom of the glass plate, within the working distance of most objectives.
AAV mediated expression of GCaMP6s reveals spontaneous neural activity
Once microtissues were constructed, we applied a commercially available GECI to visualize neural activity in vitro. The GCaMP6s calcium indicator was expressed through AAV mediated transgene delivery (AAV1-hSyn1-mRuby2-GSG-P2A-GCaMP6s-WPRE-pA, AddGene). Expression of the fluorescent protein packaged in the viral capsid was driven under the human synapsin (hSyn1) promoter, as it produces neuron-specific expression patterns39. The GCaMP6s probe was chosen over GCaMP6f due to its higher signal to noise ratio24, which we expected to compensate for any optical interference from agarose or tissue itself.
After culturing microtissues for 1 day (Fig. 2A), fluorescence expression was achieved via transgene delivery by culturing in virus-containing media for 3 days (Fig. 2B). Initial fluorescence appeared at DIV 8 and progressively increased in brightness through DIV 14 (Fig. 2C). Onset of spontaneous calcium transients were observed and recorded starting at DIV 14 (Fig. 2D). Python code was used to identify cell bodies by applying Laplacian of Gaussian filtering to maximum projections of time-lapse images and non-maxima suppression to detect individual regions of interest (ROIs, Fig. 2E). ROIs were curated to remove cells outside of the microtissue edge using manual interactive correction. Using curated ROI seed positions, ROI masks were created and overlaid onto each image of the time-lapse videos (Fig. 2F) in MATLAB, and calcium transients and events were extracted from the masked videos (Fig. 2G) with the FluoroSNNAP40 application.


Three-dimensional self-assembled neural cultures express stable GcaMP6s fluorescence and exhibit spontaneous activity by DIV 14. (A) Dissociated P1 primary rat cells are seeded into a custom injection molded agarose well. (B) Cells, which form a “microtissue” (tan) in the first 24 h, were transfected with a commercially available viral vector to encode the GcaMP6s calcium indicator (AAV1-hSyn1-mRuby2-GSG-P2A-GcaMP6s-WPRE-pA). (C) Microtissues display progressive expression of baseline calcium fluorescence from DIV 8—DIV14. (D) Time-lapse videos of calcium transients were collected for 4 min. (E) Python code was used to perform semi-automated segmentation of cell bodies. (F) Segmented regions of interest (ROIs) were overlaid onto the 4-min video for single-cell calcium trace extraction. (G) A raster plot of calcium events detected from calcium traces were extracted from segmented videos using the FluoroSNNAP application40.
Microtissues exhibit significant remodeling of functional connectivity during development
We characterized FC of microtissues from onset of spontaneous calcium transients. To accomplish this, we recorded activity in 9 microtissues across three biological replicate litters from DIV14-34. We analyzed network activity from recordings using graph theory analysis (GTA), a mathematical method of describing complex interactions between “nodes” in an interconnected network31. Here, we employed GTA to describe in vitro network activity at the microcircuit level, where each node within the graph represents a single cell32,41. Using a network analysis toolkit7, we characterized correlation coefficients, clustering coefficients, and path lengths of microcircuits. To assess trends in neural activity over time, recordings were grouped into weeks (week2 = DIV14-20, week3 = DIV21-27, week4 = DIV28-34), where each data point represents a single recording of a microtissue within the time range.
The correlation coefficient is a metric of FC between pairs of nodes. Correlation was determined by the statistical similarity of activity between each node pair by Pearson cross-correlation. Higher correlation coefficients indicate stronger functional connections between nodes32. We assessed the average correlation of microcircuits, calculated by taking the mean correlation coefficient of all node-pairs. We found a significant (p = 0.0026) reduction in the average correlation from week 2–3 and a significant (p = 0.0151) recovery in week 4 (Fig. 3A).


Spontaneous calcium activity reveals significant functional remodeling over three weeks of development in vitro. (A) Average correlation coefficients of microtissues significantly decrease (p = 0.0026) from week 2 to week 3, followed by a significant increase (p = 0.0151) from week 3 to week 4. (B) Clustering coefficients follow the same trend as the correlation, with a significant decrease (p = 0.0032) of average clustering coefficient in week 3 and a subsequent significant increase (p = 0.016) in week 4. (C) Path length between nodes followed the inverse trend, with a significant increase (p = 0.0054) in average path length in week 3 and a significant decrease (p = 0.0263) in week 4. (D) Whole-tissue firing rate showed no significant differences (week2-week3, p = 0.5851; week 3-week 4, p = 0.4209) over 3 weeks of development. (E) Whole-tissue calcium traces recorded in a single example microtissue from week 2, week 3, and week 4 show changes in firing patterns over time. (F) Correlograms from pairwise Pearson cross-correlations coefficients between nodes from recordings shown in (E), exhibit progression of node connectivity across weeks. (G) Correlational connectomes overlay the cross-correlation values above 0.5 onto the physical node positions. Line color connecting nodes correlates to the correlation coefficient value. (H) Plots of the correlation coefficients versus the physical distance between nodes, shows no preference for strong local connections over cross-tissue connections. Significance to compare multiple weeks was determined with a one-way ANOVA and post-hoc Tukey test with p < 0.05 (*p < 0.05, **p < 0.01).
The clustering coefficient is a measure of FC between triplets of nodes, representing the formation of “small world” network organization42. A higher clustering coefficient corresponds to the presence of highly interconnected clusters of nodes, an indication of higher network complexity compared to a random network31,43. Average clustering coefficients followed the same trend as average correlations over 3 weeks in vitro, with a significant reduction (p = 0.0032) from week 2–3 and a significant (p = 0.016) recovery in week 4 (Fig. 3B).
Path length is a metric of network integration, inversely related to the correlation and representing the ability of nodes to communicate efficiently with limited intermediary nodes31,44. Node-pairs with short path lengths are thought to be efficient at sharing information. We found a significant increase (p = 0.0054) in the average path lengths from week 2–3 and a significant (p = 0.0263) recovery in week 4, inversely following trends of the correlation and clustering (Fig. 3C). Collectively, the disruption and recovery of correlation, clustering, and path length indicate significant remodeling of FC in microtissues during maturation.
Additionally, we investigated if these changes in FC were associated with changes to the oscillatory activity, comprising synchronous neuronal bursting across the whole microtissue. While synchronous oscillatory activity is a phenomenon related to learning and memory functions23, it may intrinsically alter correlation coefficients of the network. Thus, we examined the oscillatory behavior over weeks of maturation by calculating the whole-tissue firing rates, measured by the number of tissue-wide synchronous bursts per minute identified by the FluoroSNNAP event detector. While there was a decrease in the average whole-tissue firing rate, the changes were not statistically significant (week2–3, p = 0.5851; week3–4, p = 0.4209; Fig. 3D). This finding suggests that global oscillatory activity is likely not responsible for the changes in functional connectivity at this stage of maturation.
To better understand the changes in connectivity, we examined the longitudinal FC of individual microtissues. While there was no statistically significant change in whole-tissue firing rate from week to week, individual microtissues displayed variability in the firing patterns over time (whole-tissue summed traces; Fig. 3E, Supplemental Fig. 4). Correlograms of a representative microtissue from each week (Fig. 3F) showed that the net reduction in average correlations in week 3 did not reflect a blanket reduction in all node-pairs, marked by a visible increase in correlation for a subset of node-pairs. Correlational connectomes (Fig. 3G), which overlay correlation values above 0.5 onto the physical microtissue, showed this increase in strongly correlated node-pairs (correlation > 0.8) more clearly. This qualitatively supports the idea that microtissues undergo selective pruning of FC during maturation. To investigate the structural composition of the network, we then characterized the correlation of proximal nodes. We found that physical proximity of nodes was not a strong predictor of correlation in individual microtissues (Simple linear regression; DIV14, R2 = 0.45; DIV24, R2 = 0.030; DIV32, R2 = 0.00045, Fig. 3H) indicating that the underlying structural network is likely not a regular network, which is primarily made up of proximal connections. These data further support the presence of significant whole-tissue remodeling over the first 4 weeks in vitro.
Microtissues develop and refine community structure over time
We assessed the strength of microcircuit community structure, characterized by the formation of strongly connected groups of neurons within the functional network. The development of community structure is an important feature of neural network maturation both in vitro and in vivo19,45,46. Here, we used a compiled network analysis toolkit7 to characterize community structure.
Modularity is a metric of community structure maturation defined by the presence of highly connected groups of nodes called “modules”31,32,41. At the microcircuit level, modules represent small subnetwork ensembles of cells, as opposed to larger regional connections. By examining modules at the microcircuit level, we aim to characterize subtle changes to local network topology, which are more closely related to functional changes at the single-cell, molecular, and synaptic level. Modules can be identified by hierarchical clustering of node-pair correlations7,47. If modularity increases, network segregation increases, resulting in strong node-pair connections within modules and weak node-pair connections between modules47. As such, we would expect to see increased modularity as the network matures through strengthening synapses. Modularity significantly increased (p = 0.046) from week 2–3 (Fig. 4A), despite the decrease in overall correlation, suggesting that functional remodeling coincides with construction of modules. Additionally, microtissue modularity remained high at week 4 (p = 0.0475; Fig. 4A), indicating that the increased correlation did not disrupt the community structure developed in week 3. At this microcircuit scale, modules did not represent physical “regions” within the microtissue. Nodes of different modules and intra-modular connections were interspersed (red, module1; blue, module2; Fig. 4B).


Microtissues develop community structure through selective functional remodeling. (A) Overall modularity of microtissues significantly increased (p = 0.046) at week 3 and remained increased (p = 0.0475) at week 4. (B) Representative image of the physical layout of module nodes. Module 1 nodes (red dots) and their intra-modular connections (orange lines) are physically interspersed with module 2 nodes (blue dots) and their intra-modular connections (light blue lines). (C) Number of modules present in microtissues does not change over the first 4 weeks of development. (D) The intra-module correlation is not significantly different (p = 0.0834) from the inter-module correlation in week 2. In weeks 3 and 4 the intra- and inter- module correlations significantly separated (week 3, p = 0.0045; week 4, p < 0.0001). (E) Schematics of community structure formation based on data from (D), with intra-modular connections in red (module 1) or blue (module 2), and inter-module connections in magenta. Week 2 reflects that there was no difference between the intra-module and inter-module connections. The week 3 schematic depicts the overall decrease in functional connectivity, which disproportionately affects inter-module connection. The week 4 schematic shows the overall increase in connectivity, with an increase in intra-module connections and a decrease in inter-module connections. (F) There is little correlation between module size (number of nodes) and the intra-module correlation at week 2 and week 3. At week 4 there is a small positive correlation between module size and average correlation, indicating that large modules in week 4 were functionally more connected. Significance for modularity and number of modules across multiple weeks were determined with a one-way ANOVA and post-hoc Tukey test with p < 0.05 (*p < 0.05). Significance between intra-modular and inter-modular correlations were determined with unpaired, two tailed t-tests with p < 0.05 (**p < 0.01, ***p < 0.001, ****p < 0.0001).
Although the modularity changed over time, the absolute number of identified modules did not (week2–3, p = 0.8449; week3–4, p = 0.6127; Fig. 4C), suggesting that increased modularity may be related to the segregation of established modules rather than further subdivision of modules. To investigate, we compared node-pair correlations within modules (intra-modular correlations) to those between modules (inter-modular correlations). Intra-modular and inter-modular correlations were not significantly different in week 2 (p = 0.0834), but progressively separated in week 3 (p = 0.0045) and 4 (p < 0.0001; Fig. 4D). These data indicating that microtissues at week 2 contained weak community structure in which connectivity within modules was equivalent to those between modules (Fig. 4E). At week 3, the overall FC decrease disproportionately reduced the strength of inter-modular connections, resulting a separation of intra- and inter-modular correlations (Fig. 4E, Supplemental Fig. 5). Further, the overall increase in connectivity in week 4 disproportionately increased intra-modular connections (Fig. 4E, Supplemental Fig. 5), resulting in the emergence of well-defined community structure. Additionally, the number of nodes within strongly correlated modules increased over time (Fig. 4F), with module size showing limited correlation to module connectivity in week 2 (Simple linear regression; R2 = 0.01134; slope deviation from zero, p = 0.3320) and week 3 (Simple linear regression; R2 = 0.0015, slope deviation from zero, p = 0.7818), but a stronger correlation in week 4 (Simple linear regression; R2 = 0.1462; slope deviation from zero, p = 0.0043; Fig. 4F). Collectively these data indicate a progressive strengthening of community structure created through selective pruning of FC over weeks in vitro.
Functional connectivity significantly increases 5–9 days after LPS exposure
We then investigated FC of 3D in vitro neural networks during acute neuroinflammation. We applied the methods of functional imaging and analysis described above to a well-established lipopolysaccharide (LPS) model of acute neuroinflammation. LPS stimulates glial inflammatory cascades, producing changes in cellular morphology18, gene expression48, and secretome35. While LPS-induced neuroinflammation does not model a specific disease pathology, it can add to our understanding of basic neuroinflammatory cellular dynamics. LPS-induced neuroinflammation has significant downstream effects on neural function, including connectivity changes in mesocircuits49,50,51, the development of epileptiform hyperactivity52, and cognitive deficits in rodents and humans49,53. Here, we examined the effect of LPS on microcircuit FC in microtissues.
As LPS exposure in vivo has effects on the secretome in tissues directly after exposure35, morphology after 2 days18, and synaptic proteins at one week54, we examined FC at three corresponding timeframes (2 h, 1–3 days, and 5–9 days) after exposure. Microtissues were treated with either 10ug/mL of LPS or a PBS control at DIV 25 and imaged at 2 h after treatment (LPS = 9 microtissues; PBS = 8 microtissues, Fig. 5A). Samples were subsequently imaged at 1–3 days (DIV26/27/28) and 5–9 days (DIV30/32/34). Due to the sensitivity of neuronal activity to any environmental changes, microtissues were allowed to recover from media changes for 2 h prior to imaging20.


Lipopolysaccharide significantly increases functional connectivity 5–9 days after exposure. (A) Experimental timeline: LPS or PBS was added to the media at DIV 25, allowed to recover for 2 h, and then imaged (2 h). Subsequent image sessions were done at DIV 26, 27, 28 (1–3 Days) and DIV 30,32,34 (5–9 days). A media change was performed on DIV 27, with a 2-h recovery before imaging. At 2 h after exposure, there was no significant difference in average correlation coefficients (p = 0.9805, B), clustering coefficients (p = 0.9924, C), path length (p = 0.5195, D), or whole tissue firing rate (p = 0.0636, E) between PBS and LPS exposed tissues at 2 h. The 2 h treated samples were then compared to matched, untreated samples. The firing rate of PBS samples did not change (p = 0.4479, F), while the LPS samples significantly decreased (p = 0.0249, G). At 1–3 days after treatment, there was no statistical difference between PBS and LPS samples in average correlation coefficients (p = 0.1539, H), clustering coefficients (p = 0.0769, I), path length (p = 0.0627, J), or whole tissue firing rate (p = 0.0580, K). Example correlational connectomes from representative samples at 2 days after PBS (L) or LPS (M) treatment show similar correlation coefficient distributions above 0.5. At 5–9 days after treatment, LPS samples showed a significant increase in average correlation coefficients (p = 0.0014, N) and clustering coefficients (p = 0.0096, O), and a significant decrease in path length (p = 0.0198, P) compared to PBS samples. LPS exposure produced no statistical difference (p = 0.2126) in firing rate (Q) at 5–9 days. An example correlational connectome from a representative microtissue 9 days after PBS exposure (R) shows similar correlation coefficient distributions above 0.5 to its 2-day counterpart, while the LPS connectome (S) reflects the increase in correlation compared to its 2-day counterpart as well as to the day-matched PBS sample. Significance comparing LPS to PBS samples was determined with unpaired, two tailed t-tests with p < 0.05 (*p < 0.05, **p < 0.01). Significance comparing firing rate before and after treatment (F,G) was determined with a paired, two tailed t-test with p < 0.05 (*p < 0.05).
We found no significant changes in correlation (p = 0.9805; Fig. 5B), clustering (p = 0.9924; Fig. 5C), path length (p = 0.5195; Fig. 5D) or whole-tissue firing rate (p = 0.0636; Fig. 5E) between PBS and LPS treated samples at 2 h. However, firing rates of individual samples before and after treatment showed no change in PBS firing rate (p = 0.4479; Fig. 5F), but a significant reduction in LPS firing rate (p = 0.0249; Fig. 5G). At 1–3 days, we found no significant differences in LPS and PBS correlation (p = 0.1539; Fig. 5H), clustering (p = 0.0769; Fig. 5I), path length (p = 0.0627; Fig. 5J), or firing rate (p = 0.0580; Fig. 5K). Correlational connectomes from representative PBS and LPS treated microtissues show connectivity at 2 days post-treatment (Fig. 5L,M). At 5–9 days, however, we found significant differences in FC between LPS and PBS treated samples. LPS microtissues showed increased correlation (p = 0.0014; Fig. 5N) and clustering coefficients (p = 0.0096; Fig. 5O), and decreased path length (p = 0.0198; Fig. 5P). These changes in LPS FC were not associated with any changes in firing rate (p = 0.2126; Fig. 5Q). Correlational connectomes at 9 days show the drastic increase in FC of LPS samples over PBS controls, representing a trend occurring over days after LPS exposure (Fig. 5R,S, Supplemental Fig. 6).
LPS interferes with community structure development through disruption of selective functional remodeling
Changes in microcircuit community structure is an indicator of neural dysfunction associated with memory deficits26,28. Here, we investigated the influence of LPS-induced acute neuroinflammation on modularity and the underlying community structure of microcircuits in vitro. Because microcircuit modularity is closely related to single cell dynamics underpinned by synaptic changes, we would expect any LPS-induced dysregulation of subnetworks to be reflected in a reduction of modularity.
At 2 h after treatment, LPS had no significant effect on modularity (p = 0.3074; Fig. 6A), intramodular correlations (p = 0.3056; Fig. 6B), or inter-modular correlations (p = 0.056; Fig. 6C). Schematic representations of module connectivity (Fig. 6D,E), show that at 2 h (DIV25), microtissues have established separation between intra-modular and inter-modular connections in both LPS (p < 0.0001) and PBS (p < 0.0001) samples. At 1–3 days, modularity of LPS remained the same while PBS showed an upward trend (p = 0.0505; Fig. 6F). PBS intra-modular correlations showed a significant increase over LPS samples (p = 0.0070; Fig. 6G), while inter-modular correlations were static (p = 0.2690; Fig. 6H), suggesting that PBS controls continued to strengthen community structure while LPS samples did not. Schematics of connectivity data (Supplemental Fig. 7) show slightly increased intra-modular connections in PBS (intra, p = 0.0622; inter, p = 0.8413; Fig. 6I), while LPS-treated networks remained the same (p = 0.5200; p = 0.8524; Figure J). At 5–9 days, the overall FC increase in LPS samples was associated with a significant reduction in modularity compared to PBS controls (p < 0.0001; Fig. 6K). While we found a significant increase in LPS intra-modular correlation (p = 0.0133; Fig. 6L), there was a disproportionate increase in LPS inter-modular correlation (p < 0.0001; Fig. 6L,M), effectively reducing network segregation. Schematics of connectivity data (Supplemental Fig. 7) show PBS controls maintained well-defined modules at 5–9 days (Fig. 6N), while LPS treated samples reduced the strength and separation of modules (Fig. 6O). The resulting effect of LPS treatment was the disruption of community structure in microcircuits beginning at 1–3 days, and more robustly at 5–9 days after treatment.


LPS disrupts community structure at 5–9 days after exposure. At 2 h after treatment, there was no significant difference (p = 0.3074) between PBS and LPS in modularity (A), including no difference in the intra-modular (p = 0.3056, B) or inter-modular (p = 0.056, C) correlation coefficients. Schematic representations of connectivity data display the stronger intra-modular connections in blue (module 1) and yellow (module 2) than inter-modular connection (green) for both PBS treated (p < 0.0001, D) and LPS treated (p < 0.0001, E) samples at 2 h, a. At 1–3 days after treatment, there was no significant difference (p = 0.0505) between PBS and LPS samples in modularity (F), however, there was a significant increase (p = 0.0070) in intra-modular correlation of PBS (G). Inter-modular correlations remained the same at this time point (p = 0.2690, H). Schematics representing of connectivity data shows PBS treated samples (I) with slightly increased in intra-modular connections (p = 0.0622) and unchanged inter-modular connections (p = 0.8413), while LPS treated samples (J) show no changes from 2 h (intra, p = 0.5200; inter, p = 0.8524). At 5–9 days the modularity of LPS samples were significantly lower than PBS samples (p < 0.0001, K). There was a significant increase in LPS intra-modular correlations (p = 0.0133, L) and a super significant increase in inter-modular correlations (p < 0.0001, M). Schematic representations of modular connectivity data show PBS treated samples (N) were unchanged from 1–3 days (p = 0.6338), and significantly high intra modular correlations compared to 2 h (p = 0.0082), while LPS treated samples (O) show a large increase in connectivity, which increases inter-modular connections (p < 0.0001) and intra-modular connections (p < 0.0001). Significance was determined with unpaired, two tailed t-tests with p < 0.05 (*p < .05, **p < 0.01, ***p < 0.001, ****p < 0.0001).

