Introduction

The neuromuscular junction (NMJ) is the peripheral synapse formed by the (a) nerve terminal of a motor neuron, (b) motor endplate of a muscle fibre and (c) ensheathing terminal Schwann cells1. In health, NMJs are dynamic structures with constant remodelling, and continuous innervation/denervation1,2. A permanent morphological change in the NMJ may precede an irreversible denervation process, thought to be the earliest sign of degeneration in multiple human neuromuscular disorders, as well as part of the natural aging process3,4,5,6,7,8,9,10,11,12.

Amyotrophic lateral sclerosis (ALS) and Charcot-Marie-Tooth (CMT) disease are devastating neuromuscular disorders. ALS is characterised by progressive degeneration of motor neurons in the brain and spinal cord, leading to skeletal muscle wasting and ultimately death within 2–5 years post symptom onset13. Mutations in at least 30 genes, including SOD1, FUS, and TARDBP, cause ALS14,15,16,17,18. CMT is the most common inherited neurological condition, resulting from mutations in > 100 genes, and represents a diverse group of neuropathies affecting peripheral motor and sensory nerves19,20. CMT type 2D (CMT2D) is a subtype caused by mutations in the GARS gene21.

Although NMJ pathology is well-known in mouse models of ALS and CMT2D6,7,10,22,23,24,25,26, it is unknown whether pre- and post-synapses degenerate synchronously and which are the earliest structural changes. ALS and CMT2D are distinct diseases, but the underlying peripheral pathology in the neuromuscular system can be studied using similar approaches.

NMJs in mice are examined routinely by manual or automatic methods27,28,29. The manual method entails visual assessment of innervation status (i.e. ‘fully innervated’, ‘partially innervated’ or ‘denervated’), and criteria for NMJ classification can differ, leading to inter-laboratory and inter-rater variabilities, thus limiting further analysis30,31,32,33,34,35,36,37. Automatic methods include NMJ-morph, an innovative approach based on Image-J software, which has been used to analyse NMJ morphology in different species38,39. This platform has widespread use because of its efficiency in measuring morphological NMJ features. However, NMJ-morph uses maximum intensity projection images to capture relevant characteristics of en-face NMJs, which may leave behind the great majority of NMJs that acquire complex 3D shapes when wrapping the muscle fibres.

Furthermore, a critical aspect of image analysis lies in cross-study comparison of experiments performed at different times. This can be expedited by using the same thresholding process during analyses and acquiring comparable mean fluorescence intensities (MFI) for wildtype samples. However, in current automatic methods, thresholding is performed manually and sometimes relatively arbitrarily (based on staining observed visually), and MFI and innervation status are not considered. Since change in NMJ innervation status is a primary sign of distal dysfunction in multiple neuromuscular diseases, a systematic, bias-free automatic method is urgently needed to accurately and objectively quantify NMJ characteristics, thereby increasing our understanding of cellular and molecular pathogenesis3,6,40.

To address this need, we developed “NMJ-Analyser”, a robust and sensitive automatic method to comprehensively analyse NMJs. NMJ-Analyser enables quantitative assessment of the native 3D conformation of NMJs using an automatic thresholding method, to accurately capture their morphological features. NMJ-Analyser also incorporates a Random Forrest machine learning algorithm to systematically determine the binary characteristics (‘healthy’ or ‘degenerating’) of NMJ innervation status. This is an innovative approach for large-scale, automated, quantifiable and comprehensive NMJ studies. Thus, NMJ-Analyser associates the two most biologically relevant aspects of the neuromuscular synapse: NMJ innervation with a systematic method to capture topological features.

Here, we describe a comprehensive study of the NMJ using NMJ-Analyser: we evaluated 29 biologically relevant morphological parameters and used a Random Forest machine learning algorithm to diagnose NMJ innervation status. We assessed the morphology of mature NMJs in wildtype mice of two different genetic backgrounds and observed high variability in structure of the endplate (i.e. the post-synaptic acetylcholine receptor clusters), whereas nerve terminals appeared conserved. We went on to evaluate three mouse models of ALS (SOD1G93A/+, FUSΔ14/+ and TDP43M323K/M323K) and a CMT2D model (GarsC201R/+)25,26,41,42. These mice were maintained on different genetic backgrounds, sampled at different ages and disease states, thus giving an ideal opportunity to test NMJ-Analyser. We found NMJ-Analyser was, for the first time, able to detect early structural changes, preceding loss of innervation, in the motor nerve terminals of FUSΔ14/+ and TDP43M323K/M323K mice. By comparing our method to NMJ-Morph, we show that NMJ-Analyser detects changes at the NMJ with higher sensitivity.

Our results validate NMJ-Analyser as a robust platform for systematic NMJ analysis, and also shed new light on pathology in the assessed mouse models. Our findings show the value of computer-based approaches for reliable and comprehensive analysis of NMJs to identify early changes, and therefore to potentially aid development of therapeutic interventions in patients with neuromuscular diseases.

Results

‘NMJ-Analyser’ for comprehensive and systematic assessment of NMJs in mice

NMJs are dynamic structures with specific age-related morphological features throughout life1,4,43,44,45. The morphology of mouse NMJs transitions from poly-innervated (immature, < 1-month old mice), mono-innervated (mature, 1 to 18-month old mice) to fragmented/degenerated in aging mice (≥ 18-month old mice)43,45,46. NMJ morphological studies have been performed qualitatively or semi-quantitively with different methodologies6,8,10,24,38,46; results differ, probably due to the muscles studied, age/genetic background of mice and methods used1,4,38,44,45,46,47.

In addition, technical variation and differences in quality of staining across samples contribute to variability (batch effect). Thus, a robust and transferrable platform to study NMJs should ideally incorporate a normalization method for reliable systematic analysis. A strength of NMJ-Analyser lies in its ability to normalize parameters across multiple experiments, making cross-study comparison reliable. For example, 1a) a method for normalization to minimise batch effect is available. We also used pixel size as input in the NMJ-Analyser workflow which leads to automatic physical capture of NMJ dimensions. Additionally, NMJ-Analyser considers a minimum and maximum size for the pre- or post-synaptic NMJ component, reducing the potential error when quantifying staining. Here, we used the same thresholding cut-off across all experiments leading to uniform capture of staining and reduction of background noise.

