Article | Open | Published:

Machine learning based classification of cells into chronological stages using single-cell transcriptomics

Abstract

Age-associated deterioration of cellular physiology leads to pathological conditions. The ability to detect premature aging could provide a window for preventive therapies against age-related diseases. However, the techniques for determining cellular age are limited, as they rely on a limited set of histological markers and lack predictive power. Here, we implement GERAS (GEnetic Reference for Age of Single-cell), a machine learning based framework capable of assigning individual cells to chronological stages based on their transcriptomes. GERAS displays greater than 90% accuracy in classifying the chronological stage of zebrafish and human pancreatic cells. The framework demonstrates robustness against biological and technical noise, as evaluated by its performance on independent samplings of single-cells. Additionally, GERAS determines the impact of differences in calorie intake and BMI on the aging of zebrafish and human pancreatic cells, respectively. We further harness the classification ability of GERAS to identify molecular factors that are potentially associated with the aging of beta-cells. We show that one of these factors, junba, is necessary to maintain the proliferative state of juvenile beta-cells. Our results showcase the applicability of a machine learning framework to classify the chronological stage of heterogeneous cell populations, while enabling detection of candidate genes associated with aging.

Introduction

Aging is a universal phenomenon, during which cells undergo progressive transcriptional1,2, genomic3,4, epigenetic5, and metabolic6 changes. The age-related modifications can deteriorate the functional properties of cells. The accumulation of cellular defects can lead to a decline in organismal health and to the onset of age-related diseases. A major focus of the biology of aging is to identify factors that accelerate or slow-down the cellular aging process. Biological studies have identified multiple modifiers of the aging process, including genetic and environmental factors7,8. For instance, caloric restriction has been demonstrated to increase lifespan in multiple species9, including humans10. However, the discovery of factors that influence aging relies on retrospective analysis, after the impact of age has already manifested itself, and depends on a restricted set of indicators based on histological analysis11. It is therefore imperative to develop reliable indicators of cellular age that forgo the need for detrimental phenotypes. Predicting cellular aging before the defects manifest themselves would provide a window for therapeutic interventions. Preventive therapies during this window would bypass additional complications arising after the onset of the pathology.

The development of a reliable cellular age classifier requires at least two factors. Firstly, it entails a reliable assessment of the progressive changes cells undergo with age. Secondly, the classifier should be capable of placing cells of unknown age along a transition path in order to estimate their age. Recent advances in single-cell mRNA expression profiling have enabled assessment of the transcriptional changes cells undergo with age12. Cellular progression through the transcriptional transitions is increasingly being described by both heuristic methods and probabilistic models. These methods are categorized as pseudotemporal estimation algorithms and use techniques such as dimensionality reduction, graph theory, bifurcation analysis and optimal-transport analysis to place cells along a transition trajectory13,14,15,16,17,18. Although current methods can reveal cellular transitions during a differentiation process19,20,21,22, they have only been shown to work retrospectively, that is they have limited ability to insert de-novo samples into the trajectories.

Positioning of de-novo samples in a cellular aging trajectory requires discrimination of the transcriptional features of importance from the confounding factors that accompany single-cell transcriptome measurements. The three main confounding factors are: (1) biological noise due to fluctuations in mRNA expression levels, (2) technical noise inherent in single-cell mRNA sequencing, and (3) cell-type diversity within an organ. Biological noise can arise due to the stochasticity in biochemical processes involved in mRNA production and degradation23,24, heterogeneity in the cellular microenvironment25, and many more unknown factors. Technical noise, on the other hand, arises due to the sensitivity and depth of single-cell sequencing technology26. Sequencing involves conversion of mRNA into cDNA and amplification of the minute amounts of cDNA. These steps could omit certain mRNA molecules, muting their detection. Moreover, amplified cDNA molecules might escape sequencing due to the limits on the comprehensiveness of the technology. In effect, expression noise is inherent to single-cell measurements of mRNA expression levels.

The diversity in cell types within an organ adds an additional layer of complexity to the inherent noise in mRNA expression. Moreover, numerous studies have demonstrated the presence of cellular sub-populations even among nominally homogenous cells27,28. For example, pancreatic beta-cells have been shown to consist of dynamic sub-populations with different proliferative and functional properties29,30,31, and liver cells were demonstrated to display variability in gene expression depending on their location within the organ32. Thus, the inherent cell-to-cell heterogeneity adds to the challenge of extracting age-related transcriptional changes from mRNA expression profiles. Furthermore, cellular heterogeneity makes it difficult to extrapolate the results from studies at the tissue-scale to the aging of individual cells and to identify common molecular signatures of aging33,34.

In this study, we provide a framework that efficiently ‘learns’ the cellular transitions of aging from single-cell gene expression data in the presence of expression noise and cellular heterogeneity. Our age classifier is trained to recognize the age of individual cells based on their chronological stage. Chronological stage is easy to define, and hence provides a ground truth for the training. To show the utility of the stage classifier, we apply it to the pancreatic beta-cells, which represent an excellent system for studying aging. In mammals, the beta-cell mass is established during infancy and serves the individual throughout life35. The long-lived beta-cells support blood glucose regulation, with their dysfunction implicated in the development of Type 2 diabetes. Older beta-cells display hallmarks of aging, such as a reduced proliferative capacity36 and impaired function37. We first focus on the zebrafish beta-cells due to the potential for visualization and genetic manipulation at single-cell resolution31,36, and extend our framework to human pancreatic cells using publicly available published datasets. Finally, we demonstrate the classifier’s utility in identifying the impact of environmental factors on aging.

Results

Machine learning based framework accurately and robustly classifies chronological stage

