Automated Proofreading of Digitally Reconstructed Neural Morphology Enhances Accuracy, Scalability, and Standardization

Herve Emissah , Carolina Tecuatl , Giorgio A. Ascoli

Journal of Integrative Neuroscience ›› 2026, Vol. 25 ›› Issue (10) : 52273

PDF (2686KB)
Journal of Integrative Neuroscience ›› 2026, Vol. 25 ›› Issue (10) :52273 DOI: 10.31083/JIN52273
Original Research
research-article
Automated Proofreading of Digitally Reconstructed Neural Morphology Enhances Accuracy, Scalability, and Standardization
Author information +
History +
PDF (2686KB)

Abstract

Background:

The rapid expansion of large-scale neuroscience datasets has increased the need for automated, accurate, and standardized quality control (QC). Manual proofreading of 3-dimensional neural morphology (SWC files) remains labor-intensive, error-prone, and non-scalable. We developed and evaluated a fully automated, machine-learning–driven QC pipeline to standardize neural reconstructions, detect and correct structural anomalies, and rectify dendritic labeling in pyramidal neurons.

Methods:

We developed an end-to-end, cloud-deployed pipeline for automated QC, correction, and standardization of SWC-formatted neural morphologies. The framework integrates deterministic structural normalization, topology repair, geometric correction, quantitative morphometric analysis, and graph-based dendritic relabeling within a containerized React/Flask architecture deployed on Amazon Web Services. Rule-based algorithms systematically detect, classify, and correct structural irregularities including overlapping nodes, spurious side branches, non-positive radii, disconnected components, and anomalously long parent-child connections. A graph convolutional network, trained on Sholl-derived features from 20,500 pyramidal neurons, performs dendritic relabeling. Model training employed an 80/10/10 train–validation–test split with adaptive learning-rate scheduling and distributed execution across ten runs to evaluate stability and reproducibility. The pipeline generates images of the final product and computes quantitative morphometrics using L-Measure.

Results:

All neural reconstructions were processed without manual intervention. Automated normalization and topology repair improved structural consistency and standardized neuronal morphologies for quantitative analysis and visualization while preserving topological and morphological continuity throughout the correction process. Dendritic relabeling achieved a test classification accuracy of 99.51%, calculated from 2040 correctly classified neurons out of 2050 test neurons (2040/2050 × 100 = 99.51%). The test dataset comprised a separate 10% partition of the 20,500-neuron dataset, resulting from the 80/10/10 training–validation–test split, with no overlap between the three subsets. The mean validation accuracy across ten training runs also reached 99.51% at the final epoch, with class-weighted precision of 0.978 and recall of 0.977. Validation accuracy increased rapidly during the initial epochs, exhibited a transient decrease at epoch 15 and subsequently recovered and stabilized by epoch 50. Enforcing a single apical dendritic tree per neuron improved anatomical consistency without reducing classification performance. Distributed training completed all runs in approximately 25 hours, demonstrating scalability and reproducibility for large datasets.

Conclusions:

We present an automated, cloud-scalable open-source pipeline for standardizing neural reconstructions and performing biologically consistent dendritic classification with high accuracy. The automated correction and relabeling procedures do not alter or compromise the size or unaffected morphological detail of the original SWC files, ensuring geometric fidelity and compatibility with downstream analysis tools. This open-access framework provides a robust foundation for high-throughput neural morphology curation and large-scale neuroanatomical analysis.

Graphical abstract

Keywords

computational biology / neuroanatomy / informatics / quality control / graph neural networks / cloud computing / pyramidal cells / machine learning

Cite this article

Download citation ▾
Herve Emissah, Carolina Tecuatl, Giorgio A. Ascoli. Automated Proofreading of Digitally Reconstructed Neural Morphology Enhances Accuracy, Scalability, and Standardization. Journal of Integrative Neuroscience, 2026, 25 (10) : 52273 DOI:10.31083/JIN52273

登录浏览全文

4963

注册一个新账户 忘记密码

1. Introduction

Three-dimensional digital reconstructions of neuronal and glial morphology play a central role in modern neuroscience, enabling quantitative studies of neurite architecture, branching processes, network connectivity, and circuit organization across development, disease, and species [1,2,3]. Standardized neural morphology files, commonly stored in the SWC format, support large-scale neuroinformatics resources, computational simulations, and machine-learning-driven discovery pipelines [4,5,6,7]. The public repository NeuroMorpho.Org has now aggregated hundreds of thousands of neural reconstructions contributed by laboratories worldwide, reflecting rapid increases in the scale, resolution, and heterogeneity of morphological datasets [8]. As the volume of morphological data continues to grow, ensuring processing accuracy, consistency, and reproducibility has become a critical challenge for the neuroscience community [9,10,11,12].

Manual proofreading of neuronal reconstructions remains the predominant approach for resolving tracing artifacts, enforcing format validity, pruning anatomical errors, and labeling dendritic arbors such as apical and basal trees in pyramidal cells [13,14]. However, manual intervention is time-consuming, subject to inter-annotator variability, and increasingly impractical in the era of high-throughput imaging pipelines and large-scale connectomics initiatives [15,16,17,18]. Standardization tools exist to evaluate reconstruction quality and verify SWC compliance, yet these tools still require expert intervention, fragmented workflows, or non-scalable computing environments [4,5,9,19,20]. Likewise, automated structural checks do not fully address biological plausibility concerns such as anomalous branch geometry or dendritic mis-labeling, issues that directly impact downstream biological interpretation, morphometric analyses, and computational modeling [21,22,23].

Recent advances in machine learning, high-performance computing, and cloud-based ecosystems provide an opportunity to fundamentally modernize neural morphology quality control (QC) [24]. Graph-based learning frameworks, including graph convolutional neural networks (GCNs), have demonstrated strong performance in neuron classification and structural inference tasks by leveraging the topological nature of dendritic trees [25,26,27,28,29]. Yet, despite this technological progress [30,31,32], no end-to-end automated solution currently exists to standardize SWC files, correct structural irregularities, and apply biologically consistent dendritic labeling at scale within a unified, web-accessible, and user-friendly environment.