Here, we present NMJ-Analyser, which consists of four steps to comprehensively study NMJs (Fig. 1).

Figure 1
figure 1

NMJ-Analyser workflow. NMJ-Analyser consists of four sequential steps. (Step 1) Muscles are dissected, immunostained and digitalised (here, hindlimb lumbrical muscles). NMJ innervation status is manually assessed (full, partial, denervated) using an imaging package. (Step 2) Morphological analysis of NMJs requires raw images (plane view) to be formatted (.TIFF/.JPEG/.PNG). Features are captured for individual pre- or post-synaptic NMJs and for parameters involving interactions between these two components. (Step 3) Data from NMJ innervation status and morphological features are integrated into a matrix. Additional manual curation can be performed to confirm the whole individual NMJ was captured and its entire 3D structure analysed using NMJ-Analyser. (Step 4) Curated data output are divided into training and predictive sets. The training set is input into a machine learning model while the predictive set is used to predict the NMJ innervation status. Additional File 2 contains a detailed tutorial of how to use NMJ-Analyser.

Step 1: Dissection, staining digitalization and manual assessment of NMJ status

After muscle dissection and staining, NMJ structures are digitalized. NMJ-Analyser requires images in 3D z-stack (3D view) to identify NMJ innervation status. NMJs are classified as fully innervated (‘Full’), partially innervated (‘Partial’) or ‘Denervated’.

Step 2: Application of NMJ-Analyser to the stacked raw images and extraction of features

Stacked raw images (z-slice) are used to capture the structural features of NMJs using a script we developed in Python. NMJ-Analyser generates twelve biologically relevant parameters for each pre- and post-synaptic structure and five for the interaction between these two NMJ components (29 in total, Table 2). These morphological parameters are non-redundant and biologically relevant. More detail about the variables can be found at Fig. S2.

Step 3: Matching manual and automatic assessment

Create a matrix to correlate the qualitative information from step 1 and quantitative data from step 2, for each NMJ, which allows us to correlate the NMJ innervation status to the respective structural features.

Step 4: Training with the Random Forest algorithm and evaluation of testing set

Divide the dataset in the matrix into (i) training data (~ 80% of the data) and (ii) testing data (~ 20% of the data). The training data are used as an input for a Random Forest machine learning algorithm. The testing data are analysed by the machine learning algorithm to diagnose the innervation status of the NMJs within this dataset. The workflow of NMJ-Analyser can be found in Fig. 1 and details about the pipeline are in Additional File 1: Fig. S1.

Early-mature NMJs display morphological differences compared to mid- and late-mature synaptic structures

Studies of NMJ pathology in small whole-mounted muscles have considerable advantages over analyses in large muscles; such small, thin, flat muscles include lumbricals, FDB and levator auris longus (LAL)28,48,49,50,51. These thin muscles do not need sectioning, reducing the variability in antibody penetration, and permit the entire NMJ innervation/denervation pattern to be accurately assessed28,48,49,50,51. Furthermore, NMJs in regions with different susceptibility to degeneration can be anatomically defined in small muscles12.

NMJ architecture acquired at early maturity (mono-innervation, pretzel-like shape, 1 month of age mice) is maintained throughout life4,45. However, subtle morphological changes may evade detection as most examinations have been qualitative44,45. Therefore, to quantitively assess such changes, we evaluated biologically relevant NMJ morphological parameters in whole-mounted hindlimb lumbrical muscles in C57BL/6J WT male mice of 1, 3 and 12 months of age (1-month NMJ = early-mature, 3-month NMJ = mid-mature, 12-month NMJ = late-mature; Tables 1, 2, Fig. 2) and C57BL/6J-SJL WT male mice of 1 and 3.5 months of age (Additional File 1: Fig. S2).

Table 1 Summary of mutant mice.
Table 2 Overview of NMJ morphological features.
Figure 2
figure 2

Structural features of healthy NMJs in male C57BL/6J mice. (a) Confocal images of NMJs visualized using nerve terminal markers (2H3 + SV2, green) and motor endplate staining (alpha bungarotoxin, α-btx, red). Early-, mid- and late- mature NMJs display mono-innervated axonal input and pretzel-like shape. (b) Matrix correlation plot of nerve terminal and motor endplate parameters, and interaction between them measured in early-, mid- and late-mature NMJs. Positive and negative correlations are given by blue and red scales, respectively (P value ≤ 5 × 10−2). Datapoint showed non-normal distribution and spearman correlation tests were used. Empty circles indicate no significant P value was observed. (c) Module displaying NMJ morphological parameters measured in early-, mid- and late-mature NMJs. Early-mature NMJs are considered as baseline values. Morphological parameters were analysed using Wilcoxon signed-rank test. (d) PCA plots displaying variation between early-, mid- and late-mature NMJs. Scale bar = 20 μm.

Immunolabeling showed conserved NMJ architecture in C57BL/6J mice of 1, 3 and 12 months of age (Fig. 2a). Across these timepoints, NMJs were mono-innervated with a pretzel-like shape indicating maturity (Fig. 2a). NMJ-Analyser evaluated twelve morphological features of nerve terminals and endplates, and 5 parameters of the interaction between them in these mice (Fig. 2b,c). Overall, matrix correlation plot showed that 90% of parameters were significant correlated (71% positive and 19% negative, Additional File 1: Fig. 2b, Spearman correlation). Conversely, mid-mature NMJs displayed fewer (74%) significant positive (45%) and negative (29%) correlations (Fig. 2b, Spearman correlation). Late-mature NMJs had even fewer (63%) significant correlations between the parameters (42% positive, 21% negative, Fig. 2b, Spearman correlation). These results indicate a higher degree of relationship between morphological parameters of early-mature NMJ than mid- or late-mature neuromuscular synapses of C57BL/6J male mice. Similarly, early-mature NMJs from 1-month old C57BL/6J-SJL mice, showed a greater degree of significant correlation between their morphological parameters than those at 3.5 months of age (75% vs. 67%, Additional File 1: Fig. S3, Spearman correlation), but this correlation was weaker compared to the one observed in C57BL/6J male mice.