To capture the transcriptional dynamics of beta-cells with age, we performed single-cell mRNA sequencing of beta-cells in primary islets dissected from animals belonging to seven ages of zebrafish: 1 month post-fertilization (mpf), 3 mpf, 4 mpf, 6 mpf, 10 mpf, 12 mpf and 14 mpf. For classification, the seven ages were divided into three chronological stages: ‘Juvenile’ (1 mpf), ‘Adolescent’ (3, 4 and 6 mpf) and ‘Adult’ (10, 12 and 14 mpf). Using Tg(ins:Betabow)31, a transgenic line that specifically marks zebrafish beta-cells with red fluorescence (Supplementary Fig. S1), we isolated and sequenced 827 beta-cells in four independent batches (Supplementary Table S1). Sequencing was performed using the Smart-Seq2 protocol, which has been demonstrated to provide higher transcriptional coverage than other methods38. The sequenced cells were quality-controlled to yield a total of 637 beta-cells (Supplementary Fig. S2). We tested statistical models for classifying the cells using the ground truth provided by the chronological stage of the cellular origin: ‘Juvenile’, ‘Adolescent’ or ‘Adult’. As input to the classifiers, genes were ranked in descending order of their variability (calculated using the median absolute deviation for gene expression) and the top variable genes were selected for training (Supplementary Table S2). We first tested a multinomial logistic regression classifier using the ‘nnet’39 package in R. For training the regression model, 80% of the beta-cells were randomly chosen. Using the trained model, we evaluated the classification accuracy on the test set comprising the remaining 20% of the cells. The cells of the test set had not been used to train the model. The multinomial logistic regression model displayed an overall accuracy (proportion of cells for which the classification stage matched the actual stage) of 64% (Supplementary Fig. S3).

We next developed a supervised deep learning classifier based on neural networks to perform the classification task (Fig. 1a). Since neural networks are prone to overfitting, two normalizing hyperparameters were added: L2 regularization (which penalizes a strong focus on few inputs) and dropout regularization (which helps ‘averaging’ across connections). This framework was named GERAS (GEnetic Reference for Age of Single-cell) in reference to the Greek God of old age. Similar to the logistic regression training, for developing GERAS we utilized 80% of the beta-cells, which were randomly chosen. The input to GERAS consisted of 1000 genes with the highest gene expression variability estimated using the median absolute deviation (Supplementary Table S2). The optimal normalizing hyperparameters (L2 and dropout regularization) were determined by cross-validation and used for training the final classifier. Using the trained GERAS, internal validation was carried out with a test set comprising the remaining 20% of the beta-cells. The cells of the test set had not been used to train GERAS. This internal validation achieved an overall accuracy (proportion of cells for which the classification stage matched the real stage) of 91 ± 3% (Fig. 1b). This suggests that the neural-net based GERAS is more accurate than multinomial logistic regression in classifying individual cells into chronological stages. Additionally, the high accuracy (91%) achieved by GERAS shows that cells can be classified into chronological stages based solely on their mRNA expression profile.

For the trained neural network, we estimated the contribution of the 1000 input genes towards classification (Supplementary Fig. S4, Supplementary Table S2). The estimation ranked the input genes in descending order of their importance towards the classification of cells. The importance of each input gene is calculated using the strength (weights) of the neural network connections40. Input genes with stronger neural network connections will be more important to the classification task than input genes with weaker connections. The estimation showed that the input genes displayed a wide distribution of importance towards the accuracy of classification. For instance, the gene ucp2 (importance = 0.53) displayed a stronger importance towards the performance of GERAS as compared to the gene vegfaa (importance = 7  10−7). In this case, the gene vegfaa plays an insignificant role towards the classification of beta-cells into chronological stages. Notably, several of the top 20 most important genes were previously implicated in diabetes (Supplementary Fig. S4b).

We wanted to understand the robustness of GERAS under biological and technical noise, typically encountered upon measuring the transcriptome of single-cells in different batches. To this end, we performed external validation using independently sequenced beta-cells. We sequenced new batches of beta-cells from 1 mpf (‘Juvenile’), 4 mpf (‘Adolescent’) and 13 mpf (‘Adult’) animals and used GERAS to classify their chronological stage (Fig. 1c). All cells from the independent cohort of 1 mpf were classified as ‘Juvenile’ (100% accuracy), the ground truth for the stage of the cells. Similarly, the 4 mpf cohort displayed 100% accuracy. Lastly, within the 13 mpf independent cohort, 46 out of 50 beta-cells were classified in the ‘Adult’ stage, thus demonstrating a 92% accuracy in determining the ground truth of the sample (Fig. 1c). Additionally, we tested the performance of GERAS with beta-cells sequenced using alternative pipelines. Specifically, we utilized the C1-Chip platform from Fluidigm to sequence a new batch of beta-cells from adolescent animals (3 mpf). GERAS achieved 92.3% success in correctly classifying the cells from the new batch as ‘Adolescent’ (Fig. 1d). These data underscore the potential of GERAS in effectively handling batch effects.

GERAS evaluates the impact of environmental and molecular factors on cellular age

The rate of aging is susceptible to modifications8 and nutritional cues have been noted to alter aging in many organisms9,10. To investigate the effect of altering nutritional cues on cellular age, we employed the ability of GERAS to handle batch effects and interpolation. Specifically, we focused on studying the impact of calorie intake on beta-cell aging. We separated 3 mpf adolescent zebrafish siblings into two groups. One group was fed three times a day with Artemia, a typical fish diet consisting of living prey with a relatively high amount of fat and carbohydrates41. The other group was placed on intermittent feeding with normal feeding performed on alternate days (Fig. 2a). After one month, the beta-cells were isolated and GERAS was applied to classify beta-cell age in each group. The analysis showed a striking difference in the age-classification of the two sets of beta-cells (Fig. 2a). While 65% of the beta-cells from zebrafish on intermittent feeding were classified as ‘Adolescent’, only 23% of the beta-cells from three-times-a-day-fed animals were similarly classified; the rest 77% were categorized as ‘Adult’. This difference in classification suggests that higher-caloric intake expedites the aging of beta-cells.

