Ultrastructural analysis of dendritic spine necks reveals a continuum of spine morphologies =========================================================================================== * Netanel Ofer * Daniel R. Berger * Narayanan Kasthuri * Jeff W. Lichtman * Rafael Yuste ## Abstract Dendritic spines are membranous protrusions, with a bulbous head connected to the dendrite by a thin neck, and receive essentially all excitatory inputs in most mammalian neurons. Spines have a wide variety of morphologies that likely have a significant effect on their biochemical and electrical properties. The question of whether spines belong to distinct morphological or functional subtypes or constitute a continuum is still open. To discern this, it is important to measure spine necks objectively. Recent advances in electron microscopy enable automatic reconstructions of 3D spines with nanometer precision. Analyzing ultrastructural reconstructions from mouse neocortical neurons with computer vision algorithms, we demonstrate that the vast majority of spines can be rigorously separated into head and neck components. Analysis of the head and neck morphologies reveals a continuous distribution of parameters. The spine neck diameter, but not the neck length, was correlated with the head volume. Spines with larger head volumes often had a spine apparatus and pairs of spines in a post-synaptic cell contacted by the same axon had similar head volumes. Our data are consistent with a lack of morphological categories of spines and indicate that the morphologies of the spine neck and head are independently regulated. These results have repercussions for our understanding of the function of dendritic spines in neuronal circuits. KEYWORDS * dendritic spines * pyramidal cells * electron microscopy * plasticity ## 1 INTRODUCTION Dendritic spines, small neuronal appendages that mediate essentially all excitatory transmission in the brain, were discovered by Cajal more than a century ago (Cajal, 1904), who noted the existence of a ‘ball-like’ spine head and a ‘lightly stained’ spine neck (Yuste, 2010). However, these findings were controversial and not proven until the inventions of the electron microscopy (EM) that allows imaging of dendritic spines with nanoscale resolution (Gray, 1959). Recent advances in EM allow automatic imaging of every neuron in a brain tissue volume, including high-resolution 3D structure of spines (Kasthuri et al., 2015; Dorkenwald et al., 2019; Lee et al., 2019; Motta et al., 2019). The 3D ultrastructure is important since spines, and the border between the head and neck, appear different from different angles of observation (Arellano et al., 2007). The question of whether spines belong to different classes or are part of a continuum is still controversial (Pchitskaya and Bezprozvanny, 2020), and part of the problem lies on the lack of a clear definition of what constitutes the spine neck. Peters and Kaiserman-Abramof examined the spines of rat neocortex, proposing the distinction between stubby, mushroom, and thin spines (Peters and Kaiserman-Abramof, 1970). They defined stubby spines as short thick spines without a clear neck, mushroom spines as thick necks that expands into a large end-bulb, and thin spines as slender necks that expands into a small oval or rounded end-bulb. This classification has been widely adopted and used in almost every study on spines at the optical microscope level (Arellano et al., 2007). However, no clear borderline was observed between these three types and a continuum and unimodal distribution of the spine’s morphological parameters has been reported in several studies (Peters and Kaiserman-Abramof, 1970; Arellano et al., 2007; Tønnesen et al., 2014; Loewenstein et al., 2015). Recently, analyses of large-scale connectomics datasets of mouse cortex quantified synaptic size (Motta et al., 2019) and spine head volume (Dorkenwald et al., 2019) and described two subtypes of spines: small and large. However, there was significant overlap in sizes between them. Thus, the question of whether dendritic spines are divided into distinct types or constitutes a continuum is still undecided (Rochefort and Konnerth, 2012; Berry and Nedivi, 2017). This controversy is confounded by the lack of methods to define and measure spine necks objectively. In this study, we analyzed an ultrastructural dataset from mouse neocortex and introduce computer vision algorithms to show that the vast majority of spines present a clear morphological separation between head and neck. Then, we used these morphological parameters to examine whether distinct types of spines can be detected, finding unimodal and continuous distribution of spine parameters. Finally, we analyzed the correlation between spine morphological properties, including the post-synaptic densities (PSD) and spine apparatus (SA), and find a lack of correlation between the spine neck length and the spine head, indicating that the two compartments are independently regulated. Our methods and results can serve to further explore the development and function of spines. ## 2 METHODS ### 2.1 Ultrastructural Dataset In this paper, we analyzed a set of 4,223 dendritic spines of layer 6 pyramidal cells (at the apical dendrite level in layer 5) from the somatosensory cortex of a young adult mouse, published in (Kasthuri et al., 2015). The EM data was acquired using automated ultrastructural technology with nanometer resolution. The detailed methodology to reconstruct spines in three dimensions is described in Kasthuri et al. (2015). Neuronal processes in this image dataset were segmented using VAST, a computer-assisted manual space-filling segmentation and annotation program (Berger et al., 2018). VAST allows coloring images at multiple scales of resolution, to organize the results in a flexible annotation framework, and to export results for 3D visualization and analysis. Each spine was represented by a triangle mesh in an ‘OBJ’ format which includes a list of 3D vertices followed by a list of faces formed by the vertices (Figure 1A). A detailed spreadsheet for 1,700 synapses, that describes synapse position, axon ID, dendrite ID, and biological details, such as if the spine consists an SA and PSD size, is provided by Kasthuri et al. (2015). The IDs of the pre- and post-synaptic partners enabled us to find pairs of spines that create dual connection between the same pre- and post-synaptic neurons. ![FIGURE 1](http://biorxiv.org/https://www.biorxiv.org/content/biorxiv/early/2021/02/18/2021.02.18.431725/F1.medium.gif) [FIGURE 1](http://biorxiv.org/content/early/2021/02/18/2021.02.18.431725/F1) FIGURE 1 Computational separation of spine head and neck. (A) Triangle mesh of a spine, scale bar: 100*nm*. (B) Centerline skeleton curve is colored in red. An example of the ’skeleton radius’ is colored in orange. An example of rays in a 60° cone for measuring the SDF colored in purple. (C) The head (green) and neck (blue) were classified according to the SDF and ’skeleton radius’ values. The centerline curve was extended and divided into neck length (blue) and head length (green). Parameters values are: spine volume: 0.006*μm*3, head volume: 0.004*μm*3, spine surface area: 0.268*μm*2, head surface area: 0.141*μm*2, spine length: 0.854*μm*, neck length: 0.596*μm*, neck radius: 0.036*μm*, head sphericity: 0.864. (D) Scatter plot of faces SDF and ’skeleton radius’ values. Each dot represents a single face of the spine. Distributions of SDF and ’skeleton radius’ on top and right. Faces were clustered using Gaussian Mixture Model. Hartigan’s dip-test p-values are under 0.001, indicating bimodality. The spine ID: Kasthuri_4643. ### 2.2 Morphological Analysis In our first analysis stage, Laplacian smoothing, each vertex in a mesh covering each spine was replaced by the average of its neighbors (that share an edge). This was applied to compensate for the quantization effect caused by the EM sectioning process. Next, small isolated components that contain less than 17 faces were removed. Shape Diameter Function (SDF) and Mesh Skeletons were then calculated using the ‘Triangulated Surface Mesh Segmentation’ and ‘Triangulated Surface Mesh Skeletonization’ packages from the Computational Geometry Algorithms Library (CGAL) 5.0.2, [https://www.cgal.org](https://www.cgal.org) (Shapira et al., 2008; Tagliasacchi et al., 2012). To this end, data were converted from ‘OBJ’ to ‘OFF’ format. SDF measurement were done by averaging 25 rays beams in a cone of 60 degrees projecting to the opposite spine surface (purple rays in Figure 1B). The SDF is a pose-independent method that matters for this dataset because of the tortuous nature of spines. The ‘skeleton radius’ is the distance from each face to the closest point along the mesh skeleton (orange line in Figure 1B). These algorithms, normalized between 0 and 1, were then used for the segmentation between the head and neck, and later, for measurements of the spine morphological parameters. For the segmentation of spines into head and neck, we used two local parameters for each face, the SDF and the ‘skeleton radius’ values, as well as a spatial parameter, the dihedral angle between neighboring faces. The energy-function algorithm applied a graph-cut-based algorithm that combines fast changes on SDF and ‘skeleton radius’ values as natural candidates for segment boundaries and geometric criterion in adjacent facets, sharing a sharp and concave edge (CGAL ‘Triangulated Surface Mesh Segmentation’ package). The parameters used in this algorithm were the number of clusters of 2 and smoothing-lambda of 0.1. ### 2.3 Morphological Parameter Measurements The volume of spines was calculated using the signed tetrahedral volumes summarizing algorithm (Zhang and Chen, 2001): ![Formula][1] where (*x**i* 1, *y**i* 1, *z**i* 1), (*x**i* 2, *y**i* 2, *z**i* 2), and (*x**i* 3, *y**i* 3, *z**i* 3) are the coordinates of the vertices of face *i*. This algorithm requires a closed mesh and face normals pointed to the same inner or outer direction (the order of the face vertices, clockwise or counterclockwise, indicates the normal). Thus, for calculating the spine head volume, after computationally severing the head, the hole was filled by connecting the border faces to the center point of the hole, considering the neighbor faces to find the correct direction of the normals. For measuring spine length, we summed the length of the skeleton center line and the extension to the spine surface, in the direction of the vector of the last two vertices, in the two edges. For measuring spine’s neck length separately, each vertex among the centerline was labeled as ‘head’ or ‘neck’ according to the major of its belonged vertices. Summarizing the ‘neck’ segments gives us the neck length. The spine head sphericity was calculated by equation (2): ![Formula][2] where V is the spine head volume and A is the area. In a perfect ball, the sphericity equals 1. ### 2.4 Statistical analysis Kolmogorov-Smirnov test for two samples was used to compare two empirical cumulative distribution function (CDF) with a two-tailed p-value. The Hartigan’s dip-test of unimodality (Hartigan and Hartigan, 1985) was applied to examine whether data are unimodal distributed. Since the Hartigan test was designed for a 1-dimensional dataset, for considering mutually two parameters, we tested the unimodality on 18 projections of 10-degree rotations of the 2-dimensional dataset (Schelling and Plant, 2020). ### 2.5 Code accessibility The CGAL scripts were written in C++; the other codes were written in Python 3.7 using the libraries: numpy 1.17.4, scipy 1.5.4, scikit-learn 0.23.1, and unidip 0.1.1. All the data is publicly available at the Columbia University Academic Commons site ([https://academiccommons.columbia.edu](https://academiccommons.columbia.edu)). Codes used in this paper are publicly available at the Columbia University Neurotechnology Center’s GitHub page ([https://github.com/NTCColumbia](https://github.com/NTCColumbia)). ## 3 RESULTS ### 3.1 Computational separation of spine head and neck We first explored the morphological identity of the spine neck. To do so, we segmented spine structures into head and neck using their morphological properties. To this end, we divided the surface of the spine into a triangle mesh, and for each face of the spine surface, two geometrical parameters, the SDF and the ‘skeleton radius’, were calculated. The SDF and the ‘skeleton radius’ are complementary morphological parameters, and the combination of both distributions enabled a robust segmentation between the head and neck, as evident visually in their bimodal distribution of values (Figure 1D). The cluster with the lower value of average SDF was labeled as ‘neck’ (blue) and the other cluster was labeled as ‘head’ (green). To quantify the extent of the separation between head and neck for every spine, we tested whether the distributions of the SDF and the ‘skeleton radius’ values were unimodal. Denying the possibility of unimodality implies a bimodal (or higher order) distribution, with a clear clustering into two groups: the head and the neck faces. Statistical tests were applied to examine if the separation between head and neck was significant. The Hartigan’s dip-test revealed that 88.44% (3,717/4,203) of spines had a bimodal distribution of SDFs, and 74.87% (3,147/4,203) of spines had a bimodal distribution of ‘skeleton radius’ values (p-value < 0.05, Hartigan’s dip-test). Mutual SDF and ‘skeleton radius’ 2-dimensional Hartigan’s dip-test (see Methods) led to 95.12% (3,998/4,203) of the spines demonstrating statistically significant bimodal distributions. To find the exact border between head and neck we used a graph-cut algorithm with energy function minimization, taking into account the SDF and ‘skeleton radius’ values as well as the convexity of the mesh surface. The border was often in sharp dihedral angles between neighboring faces, which occur between the head and neck. In 74.33% of the spines, the two clusters of faces led to two segments, one for head faces and the other for the neck faces. In 1% of spines there was only a single cluster, meaning that there was no separation between head and neck. In the rest of the spines, the two clusters led to more than two segments. These cases included branched spines in which two connected thin cylinders branched into two different heads and also cases of two mistakably coupled spines. We concluded that most spines can be rigorously separated into a head and neck. For the rest of the study, focused on the morphological analysis of spine necks, we analyzed only spines consisted of clear two segments (3,138/4,223 spines). ### 3.2 A continuum of spines morphological parameters We then proceed to build a dataset of different morphological variables for each spine. First, we measured three basic morphological parameters of the entire spine: its volume, surface area, and length. The spine surface area was measured by summarizing all the triangle mesh areas of the spine. The volume of the spine was calculated using the signed tetrahedral volumes algorithm (Zhang and Chen, 2001). The spine’s length was obtained by measuring the extended centerline skeleton straightforward on the two sides (Figure 1C). The separation between the spine head and neck enabled us to also measure the ‘head volume’, ‘neck length’, and ‘neck radius’. The head surface area was measured by integrating the area of all faces labeled as a ‘head’. Since the algorithm for volume measurements requires a closed volume, we first filled the hole created by the cutting of the neck with a simple plane, followed by calculating the volume of the new closed spine head mesh. For accurate measurement of neck length, we used similar methods as with total spine lengths. Each vertex along the skeleton centerline was labeled as ‘head’ or ‘neck’ according to most of its faces (Figure 1C). Thus, we integrated the lengths along the neck-labeled vertices along the centerline curve. In contrast to previous methods, that measure Euclidean or Geodesic distances, either manually or semi-automatically with user mediation (Jorstad et al., 2014, 2018), our method is a unique automatic approach for accurate measuring of the spine neck, because it measures the neck length along the center of the 3D spine, considering also the head position. Finally, to measure neck radius, we averaged the shortest distance between the face center and the centerline skeleton curve for all of the faces belonging to each vertex along the skeleton centerline (see orange line in Figure 1B, as example of a neck radius for a specific face). Then, we averaged the averaged values along all the vertices. This method for measuring spine neck dimensions provided the most accurate results, even for non-round (elliptic) neck cross-sections. Neck radius was perpendicular to the centerline skeleton, so it was not affected by the 2D section-cutting or projection angle. The measured values of the morphological parameters are summarized in Figure 2A-G. Inspection of the distributions for each of the morphological parameters revealed skewed unimodal functions, with no clear bi- or multimodality. To explore this in depth, and test if spines could be classified into different morphological subtypes, we plotted the data along pairs of variables, including ‘spine volume’, ‘spine surface area’, and ‘spine length’ (Figure 3A), and ‘head volume’, ‘neck length’, and ‘neck radius’ (Figure 3B). Visual inspection failed to show clear multimodal distributions. This was confirmed with the 3-dimensional Hartigan’s dip-test, finding a continuous and unimodal distribution. With this lack of multimodality in the morphological parameters, we cannot prove the existence of distinct spine types and concluded that, in our dataset, spines displayed a continuum distribution of morphologies. ![FIGURE 2](http://biorxiv.org/https://www.biorxiv.org/content/biorxiv/early/2021/02/18/2021.02.18.431725/F2.medium.gif) [FIGURE 2](http://biorxiv.org/content/early/2021/02/18/2021.02.18.431725/F2) FIGURE 2 Unimodality of spine morphological parameters. (A-C) The morphological parameters of the entire spine. (D-F) The morphological parameters for the separated head and neck. (G) The sphericity of the head volumes. The dataset includes 2,998 spines. (H) Post-synaptic density size distribution, a dataset of 888 spines. ![FIGURE 3](http://biorxiv.org/https://www.biorxiv.org/content/biorxiv/early/2021/02/18/2021.02.18.431725/F3.medium.gif) [FIGURE 3](http://biorxiv.org/content/early/2021/02/18/2021.02.18.431725/F3) FIGURE 3 Continuum distribution of spine morphological parameters. The pair-plot presents in the upper and lower triangles the pairwise relationships of the morphological parameters of all the spines. The marginal distribution of each parameter can be shown on the diagonal. (A) For the three basic parameters of the entire spine. (B) For neck and head parameters after segmentation. The data were logarithmic z-scored and the outliers (above 3 STD) were removed. ### 3.3 Correlations between spine morphological parameters The morphological ratio between head and neck affects the electrical and biochemical isolation of the spine (Araya et al., 2006). Previous studies have reported no correlation between spine head and neck parameters (Araya et al., 2014; Tønnesen et al., 2014). Other studies found a weak correlation between head volume and neck diameter in chemically fixed spines, but not in cryo-fixed spines (Arellano et al., 2007; Tamada et al., 2020). We used our dataset and analysis pipeline to explore this issue with a larger number of ultrastructural reconstructed spines (Figure 4). ![FIGURE 4](http://biorxiv.org/https://www.biorxiv.org/content/biorxiv/early/2021/02/18/2021.02.18.431725/F4.medium.gif) [FIGURE 4](http://biorxiv.org/content/early/2021/02/18/2021.02.18.431725/F4) FIGURE 4 Correlation between spine head and neck morphological variables. (A-C) Correlation between head and neck morphologies (2,998 spines). (D) Correlation between head volume and post-synaptic density size (888 spines). The correlation coefficients (Spearman) are indicated for each graph. The asterisks indicate statistical significance \***| *p* < 0.001. Two-sided p-value for a hypothesis test whose null hypothesis is that the slope is zero, using Wald Test with t-distribution of the test statistic. Our results confirmed the existence of a strong correlation between head volume and neck diameter (Figure 4B), a weak negative correlation between neck diameter and neck length (Figure 4A), and a lack of a significant correlation between head volume and neck length (Figure 4C). In addition, to investigate the relationship between biological properties and physical dimensions, we analyzed the PSD size and presence or absence of an SA, as a function of the measured spine morphology. In agreement with previous studies (Arellano et al., 2007; Holler et al., 2021), the PSD size presents a long-tailed unimodal distribution (Figure 2H), and was strongly correlated with the spine head volume (Figure 4D). We then examined the relationship between the presence of an SA and spine morphology. Spines with SA had higher head volumes and neck diameters than spines without SA (Figure 5). This was particularly apparent in cumulative distribution functions (Figure 5B), which showed also no differences between spines with SA and spine without SA in neck length (Figure 4C). ![FIGURE 5](http://biorxiv.org/https://www.biorxiv.org/content/biorxiv/early/2021/02/18/2021.02.18.431725/F5.medium.gif) [FIGURE 5](http://biorxiv.org/content/early/2021/02/18/2021.02.18.431725/F5) FIGURE 5 Spine apparatus is present in larger spines. (A) Spine apparatus as a function of head volume and neck diameter. Full red circles indicate the spine with spine apparatus, and empty blue circles indicate the spine without spine apparatus. (B-D) The empirical cumulative distribution function of the spines with spine apparatus (red) and without spine apparatus (blue). Kolmogorov-Smirnov test p-values: (B) *p* < 0.001, (C) *p* = 0.3677, and (D) *p* < 0.001. Spine apparatus indicated as ‘uncertain’ or ‘N/A’ in the spreadsheet were not included, resulted in 401 spines with spine apparatus, and 220 spines without spine apparatus. Finally, we examined the morphologies of spines that create dual connections, sharing the same pre- and post-synaptic neurons, by calculating the difference and the ratio of the morphological parameters between dual connection spines. We compared these distributions to the difference and ratio of any two spines, randomly chosen from the entire dataset. To examine whether the underlying probability distributions of the two empirical CDF curves differ, the Kolmogorov-Smirnov test was used. The differences between the morphological parameter values showed the same distribution as for two random spines (Figure 6A-C). For neck length and neck diameter, the ratio between the dual connection spines also resembled those from two random spines (Figure 6E-F). However, the ratio between head volumes in dual connection spines were lower than those of two random spines (Figure 6D). These results are in line with previous studies that reported a correlation in head volumes between the two spines of a dual connection (Kasthuri et al., 2015; Dorkenwald et al., 2019; Motta et al., 2019). ![FIGURE 6](http://biorxiv.org/https://www.biorxiv.org/content/biorxiv/early/2021/02/18/2021.02.18.431725/F6.medium.gif) [FIGURE 6](http://biorxiv.org/content/early/2021/02/18/2021.02.18.431725/F6) FIGURE 6 Dual connection spines have similar head volumes. The empirical cumulative distribution function of the difference between two spines (A-C) and the ratio between two spines (D-F) belong to the dual connection (red), compared to two random spines from the entire database (blue). Kolmogorov-Smirnov test p-values: (A) *p* = 0.6475, (B) *p* = 0.7694, (C) *p* = 0.0671, (D) *p* = 0.003, (E) *p* = 0.5915, and (F) *p* = 0.1046. The dataset includes 41 dual connection pairs. ## 4 DISCUSSION Dendritic spines display a large morphological heterogeneity of head and neck dimensions. These differences likely have functional meaning, as the neck can cause a biochemical and electrical isolation between the spine head and the dendritic shaft. Since spines regulate most excitatory communication between neurons, this diversity could enrich the computational capabilities of the brain. Here, using an objective head and neck separation algorithm, we showed that the vast majority of spines have a clear head and neck. Based on this, we developed new methods to measure the spine head volume, neck length, and neck diameter. These morphological parameters present a continuum distribution in our dataset, in agreement with previous proposals that spines do not belong to different morphological subtypes. Finally, we examined the correlation between the morphological parameters and the relationship between them and the PSD size and SA and detect correlations between spine volume and neck width, PSD size and presence of SA, but find no correlation between neck length and head volume. ### 4.1 Objective identification of spine necks Although the spine’s head and neck dimensions determine its electrical and chemical activity (Segev and Rall, 1998; Yuste, 2013; Bell et al., 2019; Lagache et al., 2019), the definition of head and neck and the exact border between them has always been unclear. Previous studies measured the head and neck manually or using algorithms with arbitrary cutoffs that required a large number of corrections by a human annotator (Benavides-Piccione et al., 2002; Arellano et al., 2007; Dorkenwald et al., 2019; Motta et al., 2019). In this study, we developed an automatic algorithm to separate between head and neck, confirming that spine neck is real and that, in the vast majority of spines, one can separate the head and neck in a statistically significant manner. ### 4.2 A continuum of spine morphologies Given the great variety of spine morphologies, an open question in the field is whether spines belong to different morphological subtypes. The common nomenclature of Peters and Kaiserman-Abramof classified spines into three types, stubby, mushroom, and thin (Peters and Kaiserman-Abramof, 1970). Their description of stubby spines, without a well-defined neck, may be wrongly reported due to limited spatial resolution of optical microscopy (Tønnesen et al., 2014). In fact, ‘stubby’ spines without a clear neck are very rare, approximately 1% in our dataset. Their ‘thin’ spines were originally named after their ‘slender stalk’, without taking into account the variety of neck lengths, so one could question the validity of that term. Following Peters and Kaiserman-Abramof visual classification, semi-supervised learning and a decision tree have also been used to classify spines into these same types: stubby, mushroom, and thin (Rodriguez et al., 2008; Janoos et al., 2009; Shi et al., 2014; Basu et al., 2018). On the other hand, unsupervised morphology-based clustering of dendritic spines from human cortical pyramidal neurons uncovered at least six separate groups of spines (Luengo-Sanchez et al., 2018). Our analysis revealed a clear continuum distribution of the morphological parameters, without any evidence of separate subtypes (Figure 3). Statistical tests applied to these data, the same that proved the morphological reality of spine neck and heads, do not reject the unimodal hypothesis, meaning that we cannot prove the existence of distinct types of spines. This conclusion is of course limited to our dataset and our measured variables, so we cannot rule out the possibility that in different datasets, or with different morphological measurements, one could identify different subtypes of spines. Also, different morphological subtypes of spines could exist but have overlapping morphological parameters. For example, the boundaries between spines subtypes could be blurred as a result of the dynamic morphological transition between spine types, leading to a unimodality in cluster analysis. While theoretically possible, the simplest interpretation of our results that spines represent a continuum of morphologies, without any clear subtypes. ### 4.3 Functional considerations Studying the morphological parameters of dendritic spines may shed light on their functional role. The lack of correlation between head volume and neck length (Figure 4C) points out the possibility of different biological mechanisms governing the development of the spine head and neck. For example, the fact that spines reach out to axons running close-by, which may dictate spine length, could explain the lack of correlation of neck length with head size. Moreover, the similarity in head volume between dual connection spines, but not in neck length (Figure 6), implies different functional roles of the head and neck during synaptic activity. The correlation between presence of SA and head volume was reported in previous studies (Dorkenwald et al., 2019). In addition, here we show also a significant relationship between SA and neck diameter (Figure 5). This could be interpreted as if the large size of the head, together with a thick neck, enables the entrance of SA from the dendritic shaft into the spine head. Our analysis used a limited dataset of spines from pyramidal cells from the mouse somatosensory cortex (Kasthuri et al., 2015). To strength our results, and answer the questions of whether dendritic spine morphologies are continuous or group and the extent of correlation between dual connection spines, more data are needed. Future studies should expand and compare the results to other species and brain regions, particularly to examine the difference between mice and humans. While EM reconstruction of spines have nanometer resolution, they arise from a fixed structure, probably representing snapshots of spines in morphological transition that can bias us towards a misleadingly static view of spine morphology. For studying the dynamic properties of the spine and tracking structure changes, the usage of superresolution microscopy data should be considered. In closing, the rich diversity of spine morphologies must enrich the neuronal circuit function. The computational advantages of adding such complexity should be studied theoretically and by models. Artificial neural network with realistic architecture could be used to not only to model brain circuits but, in addition, to explore improvements of existing algorithm in a brain-inspired manner. ## Conflict of Interest The authors declare no conflict of interest. ## Author Contributions N.O. and R.Y. conceived the project. N.K. and D.B. performed experiments and N.O. and R.Y. wrote the paper. N.O., N.K. and D.B. analyzed the data. J.L. discussed results and edited the paper. R.Y. and J.L. assembled and directed the team and secured funding and resources. ## Acknowledgements Supported by the NINDS (R01NS110422; R34NS116740). This material is based upon work supported by, or in part by, the U. S. Army Research Laboratory and the U. S. Army Research Office under contract number W911NF-12-1-0594 (MURI). ## Footnotes * **Funding information** Supported by the NINDS (R01NS110422; R34NS116740). This material is based upon work supported by, or in part by, the U.S. Army Research Laboratory and the U.S. Army Research Office under contract number W911NF-12-1-0594 (MURI). * Received February 18, 2021. * Revision received February 18, 2021. * Accepted February 18, 2021. * © 2021, Posted by Cold Spring Harbor Laboratory The copyright holder for this pre-print is the author. All rights reserved. The material may not be redistributed, re-used or adapted without the author's permission. ## References 1. Araya, R., Jiang, J., Eisenthal, K. B. and Yuste, R. (2006) The spine neck filters membrane potentials. Proceedings of the National Academy of Sciences of the United States of America, 103, 17961–17966. [Abstract/FREE Full Text](http://biorxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NDoicG5hcyI7czo1OiJyZXNpZCI7czoxMjoiMTAzLzQ3LzE3OTYxIjtzOjQ6ImF0b20iO3M6NDg6Ii9iaW9yeGl2L2Vhcmx5LzIwMjEvMDIvMTgvMjAyMS4wMi4xOC40MzE3MjUuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 2. Araya, R., Vogels, T. P. and Yuste, R. (2014) Activity-dependent dendritic spine neck changes are correlated with synaptic strength. Proceedings of the National Academy of Sciences, 111, E2895–E2904. [Abstract/FREE Full Text](http://biorxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NDoicG5hcyI7czo1OiJyZXNpZCI7czoxMjoiMTExLzI4L0UyODk1IjtzOjQ6ImF0b20iO3M6NDg6Ii9iaW9yeGl2L2Vhcmx5LzIwMjEvMDIvMTgvMjAyMS4wMi4xOC40MzE3MjUuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 3. Arellano, J. I., Benavides-Piccione, R., DeFelipe, J. and Yuste, R. (2007) Ultrastructure of dendritic spines: correlation between synaptic and spine morphologies. Frontiers in Neuroscience, 1, 131–143. 4. Basu, S., Saha, P. K., Roszkowska, M., Magnowska, M., Baczynska, E., Das, N., Plewczynski, D. and Wlodarczyk, J. (2018) Quantitative 3-D morphometric analysis of individual dendritic spines. Scientific Reports, 8. 5. Bell, M., Bartol, T., Sejnowski, T. and Rangamani, P. (2019) Dendritic spine geometry and spine apparatus organization govern the spatiotemporal dynamics of calcium. The Journal of General Physiology, 151, 1017–1034. [Abstract/FREE Full Text](http://biorxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6MzoiamdwIjtzOjU6InJlc2lkIjtzOjEwOiIxNTEvOC8xMDE3IjtzOjQ6ImF0b20iO3M6NDg6Ii9iaW9yeGl2L2Vhcmx5LzIwMjEvMDIvMTgvMjAyMS4wMi4xOC40MzE3MjUuYXRvbSI7fXM6ODoiZnJhZ21lbnQiO3M6MDoiIjt9) 6. Benavides-Piccione, R., Ballesteros-Yáñez, I., DeFelipe, J. and Yuste, R. (2002) Cortical area and species differences in dendritic spine morphology. Journal of Neurocytology, 31, 337–346. [CrossRef](http://biorxiv.org/lookup/external-ref?access_num=10.1023/A:1024134312173&link_type=DOI) [PubMed](http://biorxiv.org/lookup/external-ref?access_num=12815251&link_type=MED&atom=%2Fbiorxiv%2Fearly%2F2021%2F02%2F18%2F2021.02.18.431725.atom) [Web of Science](http://biorxiv.org/lookup/external-ref?access_num=000185600600006&link_type=ISI) 7. Berger, D. R., Seung, H. S. and Lichtman, J. W. (2018) VAST (Volume Annotation and Segmentation Tool): Efficient manual and semi-automatic labeling of large 3D image stacks. Frontiers in Neural Circuits, 12. 8. Berry, K. P. and Nedivi, E. (2017) Spine Dynamics: Are They All the Same? Neuron, 96, 43–55 [CrossRef](http://biorxiv.org/lookup/external-ref?access_num=10.1016/j.neuron.2017.08.008&link_type=DOI) [PubMed](http://biorxiv.org/lookup/external-ref?access_num=28957675&link_type=MED&atom=%2Fbiorxiv%2Fearly%2F2021%2F02%2F18%2F2021.02.18.431725.atom) 9. Cajal, S. R. Y. (1904) Textura del sistema nervioso del hombre y de los vertebrados. 10. Dorkenwald, S., Turner, N. L., Macrina, T., Lee, K., Lu, R., Wu, J., Bodor, A. L., Bleckert, A. A., Brittain, D., Kemnitz, N., Silversmith, W. M., Ih, D., Zung, J., Zlateski, A., Tartavull, I., Yu, S.-C., Popovych, S., Wong, W., Castro, M., Jordan, C. S., Wilson, A. M., Froudarakis, E., Buchanan, J., Takeno, M., Torres, R., Mahalingam, G., Collman, F., Schneider-Mizell, C., Bumbarger, D. J., Li, Y., Becker, L., Suckow, S., Reimer, J., Tolias, A. S., da Costa, N. M., Reid, R. C. and Seung, H. S. (2019) Binary and analog variation of synapses between cortical pyramidal neurons. bioRxiv, 2019.12.29.890319. 11. Gray, E. G. (1959) Electron microscopy of synaptic contacts on dendrite spines of the cerebral cortex. Nature, 183, 1592–1593. [CrossRef](http://biorxiv.org/lookup/external-ref?access_num=10.1038/1831592a0&link_type=DOI) [PubMed](http://biorxiv.org/lookup/external-ref?access_num=13666826&link_type=MED&atom=%2Fbiorxiv%2Fearly%2F2021%2F02%2F18%2F2021.02.18.431725.atom) [Web of Science](http://biorxiv.org/lookup/external-ref?access_num=A1959ZP92000020&link_type=ISI) 12. Hartigan, J. A. and Hartigan, P. M. (1985) The Dip Test of Unimodality. The Annals of Statistics, 13, 70–84. 13. Holler, S., Köstinger, G., Martin, K. A. C., Schuhknecht, G. F. P. and Stratford, K. J. (2021) Structure and function of a neocortical synapse. Nature, 1–6. 14. Janoos, F., Mosaliganti, K., Xu, X., Machiraju, R., Huang, K. and Wong, S. T. (2009) Robust 3D reconstruction and identification of dendritic spines from optical microscopy imaging. Medical Image Analysis, 13, 167–179. [PubMed](http://biorxiv.org/lookup/external-ref?access_num=18819835&link_type=MED&atom=%2Fbiorxiv%2Fearly%2F2021%2F02%2F18%2F2021.02.18.431725.atom) 15. Jorstad, A., Blanc, J. and Knott, G. (2018) NeuroMorph: A Software Toolset for 3D Analysis of Neurite Morphology and Connectivity. Frontiers in Neuroanatomy, 12. 16. Jorstad, A., Nigro, B., Cali, C., Wawrzyniak, M., Fua, P. and Knott, G. (2014) NeuroMorph: A Toolset for the Morphometric Analysis and Visualization of 3D Models Derived from Electron Microscopy Image Stacks. Neuroinformatics, 13, 83–92. [CrossRef](http://biorxiv.org/lookup/external-ref?access_num=10.1007/s12021-014-9242-5&link_type=DOI) 17. Kasthuri, N., Hayworth, K. J., Berger, D. R., Schalek, R. L., Conchello, J. A., Knowles-Barley, S., Lee, D., Vázquez-Reina, A., Kaynig, V., Jones, T. R., Roberts, M., Morgan, J. L., Tapia, J. C., Seung, H. S., Roncal, W. G., Vogelstein, J. T., Burns, R., Sussman, D. L., Priebe, C. E., Pfister, H. and Lichtman, J. W. (2015) Saturated Reconstruction of a Volume of Neocortex. Cell, 162, 648–661. [CrossRef](http://biorxiv.org/lookup/external-ref?access_num=10.1016/j.cell.2015.06.054&link_type=DOI) [PubMed](http://biorxiv.org/lookup/external-ref?access_num=26232230&link_type=MED&atom=%2Fbiorxiv%2Fearly%2F2021%2F02%2F18%2F2021.02.18.431725.atom) 18. Lagache, T., Jayant, K. and Yuste, R. (2019) Electrodiffusion models of synaptic potentials in dendritic spines. Journal of Computational Neuroscience. 19. Lee, K., Turner, N., Macrina, T., Wu, J., Lu, R. and Seung, H. S. (2019) Convolutional nets for reconstructing neural circuits from brain images acquired by serial section electron microscopy. Current Opinion in Neurobiology. 20. Loewenstein, Y., Yanover, U. and Rumpel, S. (2015) Predicting the dynamics of network connectivity in the neocortex. Journal of Neuroscience, 35, 12535–12544. [Abstract/FREE Full Text](http://biorxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6Njoiam5ldXJvIjtzOjU6InJlc2lkIjtzOjExOiIzNS8zNi8xMjUzNSI7czo0OiJhdG9tIjtzOjQ4OiIvYmlvcnhpdi9lYXJseS8yMDIxLzAyLzE4LzIwMjEuMDIuMTguNDMxNzI1LmF0b20iO31zOjg6ImZyYWdtZW50IjtzOjA6IiI7fQ==) 21. Luengo-Sanchez, S., Fernaud-Espinosa, I., Bielza, C., Benavides-Piccione, R., Larrañaga, P. and DeFelipe, J. (2018) 3D morphology-based clustering and simulation of human pyramidal cell dendritic spines. PLOS Computational Biology, 14, e1006221. 22. Motta, A., Berning, M., Boergens, K. M., Staffler, B., Beining, M., Loomba, S., Hennig, P., Wissler, H. and Helmstaedter, M. (2019) Dense connectomic reconstruction in layer 4 of the somatosensory cortex. Science, 366. 23. Pchitskaya, E. and Bezprozvanny, I. (2020) Dendritic Spines Shape Analysis—Classification or Clusterization? Perspective. 24. Peters, A. and Kaiserman-Abramof, I. R. (1970) The small pyramidal neuron of the rat cerebral cortex. The perikaryon, dendrites and spines. American Journal of Anatomy, 127, 321–355. 25. Rochefort, N. L. and Konnerth, A. (2012) Dendritic spines: from structure to in vivo function. EMBO reports, 13, 699–708. [Abstract/FREE Full Text](http://biorxiv.org/lookup/ijlink/YTozOntzOjQ6InBhdGgiO3M6MTQ6Ii9sb29rdXAvaWpsaW5rIjtzOjU6InF1ZXJ5IjthOjQ6e3M6ODoibGlua1R5cGUiO3M6NDoiQUJTVCI7czoxMToiam91cm5hbENvZGUiO3M6NToiZW1ib3IiO3M6NToicmVzaWQiO3M6ODoiMTMvOC82OTkiO3M6NDoiYXRvbSI7czo0ODoiL2Jpb3J4aXYvZWFybHkvMjAyMS8wMi8xOC8yMDIxLjAyLjE4LjQzMTcyNS5hdG9tIjt9czo4OiJmcmFnbWVudCI7czowOiIiO30=) 26. Rodriguez, A., Ehlenberger, D. B., Dickstein, D. L., Hof, P. R. and Wearne, S. L. (2008) Automated three-dimensional detection and shape classification of dendritic spines from fluorescence microscopy images. PLoS ONE, 3. 27. Schelling, B. and Plant, C. (2020) Dataset-Transformation: improving clustering by enhancing the structure with DipScaling and DipTransformation. Knowledge and Information Systems, 62, 457–484. 28. Segev, I. and Rall, W. (1998) Excitable dendrites and spines: Earlier theoretical insights elucidate recent direct observations. 21, 453–460. 29. Shapira, L., Cohen-Or, D. and Shamir, A. (2008) Consistent mesh partitioning and skeletonisation using the shape diameter function. Visual Comput, 24, 249–259. 30. Shi, P., Huang, Y. and Hong, J. (2014) Automated three-dimensional reconstruction and morphological analysis of dendritic spines based on semi-supervised learning. Biomedical Optics Express, 5, 1541. 31. Tagliasacchi, A., Alhashim, I., Olson, M. and Zhang, H. (2012) Mean Curvature Skeletons. Computer Graphics Forum, 31, 1735–1744. 32. Tamada, H., Blanc, J., Korogod, N., Petersen, C. C. and Knott, G. W. (2020) Ultrastructural comparison of dendritic spine morphology preserved with cryo and chemical fixation. eLife, 9. 33. Tønnesen, J., Katona, G., Rózsa, B. and Nägerl, V. (2014) Spine neck plasticity regulates compartmentalization of synapses. nature.com, 17. 34. Yuste, R. (2010) Dendritic spines. 35. Yuste, R. (2013) Electrical Compartmentalization in Dendritic Spines. Annual Review of Neuroscience, 36, 429–449. [CrossRef](http://biorxiv.org/lookup/external-ref?access_num=10.1146/annurev-neuro-062111-150455&link_type=DOI) [PubMed](http://biorxiv.org/lookup/external-ref?access_num=23724997&link_type=MED&atom=%2Fbiorxiv%2Fearly%2F2021%2F02%2F18%2F2021.02.18.431725.atom) 36. Zhang, C. and Chen, T. (2001) Efficient feature extraction for 2D/3D objects in mesh representation. 3, 935–938. [1]: /embed/graphic-2.gif [2]: /embed/graphic-3.gif