Then, we investigated which parameters are preserved or changed during NMJ maturation. Here, morphological parameters were broadly grouped into ‘integrity, ‘shape’, ‘size’ and ‘interaction’ features. ‘integrity referred to the clusterization characteristics of endplate and nerve terminals, ‘shape’ quantified the overall topology, ‘size’ calculated the dimensions of both NMJ components and ‘interaction’ measured the interaction features of pre- and post-synaptic structures (Table 2, Fig. 2). Early-mature nerve terminals had the smallest volume, surface and shape factor, but length remained constant across maturity (Fig. 2c). Mid- and late-mature nerve terminals were bigger and presented more significant differences from early-mature pre-synaptic NMJs than between themselves (Fig. 2c). Motor endplates showed variability across age with no clear pattern observed across maturity (Fig. 2c). Morphological parameters measuring the interaction between nerve terminal and endplate showed that mid- and late-mature NMJ structures were conserved and vary significantly from early-mature architecture (Fig. 2c). These results were similar in the C57BL/6-SJL mice (Additional File 1: Fig. S3).

We further explored changes in morphological variables across maturity using PCA (Fig. 2d). We observed that nerve terminals of early-, mid- and late-mature NMJs of C57BL/6J mice cluster together while endplate populations were roughly diverging across these timepoints (Fig. 2d). Thus, at all ages analysed, endplates presented greater variability between timepoints than nerve terminals.

Changes in morphological features in degenerating NMJs

Denervation at NMJs is thought to be the earliest sign of peripheral pathology in multiple mouse models of neuromuscular disease6,52,53. Thus, we determined NMJ innervation status in the hindlimb lumbricals of SOD1G93A/+, FUSΔ14/+, TDP43M323K/M323K and GarsC201R/+ mouse cohorts at the timepoints given (Fig. 3a,b). Manual assessment of NMJ innervation status of pre-symptomatic 1-, 1.5-month old SOD1G93A/+ and 3-month old FUSΔ14/+ mice showed no significant changes when compared to their WT littermates (Fig. 3b). Similarly, mildly affected FUSΔ14/+ and TDP43M323K/M323K mice at 12 months of age had no significant changes in NMJ innervation status compared to WT littermates (Fig. 3b). However, we found a significant decrease in the percentage of fully innervated NMJs in 3.5-month old SOD1G93A/+ mice (late symptomatic, 50% vs. 97% wildtype controls; Wilcoxon signed-rank test, P value = 0.002, two-tailed), and early symptomatic 1-month old GarsC201R/+ mice (82% vs. 100% wildtype controls, Wilcoxon signed-rank test, P value = 0.005, two-tailed) (Fig. 3b).

Figure 3
figure 3

Automatic analysis detects changes before manual assessment of NMJs in ALS and CMT2D mouse models. (a) Confocal images of NMJs visualized using nerve terminal markers (2H3 + SV2, green) and motor endplate staining (α-btx, red). Images correspond to SOD1G93A/+ (3.5 months), GarsC201R/+ (1 month), FUS Δ14/+ (12 months) and TDP43M323K/M323K (12 months). Arrows point to examples of full (dark orange), partial (white) and denervated NMJs (sky-blue). (b) NMJ innervation status evaluated by eye in whole-mount lumbrical muscles in ALS and CMT2D mouse models. 3.5-month old SOD1G93A/+ and 1-month old GarsC201R/+ mice had a significant reduction in the percentage of fully innervated NMJs (*P value ≤ 0.05, Wilcoxon signed-rank test, two-tailed). (c) Module displaying NMJ morphological parameters measured in ALS and CMT2D strains using NMJ-Analyser. Each timepoint analysed was compared to their respective sex- and aged-matched WT littermates: *P value ≤ 5 × 10−4 was considered significant. Percentage of innervation ± S.E.M. are plotted. Number of mice, WT and mutant: SOD1G93A/+, 1 month (5 + 5), 1.5 month (5 + 5), 3.5 months (4 + 9); GarsC201R/+ (5 + 5); FUSΔ14/+, 3 months (4 + 4), 12 months (4 + 4); TDP43M323K/M323K, 12 months (5 + 5). Scale bars = 20 μm.

Using the same NMJs as above, we investigated structural features in SOD1G93A/+ and GarsC201R/+ mice compared to WT littermates (Fig. 3c). SOD1G93A/+ mice had the largest changes in NMJ morphological features (i.e. ‘shape’, ‘integrity and ‘size’ of nerve terminal, endplate); interestingly, these changes were more severe in the nerve terminals than the endplates. 1-month old GarsC201R/+ mice showed extensive and significant variation in volume, length, compactness, surface and length of nerve terminal and endplates; the pre- and post-synaptic components were roughly equally affected (Fig. 3c).

A FUS-ALS (Fus ΔNLS/+)7 and TDP43-ALS (TDP43Q331K/Q331K)34 showed reduction in the number of motor endplates in the gastrocnemius compared to WT littermates at 1 and 10 months, and at 10–12 months of age, respectively. To explore whether similar pathology occurs in our mouse strains, we counted the number of endplates per field in all mutant strains and their WT littermates. We found no significant differences in 1- and 1.5-month old SOD1G93A/+ or 3- and 12-month old FUSΔ14/+ strains. However, while 3.5-month old SOD1G93A/+ and 1-month old GarsC201R/+ mice had significant reduction of fully innervated NMJs, motor endplates in these strains were similar to their WT littermates (Fig. 3b, Additional File 1: Fig. S3).

Structural changes in FUS Δ14/+ and TDP43 M323K/M323K mice precede NMJ denervation

Subtle structural changes may be an indication of early NMJ degenerative processes1,3,4. Therefore, we investigated which morphological parameters significantly deviated before NMJ denervation was detectable by eye. We focused on the 12-month old FUSΔ14/+ and TDP43M323K/M323K strains because, although these mice did not have significant changes in NMJ innervation status, we observed significant alteration of ‘non-compactness’ and ‘volume/surface ratio’ in the pre-synaptic component of both strains, but not in motor endplates (Fig. 3b,c). Interestingly, ‘coverage’ and ‘intersection, two parameters defining the interaction between nerve terminal and endplate, were significantly reduced in the FUSΔ14/+ and TDP43M323K/M323K strains compared to WT littermates, respectively (Fig. 3c). Thus, NMJ-Analyser showed the earliest morphological changes in the pre-synaptic nerve in both strains. In summary, NMJ-Analyser detects early and subtle structural changes in NMJs before the denervation process is detectable by eye.