We performed differential gene-expression analysis of beta-cells that were classified by GERAS as either ‘Adult’ or ‘Adolescent’ (Fig. 2b, Supplementary Table S3) in the three-times-a-day-fed group. These analysis identified enrichment of 23 and 65 genes in beta-cells classified as ‘Adolescent’ and ‘Adult’, respectively. Unbiased gene ontology analysis using DAVID42 revealed involvement of the differentially regulated genes in pathways related to MAPK signaling, endocytosis, and basic-leucine zipper domain (bZIP) containing transcription factors (Fig. 2c). Specifically, the comparison suggests that the ‘Adult’ beta-cells exhibit down-regulation of bZIP-domain containing transcription factors junba and fosab. Notably, both junba and fosab also displayed significant down-regulation with age in our primary mRNA expression data of beta-cells from three chronological stages, (t-test using the ROTS package43, p < 0.001) (Supplementary Fig. S6). However, when comparing the transcriptome of the beta-cells isolated from three-times-a-day fed animals (n = 35 cells) to the beta-cells isolated from animals on intermittent feeding (n = 43 cells), junba is not identified to be significantly downregulated (Supplementary Table S4). Thus, GERAS-based classification of beta-cells into ‘Adolescent’ and ‘Adult’ sub-populations was necessary to identify potential genes that change in expression with aging at the single-cell level.

To investigate the biological impact of reducing junba function in beta-cells, we overexpressed a dominant negative version of junba specifically in beta-cells (using an ins:nls-BFP-2A-DN-junba construct) (Supplementary Fig. S7a). The expression of nls-BFP-2A-DN-junba was induced in the background of the beta-cell specific fluorescence ubiquitination cell cycle indicator (FUCCI)-reporters44,45, allowing identification of beta-cell’s cell-cycle stage (Supplementary Fig. S7b,c). Comparison between the juxtaposed DN-junba-expressing and control cells within islets from juveniles (1 mpf), a stage associated with high rates of beta-cell proliferation44, showed a 50% decline in proliferation upon DN-junba expression (Fig. 3a,b). Thus, blocking junba function can reduce the proliferation of juvenile beta-cells. Since the reduction in proliferation of beta-cells is a hallmark of aging36,37], our results suggest that declining junba expression might underlie this reduction.

A single model for chronological stage classification of the entire human pancreatic cells

Next, to test the applicability of our framework beyond the scope of zebrafish beta-cells, we developed a classifier for human cells using the entire ensemble of pancreatic cells. The pancreas, a gland located in the abdomen, is involved in metabolic regulation and food digestion. Metabolic regulation is accomplished by the endocrine part of the pancreas, which chiefly consists of beta-, alpha-, and delta-cells. Food digestion, on the other hand, is contributed by the exocrine part of the pancreas, composed of ductal and acinar cells. An important characteristic of pancreatic cells is the presence of cell-specific marker genes, allowing computational segregation of the various cell-types based on mRNA expression levels (Methods). To develop the classifier for human pancreatic cells, we obtained single-cell mRNA expression profiles from Enge et al. Their study generated single-cell transcriptomes from pancreatic cells of eight healthy individuals belonging to three discrete stages46: ‘Juvenile’ (1 month, 5 and 6 years), ‘Young’ (21 and 22 years), and ‘Middle’ (38, 44 and 54 years) (Fig. 4a). Without segregating the data by cell-type, we trained GERAS to classify the chronological stage for the entire ensemble of pancreatic cells. The trained GERAS, utilizing inputs from multiple genes (Supplementary Fig. S8, Supplementary Table S5), achieved an overall accuracy of 95% on the test set (Fig. 4b). Upon segregating the results by cell type, based on the expression of their respective markers, we found that GERAS displayed >90% accuracy for each major cell-type of the pancreas (Fig. 4b’), demonstrating the feasibility of developing a single age classifier for the multiple cell types of the pancreas.

As an additional validation, a second assessment with human cells was undertaken by utilizing the single-cell mRNA expression profiles of human pancreatic cells from a publication by Segerstolpe et al.47. This independent cohort contains single-cell transcriptomes from pancreata of six healthy individuals ranging from 22–48 year of age. Additionally, the body mass index (BMI) for each individual was reported, allowing comparisons between individuals with similar chronological age but different body weight. Using GERAS trained with the human data from Enge et al., we classified the chronological stage of the cells from two individuals (aged 43 and 48 years) belonging to the ‘Middle’ age group (38–54 years). The classifications displayed >93% accuracy (Fig. 4c). This high classification accuracy on data from a second independent source further strengthens the external validation of our model. Next, we utilized the data from two individuals, aged 23 and 22 years. Despite the proximity in their chronological age, these two individuals differed in their BMI values (21.5 – normal and 32.9 – obese, respectively). Strikingly, while 32% of the cells from the 23 year old with normal BMI were classified in the ‘Juvenile’ or ‘Young’ stage, none of the cells from the 22 year old with obese BMI fell in the two stages (Fig. 4d). Following this observation, we calculated the classification probability of the all six individuals in relation to their BMI. The probability results from our analysis suggest that an obese BMI correlates with an increased probability for the cells to be classified in an older stage (Supplementary Fig. S9). We recommend exercising caution while interpreting this result due to the multiple confounding factors associated with human samples that we could not control for. A GERAS developed with cells from individuals encompassing a wider distribution of age and BMI range would be desired for stronger conclusions. Nevertheless, the successful age classification of an entire human organ and its external validation, demonstrate the adaptability of our framework to diverse cell-types, thereby establishing the universality of the approach.

