Spontaneous and evoked activity patterns diverge over development
Abstract
The immature brain is highly spontaneously active. Over development this activity must be integrated with emerging patterns of stimulus-evoked activity, but little is known about how this occurs. Here we investigated this question by recording spontaneous and evoked neural activity in the larval zebrafish tectum from 4 to 15 days post-fertilisation. Correlations within spontaneous and evoked activity epochs were comparable over development, and their neural assemblies refined in similar ways. However, both the similarity between evoked and spontaneous assemblies, and also the geometric distance between spontaneous and evoked patterns, decreased over development. At all stages of development, evoked activity was of higher dimension than spontaneous activity. Thus, spontaneous and evoked activity do not converge over development in this system, and these results do not support the hypothesis that spontaneous activity evolves to form a Bayesian prior for evoked activity.
Introduction
As newborn neurons mature they start to become spontaneously active (Galli and Maffei, 1988). Patterns of activity that are coordinated between groups of neurons then begin to form (Blankenship and Feller, 2010; Luhmann et al., 2016). Prominent examples include waves of activity in the developing mammalian retina (Meister et al., 1991), and neural assemblies in mammalian neocortex (Yuste et al., 1992) and the zebrafish tectum (Romano et al., 2015; Avitan et al., 2017). What is the reason for this youthful exuberance? One key functional role played by coordinated spontaneous activity in neural development is to assist with the formation of appropriate brain wiring (Leighton and Lohmann, 2016; Ackman and Crair, 2014). Evidence for this includes findings from multiple systems that disrupting the structure of spontaneous activity disrupts circuit development (Kirkby et al., 2013; Arroyo and Feller, 2016; Xu et al., 2011).
However, spontaneous activity could also play a deeper functional role: providing an internal model for the patterns of activity likely to be evoked by sensory stimuli (Ringach, 2009). A specific mathematical formulation is that spontaneous activity could form a Bayesian prior for stimulus-evoked activity (Fiser et al., 2010). If this is the case, patterns of spontaneous activity during development should gradually refine to become more similar to stimulus-evoked patterns. Evidence supporting this comes from the developing ferret cortex, where multiunit recordings of spontaneous and evoked activity in 16 neurons showed increasing similarity over development (Berkes et al., 2011). However, whether this principle holds at larger scale and in other species is unknown.
The larval zebrafish provides a good model system for studying these questions, due to its rapid development and ease of calcium imaging of the activity of large populations of neurons (Sumbre and de Polavieja, 2014). Over the period of 4–15 days post-fertilisation (dpf), spontaneous activity in the zebrafish tectum follows a specific developmental trajectory (Avitan et al., 2016; Pietri et al., 2017). Starting at 5 dpf zebrafish start to hunt prey, with an effectiveness that increases with age (Avitan et al., 2020). During this same period, the neural coding of stimuli improves, as measured by the increasing accuracy with which stimulus location can be decoded from tectal activity, and increased mutual information between stimuli and responses (Avitan et al., 2020). However, the relationship between the changing statistical properties of spontaneous and evoked activity over development has not so far been examined. Here, we show that, despite having some similarities, spontaneous and evoked patterns diverge over development.
Results
Correlation structure of neural activity over development
We performed two-photon calcium imaging and recorded tectal spontaneous and stimulus driven activity in fish aged 4, 5, 8–9, and 13–15 dpf (n = 11, 15, 10, 6 respectively; for convenience, we hereafter refer to the latter two groups as just 9 dpf and 15 dpf respectively) (Figure 1A). A similar average number of neurons was recorded at each age (Figure 1—figure supplement 1). We recorded 30 min of spontaneous activity in the dark (we refer to this period as SA) followed by 61.6 min of evoked activity. Visual stimulation consisted of 20 repetitions of nine 6° spots (a size likely to be interpreted as prey [Bianco et al., 2011] and a frequent stimulus of behavioural relevance for the larvae) at different positions covering 120° of the larvae’s visual field. Spots were presented for 1 s each with a 20 s gap between spots, for a total of 180 spot presentations per fish. We refer to the whole of the visual stimulation period as TEA (‘total evoked activity’). For some later analyses, we subdivide this into the activity occurring within the first 5 s of stimulus presentation, referred to as EA (‘evoked activity’), and the activity occurring between 6 and 20 s post stimulus presentation, referred to as SE (‘spontaneous within evoked activity’) (Figure 1B).
Qualitatively similar activity was present in the absence of visual stimuli (i.e. in the dark), locked in response to visual stimuli, and between stimuli presentations (Figure 1C). To quantify these relationships, we first examined similarity in pairwise correlation profiles between spontaneous and evoked activity over development. Correlations decreased with distance for both SA and TEA, with higher short-range correlations for TEA compared to SA (Figure 1D). At the population level, neuron-neuron correlation matrices for each fish showed qualitative similarities in their structure (Figure 1E). We then calculated the correlation coefficient between each pair of correlation matrices (TEA and SA) and found no difference correlation between matrices over development (Figure 1F). Thus, in terms of correlational structure spontaneous and evoked activity did not become more similar over development.
Spontaneous and evoked assemblies undergo similar developmental changes
Neural activity is often structured into assemblies, that is, recurring groups of coactive neurons. Using a graph theory-based technique for assembly detection (Avitan et al., 2017), recently shown to have state-of-the-art performance in detecting neural assemblies in calcium imaging data (Mölter et al., 2018), we identified reoccurring assemblies separately during SA and TEA (Figure 2A). SA and TEA assemblies did not differ in the number of neurons per assembly (Figure 2B). However, the spatial coverage of SA assemblies was greater than TEA assemblies (Figure 2—figure supplement 1A–B).
Assemblies were spatially clustered along the tectal anterior-posterior (AP) axis. Computing the centre of mass (CoM) for each assembly and projecting it onto this axis revealed that assemblies exhibited a posterior shift from 5 to 15 dpf in both TEA (Figure 2C) and SA (Figure 2D). Neurons within each assembly tended to be tuned for similar regions of visual space (Figure 2F). Assembly mean tuning (the average of the preferred stimulus of all neurons in the assembly) showed a posterior shift in the tectum, for both SA and TEA assemblies (Figure 2G), suggesting that both TEA and SA assemblies undergo some similar developmental processes.
Tuning variance within the assemblies showed no developmental trend (Figure 2—figure supplement 1C), but decreased along the AP axis (Figure 2—figure supplement 1D), an effect present in both SA and TEA assemblies. However, tuning variance within TEA assemblies was overall lower compared to SA assemblies (Figure 2H), suggesting more coherent evoked assemblies than spontaneous assemblies, driven potentially by non-identical sources of activation. The fraction of overlap in neuronal identity between TEA and SA assemblies was relatively low, ∼20%, and this overlap decreased between 4 and 5 dpf and remined stable from 5 to 15 dpf (Figure 2I). Thus, despite some similar trends in the properties of evoked and spontaneous assemblies over development, evoked and spontaneous assemblies became progressively less similar to each other.
Evoked and spontaneous coactivity patterns become less similar and geometrically diverge over development
We found all high-coactivity frames where the number of neurons active exceeded the number expected by chance based on a shuffle control (Figure 3A, see 'Materials and methods'). EA patterns recruited higher coactivity levels than either SA or SE patterns (Figure 3B), and these levels of coactivity within each epoch were robust over development. In addition EA patterns had higher dimensionality than either SA or SE patterns (Figure 3C) . Thus, in contrast to the suggestion that spontaneous activity determines the realm of evoked activity (Luczak et al., 2009), we found this not to be the case here. Pattern similarity for high-coactivity frames (measured by cosine distance) compared between all pairs of epochs (i.e. EA-SA, EA-SE, SA-SE) decreased over development (Figure 3D). This was consistent with a decrease in the overlap of neuronal identity between TEA and SA assemblies over development (Figure 2I).
We then projected all EA and SE patterns onto the orthogonal complement of the linear subspace spanned by SA. This measures how much of a given EA or SE pattern cannot be explained by the space spanned by SA (Figure 3E, see 'Materials and methods'). This unexplained fraction increased over development (Figure 3E,F). Similarly, the fraction of EA and SA patterns which cannot be explained by the space spanned by SE patterns also increased over development (Figure 3G). This result was not affected by matching the lengths of the SA and EA parts of the recording (Figure 3—figure supplement 1). This confirms that, over development, evoked patterns gradually increase their distance from the space spanned by spontaneous activity. Together, these results show that evoked patterns have higher dimensionality than spontaneous patterns, and become less similar and geometrically further from spontaneous patterns over development.
Discussion
Across species, both evoked and spontaneous neural activity are characterised by time points of synchronised activity across a population of neurons (Yuste, 2015; Romano et al., 2015). Spontaneous activity in the zebrafish tectum was previously shown to be high dimensional (Avitan et al., 2017), similar to the mammalian cortex (Luczak et al., 2009). However, in the present work, evoked activity showed higher coactivity levels and higher dimensionality compared to spontaneous activity, in contrast to the suggestion that spontaneous activity outlines the realm of possible cortical sensory responses and that evoked patterns are a subset in this space (Luczak et al., 2009). Similarity of evoked and spontaneous patterns has been reported across species (Berkes et al., 2011; Miller et al., 2014; Romano et al., 2015; Kenet et al., 2003; Omer et al., 2019; Fore et al., 2020), with spontaneous activity being predictive of visually evoked orientation columns (Smith et al., 2018; Kenet et al., 2003) supporting the hypothesis that spontaneous activity reflects expectation of sensory experience Luczak et al., 2009, However, spontaneous activity in the adult cortex has been also related to the animal’s ongoing behaviour (Stringer et al., 2019; Carrillo-Reid et al., 2019) and was recently shown to be orthogonal to evoked patterns (Stringer et al., 2019). Our results are in agreement with the latter (Figure 3F,G).
A developmental increase in cortical pattern similarity between evoked and spontaneous activity has been reported when evoked activity was elicited by natural stimuli, while in contrast artificial stimuli (such as gratings) resulted in a decrease in pattern similarity (Berkes et al., 2011). While the spot stimuli we used are quite simple, they are nevertheless highly ecologically relevant for zebrafish larvae (Del Bene et al., 2010; Bianco et al., 2011; Preuss et al., 2014; Semmelhack et al., 2014) particularly for hunting behaviour (Bianco and Engert, 2015). A potential explanation for the mismatch between our results and those of Berkes et al., 2011 could be the much larger number of neurons we recorded, and that we included neurons regardless of their tuning strength.
Overall, our work shows that in the larval zebrafish tectum, despite some similarities between spontaneous and evoked activity patterns, their statistics grow more distant as development proceeds. This result is consistent with the idea that early spontaneous activity in this system presents patterns which are similar enough to naturally evoked patterns to provide useful cues for initial wiring development, but do not attempt to track changing patterns of evoked activity over development.
Materials and methods
Zebrafish
Nacre zebrafish (Danio rerio) embryos expressing elavl3:H2B-GCaMP6s (Vladimirov et al., 2014) were collected and raised according to established procedures (Westerfield, 1995) and kept under a 14/10 h on/off light cycle. Larvae were fed live rotifers (Brachionus plicatilis) daily from 5 dpf. All procedures were performed with approval from The University of Queensland Animal Ethics Committee (QBI/152/16/ARC).
Two-photon calcium imaging
Request a detailed protocolZebrafish larvae were embedded in 2.5% low-melting-point agarose, positioned at the centre of a 35 mm diameter plastic petri dish and overlaid with E3 embryo medium. Time-lapse two-photon images were acquired at the Queensland Brain Institute’s Advanced Microscopy Facility using a Zeiss LSM 710 inverted two-photon microscope. A custom-made inverter tube composed of a pair of beam-steering mirrors and two identical 60 mm focal length lenses arranged in a 4 f configuration was used to allow imaging with a 40x/1.0 NA water-dipping objective (Zeiss) in an upright configuration. Samples were excited via a Spectra-Physics Mai TaiDeepSee Ti:Sapphire laser (Spectra-Physics) at an excitation wavelength of 940 nm. Laser power at the sample plane ranged between 12 and 20 mW. Emitted light was bandpass filtered (500–550 nm) and detected with a nondescanned detector. Time-lapse images (416 × 300 pixels) were obtained at 2.2 Hz. To improve stability of the recording, chambers were left to settle prior to imaging for 3 h.
Visual stimulation
Request a detailed protocolVisual stimuli were projected onto white diffusion paper placed around the wall of the petri dish, using a pico-projector (PK320 Optoma, USA), covering a horizontal field of view of 174°. To prevent stimulus reflection, the opposite side of the dish was covered with low-reflection black paper. To avoid interference of the projected image with the signal collected by the detector, a red long-pass filter (Zeiss LP590 filter) was placed in front of the projector. Larvae were aligned with one eye facing the projected side of the dish and body axis at right angles to the projector direction. Visual stimuli were generated using custom software based on MATLAB (MathWorks) and Psychophysics Toolbox (http://psychtoolbox.org).
Larvae were imaged for spontaneous activity in the dark for 30 min after which the projector shutter was opened and larvae were given 5 min to adjust to the light conditions. We projected 20 consecutive trials of nine spots with 25 s of inter-trial interval. Each trial consisted of 6° diameter black spots at nine different positions from 45° to 165° with 15° intervals, with their order set to maximise spatial separation within a trial (45°, 120°, 60°, 135°, 75°, 150°, 90°, 165°, 105°). 0° was defined as the direction of the larvae’s body axis. Spots were presented for 1 s each, followed by 20 s of blank screen.
Automatic cell detection
Request a detailed protocolAlignment of data stacks and cell detection procedure were performed as in Avitan et al., 2017. All fluorescence data stacks were corrected for x-y drifts using custom MATLAB software based on rigid image registration algorithm. The software automatically detected the set of pixels of each active cell and searched for pixels that showed changes in brightness across frames, resulting in an activity heat map of all the active regions across frames (Ahrens et al., 2012). This activity map was then segmented into regions using a watershed algorithm, with a movie-specific threshold that was similar across fish. Within each segmented region, we computed correlation coefficients of all pixels in the region with the mean of the most active pixel and its eight neighbouring pixels. Correlation coefficients showed a bimodal distribution: one peak of highly correlated pixels representing pixels of the cell within the region and a second peak of relatively low correlation coefficients representing nearby pixels within the region which were not part of the cell. Using a Gaussian mixture model, we found the threshold correlation which differentiated between pixels likely to form the active cell and neighbouring pixels that were not part of the cell. We also required that each detected active area covered at least 26 pixels (5.5 µm2). The software allowed visual inspection and modification of the parameter values where needed. All pixels assigned to a given cell were averaged to give a raw fluorescence trace over time. Raw calcium signals for each cell, , were then converted to represent changes from baseline level, defined as . The time varying baseline fluorescence, , for each cell was a smoothed curve fitted to the lower 20% of the points. was the minimum of the smoothed fluorescence trace in a 3 s window centred at .
Neuron selection
Request a detailed protocolFor each neuron, we calculated the mean amplitude across frames 4–7 post stimulus presentation. These amplitudes were then averaged per stimulus, providing for each neuron a curve of mean amplitude in response to all presented stimuli. Cubic spline interpolation was used to estimate the amplitude values between the presented stimuli at 5° intervals. This interpolated curve of amplitudes was fitted with a Gaussian with baseline offset. The fitted curve which provided the highest goodness of fit (adjusted ) was selected as the fit of the tuning curve. Neurons with goodness of fit greater than 0.7 were deemed to be selective neurons and included in further analysis.
Significant correlation coefficients
Request a detailed protocolWe computed pairwise correlation coefficients between all pairs of neurons. To assess statistical significance, we temporally displaced each neuron's calcium trace randomly with respect to the other traces using a SHIFT algorithm as described previously (Golshani et al., 2009), disrupting the temporal relationship between neurons while preserving the temporal structure within each neuron. We then calculated the correlation coefficient between all pairs of shifted traces to obtain a null distribution. Pairs of neurons with a correlation coefficient greater than the 95th percentile of correlation coefficients in the null distribution were deemed statistically significant () (Avitan et al., 2017). We included in the correlation analysis only significant correlation coefficients.
Neurons and assembly tuning
Request a detailed protocolAssembly tuning properties (Figure 2) were based on tuning properties of each of the assembly member neurons. To evaluate the neurons’ tuning, we calculated for each neuron the mean amplitude across frames 4–7 post stimulus presentation. These amplitudes were then averaged per stimulus, providing for each neuron a curve of mean amplitude in response to all presented stimuli. Cubic spline interpolation was used to estimate the amplitude values between the presented stimuli at 5° intervals. This interpolated curve of amplitudes was fitted with a Gaussian with baseline offset. Fit starting points used the mean as the stimulus value eliciting response peak amplitude, and the initial value for standard deviation was varied from low to high values. The fitted curve which provided the highest goodness of fit (adjusted ) was selected as the fit of the tuning curve. Neurons with goodness of fit greater than 0.7 were deemed to be selective neurons and included in further analysis. The stimulus assigned with the peak of the fitted tuning curve was determined as the preferred stimulus of the neuron. Assembly tuning was determined as the average of the preferred stimulus over all assembly neurons.
Selection of high coactivity patterns
Request a detailed protocolThe activity of each neuron was converted into a binary signal with an amplitude threshold of two standard deviations above its mean (Avitan et al., 2017). This provided us with a binary activity matrix where each row represents a neuron and each column represents a time bin. To establish a threshold for the significance for the number of coactive neurons, the binary activity matrix was randomly shuffled 500 times across neurons (i.e. within rows), keeping the number of 1’s per cell identical, but changing their timing. The threshold corresponding to a significance level of was estimated as the number of activated neurons in a single frame that exceeded 5% of these surrogate datasets (Miller et al., 2014; Avitan et al., 2017). Every pattern which peaked in coactivity level and was above the coactivity threshold was considered in the analysis shown in Figure 3.
Geometrical relation between patterns and spaces defined by patterns
Request a detailed protocolWe considered all high coactivity patterns for the respective types of activity (EA, SA, SE). As vectors, these patterns lie in a linear subspace () within a space of all possible activity patterns. We computed an orthonormal basis for this subspace using MATLAB’s orth function, which we denote as . With that, we have that and . To compute the projection onto this subspace , we define the matrix , with the vectors for as column vectors. Using this matrix, is the projection matrix onto , which for the different types of activity patterns (and corresponding subspaces ) we denote as the matrices , , and , respectively. These projections allow us to decompose any activity pattern into a part that can be ‘explained’ by the activity of a given type, , and its orthogonal complement, .
For example, if we consider spontaneous activity (SA) and the projection onto its subspace , , then for any given pattern of activity (such as from the pool of EA or SE patterns) is the part of that lies within the SA subspace , whereas lies in its complement (Figure 3E). In this case, we say that the larger the component is, the better the pattern is explained by SA, and conversely, the larger the component is, the worse the pattern is explained by SA.
We computed the fraction that could not be explained by the patterns of some type of activity. For a pattern , this is the quantity , i.e. the fraction of a pattern’s total length that was orthogonal to the subspace associated with . For each type of activity (EA, SA, SE), we calculated the average unexplained fraction of the high coactivity patterns corresponding to any of the two other types of activity and denote this average as ‘1 – PEA’, ‘1 – PSA’, and ‘1 – PSE’, respectively.
To avoid bias in generating the basis for each subspace , we selected an equal number of patterns per epoch. For consistency, this was chosen to be the minimum number of the patterns across epochs for all fish (mean of minimum number of patterns = 27 ± 12, and a minimum of 9 patterns, across 41 fish). For this number of patterns per epoch, we randomly selected them from SE and SA pools of patterns. To select EA patterns, we randomly selected an index of EA pattern and collected consecutive patterns (aiming to cover all presented stimuli with roughly similar representation). We performed these random selections of patterns 200 times, each time generating a different seed of patterns to span the spaces and calculating projections of patterns onto these spaces. The distances presented in Figure 3F and G are means over this set.
Sample size
Request a detailed protocolSample sizes are similar to those commonly used in the zebrafish neural imaging field.
Data availability
The data has been made available on figshare, under the https://doi.org/10.6084/m9.figshare.14402543.
-
figshareSpontaneous and evoked activity patterns in the larval zebrafish.https://doi.org/10.6084/m9.figshare.14402543
References
-
Role of emergent neural activity in visual map developmentCurrent Opinion in Neurobiology 24:166–175.https://doi.org/10.1016/j.conb.2013.11.011
-
Spatiotemporal features of retinal waves instruct the wiring of the visual circuitryFrontiers in Neural Circuits 10:54.https://doi.org/10.3389/fncir.2016.00054
-
Limitations of neural map topography for decoding spatial informationThe Journal of Neuroscience 36:5385–5396.https://doi.org/10.1523/JNEUROSCI.0385-16.2016
-
Behavioral signatures of a developing neural codeCurrent Biology 30:3352–3363.https://doi.org/10.1016/j.cub.2020.06.040
-
Prey capture behavior evoked by simple visual stimuli in larval zebrafishFrontiers in Systems Neuroscience 5:101.https://doi.org/10.3389/fnsys.2011.00101
-
Mechanisms underlying spontaneous patterned activity in developing neural circuitsNature Reviews Neuroscience 11:18–29.https://doi.org/10.1038/nrn2759
-
Statistically optimal perception and learning: from behavior to neural representationsTrends in Cognitive Sciences 14:119–130.https://doi.org/10.1016/j.tics.2010.01.003
-
Internally mediated developmental desynchronization of neocortical network activityJournal of Neuroscience 29:10890–10899.https://doi.org/10.1523/JNEUROSCI.2012-09.2009
-
Classification of object size in retinotectal microcircuitsCurrent Biology 24:2376–2385.https://doi.org/10.1016/j.cub.2014.09.012
-
Spontaneous and driven cortical activity: implications for computationCurrent Opinion in Neurobiology 19:439–444.https://doi.org/10.1016/j.conb.2009.07.005
-
Distributed network interactions and their emergence in developing neocortexNature Neuroscience 21:1600–1608.https://doi.org/10.1038/s41593-018-0247-5
-
The world according to zebrafish: how neural circuits generate behaviorFrontiers in Neural Circuits 8:91.https://doi.org/10.3389/fncir.2014.00091
-
Light-sheet functional imaging in fictively behaving zebrafishNature Methods 11:883–884.https://doi.org/10.1038/nmeth.3040
-
BookThe Zebrafish Book : A Guide for the Laboratory Use of Zebrafish (Brachy Danio rerio)Eugene: University of Oregon Press.
-
From the neuron doctrine to neural networksNature Reviews Neuroscience 16:487–497.https://doi.org/10.1038/nrn3962
Article and author information
Author details
Funding
Australian Research Council (DP170102263)
- Geoffrey J Goodhill
Australian Research Council (DP180100636)
- Geoffrey J Goodhill
The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.
Acknowledgements
Imaging was performed at the Queensland Brain Institute’s Advanced Microscopy Facility using a Zeiss LSM 710 2-photon microscope, generously supported by the Australian Government through the ARC LIEF grant LE130100078.
Ethics
Animal experimentation: All procedures were performed with approval from The University of Queensland Animal Ethics Committee (QBI/152/16/ARC).
Copyright
© 2021, Avitan et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
-
- 2,959
- views
-
- 432
- downloads
-
- 21
- citations
Views, downloads and citations are aggregated across all versions of this paper published by eLife.
Download links
Downloads (link to download the article as PDF)
Open citations (links to open the citations from this article in various online reference manager services)
Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)
Further reading
-
- Neuroscience
Time estimation is an essential prerequisite underlying various cognitive functions. Previous studies identified ‘sequential firing’ and ‘activity ramps’ as the primary neuron activity patterns in the medial frontal cortex (mPFC) that could convey information regarding time. However, the relationship between these patterns and the timing behavior has not been fully understood. In this study, we utilized in vivo calcium imaging of mPFC in rats performing a timing task. We observed cells that showed selective activation at trial start, end, or during the timing interval. By aligning long-term time-lapse datasets, we discovered that sequential patterns of time coding were stable over weeks, while cells coding for trial start or end showed constant dynamism. Furthermore, with a novel behavior design that allowed the animal to determine individual trial interval, we were able to demonstrate that real-time adjustment in the sequence procession speed closely tracked the trial-to-trial interval variations. And errors in the rats’ timing behavior can be primarily attributed to the premature ending of the time sequence. Together, our data suggest that sequential activity maybe a stable neural substrate that represents time under physiological conditions. Furthermore, our results imply the existence of a unique cell type in the mPFC that participates in the time-related sequences. Future characterization of this cell type could provide important insights in the neural mechanism of timing and related cognitive functions.
-
- Neuroscience
Sour taste, which is elicited by low pH, may serve to help animals distinguish appetitive from potentially harmful food sources. In all species studied to date, the attractiveness of oral acids is contingent on concentration. Many carboxylic acids are attractive at ecologically relevant concentrations but become aversive beyond some maximal concentration. Recent work found that Drosophila ionotropic receptors IR25a and IR76b expressed by sweet-responsive gustatory receptor neurons (GRNs) in the labellum, a peripheral gustatory organ, mediate appetitive feeding behaviors toward dilute carboxylic acids. Here, we disclose the existence of pharyngeal sensors in Drosophila melanogaster that detect ingested carboxylic acids and are also involved in the appetitive responses to carboxylic acids. These pharyngeal sensors rely on IR51b, IR94a, and IR94h, together with IR25a and IR76b, to drive responses to carboxylic acids. We then demonstrate that optogenetic activation of either Ir94a+ or Ir94h+ GRNs promotes an appetitive feeding response, confirming their contributions to appetitive feeding behavior. Our discovery of internal pharyngeal sour taste receptors opens up new avenues for investigating the internal sensation of tastants in insects.