Studies on ALS mouse models have shown that muscle fibre depletion occurs in large hindlimb muscles contributing to the pathology23,54,55,56,57,58. To investigate whether large hindlimb muscles are affected in the FUSΔ14/+ strain, we quantified the fibre type composition in fast- and slow-twitch hindlimb muscles (TA, EDL and soleus, Additional File 1: Fig. S5). Fast-twitch TA and EDL muscles in 3- and 12-month old FUSΔ14/+ mice showed no variation in fibretype composition nor total number of fibres when compared to WT littermates. Similarly, slow-twitch soleus muscle in 3- and 12-month old FUSΔ14/+ mice had no significant differences compared to WT littermates (Fig. S5, Additional File 1: Table S1).

NMJ-Analyser is more sensitive than NMJ-Morph

NMJ-Morph analyses NMJs that are in an en-face position, which occurs when the endplate is completely extended and faces towards the observer (for examples, see Fig. 4a i, ii)27. The en-face view is ideal to study the size and length of neuromuscular synapses, however, NMJs acquire multiple irregular 3D structures (for example, curved NMJs) as acetylcholine receptors migrate to oppose the motor nerve terminals and the post-synaptic membrane invaginates to enhance neurotransmission efficiency45. Thus, studying only en-face NMJs may give an incomplete landscape of structural changes.

Figure 4
figure 4

Performance of NMJ-Analyser and NMJ-Morph. (a) Confocal images of (i and ii) en-face and (iii) curved NMJs, visualized using nerve terminal markers (2H3 + SV2, green) and motor endplate staining (α-btx, red). Images correspond to GarsC201R/+ strain. (b) Correlation of nerve terminal and endplate output obtained using NMJ-Analyser and NMJ-Morph compared to a reference software. (c) Correlation of nerve terminal and endplate output obtained using NMJ-Analyser and NMJ-Morph, divided by genotype. (bc) Datapoint showed non-normal distribution and spearman correlation tests were used. Green and red shading represent the confidence interval. (d) Boxplot of nerve terminal and endplate output using Volocity, NMJ-Analyser (μm3) and NMJ-Morph (μm2). (e) Boxplot of nerve terminal and endplate length (μm) and endplate compactness using NMJ-Analyser and NMJ-Morph. c-d outputs were analysed using a using Wilcoxon signed-rank test. Scale bars = 10 μm.

Furthermore, NMJ-Morph analyses en-face NMJs using maximum intensity Z-stack projections (2D plane). Studying NMJs in their native 3D conformation may give a more complete picture of the ongoing morphological changes, particularly when structural variations are subtle. NMJ-Analyser tackles these drawbacks by analysing the 3D native structure of neuromuscular synapses regardless of their position in a given muscle.

We compared methods analysing NMJs in their 3D native structure versus a 2D maximum intensity projection (NMJ-Analyser vs. NMJ-Morph, Fig. 4), and compared the outputs using a validated commercial software, Volocity, as a reference. Positions of neuromuscular synapses were identified by an independent evaluator in two different batches: 1-month old GarsC201R/+ (batch 1, Fig. 4) and 1.5-month old SOD1G93A/+ mice (batch 2, Additional File 1: Fig. S6) together with sex-, age-matched WT littermates. These batches were selected as the GarsC201R/+ strain had a mild phenotype and SOD1G93A/+ mice presented no NMJ morphological changes at these ages. From all NMJs observed, 28% and 29% were deemed en-face to the plane of view in batch1 and batch2, respectively. Thus, imaging en-face NMJs may present only a third of the landscape of pathological processes occurring in the lumbrical muscles.

NMJ-Analyser and NMJ-Morph use different approaches to detect NMJ morphological features (i.e. respectively, single vs. multiple thresholding, native 3D vs. maximum intensity projection), which may lead to different results. To compare the accuracy of NMJ-Morph and NMJ-Analyser outputs, we used Volocity software as a reference. Volocity is a platform to visualize and quantify morphological structures. Thus, the evaluator randomly selected 61 clearly distinguishable en-face NMJs from batch 1 and 49 from batch 2. We compared the correlation of nerve terminal and endplate size obtained by NMJ-Analyser (μm3) or NMJ-Morph (μm2) to Volocity (μm3), as a reference value (Fig. 4a). The correlation coefficients of nerve terminal and endplate obtained by NMJ-Analyser were higher compared to NMJ-Morph (R = 0.8, P = 1.2 × 10−14 vs. R = 0.39, P = 1.7 × 10−2—nerve terminal—and R = 0.92 P = 2.2 × 10−16 vs. R = 0.48, P = 9.2 × 10−5—endplate—, Fig. 4b). Similar results were obtained in batch 2 (Additional File 1: Fig. S6).

We then split batch 1 into WT and GarsC201R/+ NMJs and found that NMJ-Analyser outputs correlated well to Volocity outputs and were more strongly correlated than those of NMJ-Morph to Volocity (Fig. 4c). Similar results were obtained in batch 2 (Additional File 1: Fig. S6).

We explored whether NMJ-Analyser, NMJ-Morph and Volocity could detect mild structural variations in neuromuscular synapses by comparing nerve terminal and endplate outputs (Fig. 4d,e). Nerve terminal and endplate volumes of GarsC201R/+ showed significant reductions compared to WT littermates, using NMJ-Analyser and Volocity (Fig. 4d). However, NMJ-Morph output detected significant decreases only in the endplate area of GarsC201R/+ mice, but not in the nerve terminal (Fig. 4d). Similarly, we found that endplate compactness was significantly increased using NMJ-Analyser, but not by NMJ-Morph. These results indicate that NMJ-Analyser replicates the findings of Volocity and detected subtle morphological changes in NMJs, while NMJ-Morph did not detect all of the same differences.