Discussion

In this study, we have presented a method that provides the blueprint for developing a classifier for cellular aging. Our chronological stage classifier efficiently handles biological and technical noise, and functions robustly on a diverse cell population. The temporal classifier was developed in an unbiased, data-driven manner. Genes for building the classifier were not selected based on their differential expression with time. The classifier predicted the chronological stage solely from the expression profile of the top 1000 most variable genes. The algorithm, however, did not use all genes uniformly. Instead, varying levels of importance were attributed to the input genes (Supplementary Fig. S4 and S8). Multiple genes exhibiting high importance for classification show an existing association with metabolic and age-related degenerative disorders. For instance, the human pancreatic GERAS ascribes high importance to Amyloid precursor protein (APP) (Supplementary Fig. S8b), which is associated with Alzheimer’s disease, and also recently implicated in pancreatic biology48. In the future, it would be worthwhile to test the biological functions for the genes selected by the classifier, and to follow-up on them as potential biomarkers of the aging process.

We utilized the framework to determine the impact of calorie intake on the aging of zebrafish beta-cells. Specifically, a higher percentage of beta-cells isolated from animals fed three-times-a-day were classified in the ‘Adult’ stage as compared to beta-cells isolated from animals on intermittent feeding (Fig. 2a). Differential gene-expression analysis of beta-cells from the three-times-a-day group, which were classified as ‘Adolescent’ or ‘Adult’ showed reduced junba expression levels in the latter population (Fig. 2b,c). It is important to note that the classification of beta-cells by GERAS did not utilize junba as one of the 1000-input genes (Supplementary Table S2), thereby showing the potential of our approach to identify aging associated factors in an unbiased manner. Follow-up analysis using a genetic technique (Supplementary Fig. S7) verified the role of one candidate gene, junba, in regulating the proliferation of beta-cells (Fig. 3). However, a reduction in proliferation represents one aspect of the aging process, and additional roles for junba activity during the aging process still need verification. Nonetheless, the age-dependent reduction of Junb, the mammalian homologue of junba, has been implicated in post-natal maturation of mouse beta-cells49. It would be of interest to follow-up on these results and study the connection between aging and Junb activity in mammalian models.

Importantly, differential gene expression analysis comparing beta-cells collected from animals fed three-times-a-day to beta-cells collected from animals on intermittent feeding failed to identify junba as a molecular factor associated with aging (Supplementary Table S4), which might reflect the inherent heterogeneity of the aging process. The heterogeneity in the age of beta-cells was also observed during the interpolation analysis (Fig. 1d), in which cells from intermediate time-points classified in the two adjacent stages. Asynchronous cellular aging in beta-cells was recently proposed based on histological and molecular markers36,50. Quantifying the extent of heterogeneity in the aging process while capturing the mRNA expression profile, made possible by our framework, provides an exciting opportunity for understanding the molecular underpinnings of heterogeneous cellular aging. Importantly, such analysis was possible due to the single-cell-centric nature of our approach, and would be missed out with bulk sequencing in which the cellular variability is averaged out.

Our machine-learning based framework has high flexibility in its design and execution, which can be exploited to develop predictive models based on diverse biological parameters. The inputs to the classifier are not limited to mRNA expression levels but can be extended to include other covariates. With improvements in single cell epigenetics51, new models integrating both genetic and epigenetic changes could be built to improve accuracy and resolution.

The classifiers presented in this study are restricted by sequencing platforms and the specific tissues utilized for training them. This limits their immediate adaptation. The classifiers are built with data generated from Smart-Seq2 sequencing pipeline, which captures the full-length mRNAs with high transcriptome coverage. The classifier might be unable to handle the data from Drop-seq or MARS-seq, protocols that sequence the 3′-end of mRNA and provide lower-coverage38. Computational efforts for eliminating the idiosyncrasies of individual platforms52 would help to remove this restriction. Additionally, the classifiers do not extend beyond the currently described tissues. Investigators interested in the aging of other cells, for instance muscle, would need to develop and validate de-novo statistical models. Nevertheless, we expect the groundwork presented here to help with the development of machine learning models. Further improvements of our approach could expedite the identification of age-modifying factors, which are important regulators of development and disease.

Conclusion

Here we developed a machine learning based platform that assigns individual cells to chronological stages based on the cell’s transcriptome. We show the framework’s robustness in handling multiple sample processing pipelines, time-points that fall between the discrete chronological stages, and diversity in cell types. The framework’s capability to characterize aging factors was demonstrated through evaluation of the impact of a higher-calorie feeding on beta-cell aging. The classification capacity of the framework was further harnessed to discover junba as a candidate gene that maintains the proliferative beta-cell state, a characteristic trait of younger beta-cells. Broad applicability of the framework was demonstrated by classifications on the entire human pancreatic tissue. We anticipate that the robustness and flexibility exhibited here will enable the development of aging models for multiple tissues, opening the possibility of detecting premature aging and preventing pathological developments. To maximize the accessibility and impact of the study, the framework is openly shared on github53, and a user-friendly, graphical interface is provided for generating classifications from trained models.

Methods

Zebrafish strains and husbandry

Wild-type or transgenic zebrafish of the outbred AB, WIK or a hybrid WIK/AB strain were used in all experiments. Zebrafish were raised under standard conditions at 28 °C. Animals were chosen at random for all experiments. Published transgenic strains used in this study were Tg(ins:BB1.0L; cryaa:RFP)31; Tg(ins:FUCCI-G1)s948 44; Tg(ins:FUCCI-S/G2/M)s946 44. Experiments were conducted in accordance with the Animal Welfare Act and with permission of the Landesdirektion Sachsen, Germany (permits AZ 24-9168.11-1/2013-14, TV38/2015, T12/2016, and T13/2017).

