16Stereotyped synaptic connections define the neural circuits of the brain. In vertebrates, stimulus-independent 17 activity contributes to neural circuit formation. It is unknown whether this type of activity is a general feature of 18 nervous system development. Here, we report patterned, stimulus-independent neural activity in the Drosophila 19 visual system during synaptogenesis. Using in vivo calcium, voltage, and glutamate imaging, we found that all 20 neurons participate in this spontaneous activity, which is characterized by brain-wide periodic active and silent 21 phases. Glia are active in a complementary pattern. Each of the 15 examined of the over 100 specific neuron 22 types in the fly visual system exhibited a unique activity signature. The activity of neurons that are synaptic 23 partners in the adult was highly correlated during development. We propose that this cell type-specific activity 24 coordinates the development of the functional circuitry of the adult brain. 25 26 Keywords 27 Nervous system development, visual system development, neuronal activity, synaptogenesis, calcium imaging, 28 2-photon microscopy. 29 30 42superior colliculus (SC), and the visual cortex (Ackman et al., 2012). In each of these areas, large populations of 43 neighboring cells exhibit correlated firing patterns. Significant progress has been made toward characterizing 44 and identifying the organizing principles of spontaneous activity in the developing vertebrate brain, and the 45 precise developmental role of this activity is an area of active interest. 46 By contrast to vertebrates, brain development in invertebrates is thought to be driven by hardwired 47 48 dependent neural activity. Previous work has shown that, in the Drosophila visual system, photoreceptor 49 3 neurons can develop the wild-type complement of synapses in a stimulus-independent manner (Hiesinger et al., 50 2006). However, the existence and significance of spontaneous activity during invertebrate brain development 51 remains an open question. 52 Some of the most detailed understanding of brain development in the fly comes from the visual system. 53 Visual information from the compound eye is relayed in a topographic fashion to the optic neuropils-the 54 lamina, medulla, and the lobula complex. These neuropils are organized into columns and layers. In general, 55 columns process information from different points in visual space, and layers process different types of visual 56 information. Over 100 different neuronal cell types form precise synaptic connections, typically with several 57 different cell types. The three dimensional EM re-constructions of the optic neuropils that reveal this wiring 58 complexity (Rivera-Alba et al., 2011; Takemura et al., 2013 Takemura et al., , 2017 also underscore the challenge of 59 understanding the mechanisms of synaptic specificity: Most neurons make synapses with only a subset of their 60 contact neighbors, and the area of contact has little bearing on this decision. 61 Vis...