20Fluorescence microscopy enables spatial and temporal measurements of live cells and cellular 21 communities. However, this potential has not yet been fully realized for investigations of 22 individual cell behaviors and phenotypic changes in dense, three-dimensional (3D) bacterial 23 biofilms. Accurate cell detection and cellular shape measurement in densely packed biofilms are 24 challenging because of the limited resolution and low signal to background ratio in fluorescence 25 microscopy images. In this work, we present Bacterial Cell Morphometry 3D (BCM3D), an image 26 analysis workflow that combines deep learning with mathematical image analysis to accurately 27 segment and classify single bacterial cells in 3D fluorescence images. In BCM3D, deep 28 convolutional neural networks (CNNs) are trained using simulated biofilm images with 29 experimentally realistic signal-to-background ratios (SBRs), cell densities, labelling methods, and 30 cell shapes. We systematically evaluated the segmentation accuracy of BCM3D using both 31 simulated and experimental images. Compared to state-of-the-art bacterial cell segmentation 32 approaches, BCM3D consistently achieves higher segmentation accuracy and further enables 33 automated morphometric cell classifications in multi-population biofilms.Biofilms are multicellular communities of microorganisms that grow on biotic or abiotic 36 surfaces 1-4 . In addition to cellular biomass, biofilms also contain an extracellular matrix (ECM) 37 which is composed of polysaccharides, DNA, and proteins. Individual cells in biofilms interact 38 with other cells, the ECM, or with the substrate surface, and the sum total of these interactions 39 provide bacterial biofilms with emergent functional capabilities beyond those of individual cells. 40 For example, biofilms are orders of magnitude more tolerant towards physical, chemical, and 41 biological stressors, including antibiotic treatments and immune system clearance 1,2,[5][6][7][8] . 42 Understanding how such capabilities emerge from the coordination of individual cell behavior 43 requires imaging technologies capable of resolving and simultaneous tracking of individual 44 bacterial cells in 3D biofilms. 45 Live cell-compatible imaging technologies, such as light microscopy, can reveal the spatial 46 and temporal context that affects cellular behaviors. However, conventional imaging modalities 47 are not able to resolve individual cells within thick 3D biofilms over extended periods of time. For 48 example, the diffraction-limited lateral x,y-resolution (~230 nm) of a confocal fluorescence 49 microscope is barely sufficient to resolve bacterial cells positioned next to each other on flat glass 50 coverslips. Even worse, the diffraction-limited axial z-resolution (570 nm) is comparable to the 51 size of a single bacterial cell, so that densely-packed cells become unresolvable in the axial z-52 dimension 9,10 . Notable exceptions include loose biofilms (low cell density), spherical cell 53 shapes 11,12 , and mutan...