Development of GERAS for zebrafish beta-cells

For development of GERAS for zebrafish beta-cells, read counts were used from seven ages of zebrafish: 1 mpf (n = 87 cells), 3 mpf (n = 109 cells), 4 mpf (n = 88 cells), 6 mpf (n = 90 cells), 10 mpf (n = 92 cells), 12 mpf (n = 111 cells) and 14 mpf (n = 60 cells). The 3 mpf and 6 mpf stages contained two batches of beta-cells collected and sequenced on different days. Each batch of cells originated from six zebrafish. Read counts were normalized to transcripts per million (TPM) using the formula:

$$Transcrip{t}_{gc}=\frac{Read\,Coun{t}_{gc}}{Length\,in\,k{b}_{g}}$$$$TP{M}_{gc}=\frac{Transcrip{t}_{gc}}{{\sum }_{g}Transcrip{t}_{c}}\ast 1,\,000,\,000$$

where for gene g and cell c, Transcriptgc are the number of transcripts calculated by dividing the read counts to the length of the gene in kb, and TPM is the proportion of the gene’s transcripts among per million of total cellular transcripts.

The entire dataset containing 637 beta-cells were randomly divided into 80–20% train-test set. Genes were sorted in descending order according to their expression variability (calculated by ‘median absolute deviation’) in the entire dataset. The top 1000 most variable genes were used for developing a four-layer fully connected neural network (Fig. 1a). The neural network contained two hidden layers with rectified linear unit (ReLU) activation function, and a softmax output layer. The network was trained to classify the pancreatic cells into three chronological stages: ‘Juvenile’ (1 mpf), ‘Adolescent’ (3, 4 and 6 mpf) and ‘Adult’ (10, 12 and 14 mpf). During training, a five-fold cross-validation was repeated three times over a grid of values for regularization hyperparameters: dropout frequency (0.4 to 0.9 in steps of 0.1) and regularization constant (0.4 to 1.6 in steps of 0.2). The combination with the highest cross-validation accuracy was taken as the optimal value, and a final model was trained using the entire training set and the optimal regularization hyperparameters. The entire network was implemented in R using TensorFlow API. An Rmarkdown report detailing the development of zebrafish beta-cell GERAS is available on Github53. The trained model was used to classify the chronological stage of the test set. Accuracy was calculated as the proportion of cells for which the classification matched the chronological age. By considering each classification as a binomial distribution (a ‘Juvenile’ cell can be classified as ‘Juvenile’ or ‘Not Juvenile’), the standard error was calculated using the following formula:

$$Standard\,error=\sqrt{\frac{accuracy\ast (1-accuracy)}{n}}$$

where n is the number of cells tested.

In addition to accuracy, additional evaluation metrics were also calculated. This included ‘precision’, ‘recall’ (or ‘sensitivity’) and ‘F1-Score’. Precision is the ratio of true-positives to the sum of true-positives and false-positives. Recall (or sensitivity) is the ratio of the true-positives to the sum of true-positives and false-negatives. F1-Score provides the harmonic mean of precision and recall and equals 2  (precision  recall)/(precision + recall).

Classification of chronological stage using GERAS for zebrafish beta-cells

For external validation (1, 4 and 13 mpf and 3 mpf C1-sample) and interpolation (1.5 mpf and 9 mpf), new batches of zebrafish beta-cells were isolated in 96-well plates and sequenced. The one and 13 mpf samples were collected on separate wells of a single 96-well plate and processed together. Quality controlled raw counts were obtained as outlined above. The raw counts were normalized to TPM values, which were then used to classify the chronological stage using pre-trained GERAS. Results were depicted as balloonplots, where a grid contains dots whose size reflects the percentage of cells classified in the corresponding group.

Assessing the impact of calories on the chronological age of zebrafish beta-cells using GERAS

Twelve zebrafish at 3 mpf from the same clutch were separated into two groups of 6 animals each. Both groups were fed with their normal feed of freshly hatched Artemia (brine shrimp). The intermittent feeding group was fed on alternate day, while the other group was fed three times daily with intervals of at least two hours between the feedings. Amount of food eaten by each animal was not controlled. After a month, the beta-cells were isolated into 96-well plates using FACS. The cells were processed and sequenced together. TPM-normalized counts from the cells were used to classify the chronological stage using GERAS.

Differential gene expression and gene ontology (GO) analysis

Differential gene expression analysis was performed between beta-cells collected from animals fed three-times a day. The beta-cells classified as ‘Adults’ were compared to beta-cell classified as ‘Adolescent’. Differential gene expression analysis was performed ROTS package43. For comparison, log2-TPM values were used. The cut-off for differential expression was set at false-discovery rate of 0.05. For differentially expressed genes, unbiased gene ontology (GO) analysis was performed using DAVID42.

Statistical analysis

Statistical analysis was performed using R. No animals were excluded from analysis. Blinding was not performed during analysis. Analysis of normal distribution was performed. To compare classification probability between the three stages for 1.5 mpf and 9 mpf samples, one-way ANOVA followed by post-hoc Tukey HSD (Honestly Significant Difference) was performed. To compare chronological age (Adolescent versus Adult) between beta-cell from intermittent feeding and three-times a day fed animals, Fisher’s exact test for count data (fisher.test(x = 2X2 matrix, alternative = “two.sided”)) was performed. To compare the expression levels of junba and fosab between beta-cells from ‘Juvenile’, ‘Adolescent’ and ‘Adult’ stages, t-test was calculated using the ROTS package43. To compare the proliferation between DN-junba expressing cells with control cells, an unpaired two-tailed t-test with unequal variance (t.test (x = dataframe, alternative = “two.sided”, paired = FALSE, var.equal = FALSE)) was used to calculate p-values. A p-value of less than 0.05 was considered statistically significant.