Machine learning diagnoses healthy and degenerating NMJs

Manual NMJ assessment is performed differently between laboratories, impacting cross-comparison studies on neuromuscular innervation7,28,30,32,34,35,37,59,59,61. Manual assessment had limitations when for NMJ metanalysis. Machine learning is an objective technique that can address this limitation; thus, we used the Random Forest (RF) machine learning algorithm to automatically diagnose healthy and degenerating NMJs (Fig. 5).

Figure 5
figure 5

Machine learning algorithm accurately diagnoses NMJ changing. (a) PCA plot displaying healthy (fully innervated) and degenerating (partially innervated and denervated combined) NMJs. (b) AUC plot illustrating the ability of the Random Forest algorithm to differentiate the between healthy and degenerating NMJs.

In our initial observation using PCA, we observed that NMJs in a state of degeneration (i.e. partially, denervated; degenerating) may have some differences from fully innervated synapses (healthy, Fig. 5a). Then, we decided to input the morphological features captured to the training RF machine learning algorithm (training dataset). After training step, the RF model diagnosed this binary classification (healthy, degenerating) with 95% accuracy, 88% sensitivity and 97% specificity (Table 3). The area under the curve (AUC), which illustrates the diagnostic ability of our model, was 0.98 (98%, Fig. 5b).

Table 3 Overview of NMJ diagnosed using machine learning.

We also identified the most important morphological features as ranked by their permutation importance (i.e. the effect removing them from the dataset has on classification accuracy), along with the actual values of permutation importance and Gini importance. Those features belong to the ‘shape’ and ‘interaction’ of NMJ components (Table 3). While more analysis and data from other independent sources is needed to address any possible biases introduced by our sampling, our results do suggest that morphological features can be used to diagnose the healthy/degenerating state of NMJs.

Discussion

To date, there is no tool for uniform screening of NMJs. Consequently, comparative studies of innervation status and structural analysis are limited, which diminishes our understanding of NMJs in health, ageing and pathology. Here, we describe NMJ-Analyser, a novel platform for morphological screening of NMJs, designed for objective, comparative studies of multiple NMJ structural features. We validated this programme using longitudinal analyses of WT mice, three different genetic ALS mouse models and a CMT2D strain. Using NMJ-Analyser, we have defined changes in WT mice with age and in our pathological models as disease progresses; thus, we have new insights into NMJs in health and in disease, notably including subtle changes in early pathology that may be important for NMJ dysfunction in ALS and CMT2D.

The topology of the NMJ changes from embryogenesis to maturity43,44,45. Recently, Mech et al., used NMJ-Morph to evaluate five different whole-mounted muscles from 1-month old C57BL/6J WT mice, i.e. early-mature NMJs; muscles analysed were transversus abdominis, flexor digitorum brevis, epitrochleoanconeus and forepaw and hindlimb lumbricals62. Endplate structures in these early-mature NMJs were more variable between muscles compared to their corresponding axon terminals62. NMJ coverage in these muscle (percentage of endplate covered by the axon terminal) in the 1-month old WT mice was ~ 63% and the endplate area was ~ twofold that of nerve terminals62. Data from NMJ-Analyser is similar: 1-month old WT C57BL/6J mice had 66% coverage and endplate volume was ~ 1.5-fold that of nerve terminals. Cheng et al., manually assessed en-face TA NMJs in female C57BL/6J WT mice from 2 to 14 months of age and reported coverage of ~ 72%, which was maintained during the period measured, but endplate fragmentation increased with age47. These results are consistent with our study, in which we found coverage was maintained up to 12 months, but that endplate fragmentation slowly increases with ageing.

We found no differences in individual NMJ-Analyser parameters for the pre-synaptic components i.e. the axon terminals, in WT mice of 3 and 12 months of age. However, both of these timepoints had significant differences from the pre-synaptic component in mice of 1 month of age. Here, as expected, the early-mature pre-synaptic components were significantly smaller than those of mid- (3-month) and late-mature (12-month) NMJs. This could simply be related to age as 3- and 12- month old mice are fully grown while at 1 month they are still developing.

With respect to individual NMJ-Analyser parameters for the post-synaptic components i.e. the motor endplate, in WT mice we found a different non-linear progression of development. Early-mature endplates (1 month of age) had the lowest value parameters, but mid-mature endplates (3 months of age) had the largest parameter values, slightly above those of late-mature (12 months of age) endplates. Thus, endplates appear to follow an inverted “u” pattern, suggesting that the late-mature post-synapse has a more relaxed structure. This difference between mid-mature and late-mature endplates possibly arises from fragmentation and reduction in AChR cluster numbers, which occurs with ageing in healthy WT mice47.

Functional and morphological studies suggest that early decline in muscle function starts at 12-months in C57BL/6J WT mice63. Interestingly, significant reduction in size, orientation, basal calcium content and fission/fusion proteins in mitochondria in the hindlimb FDB muscle were evident in C57BL/6J WT male mice of 10–14 months of age, suggesting incipient muscle decline64. Similarly, sarcopenia and obvious changes in NMJ architecture are evident in 18-month old healthy WT mice2,46,65,66. However, motor unit connectivity, grip strength and muscle contractibility do not vary before 18 months of age67. Hence, it is possible that molecular changes occurring in musculature do not impact muscle function until > 18 months of age. More research is needed to clarify why WT nerve terminals appear more stable than endplates, and whether changes within muscle fibres with ageing lead to functional NMJ decline in middle-aged mice (12 months of age).

NMJ degeneration is a process of sequential structural changes occurring in the nerve terminal and/or endplate1,68,68,70. Two fundamental questions in neuromuscular disease remain unsolved: (1) do the pre- or post-synaptic NMJ components degenerate in a synchronised manner in ALS? and (2) does the skeletal muscle drive NMJ destruction? To validate NMJ-Analyser and to gain new insight into neuromuscular degeneration, we assessed individual NMJ features in a set of mouse models for ALS and CMT2D.