To address this gap, we designed, implemented, deployed, and evaluated a fully automated, cloud-based QC platform that integrates existing morphology-standardization utilities, custom correction algorithms, and a GCN-based dendritic relabeling model into a scalable cloud architecture. Our system enables researchers to upload neural reconstructions, automatically detect and correct structural anomalies, enforce SWC compliance, repair biologically implausible dendritic configurations, and assign apical and basal dendrite labels with high accuracy, all with minimal user intervention. The objective of this pipeline is to support large-scale neuroinformatics workflows, with a focus on NeuroMorpho.Org, while reducing manual burden and increasing reproducibility and standardization across laboratories and datasets.

2. Materials and Methods

We developed a web-based QC platform for standardized processing, structural correction, and automated dendritic relabeling of neural reconstructions encoded in SWC format and submitted by research groups worldwide to NeuroMorpho.Org. The platform integrates a React-based front-end with a Flask back-end, containerized using Docker and deployed on Amazon Web Services (AWS), enabling scalable and reproducible automated analysis workflows. Through the web-based application programming interface (API), users upload one or more SWC files, which are stored in a dedicated Source-Version directory within the containerized processing environment.

Upon upload, the back-end verifies file presence, extension, structural validity, and admissible node types before initiating downstream processing. Invalid or malformed files are separated into quarantine folders, whereas valid reconstructions are assigned appropriate permissions and routed into the corresponding analysis pipelines. The system then executes three primary automated workflows: (i) structural standardization, (ii) long-connection detection and correction, and (iii) automated pyramidal dendritic relabeling. Each pipeline operates on the same SWC input but focuses on different aspects of morphological QC.

The first pipeline performs structural standardization to ensure consistent formatting and topology across uploaded reconstructions prior to further analysis. At the beginning of each processing run, temporary and output directories are cleared and recreated to provide a clean processing environment. Each SWC file is examined line by line to verify the expected seven-column format, valid parent-child relationships, and permitted node types. To maintain compatibility with normalization utilities and legacy datasets, certain branch-type labels are temporarily remapped during preprocessing and restored after standardization. The workflow then executes an automated sequence of normalization and verification steps designed to correct structural inconsistencies. These include removal of duplicate spatial points, correction of overlapping nodes, pruning of included side branches, and repair of non-positive radius values. Intermediate diagnostic codes are generated and logged to identify the types of irregularities encountered during processing. Standardized files, processing logs, and summaries are written to dedicated output directories. These outputs preserve both the corrected reconstruction and detailed records of the structural issues identified and resolved during the standardization procedure, ensuring reproducibility and traceability of the normalization process.