Development of GERAS for human pancreatic cells

For development of GERAS for human pancreatic cells, read counts from Enge et al.46 were obtained from GEO: GSE81547. Read counts were normalized to reads per million (RPM) using the formula:

$$RP{M}_{gc}=\frac{Read\,Coun{t}_{gc}}{{\sum }^{}Read\,Coun{t}_{c}}\ast 1,\,000,\,000$$

where for gene g and cell c, RPMgc is the proportion of the gene’s reads among per million of the total cellular reads.

The entire dataset containing 2544 pancreatic cells was randomly divided into 80–20% train-test set. Genes were sorted in descending order according to their expression variability (calculated by ‘median absolute deviation’) in the entire dataset. The top 1000 most variable genes were used for developing a four-layer fully connected neural network (Fig. 4a). The neural network contained two hidden layers with ReLU activation function, and a softmax output layer. The network was trained to classify the pancreatic cells into three chronological ages: ‘Juvenile’ (1 month, 5 and 6 years), ‘Young’ (21 and 22 years), and ‘Middle’ (38, 44 and 54 years). During training, a five-fold cross-validation was repeated three times over a grid of values for regularization hyperparameters: dropout frequency (0.4 to 0.9 in steps of 0.1) and regularization constant (0.2 to 1.2 in steps of 0.2). The combination with the highest cross-validation accuracy was taken as the optimal value, and a final model was trained using the entire training set and the optimal regularization hyperparameters. The entire network was implemented in R using TensorFlow API. An Rmarkdown report detailing the development of human pancreatic GERAS is available on Github53. The trained model was used to classify the chronological age of the test set. Accuracy was calculated as the proportion of cells for which the classification matched the chronological age. By considering each classification as a binomial distribution (a ‘Middle’ cell can be classified as ‘Middle’ or ‘Not Middle’), the standard error was calculated using the following formula:

$$Standard\,error=\sqrt{\frac{accuracy\ast (1-accuracy)}{n}}$$

where n is the number of cells tested.

To calculate the accuracy and standard error per cell type, the expression levels of the following cell-specific markers were extracted for each cell: ‘INS’ (beta-cell), ‘GCG’ (alpha-cell), ‘SST’ (delta), ‘PRSS1’ (acinar) and ‘KRT19’ (ductal). A cell was classified if the expression value of any cell-specific marker exceeded 50 RPM, else it was classified as ‘Others’. For classification, the cell-type marker with the highest expression determined the cell type. Thus, a (theoretical) cell with RPM values of 1000 INS, 3 GCG, 4 SST, 0 PRSS1, 0 KRT19 was classified as beta-cell, while another (theoretical) cell with RPM values of 3 INS, 5 GCG, 7 SST, 1777 PRSS1, 9 KRT19 was classified as acinar cell. Cell-type specific cells present in the test set were used to calculate the accuracy per cell-type.

F1-score was calculated as in the development of zebrafish beta-cell GERAS for all stages and cell-types.

Independent cohort of human pancreatic cells

For testing GERAS with external data, read counts of pancreatic single-cell data from Segerstolpe et al.47 were obtained from ArrayExpress (EBI) with accession number: E-MTAB-5061. The publication contained data from six healthy individuals. The entire data was stratified according to the individuals, and cells from each individual that passed quality-control according to Segerstolpe et al. were used for further analysis. Read counts from the cells were normalized to RPM for input to GERAS.

Calculating classification probability for ‘Middle’ (38–54 years) stage

To calculate the probability that a particular cell would be classified to the ‘Middle’ stage, the softmax for the ‘Middle’ stage was calculated from the output layer of human pancreatic GERAS. For this, the function model_softmax is provided with the log2-transformed RPM values and used to calculate the probability for the particular cell to classify in all the three stages (‘Juvenile’, ‘Young’, and ‘Middle’). The probability for ‘Middle’ stage was extracted from this output.

Classification of chronological stage using GERAS for human pancreatic cells

For classifying the chronological stage of cells belonging to individuals of age 22, 23, 43 and 48 years, RPM values from each individual were used as input to human pancreatic GERAS. Results were depicted as balloonplots, where a grid contains dots whose size reflects the percentage of cells classified in the corresponding group.

Data Availability

The raw datasets, along with tabulated count data and TPM normalized values, generated during the current study are available from GEO under accession number GSE109881. Normalized read-counts for all human pancreatic samples used in the study, and codes for developing and testing GERAS are available on Github53. Please refer to README.md to navigate the Github folder. The authors welcome any requests for information on the raw data, data processing, GERAS development and utilization.

Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

1. 1.

Kowalczyk, M. S. et al. Single-cell RNA-seq reveals changes in cell cycle and differentiation programs upon aging of hematopoietic stem cells. Genome Res. 25, 1860–1872 (2015).

2. 2.

Peters, M. J. et al. The transcriptional landscape of age in human peripheral blood. Nat. Commun. 6, 8570 (2015).

3. 3.

Szilard, L. On the nature of the aging process. Proc. Natl. Acad. Sci. USA 45, 30–45 (1959).

4. 4.

Vijg, J. Somatic mutations and aging: a re-evaluation. Mutat. Res. Mol. Mech. Mutagen. 447, 117–135 (2000).

5. 5.

Pal, S. & Tyler, J. K. Epigenetics and aging. Sci. Adv. 2, e1600584–e1600584 (2016).

6. 6.