We carried out manual and automatic NMJ analysis in hindlimb lumbrical muscles of FUSΔ14/+ and TDP43M323K/M323K mice at 12 months of age. Both strains expressed the mutant protein at endogenous levels and had mild yet progressive phenotypes, and are thus ideal models for dissecting early-stage disease processes26,42. We found structural changes in the nerve terminal and the pre- and post-synaptic interaction (for example, ‘compactness’) in both strains, before denervation could be detected by manual analysis, highlighting a major strength of NMJ-Analyser. These results suggest an initial change in neuromuscular morphology, known as remodelling, a process involving the terminal Schwann cells that precedes NMJ dismantling2,4,5,68,69,71.

From our results in the FUSΔ14/+ and TDP43M323K/M323K strains, the axon terminal shows initial pathology. Another FUS-ALS model, ƮONhFUSP525L knock-in mice of 1 month of age presented strong depletion of synaptic vesicles and mitochondria density in the pre-synaptic portion, but mild reduction in the sarcomere length, and no structural changes in the endplate in the TA muscle, although NMJ denervation was observed30. These findings indicate that initial NMJ remodelling may be associated with alteration of the pre-synaptic morphology and the endplate is affected later.

With more advanced disease progression in FUS-ALS and TDP43-ALS strains, post-synaptic changes i.e. motor endplate pathology, becomes evident. For example, heterozygous 1-month old FUSΔNLS/+ knock-in mice, which express a truncated FUS protein at endogenous levels, presented reduction in the area and number of endplates in the TA muscles concomitantly with NMJ denervation7. Similarly, transgenic TD43M337V/M337V mice, which carry a BAC with the full-length human TARDBP locus and express the mutant protein at lower levels compared to the endogenous gene, have reduced endplate area at 9 months and NMJ denervation at 12 months of age in the hindlimb lumbrical muscles31. The transgenic mice TD43Q331K/Q331K of 10–12-month of age had reduction of motor endplates per section and NMJ denervation34.

The slow progressive phenotype of TDP43M323K/M323K and FUSΔ14/+ mice did not result in NMJ denervation or reduction in endplate numbers, and fibre typing studies in 3- and 12-month old FUSΔ14/+ mice showed no significant changes. More advanced stages of neuromuscular degeneration present with NMJ denervation, endplate loss and sometimes concomitant muscle fibre changes2,7,31,34,69. Thus, as fibre type remodelling was observed in TD43Q3331K/Q331K (atrophy fibres, regenerating fibres with centralized nuclei), at 10–12 months of age, it is likely that our 12-month TDP43M323K/M323K mice were in an early NMJ remodelling process34.

The SOD1G93A/+ mice have an aggressive phenotype because they overexpress the mutant protein ~ 24-fold times higher than endogenous gene and thus have a rapid rate of NMJ pathology, which has a preference for fast-twitch muscles6,23,40,41,53,69,72. We analysed manually the NMJ innervation status in the lumbricals of SOD1G93A/+ mice at 1, 1.5 and 3.5 months of age, and the last timepoint showed significant denervation. Our result for the 3.5 month timepoint was consistent with previous reports where ~ 50% or more NMJ denervation was found in fast-twitch muscles (medial gastrocnemius, TA and EDL)6,22,23,53,72. However, two independent studies found that SOD1G93A/+ mice had either a small (~ 8%, EDL) or prominent (~ 50%, gastrocnemius and TA) NMJ denervation at 45 and 47 days of age, respectively. This apparent discrepancy with our results may be explained, in part, by the sex of mice used, muscle fibretype composition, muscle studied and cut-off parameters used for full, partial and denervation NMJ status6,61. Moreover, the methodology of manual NMJ analysis in mouse models varies across laboratories, and different cut-off parameters for NMJ innervation status limit cross-comparison studies6,7,10,25,26,30,32,33,34,35,36,33,59,60.

The GarsC201R/+ mice, which model CMT2D, presented a mild denervation phenotype associated with pre-synaptic and post-synaptic structural NMJ changes at 1 month of age: ~ 80% of hindpaw lumbrical NMJ were fully innervated, consistent with a recent report73. At this age, the ‘integrity’ parameter, which measures fragmentation and clusterization of nerve terminals and endplates, was increased on average while parameters quantifying size (volume, length, surface) were significantly decreased compared to WT littermates. This is consistent with a previous report that endplate area of 1- and 3-month old GarsC201R/+ mice was 9% and 12% less than WT, respectively, although this did not reach significance10. A combination of delayed NMJ development, aberrant interaction between glycyl-tRNA synthetase (GlyRS) and the tropomyosin kinase receptor (TrK) receptors (some of which are found at the NMJ) and differential muscle involvement, all appear to contribute to the GarsC201R/+ mouse phenotype10,73,74.

NMJ-Analyser was conceptualised and implemented to automatically identify morphological characteristics of neuromuscular junctions (NMJs) and their innervation status. Although we agree that synapses of the Central Nervous System (CNS) are structurally and functionally comparable with NMJs, they are often much smaller and less morphologically complex, which would restrict the functionality of NMJ-Analyser. Moreover, the diversity of central synapses and their proximity to one another would likely require a specialised programme for analysis. Additionally, the machine learning algorithm used in this study is trained on mouse NMJs, thus adding a set of structurally distinct synapses may bias and reduce the functionality of NMJ-Analyser. We therefore feel that NMJ-Analyser would best serve the field by remaining specific to neuromuscular synapses.

Schwann cells are an integral component of the tripartite neuromuscular synapse; however, they are only infrequently studied in mouse models of neuromuscular disease. For this reason, we did not include functionality in NMJ-Analyser to evaluate Schwann cell morphology. Nevertheless, the original script can be updated in order to analyse this component of the NMJ and this is something we may develop in the future. Schwann cells can be stained with anti-S100 and studied concomitantly with the pre-synaptic portion using NMJ-Analyser. Thus, changes in Schwann cell morphology or additional markers associated with NMJ function (i.e. agrin, LRP4, rapsyn) may be analysed using this novel method.

In summary, we found that subtle quantifiable structural alterations occur primarily in the nerve terminals in 12-month old FUSΔ14/+ and TDP43M323K/M323K strains. We also showed FUSΔ14/+ mice had no fibretype switching nor reduction in the numbers of fibres in fast- and slow-twitch muscles at 3 and 12 months of age. Our data suggest that in our FUS and TDP43 ALS physiological models, the pre-synaptic NMJ component degenerates before the endplates and not synchronously. Furthermore, it is unlikely that skeletal muscle drives NMJ destruction as appear to be the case in Spinal-bulbar muscular atrophy disease (SBMA)75.

