{"id":874687,"date":"2026-10-08T03:32:15","date_gmt":"2026-10-08T03:32:15","guid":{"rendered":"https:\/\/www.newsbeep.com\/us\/874687\/"},"modified":"2026-10-08T03:32:15","modified_gmt":"2026-10-08T03:32:15","slug":"a-split-attractor-design-for-rapidly-writing-a-navigational-goal","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/us\/874687\/","title":{"rendered":"A split attractor design for rapidly writing a navigational goal"},"content":{"rendered":"<p>Fly stocks<\/p>\n<p>Female flies were raised on standard cornmeal-agar medium at 25\u2009\u00b0C on a 12-h light cycle. For optogenetics experiments, the food was supplemented with 50\u2009\u00b5l of 35\u2009mM all-trans retinal (Sigma, R2500, dissolved in ethanol) mixed with ~1 teaspoon of hydrated potato flakes. Experimental flies were aged to 1\u20133 days for electrophysiology experiments or 9\u201314 days for imaging experiments. A list of fly genotypes is shown in Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#MOESM3\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a> and a list of fly reagents is shown in Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#MOESM4\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a>.<\/p>\n<p>Two-photon calcium imaging<\/p>\n<p>Calcium imaging was performed as described in our previous study<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Kathman, N. D. et al. Neural dynamics for working memory and evidence integration during olfactory navigation in Drosophila. Nat. Commun. 17, 9082 &#010;                https:\/\/doi.org\/10.1038\/s41467-026-75945-2&#010;                &#010;               (2026).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR26\" id=\"ref-link-section-d78618620e2049\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a>. In brief, we anaesthetized flies over ice and a chilled (4\u201310\u2009\u00b0C) aluminium sarcophagus and then glued them onto custom 3D-printed holders. We minimized movement of the brain by stabilizing the proboscis and head, and glueing the eyes, head and anterior tip of the thorax to the holder. To access the FB for imaging, we removed a small piece of the surface cuticle, trachea and air sacs over the back of the brain using sharpened forceps. We positioned flies over an air-supported ball (9\u2009mm diameter General plastics FR-7110, painted with black spots, supported by 0.4\u2009l\u2009s\u22121 air) using two cameras (30\u2009fps, FLIR Blackfly, Computar 8.5\u2009mm 1:1.3 adjustable lens) at the front and side of the fly. A third camera (100\u2009fps, Grasshopper, 94\u2009mm\/0.5\u00d7 InfiniStix Proximity Series lens, Edmund Optics Focal Length Extenders, working distance 15\u2009cm) was used to track the ball using Fictrac software<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 70\" title=\"Moore, R. J. D. et al. FicTrac: a visual method for tracking spherical motion and generating fictive animal paths. J. Neurosci. Methods 225, 106&#x2013;119 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR70\" id=\"ref-link-section-d78618620e2055\" rel=\"nofollow noopener\" target=\"_blank\">70<\/a>. We illuminated the fly and ball using two infrared LEDs (M850F2) and T-cube LED Drivers (LEDD1B) coupled to fibre optic cables (Thorlabs M118L03 flat cleave patch cables). We continuously perfused (1\u2009ml\u2009min\u22121) the brain with extracellular saline (103\u2009mM NaCl, 3\u2009mM KCl, 5\u2009mM TES, 8\u2009mM trehalose dihydrate, 10\u2009mM glucose, 26\u2009mM NaHCO3, 1\u2009mM NaH2PO4H2O, 1.5\u2009mM CaCl22H2O and 4\u2009mM MgCl2.6H2O, pH 7.1\u20137.4, osmolarity 270\u2013274\u2009mOsm) bubbled with carbogen (5% CO2, 95% O2) and warmed to 33\u2009\u00b0C.<\/p>\n<p>We performed all imaging under a 20\u00d7 water objective (Olympus Plan Fluorite XLUMP 20\u00d7\/1.0) using an infrared laser (SpectraPhysics MaiTai HP or Coherent Axon 920) at 920\u2009nM and 25\u201335\u2009mW (measured at sample) using a galvo-galvo scanner. Simultaneous fluorescence emission from GCaMP7f and tdTomato were separated by bandpass filters (Semrock, FF01-525\/50-32 for green and FF01-607\/70-32 for red) and detected using two GaAsP photomultiplier tubes. We captured volumes consisting of three 192\u2009\u00d7\u200996\u2009\u00b5m optical sections, separated by 15\u2009\u00b5m, taken at 8\u2009volumes\u2009s\u22121 with a 1.2\u2009\u00b5s dwell time.<\/p>\n<p>In all imaging experiments, flies walked on a floating ball and received wind (25\u2009cm\u2009s\u22121) and odour (0.5% apple cider vinegar, 0.3\u2009l\u2009min\u22121) stimuli controlled by custom Python code. The wind direction was set by a rotary union (Dynamic Sealing Technologies, LT-2141-OF-ES12-F1-F2-C2) controlled by a stepper motor (Oriental PKP566FMN24A, with controller CVD524-K) and microcontroller (TeensyDuino +USB), and was controlled in closed loop by the flies\u2019 heading measured by ball movement as we described previously<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Kathman, N. D. et al. Neural dynamics for working memory and evidence integration during olfactory navigation in Drosophila. Nat. Commun. 17, 9082 &#010;                https:\/\/doi.org\/10.1038\/s41467-026-75945-2&#010;                &#010;               (2026).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR26\" id=\"ref-link-section-d78618620e2095\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a>. The starting wind direction was randomly selected from 0\u00b0, 45\u00b0, \u221245\u00b0, 135\u00b0 or \u2212135\u00b0. Wind was on from 5\u201360\u2009s of each 65\u2009s trial. The odour signal was randomly selected between five possible patterns on interleaved trials: odour step (15\u2009s) or odour pulses of 1, 4, 7 or 10 pulses (1\u2009Hz, 0.5\u2009s pulse width). When the odour was turned off, a compensatory air valve was opened to maintain total air speed. Air to all lines (wind, ball support, odour, compensated air) were passed through a pressure regulator (Cole-Parmer MIR2NA) and charcoal filters (Drierite 26800 Drying column, with desiccant replaced by activated charcoal). Wind and compensated air were also humidified. Airflow for the wind line was controlled by a mass flow controller (Aalborg Model GFC17), while airflow for odour, compensated air, and ball support were controlled by flowmeters (Cole-Parmer PMK1-010608). We controlled the timing of wind stimuli using a solenoid valve (Cole-Parmer Masterflex 01540-11), and the timing of odour and compensate using high-speed three-way solenoid valves (Lee company, LHDA1233115HA).<\/p>\n<p>During wind-shift experiments, the wind was rotated by 90\u00b0 across 2.2\u2009s either in the presence of odour (10 pulses at 1\u2009Hz) or without odour. The onset of the shift was set to occur 4\u2009s after odour onset. We also included control trials where wind was not shifted in the presence or absence of odour. The data from non-shift control trials were included in all analyses that did not depend on the precise odour stimulus.<\/p>\n<p>Electrophysiology<\/p>\n<p>For electrophysiology, we anaesthetized flies over ice, glued them to custom 3D-printed holders, and then removed their two front legs. To access dorsal cell bodies, we removed a large piece of the cuticle, trachea, and air sacs from the back of the brain, then manually detached the sheath using fine forceps. We minimized brain movements by removing the muscles on the brain and stabilizing the proboscis with glue. Starting at the dissection, and maintained throughout the entire experiment, we continuously perfused extracellular saline (same recipe as above), bubbled with carbogen, over the brain. Using a 40\u00d7 objective (Olympus, LUMPLFLN40XW), an LED source (Cairn Research MONOLED), and a filter (U-N19002 AT-GFP\/F LP C164404) we visualized GFP-positive cell bodies for recordings. Prior to recording, we cleaned the area around the target cell using fine-tip glass pipettes filled with extracellular saline.<\/p>\n<p>For patch clamp recordings, we pulled glass pipettes with a Sutter P-1000 puller, pressure polished the pipettes (final resistance of 3\u20135\u2009M\u03a9), and then filled them with intracellular solution (140\u2009mM KOH, 140\u2009mM aspartic acid, 10\u2009mM HEPES, 1\u2009mM EGTA, 1\u2009mM KCl, 4\u2009mM MgATP, 0.5\u2009mM Na3GTP, and 13\u2009mM biocytin hydrazide). We amplified the voltage signals using an Axonpatch 200B amplifier with a Brownlee Precision 410 preamplifier and then digitized the signals at 10\u2009kHz. We delivered 73\u2009\u00b5W\u2009mm\u22122 red light (625\u2009nm, measured at light source) for activating CsChrimson using a Thorlabs LED (M625F2) and T-Cube LED Driver (LEDD1B) coupled to optical fibres cables (Thorlabs M118L03 flat cleave patch cables) positioned below the head.<\/p>\n<p>To better observe a mixture of excitation and inhibition, we depolarized cells to \u221238.1\u2009\u00b1\u20097.1\u2009mV (mean\u2009\u00b1\u2009s.d., n\u2009=\u200937 cells) using a small amount of positive current. Cells that did not spike were discarded. In all experiments, we randomly looped through 11 stimuli: seven optogenetic light stimuli (4\u2009s of 12\u2009\u00b5W\u2009mm\u22122 low power; 4\u2009s of 23\u2009\u00b5M\u2009mm\u22122 medium power; 4\u2009s of 73\u2009\u00b5M\u2009mm\u22122 high power; 1\u2009Hz pulses with 0.2 duty cycle; 1\u2009Hz pulses with 0.5 duty cycle; 1\u2009Hz pulses at 0.8 duty cycle; and a light plume stimulus), three current stimuli (4\u2009s of \u22124 pA; 4\u2009s of 0 pA; and 4\u2009s of 4 pA), and one wind or odour stimulus (wind on for 20\u2009s, 5% apple cider vinegar on for 4\u2009s). We constructed the light plume stimulus by filtering the odour encounters of a fly navigating in a virtual olfactory plume<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Kathman, N. D. et al. Neural dynamics for working memory and evidence integration during olfactory navigation in Drosophila. Nat. Commun. 17, 9082 &#010;                https:\/\/doi.org\/10.1038\/s41467-026-75945-2&#010;                &#010;               (2026).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR26\" id=\"ref-link-section-d78618620e2129\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a> with a positive derivative filter. The stimuli were looped five times in all cells, and then five times per drug condition. While we only report the results of light pulse stimuli in this paper, the voltage changes we observed\u2014such as fast inhibition or slow persistent excitation\u2014were seen across all optogenetic temporal patterns used.<\/p>\n<p>In several experiments, we perfused drugs onto the brain to block neurotransmitter receptors. In these experiments, drugs were mixed with extracellular saline and perfused onto the brain for at least five minutes before resuming stimulus presentation. Since picrotoxin generated large excitatory responses to synaptic input, we often hyperpolarized the cells to \u221250.3\u2009\u00b1\u200910.2 (mean\u2009\u00b1\u2009s.d., n\u2009=\u200910 cells) to minimize depolarization block. If cells did enter depolarization block, we paused the experiment until the cell recovered. The list of drugs, their sources and the final concentrations used are listed in Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#MOESM5\" rel=\"nofollow noopener\" target=\"_blank\">4<\/a>.<\/p>\n<p>Immunohistochemistry<\/p>\n<p>To perform immunohistochemistry, dissected brains were fixed in 4% paraformaldehyde (dissolved in PBS) for 15\u2009min, washed 3\u00d7 in PBS, incubated in 5% normal goat serum (dissolved in PBST) for 60\u2009min, incubated overnight in primary antibody solution (dissolved in 5% normal goat serum), washed 3\u00d7 in PBST, incubated overnight in secondary antibody solution (dissolved in 5% normal goat serum), washed 3\u00d7 in PBST, and washed 3\u00d7 in PBS. The primary antibody solution contained chicken anti-GFP (Fisher Scientific RRID:AB_1074893) 1:50, mouse anti-nc82 (DSHB RRID:AB_2314866) 1:50, and rabbit anti-dsRed (Clontech 632496) 1:500. The secondary antibody solution contained Alexa488-conjugated goat anti-chicken (Fisher Scientific RRID:AB_2534096) 1:250, Alexa633-conjugated goat anti-mouse (Fisher Scientific RRID:AB_2535719) 1:250, and Alexa568-conjugated goat anti-rabbit (Fisher Scientific RRID:AB_2576217) 1:250. For imaging, the brains were mounted on microscope slides, immersed in Vectashield (Vector Labs H-1000), sealed with coverslips, and then imaged using a 20\u00d7 objective (Zeiss W Plan-Apochromat 20\u00d7\/1.0 DIC CG 0.17 M27 75\u2009mm) on a Zeiss LSM 800 confocal microscope at 1.25\u2009\u03bcM depth resolution.<\/p>\n<p>To compare hemibrain neuron morphology to R65C03-GAL4 (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig8\" rel=\"nofollow noopener\" target=\"_blank\">2c<\/a>), we warped a stain of R65C03 (from Flylight<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 71\" title=\"Jenett, A. et al. A GAL4-driver line resource for Drosophila neurobiology. Cell Rep. 2, 991&#x2013;1001 &#010;                https:\/\/doi.org\/10.1016\/j.celrep.2012.09.011&#010;                &#010;               (2012).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR71\" id=\"ref-link-section-d78618620e2156\" rel=\"nofollow noopener\" target=\"_blank\">71<\/a>) and hemibrain skeletons of layer 6 tangential neurons using the 2018 Janelia female template brain<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 72\" title=\"Bogovic, J. A. et al. An unbiased template of the Drosophila brain and ventral nerve cord. PLoS ONE 15, e0236495 &#010;                https:\/\/doi.org\/10.1371\/journal.pone.0236495&#010;                &#010;               (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR72\" id=\"ref-link-section-d78618620e2160\" rel=\"nofollow noopener\" target=\"_blank\">72<\/a>. We overlaid the warped stain and warped skeletons and identified neurons with high overlap.<\/p>\n<p>Data analysisConnectomic analysis<\/p>\n<p>Data from the hemibrain connectome<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 16\" title=\"Scheffer, L. K. et al. A connectome and analysis of the adult Drosophila central brain. eLife 9, e57443 &#010;                https:\/\/doi.org\/10.7554\/eLife.57443&#010;                &#010;               (2020).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR16\" id=\"ref-link-section-d78618620e2177\" rel=\"nofollow noopener\" target=\"_blank\">16<\/a> were obtained from neuprint explorer (<a href=\"http:\/\/neuprint.janelia.org\/\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/neuprint.janelia.org<\/a>, hemibrain:v1.2.1) and analysed using custom Python code. Prior to visualizing the weight matrices (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5a<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig7\" rel=\"nofollow noopener\" target=\"_blank\">1f<\/a>), we sorted each cell type by their FB or protocerebral bridge x position (that is, columns), with h\u2206K positioning determined by their axons. To count the fraction of FB6M or FB5V synapses onto h\u2206K axons, we sorted synapses by their x position on a h\u2206K cell-by-cell basis. To calculate the ratio of recurrent synapse to EPG synapses (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig15\" rel=\"nofollow noopener\" target=\"_blank\">9b<\/a>), we also examined data from the FAFB (<a href=\"https:\/\/codex.flywire.ai\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/codex.flywire.ai<\/a>, FAFB v783) and male CNS (<a href=\"http:\/\/neuprint.janelia.org\/\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/neuprint.janelia.org<\/a>, male-cns:v0.9) connectomes. For each PFG neuron, we calculated the total number of synapses from h\u2206K neurons, the total number of synapses to h\u2206K neurons, and the total number of synapses from EPG neurons. The recurrence was the average synapses to and from h\u2206K neurons, and this was divided by the total inputs from EPGs to calculate the ratio. Since the FAFB data was less curated, and occasionally contained PFG neurons with 0 connectivity to EPG or h\u2206K neurons, we only included PFG cells that had a total recurrence strength and heading strength both above 10. Neuron and brain visualizations in Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig7\" rel=\"nofollow noopener\" target=\"_blank\">1a,b<\/a> were made using Flywire data<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 17\" title=\"Dorkenwald, S. et al. Neuronal wiring diagram of an adult brain. Nature 634, 124&#x2013;138 &#010;                https:\/\/doi.org\/10.1038\/s41586-024-07558-y&#010;                &#010;               (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR17\" id=\"ref-link-section-d78618620e2221\" rel=\"nofollow noopener\" target=\"_blank\">17<\/a>,<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 73\" title=\"Schlegel, P. et al. Whole-brain annotation and multi-connectome cell typing of Drosophila. Nature 634, 139&#x2013;152 &#010;                https:\/\/doi.org\/10.1038\/s41586-024-07686-5&#010;                &#010;               (2024).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR73\" id=\"ref-link-section-d78618620e2224\" rel=\"nofollow noopener\" target=\"_blank\">73<\/a> in Codex (<a href=\"https:\/\/codex.flywire.ai\/?dataset=fafb&amp;data_version=783\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/codex.flywire.ai\/?dataset=fafb&amp;data_version=783<\/a>)<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 74\" title=\"Matsliah, A. et al. Codex: connectome data explorer. Preprint at ResearchGate &#010;                https:\/\/doi.org\/10.13140\/RG.2.2.35928.67844&#010;                &#010;               (2023).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR74\" id=\"ref-link-section-d78618620e2236\" rel=\"nofollow noopener\" target=\"_blank\">74<\/a>.<\/p>\n<p>Calcium imaging and behaviour analysis<\/p>\n<p>We used fictrac software<a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 70\" title=\"Moore, R. J. D. et al. FicTrac: a visual method for tracking spherical motion and generating fictive animal paths. J. Neurosci. Methods 225, 106&#x2013;119 (2014).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR70\" id=\"ref-link-section-d78618620e2248\" rel=\"nofollow noopener\" target=\"_blank\">70<\/a> to transform the x, y and z rotations of a custom-made ball into 2D walking trajectories. The forward velocity and angular velocity were directly calculated as rotations around the x and z axes, respectively, which were then used to calculate heading (motor position, calculated as the integral of angular velocity), position (x\u2009=\u2009integral of forward velocity\u2009\u00d7\u2009sin(heading); y\u2009=\u2009integral of forward velocity\u2009\u00d7\u2009cos(heading)), and upwind velocity (vy\u2009=\u2009forward velocity\u2009\u00d7\u2009cos(heading)). The rotation around the y axis (side velocity) was additionally used to calculate travel direction (heading\u2009+\u2009tan\u22121(forward velocity\/side velocity)). For data analysis, the position, angular velocity, angular speed, upwind velocity, and forward velocity were smoothed using a running average of 1\u2009s width.<\/p>\n<p>We used custom Matlab software to pre-process our calcium imaging data (see ref. <a data-track=\"click\" data-track-action=\"reference anchor\" data-track-label=\"link\" data-test=\"citation-ref\" aria-label=\"Reference 26\" title=\"Kathman, N. D. et al. Neural dynamics for working memory and evidence integration during olfactory navigation in Drosophila. Nat. Commun. 17, 9082 &#010;                https:\/\/doi.org\/10.1038\/s41467-026-75945-2&#010;                &#010;               (2026).\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#ref-CR26\" id=\"ref-link-section-d78618620e2289\" rel=\"nofollow noopener\" target=\"_blank\">26<\/a> for details), including motion correction, fluorescence extraction (across eight hand-drawn regions of interest (ROIs) across the FB), and alignment with fictrac behavioural data. To detect activity bumps in h\u2206K neurons, PFG neurons, and neurons labelled by VT062617-Gal4, we lowpass filtered bump amplitude data (Butterworth filter (sampling rate (fs)\u2009=\u2009100\u2009Hz, cut-off frquency (fc)\u2009=\u20092\u2009Hz)) and then established a threshold on a trial-by-trial basis according to the minimum \u2206F\/F value of that trial and the \u2206F\/F s.d. across all trials. For most analyses, this threshold was set at minimum(\u2206F\/F)\u2009+\u20091\u2009\u00d7\u2009s.d., but to identify large PFG bump onsets and offsets for Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1k\u2013m<\/a>, the threshold was increased to minimum(\u2206F\/F)\u2009+\u20091.75\u2009\u00d7\u2009s.d. A minimum bump duration was set at 3\u2009s, and any above-threshold activity within 3\u2009s of bumps was merged. To calculate bump position, the raw \u2206F\/F values across all 8 ROIs were smoothed (running average, width ~2\u2009s) and then fit with a von Mises distribution at each time step using the Matlab function fminsearch. To aid fitting, we used the previous bump position or the ROI with the maximum \u2206F\/F (if the previous time step did not have a bump) as the initial search values. These bump positions were reported as a phase angle, where \u2212180\u00b0 is the left side of the FB and 180\u00b0 is the right side of the FB.<\/p>\n<p>During calcium imaging of FB5V and FB6M neurons, the calcium signal showed an artefactual decay from trial start to trial end. This artefact was removed by fitting an exponential decay using the beginning (first 5\u2009s) and end (last 5\u2009s) of the \u2206F\/F signal, and then subtracting this fit from the \u2206F\/F signal. Therefore, all \u2206F\/F signals reported for FB5V and FB6M are changes from this baseline.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1i,l<\/a>, and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig7\" rel=\"nofollow noopener\" target=\"_blank\">1k<\/a>, we calculated the persistence of walking direction following odour. To calculate the persistence of walking direction, we first defined a goal direction as the mean heading direction adopted in the first second after odour offset (post odour) or after trial start (baseline control), and then identified the time when flies stopped walking (forward velocity under 0.5\u2009mm\u2009s\u22121 for at least 1.5\u2009s) or deviated from the goal direction by at least 45\u00b0. In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1h,i,k,l<\/a>, we calculated the persistence of neural activity following odour. To calculate the neural persistence, we calculated the time between odour offset and bump offset. To better compare neural and behavioural persistence, we only considered trials where the bump activity turned on before odour offset and turned off after odour offset.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig1\" rel=\"nofollow noopener\" target=\"_blank\">1j,m<\/a>, we aligned bump amplitude and behavioural data to bump offset. We only included trials where the bump activity turned on before odour offset and turned off after odour offset, and we removed any data before bump onset. In control bump ON data, we took the same trials, but only included data between bump onset and bump offset, each aligned by the midpoint of the bump. For goal deviation, the \u2018goal\u2019 was defined as the mean heading during the first 1\/6th (between 0.18 and 4.46\u2009s) of the bump ON or bump offset data.\u00a0The durations\u00a0of bump ON and bump offset data were matched for each trial.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3d<\/a>, we calculated the mean bump width of h\u2206K activity. To do this, we isolated periods with bumps, aligned the raw \u2206F\/F calcium signals (across 8 ROIs) to the column with the highest signal, and then normalized the activity by the maximum activity.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4d<\/a>, we calculated the maximum bump deviation and cumulative bump deviation. To quantify maximum bump deviation, we calculated the difference between the minimum and maximum unwrapped bump position between each bump onset and offset. To quantify cumulative bump deviation, we calculated how much the unwrapped bump position changed at each time point between bump onset and offset, summed the absolute value of these changes, and then divided the sum by the total length of the bump period.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4e\u2013g<\/a> and Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">6f,g,o,p<\/a>, we identified discrete periods of turning. To identify turns, we identified segments of data where the unwrapped heading shifted by at least 90\u00b0. We then identified the beginning and end of each turn by searching backwards or forwards in time, respectively, until the heading stabilized (the maximum change in heading over 0.25\u2009s was smaller than the 80th percentile of heading s.d. across all bins of the same duration). Since this algorithm isolated periods of turning with different durations, when turns were aligned in time (Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4g<\/a> and \u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">6f,o<\/a>), the data were time warped such that all turns were equal in length. In cases where small turns were compared to large turns (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4g<\/a>), turns were classified as small if the total change in heading was less than 130\u00b0, and large otherwise.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4e,f<\/a>, we further classified behaviour as \u2018rest\u2019 or \u2018straight running\u2019. Rests were defined as periods of low movement (v\u2009&lt;\u20090.5\u2009mm\u2009s\u22121) for at least 3\u2009s. Straight running was defined as movements with high walking speed (v\u2009&gt;\u200950th percentile of speed for given fly) and stable heading (\u2206heading\u2009&lt;\u200990\u00b0). Short straight running bouts (under 3\u2009s) within 1\u2009s of larger bouts were merged, and large bouts (over 3\u2009s) within 3\u2009s of each other were merged. Any turns that had overlapping sections with straight running bouts were removed.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4h<\/a>, we calculated discrete shifts in h\u2206K bump position following turns. To do this, we identified pairs of h\u2206K bumps separated in time. For each bump pair, we calculated the change in wrapped heading from the end of the first bump to the beginning of the second bump, and then classified the pairs as left turns (0\u00b0\u2009&gt;\u2009\u2206heading) or right turns (0\u00b0\u2009&lt;\u2009\u2206heading). Since these data were wrapped, we centred the wrapping around the bump position or heading taken at the end of the first bump.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4i\u2013k<\/a>, we selected trials where a bump was present for the entire duration of the wind-shift stimulus and the fly walked for at least 20% of the bump period. We then calculated the rotational gain across these bump periods by dividing the cumulative change in unwrapped bump position by the cumulative change in unwrapped heading. Therefore, each data point in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4i<\/a> represents a single bump from a single wind-shift trial. As both bump position and heading are represented by angles (see above for bump position), a rotation gain of 0 indicates stable bumps and a rotation gain of 1 indicates perfect tracking. The average bump amplitudes were calculated across the same time periods as the rotational gains. We ensured that the bump position and heading data were pre-processed equivalently by filtering both data sets using the same filters (moving average with a width of 13 samples at 100\u2009Hz) and downsampling the data to match the original imaging sampling rate (downsample from 100\u2009Hz to 6.37\u2009Hz). To test the robustness of the correlation between bump amplitude and rotation gain, we bootstrapped the data (with replacement) 10,000 times and calculated s.d. error on the fit, R2 and P values. For Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig4\" rel=\"nofollow noopener\" target=\"_blank\">4k<\/a>, we analysed all trials that contained an odour stimulus. For each time point, the rotation gain was calculated by comparing the cumulative change in bump position to the cumulative change in heading within a 2\u2009s window beginning at that timepoint. To avoid timepoints where the bump was mostly absent or the fly heading was stationary, we excluded timepoints if the total window did not contain sufficient bump data (&lt;50%), if the cumulative delta heading was too low (&lt;0.4\u00b0), or if the rotational gain was too high (&gt;5).<\/p>\n<p>In Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig14\" rel=\"nofollow noopener\" target=\"_blank\">8b\u2013f<\/a>, we correlated bump position with heading or travel direction for each trial. We only excluded trials if the trial contained no bump activity.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">6e,n<\/a>, we cross-correlated FB5V and FB6M \u2206F\/F signals with angular speed or upwind velocity. Prior to cross-correlating, we mean subtracted the fluorescent and behavioural signals. To remove wind-coupled activity fluctuations in FB6M data, we only used data from 5\u2009s after wind onset and 5\u2009s before wind offset.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig6\" rel=\"nofollow noopener\" target=\"_blank\">6h,q<\/a>, we aligned FB6M and FB5V activity to deviations from goals. We first defined a goal direction as the mean heading adopted in the first second after odour offset, and then aligned neural and behavioural data to the time when flies deviated from this goal by at least 45\u00b0.<\/p>\n<p>Electrophysiology analysis<\/p>\n<p>For analysis of electrophysiology data, the voltage traces were lowpass filtered using a Butterworth filter (fs\u2009=\u200910,000\u2009Hz, fc\u2009=\u20095\u2009Hz), downsampled by a factor of 10, and then baseline subtracted. We calculated persistent excitation (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2d,f,i<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig9\" rel=\"nofollow noopener\" target=\"_blank\">3e,h<\/a>) by summing the baseline-subtracted voltage signal between light offset and trial end, and then normalizing by the length of this period. For visualizing voltage signals across trials (for example, Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2c<\/a>), the voltage signals were sorted by persistent excitation (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2a,c,e,g,h<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig9\" rel=\"nofollow noopener\" target=\"_blank\">3a<\/a>) or inhibition during the stimulus (Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig2\" rel=\"nofollow noopener\" target=\"_blank\">2j,l<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig10\" rel=\"nofollow noopener\" target=\"_blank\">4c<\/a>).<\/p>\n<p>Statistics and reproducibility<\/p>\n<p>All statistics were ran using GraphPad Prism 10 and reported in Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#MOESM2\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>. Non-parametric statistical tests were used if the data were not normally distributed (see Supplementary Table <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#MOESM2\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>). An alpha value of 0.05 was used to determine significance, with *0.01\u2009&lt;\u2009P\u2009&lt;\u20090.05, **0.001\u2009&lt;\u2009P\u2009&lt;\u20090.01, ***0.0001\u2009&lt;\u2009P\u2009&lt;\u20090.001, ****P\u2009&lt;\u20090.0001 reported on figures. For imaging experiments, flies were only included for further analysis if they reliably oriented upwind on at least 50% of trials, which was identified by a convergence of heading values towards the upwind direction (0\u00b0) and an increase in mean upwind velocity around wind or odour onset. For electrophysiology experiments, cells were only included for analysis if they showed visible spiking activity, defined as rapid deflections above 10\u2009mV. Other than these criteria, all data and replications were included in the manuscript. Sample sizes (number of flies or cells) were selected based on previous experiments. Stimuli were randomized within each experiment. Experimenter was not blind to genotype but all analyses were applied programatically to all datasets without regards to genotype.<\/p>\n<p>ModellingFull FB model<\/p>\n<p>To model the FB recurrent network, we created a rate-based dynamical system model consisting of 30\u2009h\u2206K neurons, 18 PFG neurons, and 1 global inhibitory neuron. We approximated all dynamical systems using Euler\u2019s method of integration with a time step of 0.001\u2009s. To generate ring recurrence between h\u2206K and PFG neurons, we gave each neuron a relative position in the FB, indicated by an angle from 0 to 2\u03c0, and then connected the populations with local excitation that was maximum at overlapping positions and decayed with distance. This was done explicitly using a Gaussian equation fit to the real connectivity from the hemibrain connectome (Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a> and \u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>) or using the connectivity directly from the connectome (Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig12\" rel=\"nofollow noopener\" target=\"_blank\">6<\/a>). The local spread of the Gaussian connectivity was set by the local connectivity width (\u03c3, Gaussian s.d.), which establishes how quickly the connectivity decays as the distance (in radians) between h\u2206K and PFG neurons increases (\u03c3PFG&gt;h\u2206K\u2009=\u20090.25, \u03c3h\u2206K&gt;PFG\u2009=\u20090.25, in radians). The best fit Gaussian connectivity was found by searching for the local connectivity width (\u03c3) that minimized the absolute error between the fit weight matrix and real weight matrix. Each column of the real weight matrix (the connectivity of each PFG neuron to all h\u2206K neurons) was normalized to ensure fits were based on the local connectivity width rather than variability in synaptic strength across the FB. Although real h\u2206K neurons have a 180\u00b0 shift across the FB, for simplicity, we only show connectivity and activity simulations from the \u2018axons\u2019 of h\u2206K neurons. The weight matrices between h\u2206K or PFGs and the global inhibitory neuron were either one-to-all or all-to-one. To simulate the neural activity of each population, we used the following ordinary differential equations:<\/p>\n<p>$${\\tau }_{{\\rm{h}}\\Delta {\\rm{K}}}\\times \\,\\frac{{\\rm{d}}{\\vec{u}}_{{\\rm{h}}\\Delta {\\rm{K}}}}{{\\rm{d}}t}=-{\\alpha }_{{\\rm{h}}\\Delta {\\rm{K}}}\\times {\\vec{u}}_{{\\rm{h}}\\Delta {\\rm{K}}}+{\\mathrm{exc}\\times W}_{\\mathrm{PFG},{\\rm{h}}\\Delta {\\rm{K}}}{\\vec{U}}_{\\mathrm{PFG}}-{W}_{\\mathrm{inh},{\\rm{h}}\\Delta {\\rm{K}}}{\\vec{U}}_{\\mathrm{inh}}+{\\vec{I}}_{{\\rm{h}}\\Delta {\\rm{K}}}$$<\/p>\n<p>\n                    (1)\n                <\/p>\n<p>$${\\tau }_{\\mathrm{PFG}}\\times \\frac{{\\rm{d}}{\\vec{u}}_{\\mathrm{PFG}}}{{\\rm{d}}t}=-{\\alpha }_{\\mathrm{PFG}}\\times {\\vec{u}}_{\\mathrm{PFG}}+{\\mathrm{exc}\\times W}_{{\\rm{h}}\\Delta {\\rm{K}},\\mathrm{PFG}}{\\vec{U}}_{{\\rm{h}}\\Delta {\\rm{K}}}-{W}_{\\mathrm{inh},\\mathrm{PFG}}{\\vec{U}}_{\\mathrm{inh}}+{\\vec{I}}_{\\mathrm{PFG}}$$<\/p>\n<p>\n                    (2)\n                <\/p>\n<p>$${\\tau }_{\\mathrm{inh}}\\times \\frac{{\\rm{d}}{\\vec{u}}_{\\mathrm{inh}}}{{\\rm{d}}t}=-{{\\alpha }_{\\mathrm{inh}}\\times \\vec{u}}_{\\mathrm{inh}}+{\\mathrm{inh}\\times (W}_{{\\rm{h}}\\Delta {\\rm{K}},\\mathrm{inh}}{\\vec{U}}_{{\\rm{h}}\\Delta {\\rm{K}}}+{W}_{\\mathrm{PFG},\\mathrm{inh}}{\\vec{U}}_{\\mathrm{PFG}})+{\\vec{I}}_{\\mathrm{inh}}$$<\/p>\n<p>\n                    (3)\n                <\/p>\n<p>Where \\(\\tau \\)x is the time constant for population x, \u03b1x is the leak of population x, \\(\\vec{u}\\)x is the activity of population x, exc is the excitation strength, inh is the inhibition strength, Wx,y is the weight matrix from population x to population y, \\(\\vec{U}\\)x is the synaptic output of population x, and \\(\\vec{I}\\)x is the external input to population x. \\(\\tau \\)x and \\(\\alpha \\)x were set to 1 and 10, respectively, for all populations. \\(\\vec{I}\\)x was used to set the input patterns to each population.<\/p>\n<p>To simulate the synaptic output of each population, we used the following second-order ordinary differential equations to simulate alpha functions:<\/p>\n<p>$${{\\vec{U}}_{x}}^{{\\prime\\prime} }=-({a}_{x}+{b}_{x})\\times {\\vec{U}}_{x}^{{\\prime} }+{a}_{x}\\times {b}_{x}\\times ({F}_{x}({\\vec{u}}_{x})-{\\vec{U}}_{x})$$<\/p>\n<p>\n                    (4)\n                <\/p>\n<p>Where 1\/ax is the decay rate of the alpha function for population x, 1\/bx is the growth rate of the alpha function for population x, and Fx is the activation function of population x. The synaptic growth and decay values used for fast and slow synapses were fit to synaptic physiology data by searching for the a and b values that minimized the absolute error between the fit activity and synaptic physiology voltage data. The fast synapses were fit to h\u2206K voltage responses to FB6M (49B08AD; VT063626DBD) pulsed stimulation, and were set to ax\u2009=\u20094.63 and bx\u2009=\u200925. The slow synapses were fit to h\u2206K voltage responses to FB6A\/D (65C03-Gal4) stimulation in the presence of curare (10\u2009\u00b5M) and IMI (100\u2009nM), and were set to ax\u2009=\u20090.64 and bx\u2009=\u200925. We used the following activation functions:<\/p>\n<p>$${F}_{{\\rm{h}}\\triangle {\\rm{k}}\/\\mathrm{PFG}}({u}_{x})=\\left\\{\\begin{array}{c}0\\,\\mathrm{if}\\,{u}_{x} &lt; 0\\\\ {u}_{x}\\,\\mathrm{if}\\,{0 &lt; u}_{x} &lt; 1\\\\ 1\\,\\mathrm{if}\\,{u}_{x} &gt; 1\\end{array}\\right.$$<\/p>\n<p>\n                    (5)\n                <\/p>\n<p>$${F}_{\\mathrm{inh}}({u}_{x})=\\left\\{\\begin{array}{c}0\\,\\mathrm{if}\\,{u}_{x} &lt; 0\\\\ {u}_{x}\\,\\mathrm{if}{0 &lt; u}_{x}\\end{array}\\right.$$<\/p>\n<p>\n                    (6)\n                <\/p>\n<p>During the simulations in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a>, sinusoidal (direct offset\u2009=\u20091), Gaussian (normalized such that max\u2009=\u20091), or random input (Gaussian distribution with \u00b5\u2009=\u20091, \u03c3\u2009=\u20090.5) were provided to the h\u2206K and PFG neurons for 4 or 10\u2009s. During the simulations in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a> and Extended Data Figs. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig14\" rel=\"nofollow noopener\" target=\"_blank\">8a<\/a> and \u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig15\" rel=\"nofollow noopener\" target=\"_blank\">9e<\/a>, we only provided input to PFG neurons, which was sinusoidal with a phase that we randomly and stochastically updated over time. Phase shifts were stochastic, occurring with a 0.1% chance at each time step, and when they occurred, they were randomly drawn from a Gaussian distribution with \u00b5\u2009=\u20090 and \u03c3\u2009=\u200950\u00b0 and then smoothed over time according to:<\/p>\n<p>$${\\tau }_{\\mathrm{smooth}}\\times \\frac{{\\mathrm{dheading}}_{\\mathrm{smooth}}}{{\\rm{d}}t}={\\mathrm{heading}}_{\\mathrm{raw}}-{\\mathrm{heading}}_{\\mathrm{smooth}}$$<\/p>\n<p>\n                    (7)\n                <\/p>\n<p>Where \\(\\tau \\)smooth equals 1. To account for the differences in synaptic strength between EPGs&gt;PFG and h\u2206K&lt;-&gt;PFG synapses, we decreased the amplitude of the sinusoidal input to 1\/6 of the recurrent excitation strength. We controlled the gate in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a> by either externally changing the excitation strength (exc in equations (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Equ1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>,<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Equ2\" rel=\"nofollow noopener\" target=\"_blank\">2<\/a>), increased from 0 to 7) or changing external input to h\u2206K (\\({\\overrightarrow{I}}_{{\\rm{h}}\\Delta {\\rm{K}}}\\) in equation (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Equ1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>), inhibition corresponded with a value of \u22125, and disinhibition corresponded with a value of 0). In Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig15\" rel=\"nofollow noopener\" target=\"_blank\">9e<\/a>, we additionally attempted to gate bump dynamics by adding external input to h\u2206K and PFG neurons (\\({\\overrightarrow{I}}_{{\\rm{h}}\\triangle {\\rm{K}}}\\) and \\({\\overrightarrow{I}}_{\\mathrm{PFG}}\\) in equation (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Equ1\" rel=\"nofollow noopener\" target=\"_blank\">1<\/a>), increased from \u22121 or \u22122 to 0).<\/p>\n<p>To calculate the network decay rate in Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3<\/a>, we calculated the maximum difference in h\u2206K output at each time step following external input offset and then fit this difference with an exponential decay function.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig3\" rel=\"nofollow noopener\" target=\"_blank\">3d<\/a>, we expanded the model simulations to predict how each simulation would appear if the neurons were recorded using population imaging, such as calcium imaging. Calcium imaging captures activity throughout each active neurons\u2019 axons. Therefore, we calculated how much each model neuron should spread across the FB to synapse with its postsynaptic partners. This spread was then applied to the model simulation to get a better prediction of how far activity of the active neurons would spread across the FB. In Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig11\" rel=\"nofollow noopener\" target=\"_blank\">5f,g<\/a>, to keep the neuron size the same across simulations we used real connectome data to estimate the width of real h\u2206K neurons, and then used this spread to estimate the width of FB activity. We fit the relationship between local connectivity s.d. and FB activity percentage with an exponential equation.<\/p>\n<p>In the parameter space in Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig13\" rel=\"nofollow noopener\" target=\"_blank\">7c,d<\/a>, for each pair of parameters (ainhibition and aexcitation), we first calculated the decay tau of the excitatory neuron across each excitatory strength value, removed all values above 30\u2009s, and then we summed these values to get the total \u2018sum\u2019.<\/p>\n<p>In Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig5\" rel=\"nofollow noopener\" target=\"_blank\">5f<\/a> and Extended Data Fig. <a data-track=\"click\" data-track-label=\"link\" data-track-action=\"figure anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Fig12\" rel=\"nofollow noopener\" target=\"_blank\">6<\/a>, we calculated the bump position by finding the relative position (as an angle) of the neuron with the maximum activity.<\/p>\n<p>Simple recurrent network model<\/p>\n<p>To simplify the recurrent network to two dynamic variables, we began by reducing the h\u2206K and PFG populations to one global excitatory neuron. This led to the following 6 variable dynamical system:<\/p>\n<p>$${\\tau }_{\\mathrm{exc}}\\times \\frac{{\\rm{d}}{u}_{\\mathrm{exc}}}{{\\rm{d}}t}=-{u}_{\\mathrm{exc}}+{W}_{\\mathrm{exc},\\mathrm{exc}}{U}_{\\mathrm{exc}}-{W}_{\\mathrm{inh},\\mathrm{exc}}{U}_{\\mathrm{inh}}+{I}_{\\mathrm{exc}}$$<\/p>\n<p>\n                    (8)\n                <\/p>\n<p>$${\\tau }_{\\mathrm{inh}}\\times \\frac{{\\rm{d}}{u}_{\\mathrm{inh}}}{{\\rm{d}}t}=-{u}_{\\mathrm{inh}}+{W}_{\\mathrm{exc},\\mathrm{inh}}{U}_{\\mathrm{exc}}+{I}_{\\mathrm{inh}}$$<\/p>\n<p>\n                    (9)\n                <\/p>\n<p>$${{U}_{\\mathrm{exc}}}^{{\\prime\\prime} }=-({a}_{\\mathrm{exc}}+{b}_{\\mathrm{exc}})\\times {{U}_{\\mathrm{exc}}}^{{\\prime} }+{a}_{\\mathrm{exc}}\\times {b}_{\\mathrm{exc}}\\times ({F}_{\\mathrm{exc}}({u}_{\\mathrm{exc}})-{U}_{\\mathrm{exc}})$$<\/p>\n<p>\n                    (10)\n                <\/p>\n<p>$${{U}_{\\mathrm{inh}}}^{{\\prime\\prime} }=-({a}_{\\mathrm{inh}}+{b}_{\\mathrm{inh}})\\times {{U}_{\\mathrm{inh}}}^{{\\prime} }+{a}_{\\mathrm{inh}}\\times {b}_{\\mathrm{inh}}\\times ({F}_{\\mathrm{inh}}({u}_{\\mathrm{inh}})-{U}_{\\mathrm{inh}})$$<\/p>\n<p>\n                    (11)\n                <\/p>\n<p>We made two simplifying assumptions. First, we assumed that the synaptic rise and decay constants (1\/ax, 1\/bx) were much slower than the membrane time constants (\\(\\tau \\)x). This means that the variables uexc and uinh instantaneously follow the synaptic dynamics. Second, we assumed that the synaptic decay time constant (ax) was much slower than the synaptic rise time constant (bx). These assumptions lead to the following two-variable dynamical system:<\/p>\n<p>$${{U}_{\\mathrm{exc}}}^{{\\prime} }={a}_{\\mathrm{exc}}\\times ({F}_{\\mathrm{exc}}({W}_{\\mathrm{exc},\\mathrm{exc}}{U}_{\\mathrm{exc}}-{W}_{\\mathrm{inh},\\mathrm{exc}}{U}_{\\mathrm{inh}}+{I}_{\\mathrm{exc}})-{U}_{\\mathrm{exc}})$$<\/p>\n<p>\n                    (12)\n                <\/p>\n<p>$${{U}_{\\mathrm{inh}}}^{{\\prime} }={a}_{\\mathrm{inh}}\\times ({F}_{\\mathrm{inh}}({W}_{\\mathrm{exc},\\mathrm{inh}}{U}_{\\mathrm{exc}}+{I}_{\\mathrm{inh}})-{U}_{\\mathrm{inh}})$$<\/p>\n<p>\n                    (13)\n                <\/p>\n<p>We used the same activation functions as those used for the excitatory and inhibitory neurons in the full model (equations (<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Equ5\" rel=\"nofollow noopener\" target=\"_blank\">5<\/a>,<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"equation anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#Equ6\" rel=\"nofollow noopener\" target=\"_blank\">6<\/a>)). During simulations, we kept Wexc,inh constant at 1, whereas we varied Wexc,exc and Winh,exc with excitation strength and inhibition strength, respectively. During input, the excitatory unit received an external input equal to 1, whereas the inhibitory unit received no input.<\/p>\n<p>Reporting summary<\/p>\n<p>Further information on research design is available in the\u00a0<a data-track=\"click\" data-track-label=\"link\" data-track-action=\"supplementary material anchor\" href=\"http:\/\/www.nature.com\/articles\/s41586-026-11144-9#MOESM1\" rel=\"nofollow noopener\" target=\"_blank\">Nature Portfolio Reporting Summary<\/a> linked to this article.<\/p>\n","protected":false},"excerpt":{"rendered":"Fly stocks Female flies were raised on standard cornmeal-agar medium at 25\u2009\u00b0C on a 12-h light cycle. For&hellip;\n","protected":false},"author":2,"featured_media":874688,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[12185,97,1159,1160,157391,79],"class_list":["post-874687","post","type-post","status-publish","format-standard","has-post-thumbnail","category-health","tag-computational-neuroscience","tag-health","tag-humanities-and-social-sciences","tag-multidisciplinary","tag-neural-circuits","tag-science"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/874687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/comments?post=874687"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/posts\/874687\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media\/874688"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/media?parent=874687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/categories?post=874687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/us\/wp-json\/wp\/v2\/tags?post=874687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}