Barzilai, N., Huffman, D. M., Muzumdar, R. H. & Bartke, A. The Critical Role of Metabolic Pathways in Aging. Diabetes 61, 1315–1322 (2012).

7. 7.

López-Otín, C., Blasco, M. A., Partridge, L., Serrano, M. & Kroemer, G. The Hallmarks of Aging. Cell 153, 1194–1217 (2013).

8. 8.

Kenyon, C. J. The genetics of ageing. Nature 464, 504–512 (2010).

9. 9.

Piper, M. D. W. & Bartke, A. Diet and Aging. Cell Metab. 8, 99–104 (2008).

10. 10.

Most, J., Tosti, V., Redman, L. M. & Fontana, L. Calorie restriction in humans: An update. Ageing Res. Rev. 39, 36–45 (2017).

11. 11.

Kõks, S. et al. Mouse models of ageing and their relevance to disease. Mech. Ageing Dev. 160, 41–53 (2016).

12. 12.

Wang, Y. & Navin, N. E. Advances and Applications of Single-Cell Sequencing Technologies. Mol. Cell 58, 598–609 (2015).

13. 13.

Marco, E. et al. Bifurcation analysis of single-cell gene expression data reveals epigenetic landscape. Proc. Natl. Acad. Sci. USA 111, E5643–50 (2014).

14. 14.

Haghverdi, L., Büttner, M., Wolf, F. A., Buettner, F. & Theis, F. J. Diffusion pseudotime robustly reconstructs lineage branching. Nat. Methods 13, 845–8 (2016).

15. 15.

Setty, M. et al. Wishbone identifies bifurcating developmental trajectories from single-cell data. Nat. Biotechnol. 34, 637–45 (2016).

16. 16.

Trapnell, C. et al. The dynamics and regulators of cell fate decisions are revealed by pseudotemporal ordering of single cells. Nat. Biotechnol. 32, 381–386 (2014).

17. 17.

Schiebinger, G. et al. Reconstruction of developmental landscapes by optimal-transport analysis of single-cell gene expression sheds light on cellular reprogramming. https://doi.org/10.1101/191056 (2017).

18. 18.

Reid, J. E. & Wernisch, L. Pseudotime estimation: deconfounding single cell time series. Bioinformatics 32, 2973–2980 (2016).

19. 19.

Semrau, S. et al. Dynamics of lineage commitment revealed by single-cell transcriptomics of differentiating embryonic stem cells. Nat. Commun. 8, 1096 (2017).

20. 20.

Chu, L.-F. et al. Single-cell RNA-seq reveals novel regulators of human embryonic stem cell differentiation to definitive endoderm. Genome Biol. 17, 173 (2016).

21. 21.

Moignard, V. et al. Decoding the regulatory network of early blood development from single-cell gene expression measurements. Nat. Biotechnol. 33, 269–276 (2015).

22. 22.

Ocone, A., Haghverdi, L., Mueller, N. S. & Theis, F. J. Reconstructing gene regulatory dynamics from high-dimensional single-cell snapshot data. Bioinformatics 31, i89–96 (2015).

23. 23.

Thattai, M. & van Oudenaarden, A. Intrinsic noise in gene regulatory networks. Proc. Natl. Acad. Sci. 98, 8614–8619 (2001).

24. 24.

Raj, A., Peskin, C. S., Tranchina, D., Vargas, D. Y. & Tyagi, S. Stochastic mRNA synthesis in mammalian cells. PLoS Biol. 4, 1707–1719 (2006).

25. 25.

Battich, N., Stoeger, T. & Pelkmans, L. Control of Transcript Variability in Single Mammalian Cells. Cell 163, 1596–1610 (2015).

26. 26.

Kolodziejczyk, A. A., Kim, J. K., Svensson, V., Marioni, J. C. & Teichmann, S. A. The Technology and Biology of Single-Cell RNA Sequencing. Mol. Cell 58, 610–620 (2015).

27. 27.

Grün, D. et al. Single-cell messenger RNA sequencing reveals rare intestinal cell types. Nature 525, 251–5 (2015).

28. 28.

Papalexi, E. & Satija, R. Single-cell RNA sequencing to explore immune cell heterogeneity. Nat. Rev. Immunol. https://doi.org/10.1038/nri.2017.76 (2017)

29. 29.

Bader, E. et al. Identification of proliferative and mature β-cells in the islets of Langerhans. Nature 535, 430–4 (2016).

30. 30.

Dorrell, C. et al. Human islets contain four distinct subtypes of β cells. Nat. Commun. 7, 11756 (2016).

31. 31.

Singh, S. P. et al. Different developmental histories of beta-cells generate functional and proliferative heterogeneity during islet growth. Nat. Commun. 8, 664 (2017).

32. 32.

Halpern, K. B. et al. Single-cell spatial reconstruction reveals global division of labour in the mammalian liver. Nature 542, 352–356 (2017).

33. 33.

de Magalhães, J. P., Curado, J. & Church, G. M. Meta-analysis of age-related gene expression profiles identifies common signatures of aging. Bioinformatics 25, 875–881 (2009).

34. 34.

Glass, D. et al. Gene expression changes with age in skin, adipose tissue, blood and brain. Genome Biol. 14, R75 (2013).

35. 35.

Gregg, B. E. et al. Formation of a human β-cell population within pancreatic islets is set early in life. J. Clin. Endocrinol. Metab. 97, 3197–206 (2012).

36. 36.

Janjuha, S. et al. Age-related islet inflammation marks the proliferative decline of pancreatic beta-cells in zebrafish. Elife 7 (2018).

37. 37.

Gunasekaran, U. & Gannon, M. Type 2 diabetes and the aging pancreatic beta cell. Aging (Albany. NY). 3, 565–75 (2011).

38. 38.