In the transgenic aggressive ALS model SOD1G93A/+, pre-synaptic changes were considerably more pronounced than post-synaptic alterations and we did not see reduction in the number of endplates, at the ages sampled, again, suggesting that pre-synaptic changes precede NMJ pathology and skeletal muscle does not drive NMJ denervation.

The mild CMT2D model GarsC201R/+ presented similar changes in pre- and post-synaptic NMJ components, indicating a different pathomechanism from ALS models, perhaps due to the primary site of motor neuron pathology (for example, cell body versus distal synapse).

NMJ-Analyser showed higher sensitivity than manual NMJ methods and NMJ-Morph, and can quantify NMJs in their native 3D structure independently of their shape acquired in the muscle fibres—this is particularly important because NMJ topology may change during disease1,4,40,43. These morphometric comparisons require capturing the complete density of three-dimensional shape and interrelations, not only distance or ratio, as needed in two-dimensional images76,77,78,79,80,81,82. Furthermore, image thresholding, multiple validations of the pipeline and coupling to a machine learning algorithm make our programme a robust and sensitive tool for structural studies of neuromuscular synapses.

Seminal studies have shown that structure of NMJs are dependent on the fibretypes innervated83. The NMJs innervating fibretypes IIb and IIx appear to be more elaborated with higher number of branches and 2D area compared to those associated to slow-twitch fibres. The motor endplate appears to display a similar pattern. Given the increasing complexity of NMJs structure, NMJ-Analyser may help to elucidate further morphological differences. For this, studies of muscles with mixed population of fibretypes (i.e. diaphragm) may be considered. Additional to morphological descriptions, spatial expression of scaffold proteins in the NMJs may be studied using NMJ-Analyser.

NMJ-Analyser is a reliable tool for NMJ topological analysis, but some morphological characteristics were not included in the study. Those parameters include terminal sprouting and poly-innervation and terminal Schwann cell coverage. The code being open-source, any additional contribution of feature is welcome. Another limitation of our study lies in motor endplate quantification: a more precise method is to count the complete number of post-synaptic structures in a given muscle, however, this may technically difficult to achieve.

Compared to the semi-automated analysis tool in NMJ-Morph, NMJ-Analyser showed greater sensitivity and stronger correlation in detecting morphological NMJ parameters in wildtype and mutant mouse strains. Notably, we were able to diagnose NMJ innervation status confidently using machine learning and demonstrated that NMJ-Analyser is an advancement on the widely-used tool NMJ-Morph. To our knowledge, these are the first data demonstrating that structure and innervation state of NMJs can be studied systematically and in an automatic and integrated manner. Our results validate NMJ-Analyser as a unique and robust platform for systematic analysis of NMJs, and pave the way for transferrable and cross-comparison studies in neuromuscular disease.

Methods

Animals

Three ALS mouse strains (SOD1G93A/+ 41, FUSΔ14/+ 26 and TDP43M323K/M323K 42), a CMT2D mouse model (GarsC201R/+)25 and their corresponding sex- and age-matched wildtype littermates were used to study NMJ pathology (Table 1). All strains, except the transgenic line SOD1G93A/+, express the mutant protein at physiological levels; details on the genetic background, sex, age and number of mice studied are in Table 1.

All mouse handling and experiments were performed under license from the United Kingdom Home Office in accordance with the Animals (Scientific Procedures) Act (1986) and approved by the University College London—Queen Square Institute of Neurology Ethics Committee, and compliance with the ARRIVE2 guidelines.

Muscle collection and immunohistochemistry

Lumbrical and flexor digitorum brevis (FDB) muscles located in the hindlimb paws of mice were dissected and stained, as previously described28,84. Briefly, after dissection, tissues were fixed with 4% paraformaldehyde (PFA, Sigma-Aldrich) for 8–10 min in phosphate buffered saline (PBS) then permeabilized with 2% PBS-Triton X-100 for 30 min to increase antibody penetration. Then, blocking solution (5% donkey serum in 0.05% PBS-Triton X-100) was added to the tissue for 1 h followed by multiple washes of 15–20 min each. Overnight incubations with mouse anti-synaptic vesicle 2 (SV2, 1/20, DHSB) and mouse anti-neurofilament medium chain (2H3 1/50, DSHB) in blocking solution at 4 °C were performed to visualise the pre-synaptic NMJ component. After overnight incubation, multiple washes were conducted with PBS-1X for at least 1 h. AlexaFluor-488 anti-mouse IgG secondary antibody (1/2000, Invitrogen) was added together with labelled α-bungarotoxin (to visualise post-synaptic acetylcholine receptors) in blocking solution for 1.5 h at room temperature (RT) (α-btx, Life Technologies). Then, muscles were washed several times and whole-mounted for imaging.

NMJ imaging and analysis

Images of NMJs were obtained using a Zeiss LSM 710 confocal microscope (Zeiss, Germany). All strains were imaged at 512 × 512 resolution, except for the FUSΔ14/+ strain, which was at 1024 × 1024. Z-stack images were decomposed into individual pre- and post-synaptic planes for posterior analysis (.TIFF, .PNG and .JPEG).

Manual NMJ analysis

Stacks of images containing complete NMJs were visualised in Volocity software (version 6.5, Perkin Elmer) and their innervation status (fully innervated, partially innervated, denervated) was manually assessed, as previously described24,28. When a nerve terminal and motor endplate overlapped with at least 50% coverage the NMJ was considered ‘fully innervated’. When between ≥ 20 and ≤ 50% overlap occurred, NMJs were considered ‘partially innervated’. Vacant motor endplates were considered ‘denervated’ NMJs. Only NMJs whose innervation status were clearly defined were considered for this study.

Automatic NMJ analysis