The second pipeline addresses long connections and disconnected subtrees, which are common artifacts in digital neural reconstructions. After standardization, each SWC file is converted into a directed graph representation using NetworkX (version 3.1; https://networkx.org/) [33], where nodes correspond to morphological points and edges represent parent–child connectivity. For each parent–child pair, the Euclidean distance between nodes is calculated. The distribution of connection lengths within a reconstruction is then summarized using mean and standard deviation. Edges whose lengths exceed a user-defined multiple of the standard deviation (6 by default) are considered anomalously long connections. When such edges are detected, the corresponding parent–child relationships are removed and the connectivity of the graph is updated. Following removal of anomalous edges, the pipeline identifies the soma-containing main tree and any disconnected components. Detached subtrees are evaluated relative to the soma, and candidate reconnection points are identified based on spatial proximity and graph topology. If a detached component lies within an adaptive threshold distance, it is automatically reconnected to the main arbor. The process iterates until no disconnected tree remains or a predefined iteration limit is reached. For each reconstruction, the system records statistics including the mean connection length, standard deviation, connection threshold, number of long edges detected, number of edges removed, and number of nodes or subtrees reconnected. These metrics are stored in summaries and control files, enabling detailed auditing of the correction process.

The third pipeline performs automated assignment of pyramidal dendritic labels, distinguishing apical and basal trees within reconstructed neurons. Each SWC file is parsed into a directed morphology graph in which nodes store spatial coordinates, radius values, and parent–child relationships. The soma is identified as the root node, and the arbor is decomposed into subtrees originating from the soma’s direct children. The soma serves as the anatomical root for graph traversal and dendritic tree extraction and is included in the graph representation to preserve connectivity between the soma and the neuronal arbor. However, the pipeline does not reconstruct, modify, or evaluate the detailed three-dimensional geometry of the soma. Instead, the original soma representation encoded in the input SWC file is preserved throughout processing, while all automated standardization and correction procedures are applied exclusively to the branched neuronal arbor. This design accommodates the simplified or format-dependent soma representations commonly found in SWC files [5,6] while avoiding the introduction of artificial soma geometry. For each candidate subtree, a set of morphology descriptors is computed to characterize its structural and spatial properties. These descriptors include node count, number of bifurcations, maximum Euclidean distance from the soma, maximum root-to-tip path length, total arbor length, Sholl-derived radial complexity, and principal spatial axis orientation. Using these descriptors, candidate dendritic trees are evaluated to determine the most likely apical dendrite, while the remaining eligible trees are classified as basal. Small unbranched stubs and non-dendritic components (e.g., axon) are excluded from the apical candidate set. In addition to the rule-based morphology evaluation, a neural classifier implemented in PyTorch [34] was used to learn tree-level dendritic identity from the extracted morphology features. The model consists of a compact multilayer neural architecture that accepts a feature vector representing each tree and produces a three-class prediction corresponding to apical, basal, or other (additional details provided in Supplementary Material). For model development, a dataset of 20,500 pyramidal neurons from NeuroMorpho.Org was randomly divided into training, validation, and testing subsets (80/10/10). Training was performed over multiple cycles using the Adam optimizer [35] with adaptive learning-rate scheduling based on validation loss. To accelerate processing, computation was distributed across multiple processes using Message Passing Interface (MPI), allowing parallel parsing of SWC files, feature extraction, and model evaluation. Model performance was assessed using file-level accuracy together with weighted precision, recall, F1-score, and cross-entropy loss.

To support visual verification of neural reconstruction corrections, the pipeline was augmented with an automated Portable Network Graphics (PNG) rendering workflow, which converted the processed SWC files into images stored alongside the associated log reports.

The entire system, including the web interface, back-end processing modules, morphology correction algorithms, neural classification model, and visualization tools, was containerized using Docker and deployed on AWS infrastructure. Centralized logging captured all processing stages, including standardization, structural correction, and dendritic relabeling, while the web interface provided real-time feedback on processing status. This architecture enabled scalable, automated, and reproducible quality control of large neuronal morphology datasets.

3. Results

We developed an end-to-end automated quality-control, correction, and standardization framework for SWC-formatted neural morphology reconstructions (Fig. 1). The platform exposes a web-based API that initiates a fully containerized processing pipeline, integrating deterministic structural proofreading, automated normalization, topology repair, geometric correction, morphometric analysis, and machine-learning–based dendritic relabeling within a unified cloud-deployed computational environment.

Users interact with a React-based front-end to upload SWC files (Fig. 1A). The files are routed through a Flask-based back-end that orchestrates the standardization workflows within isolated Docker containers deployed on AWS (Fig. 1B). In addition to native SWC inputs, other morphology file formats can be incorporated following conversion through xyz2swc [6], which is also accessible via API, enabling compatibility with heterogeneous reconstruction platforms. Upon ingestion, SWC files undergo automated structural validation and formatting using established computational neuroanatomy tools, including L-Measure [4], StdSwc [5], and scripts developed as part of the NeuroMorpho.Org ingestion process [8]. These programs detect geometric and topological irregularities prior to normalization. Identified anomalies, including overlapping nodes, duplicate points, non-positive radii, spurious side branches, disconnected components, and anomalous parent–child relationships, are encoded using conventional irregularity codes [5] and logged for traceability. The correction routines are then executed programmatically, eliminating the need for manual intervention. Long-connection anomalies are identified through Euclidean distance computation within the neural graph representation. Connections exceeding statistically defined thresholds are removed, producing isolated subtrees that are subsequently evaluated and iteratively reconnected based on spatial proximity constraints, ensuring global structural coherence. Following this automated topology repair, standardized reconstructions undergo quantitative morphometric analysis. Compartment-specific measurements are exported as structured datasets, and corrected SWC files are rendered as PNG visualizations for rapid inspection. Final outputs, including standardized morphologies, correction logs, morphometric tables, and visualization files, are packaged for user download. Strict directory isolation, centralized logging, and containerized execution ensure reproducible, transparent, and fully automated quality control of large-scale neuronal morphology datasets while formalizing expert curation logic.

As shown in Fig. 1, the automation framework comprises three processing pipelines that differ in scope and downstream outputs. The primary (blue) SWC standardization pipeline and the secondary (red) AutoConnect pipeline share a common processing stage, designated SWC Preprocessing and Structural Irregularity Correction, which encompasses SWC normalization, irregularity logging, overlapping-point removal, sidebranch deletion, and radius-irregularity handling. Following this shared stage, the primary pipeline computes quantitative measurements and generates PNG renderings, thus serving as the main workflow for ingestion of new data into NeuroMorpho.Org. In contrast, the secondary (red) pipeline performs the same standardization steps while also detecting and removing long-connection artifacts; however, this pipeline does not generate morphometric measurements or visualization outputs. The tertiary pipeline is restricted to dendritic labeling and PNG generation. Therefore, morphometric measurements are produced exclusively within the primary pipeline.

Overlapping points, flagged with code 2.6 in the Standardization Log, arise when two or more nodes occupy identical spatial coordinates, typically due to tracing artifacts or redundant sampling during reconstruction (Fig. 2). Although subtle, such overlaps can distort parent–child relationships and compromise morphometric analyses and electrophysiological simulations. These anomalies are extremely challenging to identify and remove by manual inspection and editing. By systematically detecting and fixing overlapping points at the outset, the framework ensures the integrity and correctness of downstream applications.

Spurious side branches, flagged in the Standardization Log with code 2.7, typically arise when tracing software inadvertently embeds a short collateral stub fully encased within the parent dendritic shaft, creating artifactual skeleton bifurcations that do not reflect true neuronal anatomy (Fig. 3). Such irregularities can distort branching statistics by inflating bifurcation counts and mislead downstream classification models. These artifacts are also difficult to detect visually, but the automated framework resolves them seamlessly through internal graph-based pruning routines without operator intervention.

Non-positive radii, flagged in the Standardization Log with code 4.1, occur when a node is assigned zero or negative thickness during reconstruction, an obvious physical impossibility often produced by data export inconsistencies (Fig. 4). Although seemingly minor, such anomalies can invalidate surface area and occupied volume measurements, in addition to compromising computational simulations. Previously, correcting these inconsistencies required manually executing external utilities such as stdswc.java [5], introducing additional steps and computing requirements. The automated framework programmatically changes these values to match the radius of the parent node, ensuring biologically valid thickness for all segments prior to downstream analysis.

The first pipeline (SWC Standardization in Fig. 1B) integrates these corrections into a unified framework. Side branches (11% of processed archives) and overlapping points (10% of processed archives) represent two of the most frequently encountered irregularities, consistently ranking among the top five anomaly categories across tracing systems [8]. In the previous NeuroMorpho.Org processing workflow, files were processed sequentially—standardization, overlapping-point removal, spurious side-branch pruning, morphometric computation, and PNG generation—often requiring manual transfers between separate folders at each stage [36]. This fragmented process increased processing time and user interaction (average processing time 62.5 ± 53 min, n = 45), introducing labor cost inefficiency and risks of operator error. Consolidating these steps into a single automated pipeline substantially reduces human intervention and eliminates file-handling overhead, decreasing user interaction time by at least 30 times while ensuring consistent, reproducible processing across large datasets.

Long connections represent one of the most structurally disruptive reconstruction artifacts. These errors occur when tracing inaccuracies produce incorrect parent–child relationships between nodes that span implausibly large distances not reflective of natural arbor continuity (Fig. 5). Such edges distort neural geometry, compromising morphometric measurements and downstream classification. To address this issue, the application automatically computes the distribution of edge lengths for every reconstruction based on the Euclidean distances between connected nodes. Connections exceeding a user-defined statistical threshold (with default value of six times the standard deviation of inter-node distances) are deemed erroneous and removed, followed by amputation of isolated nodes that are not part of the soma. Because pruning these anomalies fragments the neural arbor, the pipeline then enacts a stitching procedure that identifies the main tree containing the soma and evaluates isolated subtrees based on spatial proximity. Subtrees located within a biologically plausible distance from the soma, main arbor, or each other are reconnected by updating parent–child relationships. This reconnection process is performed iteratively using adaptive thresholding to ensure that all disconnected components are progressively joined while preserving the intrinsic morphological integrity of the original reconstruction (Fig. 5). Throughout this process, quantitative metrics (mean edge distance, standard deviation, number of long connections detected, and number of isolated nodes) are recorded for each file, ensuring that topology repair is not only automated but also transparent and auditable.

Consistent with prior reports [8], long connections represented the most prevalent structural anomaly, occurring in 15.7% of processed archives. Before the introduction of this pipeline, correction of these issues required manual editing by a human operator using tools such as Vaa3D [19], NeuTube [22], or TREES [37], typically requiring several minutes for each long connection. In this case, automation has a large impact in terms of efficiency and scalability. In a sample of 264 FlyWire reconstructions processed through the long-connection pipeline, an average of 27.1 ± 45.5 long connections per file were corrected in 2.5 ± 25.8 seconds. Importantly, overlapping points were also resolved concurrently (1.9 ± 2.6 per file), meaning that reconstructions emerged from the pipeline fully prepared for morphometric measurement and visualization without additional preprocessing. Tasks that previously required 2 minutes to 1 hour of manual curation per file were thus reduced to seconds through deterministic automation. The framework also enables correction of large-scale reconstructions without compromising morphological fidelity. Manual editing with older computing platforms often requires resampling of today’s larger-sized data files to reduce node density, thereby risking loss of geometric detail. The new automated approach eliminates the need for resampling. For example, four large reconstructions from the Peng archive containing long-connection artifacts were corrected in an average of 39.6 ± 21.4 minutes of computing time, during which 2476.0 ± 606 long connections and 1380.0 ± 414.7 overlapping points were removed per file while preserving the original structural resolution. In these cases, the user interaction time was less than 5 minutes for data upload, download, and visual confirmation of accurate processing. Together, these results demonstrate that automated long-connection correction not only accelerates processing but also preserves structural integrity, enabling high-fidelity reconstruction repair at scales previously impractical for manual curation.

To further evaluate structural preservation following automated correction, we performed quantitative morphometric validation by comparing original and standardized reconstructions over 500 randomly sampled files from NeuroMorpho.Org capturing a broad diversity of independent labs, animal species, brain regions, cell types, experimental methods, and reconstruction systems. Multiple complementary statistical measures demonstrated strong agreement between pre- and post-standardization morphometric properties. Pearson correlation coefficients and intraclass correlation coefficients (ICC) demonstrated strong agreement for representative major structural measurements, including volume (r = 0.9999; ICC = 0.9999), bifurcation counts (r = 0.9982; ICC = 0.9982), branch counts (r = 0.9984; ICC = 0.9984), and depth (r = 0.9954; ICC = 0.9739). Mean percentage differences remained low for most features, including 0.57% for volume, 1.12% for bifurcation counts, and 0.85% for branch counts, while paired statistical testing demonstrated no statistically significant differences between the original and standardized measurements for the above-mentioned morphometric parameters. All analysis results are available in the Supplementary Material. Collectively, these findings support the ability of the proposed framework to preserve the overall morphometric characteristics of neuronal reconstructions while improving structural consistency and reconstruction validity.

Following structural correction and topology restoration, the next critical step is ensuring biologically consistent dendritic labeling. In pyramidal neurons, the presence of a (typically single) apical dendrite stemming from the soma in addition to (generally multiple) basal trees is a defining anatomical feature; however, formatting artifacts and non-specific labeling frequently disregard this distinction. To address this challenge, we applied a graph convolutional network (GCN) trained on 20,500 curated pyramidal neuron reconstructions to identify and correctly tag the apical tree within the overall dendritic arborization (Fig. 6).

We trained the model over ten independent runs to assess stability and reproducibility, and generalization performance. Prior to dataset partitioning, the complete dataset was randomly shuffled using np.random.shuffle(all_files) to reduce ordering bias before generating the 80/10/10 training, validation, and test splits. The mean validation accuracy across the ten training runs, calculated by averaging the final-epoch validation accuracies from all runs, was 99.51%. Validation accuracy increased rapidly during the initial training epochs, exhibited a transient fluctuation at epoch 15, and subsequently recovered and stabilized at 99.51% by the final epoch. This convergence pattern demonstrates consistent validation performance across the training runs. Evaluation on the separate test dataset, comprising 10% of the original 20,500 neurons, with 2040 of 2050 neurons correctly classified (2040/2050 × 100 = 99.5122%), also yielded a classification accuracy of 99.51%. The close agreement between validation and test accuracies indicates consistent classification performance and supports the model’s ability to generalize to unseen neuronal morphologies. Fig. 6 illustrates the mean validation accuracy across training epochs, with the shaded region representing ±1 standard deviation, together with the independently calculated test-set accuracy. At the class level, weighted precision, recall, and F1-scores were 0.978, 0.977, and 0.977, respectively, reflecting balanced performance despite dataset imbalance. In addition to classification accuracy, the evaluation framework was extended to include confidence scoring and uncertainty quantification. Across test runs, the model achieved a mean confidence score of 0.8680 and a corresponding uncertainty score of 0.1320, providing an additional measure of prediction reliability. Training employed adaptive learning-rate scheduling to ensure stable convergence. To increase biological fidelity, the framework enforced the presence of exactly one apical tree per neuron. Incorporating this constraint improved anatomical consistency without compromising classification accuracy, aligning computational predictions with established cellular morphology. All per-neuron predictions, node sequences, and evaluation metrics are provided as CSV files in the Supplementary Material. All ten training runs were completed in approximately 25 hours, demonstrating scalability to large morphological datasets. Collectively, these findings indicate that the GCN-based relabeling module achieves highly accurate dendritic classification while preserving biologically grounded constraints and maintaining reproducible performance across independent training runs.

To further evaluate model generalizability, we performed an independent cross-dataset validation using newly released neuronal reconstructions that were unavailable during model development. Specifically, we queried NeuroMorpho.Org for all pyramidal neurons containing an apical dendrite that were added during the peer-review period following the original manuscript submission. This search identified 341 previously unseen neuronal reconstructions contributed by 17 independent laboratories that were not represented in the training, validation, or test datasets used to develop the graph-based dendritic relabeling model. To perform a blinded evaluation, all apical dendrite annotations were removed before inference, and the previously trained model was tasked with automatically identifying the apical dendrite in each reconstruction without re-training. Of the 341 neurons, 336 were correctly classified, corresponding to an independent cross-dataset accuracy of 98.53%. These findings demonstrate that the proposed framework maintains high classification performance on newly acquired external data originating from independent laboratories, supporting the robustness and generalizability of the automated dendritic relabeling approach beyond the original training and evaluation datasets.

4. Discussion

The present work demonstrates that automated, end-to-end quality control and dendritic relabeling for neural reconstructions is both feasible and highly reliable at scale. By integrating standardized morphology-processing tools with a deep graph-based model and a cloud-native orchestration framework, we bridge a longstanding gap between manual curation practices and the computational demands of modern neuroinformatics pipelines.

A key strength of this system is the combination of deterministic structural correction algorithms with probabilistic classification for biological consistency. Traditional standardization utilities efficiently identify and repair syntactic or geometric irregularities, yet require substantial manual oversight and fragmented execution environments. In contrast, the current architecture centralizes these steps, tracks each operation, and secures reproducibility through containerization, directory isolation, and automated logging. This integration reduces operator burden and minimizes human variability, addressing a critical bottleneck when managing large or continuously updated neural data collections. The importance of scalable and automated processing is further underscored by the emergence of massive connectomics and neuroanatomical datasets containing millions of reconstructed neuronal segments and synaptic connections, such as those produced by the FlyWire project [38], the Brain Initiative Cell Census Network [39], the MICrONS program [40], and other recent large-scale reconstruction efforts, which collectively highlight the need for reliable automated pipelines capable of handling increasingly complex and high-volume morphology datasets [41,42,43,44].

Although the current validation demonstrated strong morphometric agreement between original and standardized reconstructions, establishing that the automated corrections fully reproduce biological ground truth would require broader benchmarking against independently generated expert-curated or manually proofread reconstructions across diverse datasets. Nevertheless, the statistical consistency observed across multiple complementary morphometric measures supports the use of the proposed framework for improving reconstruction consistency while preserving key morphometric characteristics relevant to downstream quantitative analyses. Future work will further strengthen this validation through expanded expert-annotated benchmarking and larger-scale comparative analyses [45,46].

The reliability of the graph convolutional network in identifying biologically plausible dendritic labeling also represents a meaningful advance. Pyramidal neurons, with their characteristic apical dendrite morphologically and biophysically distinct from the basal trees, represent the most abundant excitatory neuronal class in the mammalian cerebral cortex of which they constitute the sole long-range projecting output across multiple species [47,48,49,50]. This biological prominence is reflected in NeuroMorpho.Org, where pyramidal neurons account for nearly one-fifth of the entire database content. The distinction between apical and basal trees is functionally critical, as these dendritic domains receive different afferent inputs and support specialized computational roles [51,52,53]. Basal dendrites primarily integrate local intracortical and feedforward inputs, whereas apical dendrites are preferentially targeted by long-range, feedback, and modulatory projections, contributing to hierarchical processing, contextual modulation, and learning-related plasticity [51,52]. Moreover, basal and apical trees follow specialized developmental cues [23], and the axon can originate from basal, but not apical dendrites [54]. Accurate identification of these compartments is therefore essential for faithful morphometric analysis, biologically grounded circuit modeling, and interpretation of domain-specific synaptic integration. By enabling automated and reliable apical–basal delineation at scale, our framework supports large-scale studies of excitatory neuron structure–function relationships across species and brain regions. Ensuring accurate and automated identification of apical branches enables more faithful downstream computational simulations, morphometric comparisons, and circuit analyses.

The independent cross-dataset validation of dendritic relabeling demonstrated strong generalization to newly released reconstructions originating from previously unseen sources. These findings provide additional evidence that the proposed approach generalizes beyond the original training data and is suitable for deployment within continuously expanding neuroinformatics repositories. Nevertheless, additional validation remains warranted. Future studies should extend this evaluation to broader experimental methods, additional morphology repositories, diverse reconstruction methodologies, imaging modalities, and species. Comparative benchmarking against expert-curated reconstructions and alternative machine learning approaches will further establish the robustness and generalizability of the proposed framework.

While the performance outcomes are strong, opportunities also remain for continued development. Expanding the feature space beyond Sholl-based metrics may improve generalization to additional structural domains (e.g., axons) and neuron types [55]. Incorporating unsupervised components or self-supervised learning may further enhance robustness in settings with incomplete or noisy training labels.

Importantly, the cloud-oriented design ensures that the system is not limited to a single laboratory or compute setting. The use of Docker and AWS allows consistent deployment across institutions, enabling scalable and collaborative workflows. Such portability paves the way for community-wide implementation in shared data repositories, imaging facilities, and automated reconstruction pipelines, ultimately enhancing transparency, reproducibility, throughput, and fair credit assignment of morphological datasets worldwide [56]. Overall, this platform provides a scalable and reproducible foundation for the next generation of neuron morphology curation. This capacity will be increasingly critical as emerging imaging technologies and connectomics programs continue to accelerate data acquisition far beyond the limits of manual review. The system represents a practical step toward fully automated morphological curation and sets the stage for broader integration of artificial intelligence in structural neuroscience workflows.

Limitations

The current framework operates on neural reconstructions represented in the SWC format and does not support other reconstruction formats or image-based representations, although it can be pipelined with the recently introduced xyz2swc converter [6]. The soma serves solely as the anatomical root for graph traversal and dendritic tree extraction; automated correction and standardization are applied exclusively to the branched neuronal arbor, while the original soma representation is left unchanged. In addition, the graph convolutional network was trained on pyramidal neuron datasets containing a single apical dendrite. Tackling the relatively rarer cases of pyramidal cells with multiple apical dendrites will require more extensive training with specialized datasets, and possibly a modification of the machine learning module.

Although the proposed framework quantitatively preserves neuronal morphology while correcting structural inconsistencies, its performance was not evaluated against expert manual proofreading or an independently curated biological ground-truth dataset. Consequently, the automated corrections should be interpreted as improvements in structural consistency and data quality rather than definitive validation of biological accuracy. Future work may include systematic comparisons with expert-curated reconstructions to further assess the biological fidelity of the automated corrections. Moreover, this study primarily focused on the needs, opportunities, and datasets of NeuroMorpho.Org. Future extensions could adapt and expand this framework to additional more diverse data sourced and training datasets to further enhance robustness and broaden applicability across the neuroscience community.

5. Conclusions

This study introduces a fully automated, cloud-enabled pipeline for the standardization, correction, and biological refinement of neuronal morphology reconstructions. By unifying established morphology-processing tools, reproducible containerized infrastructure, and a high-accuracy graph convolutional network for dendritic relabeling, the system eliminates key manual bottlenecks in SWC data curation and ensures consistent, scalable processing across large datasets. This framework provides a practical foundation for future automated neuroinformatics infrastructures, facilitating rapid, reproducible, and standardized preparation of morphological data for downstream computational analysis, atlas construction, and large-scale neuroscience initiatives.

References

[1]

MEIJERING E. Neuron tracing in perspective[J]. Cytometry. Part a: the Journal of the International Society for Analytical Cytology, 2010, 77: 693-704. DOI: 10.1002/cyto.a.20895.

[2]

TRIPODI M, ARBER S. Regulation of motor circuit assembly by spatial and temporal mechanisms[J]. Current Opinion in Neurobiology, 2012, 22: 615-623. DOI: 10.1016/j.conb.2012.02.011.

[3]

COLOMBO G, CUBERO RJA, KANARI L, et al. A tool for mapping microglial morphology, morphOMICs, reveals brain-region and sex-dependent phenotypes[J]. Nature Neuroscience, 2022, 25: 1379-1393. DOI: 10.1038/s41593-022-01167-6.

[4]

SCORCIONI R, POLAVARAM S, ASCOLI GA. L-Measure: a web-accessible tool for the analysis, comparison and search of digital reconstructions of neuronal morphologies[J]. Nature Protocols, 2008, 3: 866-876. DOI: 10.1038/nprot.2008.51.

[5]

HALAVI M, POLAVARAM S, DONOHUE DE, et al. NeuroMorpho.Org implementation of digital neuroscience: dense coverage and integration with the NIF[J]. Neuroinformatics, 2008, 6: 241-252. DOI: 10.1007/s12021-008-9030-1.

[6]

MEHTA K, LJUNGQUIST B, OGDEN J, et al. Online conversion of reconstructed neural morphologies into standardized SWC format[J]. Nature Communications, 2023, 14: 7429. DOI: 10.1038/s41467-023-42931-x.

[7]

DONOHUE DE, ASCOLI GA. Automated reconstruction of neuronal morphology: an overview[J]. Brain Research Reviews, 2011, 67: 94-102. DOI: 10.1016/j.brainresrev.2010.11.003.

[8]

TECUATL C, LJUNGQUIST B, ASCOLI GA. Accelerating the continuous community sharing of digital neuromorphology data[J]. FASEB BioAdvances, 2024, 6: 207-221. DOI: 10.1096/fba.2024-00048.

[9]

O'HALLORAN DM. Module for SWC neuron morphology file validation and correction enabled for high throughput batch processing[J]. PloS One, 2020, 15: e0228091. DOI: 10.1371/journal.pone.0228091.

[10]

DING L, ZHAO X, GUO S, et al. SNAP: a structure-based neuron morphology reconstruction automatic pruning pipeline[J]. Frontiers in Neuroinformatics, 2023, 17: 1174049. DOI: 10.3389/fninf.2023.1174049.

[11]

MANUBENS-GIL L, ZHOU Z, CHEN H, et al. BigNeuron: a resource to benchmark and predict performance of algorithms for automated tracing of neurons in light microscopy datasets[J]. Nature Methods, 2023, 20: 824-835. DOI: 10.1038/s41592-023-01848-5.

[12]

LIU Y, WANG G, ASCOLI GA, et al. Neuron tracing from light microscopy images: automation, deep learning and bench testing[J]. Bioinformatics (Oxford, England), 2022, 38: 5329-5339. DOI: 10.1093/bioinformatics/btac712.

[13]

PAREKH R, ASCOLI GA. Quantitative investigations of axonal and dendritic arbors: development, structure, function, and pathology[J]. The Neuroscientist: a Review Journal Bringing Neurobiology, Neurology and Psychiatry, 2015, 21: 241-254. DOI: 10.1177/1073858414540216.

[14]

LI Y, JIANG S, DING L, et al. NRRS: a re-tracing strategy to refine neuron reconstruction[J]. Bioinformatics Advances, 2023, 3: vbad054. DOI: 10.1093/bioadv/vbad054.

[15]

GOU L, WANG Y, GAO L, et al. Gapr for large-scale collaborative single-neuron reconstruction[J]. Nature Methods, 2024, 21: 1926-1935. DOI: 10.1038/s41592-024-02345-z.

[16]

PENG H, LONG F, ZHAO T, et al. Proof-editing is the bottleneck of 3D neuron reconstruction: the problem and solutions[J]. Neuroinformatics, 2011, 9: 103-105. DOI: 10.1007/s12021-010-9090-x.

[17]

QUAN T, ZHOU H, LI J, et al. NeuroGPS-Tree: automatic reconstruction of large-scale neuronal populations with dense neurites[J]. Nature Methods, 2016, 13: 51-54. DOI: 10.1038/nmeth.3662.

[18]

ZHANG L, HUANG L, YUAN Z, et al. Collaborative augmented reconstruction of 3D neuron morphology in mouse and human brains[J]. Nature Methods, 2024, 21: 1936-1946. DOI: 10.1038/s41592-024-02401-8.

[19]

PENG H, BRIA A, ZHOU Z, et al. Extensible visualization and analysis for multidimensional images using Vaa3D[J]. Nature Protocols, 2014, 9: 193-208. DOI: 10.1038/nprot.2014.011.

[20]

VELASCO I, GARCIA-CANTERO JJ, BRITO JP, et al. NeuroEditor: a tool to edit and visualize neuronal morphologies[J]. Frontiers in Neuroanatomy, 2024, 18: 1342762. DOI: 10.3389/fnana.2024.1342762.

[21]

ZHOU Z, KUO HC, PENG H, et al. DeepNeuron: an open deep learning toolbox for neuron tracing[J]. Brain Informatics, 2018, 5: 3. DOI: 10.1186/s40708-018-0081-2.

[22]

FENG L, ZHAO T, KIM J. neuTube 1.0: A New Design for Efficient Neuron Reconstruction Software Based on the SWC Format[J]. eneuro, 2015, 2: ENEURO.0049-14.2014. DOI: 10.1523/ENEURO.0049-14.2014.

[23]

KANARI L, RAMASWAMY S, SHI Y, et al. Objective Morphological Classification of Neocortical Pyramidal Cells[J]. Cerebral Cortex, 2019, 29: 1719-1735. DOI: 10.1093/cercor/bhy339.

[24]

GLIKO O, MALLORY M, DALLEY R, et al. High-throughput analysis of dendrite and axonal arbors reveals transcriptomic correlates of neuroanatomy[J]. Nature Communications, 2024, 15: 6337. DOI: 10.1038/s41467-024-50728-9.

[25]

VECCHI JT, MULLAN S, LOPEZ JA, et al. NeuriteNet: A convolutional neural network for assessing morphological parameters of neurite growth[J]. Journal of Neuroscience Methods, 2021, 363: 109349. DOI: 10.1016/j.jneumeth.2021.109349.

[26]

HE F, LI G, SONG H. Morphological classification of neurons based on Sugeno fuzzy integration and multi-classifier fusion[J]. Scientific Reports, 2024, 14: 16003. DOI: 10.1038/s41598-024-66797-1.

[27]

FAN Y, LI Y, ZHONG Y, et al. Learning meaningful representation of single-neuron morphology via large-scale pre-training[J]. Bioinformatics (Oxford, England), 2024, 40: ii128-ii136. DOI: 10.1093/bioinformatics/btae395.

[28]

WU Z, PAN S, CHEN F, et al. A Comprehensive Survey on Graph Neural Networks[J]. IEEE Transactions on Neural Networks and Learning Systems, 2021, 32: 4-24. DOI: 10.1109/TNNLS.2020.2978386.

[29]

JIANG Y, TIAN H, ZHANG Q. Contrastive learning-driven framework for neuron morphology classification[J]. Scientific Reports, 2025, 15: 27752. DOI: 10.1038/s41598-025-11842-w.

[30]

JANUSZEWSKI M, KORNFELD J, LI PH, et al. High-precision automated reconstruction of neurons with flood-filling networks[J]. Nature Methods, 2018, 15: 605-610. DOI: 10.1038/s41592-018-0049-4.

[31]

SCHUBERT PJ, DORKENWALD S, JANUSZEWSKI M, et al. Learning cellular morphology with neural networks[J]. Nature Communications, 2019, 10: 2736. DOI: 10.1038/s41467-019-10836-3.

[32]

JOYCE J, CHALAVADI R, CHAN J, et al. A novel semi-automated proofreading and mesh error detection pipeline for neuron extension[J]. bioRxiv, 2023. DOI: 10.1101/2023.10.20.563359.

[33]

HAGBERG AA, SCHULT DA, SWART PJ. Exploring Network Structure, Dynamics, and Function using NetworkX[C]. 2008: 11-16. DOI: 10.25080/TCWV9851.

[34]

PASZKE A, GROSS S, MASSA F, et al. PyTorch: An imperative style, high-performance deep learning library[J]. arXiv, 2019. DOI: 10.48550/arXiv.1912.01703.

[35]

KINGMA DP, BA J J. Adam: A Method for Stochastic Optimization[C]. 2015. DOI: 10.48550/arXiv.1412.6980.

[36]

ANDERSON KR, HARRIS JA, NG L, et al. Highlights from the Era of Open Source Web-Based Tools[J]. The Journal of Neuroscience: the Official Journal of the Society for Neuroscience, 2021, 41: 927-936. DOI: 10.1523/JNEUROSCI.1657-20.2020.

[37]

CUNTZ H, JAEGER D, JUNG R. The TREES Toolbox – Code for Neuronal Branching[M]. New York, NY: Springer, 2013. DOI: 10.1007/978-1-4614-7320-6_793-2.

[38]

DORKENWALD S, MCKELLAR CE, MACRINA T, et al. FlyWire: online community for whole-brain connectomics[J]. Nature Methods, 2022, 19: 119-128. DOI: 10.1038/s41592-021-01330-0.

[39]

YAO Z, VAN VELTHOVEN CTJ, KUNST M, et al. A high-resolution transcriptomic and spatial atlas of cell types in the whole mouse brain[J]. Nature, 2023, 624: 317-332. DOI: 10.1038/s41586-023-06812-z.

[40]

TURNER NL, MACRINA T, BAE JA, et al. Reconstruction of neocortex: Organelles, compartments, cells, circuits, and activity[J]. Cell, 2022, 185: 1082-1100.e24. DOI: 10.1016/j.cell.2022.01.023.

[41]

MICrONS Consortium. Functional connectomics spanning multiple areas of mouse visual cortex[J]. Nature, 2025, 640: 435-447. DOI: 10.1038/s41586-025-08790-w.

[42]

DORKENWALD S, MATSLIAH A, STERLING AR, et al. Neuronal wiring diagram of an adult brain[J]. Nature, 2024, 634: 124-138. DOI: 10.1038/s41586-024-07558-y.

[43]

JIANG S, WANG L, YUN Z, et al. NeuroXiv: AI-powered open databasing and dynamic mining of brain-wide neuron morphometry[J]. Nature Methods, 2025, 22: 1195-1198. DOI: 10.1038/s41592-025-02687-2.

[44]

HAWRYLYCZ M, MARTONE ME, ASCOLI GA, et al. A guide to the BRAIN Initiative Cell Census Network data ecosystem[J]. PLoS Biology, 2023, 21: e3002133. DOI: 10.1371/journal.pbio.3002133.

[45]

BROWN KM, BARRIONUEVO G, CANTY AJ, et al. The DIADEM data sets: representative light microscopy images of neuronal morphology to advance automation of digital reconstructions[J]. Neuroinformatics, 2011, 9: 143-157. DOI: 10.1007/s12021-010-9095-5.

[46]

LOBATO F, LEITE J, JACOB A, et al. In silico neuronal morphology classification: A systematic review[J]. Neuroscience, 2026, 601: 83-103. DOI: 10.1016/j.neuroscience.2026.02.044.

[47]

DEFELIPE J, FARIÑAS I. The pyramidal neuron of the cerebral cortex: morphological and chemical characteristics of the synaptic inputs[J]. Progress in Neurobiology, 1992, 39: 563-607. DOI: 10.1016/0301-0082(92)90015-7.

[48]

SPRUSTON N. Pyramidal neurons: dendritic structure and synaptic integration[J]. Nature Reviews. Neuroscience, 2008, 9: 206-221. DOI: 10.1038/nrn2286.

[49]

MIGLIORE M, SHEPHERD GM. Emerging rules for the distributions of active dendritic conductances[J]. Nature Reviews. Neuroscience, 2002, 3: 362-370. DOI: 10.1038/nrn810.

[50]

LAZAREWICZ MT, MIGLIORE M, ASCOLI GA. A new bursting model of CA3 pyramidal cell physiology suggests multiple locations for spike initiation[J]. Bio Systems, 2002, 67: 129-137. DOI: 10.1016/s0303-2647(02)00071-0.

[51]

LARKUM ME, ZHU JJ, SAKMANN B. A new cellular mechanism for coupling inputs arriving at different cortical layers[J]. Nature, 1999, 398: 338-341. DOI: 10.1038/18686.

[52]

LARKUM M. A cellular mechanism for cortical associations: an organizing principle for the cerebral cortex[J]. Trends in Neurosciences, 2013, 36: 141-151. DOI: 10.1016/j.tins.2012.11.006.

[53]

STUART GJ, SPRUSTON N. Dendritic integration: 60 years of progress[J]. Nature Neuroscience, 2015, 18: 1713-1721. DOI: 10.1038/nn.4157.

[54]

HODAPP A, KAISER ME, THOME C, et al. Dendritic axon origin enables information gating by perisomatic inhibition in pyramidal neurons[J]. Science (New York, N.Y.), 2022, 377: 1448-1452. DOI: 10.1126/science.abj1861.

[55]

SU CZ, CHOU KT, HUANG HP, et al. Identification of Neuronal Polarity by Node-Based Machine Learning[J]. Neuroinformatics, 2021, 19: 669-684. DOI: 10.1007/s12021-021-09513-y.

[56]

PUEBLA I, ASCOLI GA, BLUME J, et al. Ten simple rules for recognizing data and software contributions in hiring, promotion, and tenure[J]. PLoS Computational Biology, 2024, 20: e1012296. DOI: 10.1371/journal.pcbi.1012296.

Funding

NIH(R37NS39600)

NSF(2018631)

PDF (2686KB)

Supplementary files

1757-448X-25-10-52273-s1

0

Accesses

0

Citation

Detail

Sections
Recommended

/

〈 〉