Ziegenhain, C. et al. Comparative Analysis of Single-Cell RNA Sequencing Methods. Mol. Cell 65, 631–643.e4 (2017).

39. 39.

Venables, W. N. & Ripley, B. D. Modern Applied Statistics with S (Springer, 2002).

40. 40.

Gedeon, T. D. Data mining of inputs: analysing magnitude and functional measures. Int. J. Neural Syst. 8, 209–18 (1997).

41. 41.

Oka, T. et al. Diet-induced obesity in zebrafish shares common pathophysiological pathways with mammalian obesity. BMC Physiol. 10, 21 (2010).

42. 42.

Huang, D. et al. The DAVID Gene Functional Classification Tool: a novel biological module-centric algorithm to functionally analyze large gene lists. Genome Biol. 8, R183 (2007).

43. 43.

Suomi, T., Seyednasrollah, F., Jaakkola, M. K., Faux, T. & Elo, L. L. ROTS: An R package for reproducibility-optimized statistical testing. Plos Comput. Biol. 13, (e1005562 (2017).

44. 44.

Ninov, N. et al. Metabolic regulation of cellular plasticity in the pancreas. Curr. Biol. 23, 1242–1250 (2013).

45. 45.

Sakaue-Sawano, A. et al. Visualizing spatiotemporal dynamics of multicellular cell-cycle progression. Cell 132, 487–98 (2008).

46. 46.

Enge, M. et al. Single-Cell Analysis of Human Pancreas Reveals Transcriptional Signatures of Aging and Somatic Mutation Patterns. Cell 171, 321–330.e14 (2017).

47. 47.

Segerstolpe, Å. et al. Single-Cell Transcriptome Profiling of Human Pancreatic Islets in Health and Type 2 Diabetes. Cell Metab. https://doi.org/10.1016/j.cmet.2016.08.020 593–607 (2016).

48. 48.

Kulas, J. A., Puig, K. L. & Combs, C. K. Amyloid precursor protein in pancreatic islets. J. Endocrinol. 235, 49–67 (2017).

49. 49.

Zeng, C. et al. Pseudotemporal Ordering of Single Cells Reveals Metabolic Control of Postnatal β Cell Proliferation. Cell Metab. 25, 1160–1175.e11 (2017).

50. 50.

Aguayo-Mazzucato, C. et al. β Cell Aging Markers Have Heterogeneous Distribution and Are Induced by Insulin Resistance. Cell Metab. 25, 898–910.e5 (2017).

51. 51.

Buenrostro, J. D. et al. Single-cell chromatin accessibility reveals principles of regulatory variation. Nature 523, 486–490 (2015).

52. 52.

Butler, A., Hoffman, P., Smibert, P., Papalexi, E. & Satija, R. Integrating single-cell transcriptomic data across different conditions, technologies, and species. Nat. Biotechnol. https://doi.org/10.1101/164889 (2018).

53. 53.

Singh, S. P. GERAS (GEnetic Referene for Age of Single-cell). https://github.com/sumeetpalsingh/GERAS2017 (2017).

Acknowledgements

We thank Ankit Sharma (Google, N.Y.) for help with conceptualization of the project, members of the Ninov lab for comments on the manuscript, members of Center for Regenerative Therapies Dresden (CRTD) fish, microscopy, sequencing and FACS facility for technical assistance. We are grateful to Priyanka Oberoi for illustrations. The project was supported by a CRTD postdoctoral seed grant (CRTD - FZ 111) to S.P.S. and A.E. and by funding from the DFG—Center for Regenerative Therapies Dresden to N.N. S.P.S acknowledges support by funding from the EFSD/Lilly Young Investigator Program.

Author information

Affiliations

1. Center for Molecular and Cellular Bioengineering, TU Dresden, Dresden, 01307, Germany

• Sumeet Pal Singh
• , Sharan Janjuha
• , Susanne Reinhardt
• , Annekathrin Kränkel
• , Sevina Dietz
• , Anne Eugster
•  & Nikolay Ninov
2. Paul Langerhans Institute Dresden of the Helmholtz Center Munich at the University Hospital Carl Gustav Carus of TU Dresden, Dresden, 01307, Germany

• Sharan Janjuha
•  & Nikolay Ninov
3. Max Planck Institute of Molecular Cell Biology and Genetics, Dresden, 01307, Germany

• Samata Chaudhuri
4. B CUBE-Center for Molecular Bioengineering, TU Dresden, Dresden, 01307, Germany

• Samata Chaudhuri
5. Department of Computer Engineering, Abdullah Gül University, Kayseri, 38030, Turkey

• Halil Bilgin
6. Department of Biostatistics and Medical Informatic, Trakya University, Edirne, 22030, Turkey

• Selçuk Korkmaz
7. Department of Biostatistics, Erciyes University, Kayseri, 38030, Turkey

• Gökmen Zararsız
8. Turcosa Analytics Solutions Ltd. Co., Erciyes Teknopark 5, Kayseri, 38039, Turkey

• Gökmen Zararsız
9. MRC Biostatistics Unit, University of Cambridge, Cambridge, CB2 0SR, UK

• John E. Reid
10. The Alan Turing Institute, London, NW1 2DB, UK

• John E. Reid

Contributions

S.P.S. conceptualized the project. S.P.S. and S.J. performed the zebrafish work. S.R., A.K., S.D. and A.E. performed single-cell sequencing. S.P.S., H.B., S.K. and G.Z. developed GERAS and its Shiny app. N.N., S.C., and J.E.R. supervised. S.P.S., S.C., N.N., and J.E.R. wrote the manuscript. All authors read and approved the final manuscript.

Competing Interests

The authors declare no competing interests.

Corresponding author

Correspondence to Sumeet Pal Singh.