For each manually assessed NMJ, we obtained the 3D position [P (x, y, z)] in Euclidean space using Volocity. This step was performed to identify NMJ position and accurately correlate innervation status with the corresponding morphological characteristics (Fig. 1, Additional File 1: Fig. S1). In parallel, the stacked images were used as input to the “NMJ-Analyser” framework and to extract their morphological features for nerve terminal, motor endplate and the interaction between them (Fig. 1). 29 features were analysed for each NMJ (Table 2). Manually assessed NMJs were then matched to the automatically extracted output using the minimum Euclidean distance between centre of mass. Since Z-stack images frequently contained superimposed NMJs, we only considered NMJs that were clearly differentiated one from another for analysis (Fig. 1, manual curation); on average, NMJs need to be separated by at least 20 µm. The final number of NMJs identified by both manual and automatic analysis was 6728.

Validation of NMJ-Analyser and manual curation

To confirm the reliability of NMJ-Analyser, we validated key morphological parameters (volume of nerve terminal and endplate) using Volocity software (Additional file 2: Fig. 3). Additionally, NMJ-Analyser automatically provides the centre of mass of individual NMJs (3D position, [P (x, y, z)]). Centre of mass refers to the average NMJ position in 3D Euclidean space, which is unique for every synapse. The centre of mass position was used to correlate NMJ innervation status identified by Volocity with paired morphological parameters (Fig. 1, matrix correlation). We also used ITK SNAP, a 3D software viewer, to visually confirm that NMJ-Analyser detected the whole individual NMJ structure and captured its entire 3D morphological structure (Fig. 1, manual curation)85.

NMJ-Morph analysis

Semi-quantitative analysis of en-face NMJs was performed as previously described27. Maximum intensity projections from individual pre- and post-synaptic staining were obtained using the black Zen software (Zeiss, Germany). The Image J manual thresholding method was used as it gave the most consistent results across different methods. Then, binary images were obtained after background elimination. We measured area and length of nerve terminals, and acetylcholine receptor (AChR) area, diameter and area of endplate and compactness.

Motor endplate counts

Motor endplates of lumbrical muscles were counted in 8–12 fields per mouse. Motor endplates from wildtype and mutant littermates were counted at 40× magnification, except 3- and 12-month old FUSΔ14/+ and their wildtype littermates, which were quantified at 20× magnification.

Fibre type counts

Tibialis anterior (TA), extensor digitorum longus (EDL) and soleus muscles were snap frozen and transversally sectioned at 20 µm thickness using a microtome (Leica, Germany), and left to dry for 1–2 h. Sections were rehydrated with PBS-1X at RT. Non-specific blocking solution (10% donkey serum in 0.01% PBS-Tween 20) was added to the tissue for 1 h, followed by multiple 15–20 min washes. Overnight incubation consisted of blocking buffer with mouse anti-fibre type I (IgG2b,1/10, DHSB); mouse anti-fibre type IIa (IgG1, 1/20, DHSB), mouse anti-fibre type IIb (IgM, 1/20, DHSB) and rabbit anti-dystrophin (1/750, DHSB), which were used to recognize borders of individual fibres. After overnight incubation and multiple washes with PBS-1X for 1 h, we incubated the sections for 2 h with the following secondary antibodies: anti-mouse IgG2b Alexa Fluor-405, anti-mouse IgG1 Alexa Fluor-488, anti-mouse IgM Alexa Fluor-564 and anti-rabbit Alexa Fluor-633. Then, muscle sections were washed several times with PBS and mounted for imaging.

Hindlimb sections were imaged at 20× magnification using a Zeiss 7100 Confocal Microscope (Zeiss, Germany). Images were counted using the ‘CellCounter’ plugin on Image J.

Statistical analysis

Data analysis and plotting were performed using R/RStudio. Schematic graphics found in Fig. 1 and Additional File 1: Fig. S1 were created using BioRender. Different plot types were developed to represent various level of analysis. During the study, a single batch experiment included mutants and sex- and age-matched WT littermates, thus, technical variation between genotypes within a batch was assumed null. When comparing multiple batches (i.e. for C57BL/6J and C57BL/6J-SJL male mice, longitudinal study), the following normalization procedure was performed. Normalization protocol can be found at Additional File 2.

P value and normality distribution of data

Different approaches to test statistical significance were performed. When comparing NMJ morphological features between genotypes, we tested the normality of data distribution using the Shapiro–Wilk test. In most cases, our data follow a non-normal distribution, thus we conducted non-parametric statistical tests: the Wilcoxon signed-rank test or Kruskal–Wallis test (one-way ANOVA) to compare two or three groups, respectively. P value adjustment was performed when three or more groups (or variables) were compared simultaneously (Benjamin–Hochberg—BH—post-hoc test).

When comparing manual NMJ innervation status, motor endplate counts and fibre type counts, we set significance as P value ≤ 5 × 10−2, as we compared the percentage or average obtained per mouse (biological replicates). To compare the performance of Volocity, NMJ-Analyser and NMJ-Morph, a P value ≤ 5 × 10−2 was considered significant as we used < 100 NMJs. When we compared individual NMJs, rather than mice, we used a restricted adjusted P value ≤ 5 × 10−4 as cut-off for statistical significance.

Correlation matrix plots were obtained to measure the relationship between two morphological variables. A P value ≤ 5 × 10−2 was considered significant. Spearman correlation plots were generated using the corrplot package in R/RStudio.

Machine learning

We aimed to reduce the variability in human interpretation by using machine learning. The supervised machine learning technique Random Forest was used to diagnose the innervation status of NMJs (healthy or degenerating) using automatically extracted morphological characteristics. From the total number of NMJs (Additional File 1: Table S2), the dataset was randomly split into a training dataset consisting of 80% of the full dataset and a testing dataset made up of the remaining 20%. While the ratio of degenerating to healthy NMJs was not deliberately preserved, the two datasets were made up of 20% and 25% degenerating respectively. We also created an equalised dataset taking 1000 rows at random from degenerating and healthy.

The training and testing models were trained to optimise accuracy. In our testing, prioritising kappa (caret’s other option for classification) did not make a substantial difference to the outcome. The random forest models were trained using caret’s train function, creating one model using the full training dataset and one using the equalised one. Both of these models had tenfold cross validation. The innervation of the NMJs comprising their respective test datasets were diagnosed and compared to the actual values.