Next Article in Journal
Comprehensive Secondary Metabolite Profiling and Antioxidant Activity of Aqueous and Ethanol Extracts of Neolamarckia cadamba (Roxb.) Bosser Fruits
Previous Article in Journal
Investigating the Mechanisms of 15-PGDH Inhibitor SW033291 in Improving Type 2 Diabetes Mellitus: Insights from Metabolomics and Transcriptomics
Previous Article in Special Issue
Explainable AI to Facilitate Understanding of Neural Network-Based Metabolite Profiling Using NMR Spectroscopy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predicting the Association of Metabolites with Both Pathway Categories and Individual Pathways

by
Erik D. Huckvale
1,2 and
Hunter N. B. Moseley
1,2,3,4,5,*
1
Markey Cancer Center, University of Kentucky, Lexington, KY 40536, USA
2
Superfund Research Center, University of Kentucky, Lexington, KY 40536, USA
3
Department of Toxicology and Cancer Biology, University of Kentucky, Lexington, KY 40536, USA
4
Department of Molecular and Cellular Biochemistry, University of Kentucky, Lexington, KY 40536, USA
5
Institute for Biomedical Informatics, University of Kentucky, Lexington, KY 40536, USA
*
Author to whom correspondence should be addressed.
Metabolites 2024, 14(9), 510; https://doi.org/10.3390/metabo14090510
Submission received: 9 August 2024 / Revised: 4 September 2024 / Accepted: 20 September 2024 / Published: 21 September 2024
(This article belongs to the Special Issue Machine Learning Applications in Metabolomics Analysis)

Abstract

:
Metabolism is a network of chemical reactions that sustain cellular life. Parts of this metabolic network are defined as metabolic pathways containing specific biochemical reactions. Products and reactants of these reactions are called metabolites, which are associated with certain human-defined metabolic pathways. Metabolic knowledgebases, such as the Kyoto Encyclopedia of Gene and Genomes (KEGG) contain metabolites, reactions, and pathway annotations; however, such resources are incomplete due to current limits of metabolic knowledge. To fill in missing metabolite pathway annotations, past machine learning models showed some success at predicting the KEGG Level 2 pathway category involvement of metabolites based on their chemical structure. Here, we present the first machine learning model to predict metabolite association to more granular KEGG Level 3 metabolic pathways. We used a feature and dataset engineering approach to generate over one million metabolite-pathway entries in the dataset used to train a single binary classifier. This approach produced a mean Matthews correlation coefficient (MCC) of 0.806 ± 0.017 SD across 100 cross-validation iterations. The 172 Level 3 pathways were predicted with an overall MCC of 0.726. Moreover, metabolite association with the 12 Level 2 pathway categories was predicted with an overall MCC of 0.891, representing significant transfer learning from the Level 3 pathway entries. These are the best metabolite pathway prediction results published so far in the field.

1. Introduction

Metabolism is the set of biochemical reactions occurring within organisms or individual cells that act to sustain life. These reactions are commonly represented as a metabolic network, i.e., a graph with metabolites as nodes and reactions as edges, with some edges having directionality. Parts of the metabolic network are defined as metabolic pathways based on many decades of study, research, and teaching of metabolism [1,2,3]. From these pathway definitions, metabolites are associated with specific pathways. Metabolic knowledgebases such as the Kyoto Encyclopedia of Genes and Genomes (KEGG) [4,5,6], MetaCyc [7], and Reactome [8] contain mappings between metabolites and associated pathways, but these mappings are incomplete and are very slow, tedious, and costly to discover. For this reason, accurately predicting the pathway involvement of detected metabolites would be a valuable capability across biological and biomedical research fields.
Various attempts have been made to develop machine learning models to predict metabolite pathway mappings given information about a metabolite’s chemical structure, especially pathway mappings for KEGG Level 2 (L2) ‘Metabolism’ pathway categories [9,10,11,12]. In several published attempts, the dataset used was discovered to be invalid [13]. Thus, Huckvale et al. created a new benchmark dataset of metabolite features and associated pathway mappings as labels, all derived from KEGG [14]. The features in this benchmark dataset were generated using an atom coloring technique developed by Jin and Moseley [15]. This work involved training a binary classifier for each pathway, the input being a representation of a metabolite and the output indicating whether or not the given metabolite is associated with the pathway [14]. Each model was only capable of predicting a single pathway. Through the use of a novel feature and pathway engineering approach, the later work of Huckvale and Moseley [16] created a single binary classifier capable of predicting an arbitrary metabolite-pathway mapping based on a pathway chemical structure representation. The novel feature and pathway engineering approach involves a cross-join of metabolite features with pathway features, creating a dataset that is 12 times larger than the original benchmark dataset: 68,196 metabolite-pathway pair entries vs. 5683 metabolite entries [16].
Collections of pathways can be organized into pathway categories and these categories can be organized into broader categories in a hierarchical manner. In the case of KEGG, pathways are organized into a hierarchy where the first level of the hierarchy includes ‘Metabolism,’ the top-level (Level 1 or L1) category containing metabolic pathways. The second level, i.e., L2, in the hierarchy includes 12 pathway categories, sometimes referred to as modules. These L2 pathway categories were the focus of past works [9,10,11,12,14,16]. However, there are 172 Level 3 (L3) pathways that are more granular. When combined with the broader 12 L2 pathway categories, a set of 184 metabolic “pathways” is created. In this situation, it is neither practical to train individual models for each pathway nor is it practical to train a multi-output model with 184 outputs because most of the resulting datasets would have too few positive entries for effective training. Having a significantly lower proportion of positive examples often results in excellent accuracy but poor recall, precision, and related metrics [17].
The cross-join technique introduced by Huckvale and Moseley [16] resolves these issues, since it is a single model with a single output and is capable of accepting an indefinite number of pathways into the training dataset. Specifically, the resulting dataset from the cross-join increases the number of positive examples to a level needed for effective training. Moreover, we show in this work that while the L3 pathways perform worse when trained by themselves, their performance increases when trained with the L2 pathway categories in the same dataset and with the same model. Likewise, the L2 pathways also increase in performance when trained alongside the L3 pathways. Combining both the broader pathway categories with the more granular individual pathways results in an improved overall model performance. This demonstrates that it is more than possible to train a model to reliably predict mappings to both L2 pathway categories and L3 individual pathways.

2. Materials and Methods

Our work began using the same methods as Huckvale et al. [14] to construct features representing metabolites using the atom coloring technique introduced by Jin and Moseley [15]. Each atom in a graph representing a chemical structure is “colored” by the bonded atoms around it, up to three bonds away. A feature vector of the count of atom colors present is created for each metabolite, and then these are summed to create similar feature vectors for pathways. Likewise, the molfiles and pathway mappings were obtained from KEGG using the kegg_pull Python package version 3.1.0 [18]. Then, the same cross-join technique, as introduced by Huckvale and Moseley [16], was used to construct the metabolite and pathway feature pairs. The metabolite-to-pathway mappings are defined by the KEGG pathway hierarchy available at https://www.genome.jp/kegg-bin/show_brite?br08901.keg (accessed on 1 June 2024). We see that the L1 pathway categories in the hierarchy include ‘Metabolism,’ and below that are the L2 pathway categories used in the prior works of Huckvale et al. [14,16] and other publications involving metabolic pathway prediction with KEGG [9,10,11,12]. At an additional hierarchy level below that, we see the L3 pathways are individual pathways as compared to categories of pathways in the hierarchy levels above. However, whether an individual pathway or a category of pathways, either can be defined as a collection of associated metabolites, enabling the construction of a cross-joined dataset of combined metabolite and pathway features, including both the L2 pathway categories and the L3 individual pathways. The L2 dataset was constructed by the prior work of Huckvale and Moseley [16]. In this work, we constructed the L3 dataset containing the metabolic pathways in the 3rd level of the KEGG hierarchy and the metabolites associated with them. Additionally, we constructed a 3rd combined dataset containing both L2 and L3 pathways. Table 1 provides details of these three datasets, including the total number of entries (metabolite pathway pairs) after the cross-join.
Both metabolite and pathway features were normalized using the softmax by bond count technique performed in Huckvale and Moseley [16]. This normalization technique groups each atom color feature of each entry by the bond count of the atom colors, i.e., 0, 1, 2, or 3. Then, the features are summed, providing a sum for each bond count, followed by the features being divided by their corresponding sum. While this is only an entry-wise normalization, in this work, we additionally normalized feature-wise using standard min/max scaling (each feature value ranges between 0 and 1). To compare how the scaling impacts model performance, we created both a scaled and non-scaled version of each of the L2 only, L3 only, and combined datasets, resulting in six total datasets. Note that the non-scaled L2-only dataset was part of the prior work of Huckvale and Moseley [16], and the five additional datasets were introduced in this work.
In the work of Huckvale and Moseley, the Multi-Layer Perceptron (MLP) model performed best and is also scalable, being able to perform just as well when training on the data in batches as opposed to current implementations of XGBoost [19], which are most optimal when trained on the entire dataset all at once [16]. This is a limitation when the dataset does not fit entirely into memory, necessitating batched training. Considering the superior performance and ability to scale to indefinitely large datasets, we only trained and evaluated MLP models in this work. Models were trained to perform binary classification, i.e., given both metabolite features and pathway features, predict whether or not the given metabolite is associated with the given pathway. Hyperparameters were tuned for each of the six subsets, producing six corresponding models. Note that the model trained on the non-scaled L2-only dataset was part of the prior work of Huckvale and Moseley [16], and the five additional models were introduced in this work. Models trained on the L2 datasets had an input layer size equal to the number of features, i.e., 14,655 + 5435 = 20,090. Likewise, the L3 models had an input size of 23,606, and the models trained on the combined dataset had an input size of 23,632. Being a binary classification problem, there was a single output layer that was converted to either 0 or 1 depending on whether it was above or below a binary classification threshold, which we tuned as a hyperparameter. The selected hyperparameters of the L3 and combined models, including hidden layer size and number of layers, are listed in Supplemental Table S1.
Models were evaluated using 10-fold cross-validation (CV) and stratified train test splits [20] over 100 CV iterations, with 10% of the entries sampled in the test sets. Only one test fold is utilized from each iteration. This evaluation methodology includes aspects of bootstrapping without replacement (i.e., a jackknife analysis with a 10% hold-out), which is superior for estimating distributions and statistics of model performance. However, reducing the number of CV iterations from 1000 to 100 was a pragmatic decision given the jump from training with 68,196 entries to 1,045,672 entries. Metrics used to evaluate the models included accuracy, precision, recall, F1 score, and Matthews correlation coefficient (MCC) [21]. While these metrics were used to compare the test sets’ predictions and ground truth, we additionally counted the individual true positives, true negatives, false positives, and false negatives of each individual pathway. This means that we calculated the metrics across all entries in the test set of each CV iteration, and we also split the test sets up by pathway category since each entry includes a pathway identity in the pair. We did not calculate these metrics for each pathway individually in each CV iteration because some of the pathways were too small, i.e., did not have a sufficient number of metabolites associated with them (positive examples) in order to consistently calculate valid scores (zero true/false positives can cause a division by zero when calculating MCC). Counting the individual number of true positives, false negatives, true negatives, and false negatives enabled us to sum these metrics across all 100 CV iterations and construct a single confusion matrix used to calculate the overall MCC per pathway. Since we were able to calculate metrics for the entire test set on each CV iteration, we were able to calculate means and standard deviations for the scores across all pathways. However, individual pathway scores do not have standard deviations since only a single MCC score can be calculated from the confusion matrix summed across all the CV iterations.
The hardware used for this work included machines with up to 64 gigabytes (GB) of random-access memory (RAM) and central processing units (CPUs) ranging from 3.5 gigahertz (GHz) to 3.6 GHz, each with 6 hyperthreaded (HT) cores. The CPU chips included ‘Intel(R) Core(TM) i7-6850K [email protected]’ and ‘Intel(R) Core(TM) i7-5930K [email protected]’. The graphic processing units (GPUs) used had 16 GB of GPU RAM, with the name of the GPU card being ‘NVIDIA GeForce RTX 4080′. The GPUs were sourced from the Nvidia corporation in Santa Clara, California, USA.
All code for this work was written in major version 3 of the Python programming language [22]. Data processing and storage were done using the Pandas version 1.0.3 [23], NumPy version 1.26.4 [24], and H5Py version 3.9.0 [25] packages. Models were constructed and trained using the PyTorch Lightning package version 2.1.1 [26] built upon the PyTorch package version 2.0.1 [27]. Hyperparameters were tuned using the Optuna package version 3.3.0 [28]. The optimal hyperparameters are listed in Supplemental Table S1. Metrics and the stratified train test splits were computed using the Sci-Kit Learn package version 1.3.0 [29]. Results were stored in an SQL database [30] using the DuckDB package version 1.0.0 [31]. Data visualizations were produced using the Tableau business intelligence software version 2024.2.2 [32] as well as the Seaborn package version 0.12.2 [33] built on the MatPlotLib package version 3.7.2 [34]. Statistical correlations were calculated using the SciPy package version 1.11.4 [35]. Computational resource usage of the training and evaluation was collected using the gpu_tracker package version 3.0.0 [36]. All code and data for reproducing these analyses can be accessed via the following Figshare item: https://doi.org/10.6084/m9.figshare.26505907 (accessed on 1 June 2024).

3. Results

3.1. Overall Model Performance across All Pathways

Figure 1 shows violin plots of the MCC scores across all 100 CV iterations for the L3 only and L2 + L3 combined datasets, separated by scaled and non-scaled features. Each MCC score was computed from all predictions in the test set of each CV iteration. As we can see, the L2 + L3 combined dataset has a higher median MCC and less variance than the L3-only dataset, whether the dataset was scaled or not. Scaling the features increased the median performance in both the L3 only and L2 + L3 combined datasets, respectively.
Table 2 shows the mean and standard deviation MCC from the results in Figure 1 and additionally includes those for the L2-only dataset. Table S2 contains scores for the other four metrics, i.e., accuracy, precision, recall, and F1 score. We see from Table 2 that while scaling the features improved the MCC of the L3-only and combined pathways; it decreased the MCC of the L2-only pathways. However, these MCCs are calculated from the entries available in the given dataset, with L2 entries missing from the L3-only dataset. So, the comparisons of these MCCs and violin plots in Figure 1 are not exactly apples-to-apples and oranges-to-oranges comparisons.
To address this shortcoming, Table 3 shows the MCC across only the L2 or L3 pathways within the L2 + L3 combined dataset. While Table 2 shows the MCC of the L2 pathways after training only on the L2 dataset and the L3 pathways after training on only the L3 dataset, Table 3 shows the overall MCC specific to L2 and L3 pathways, separating them after training on the L2 + L3 combined dataset. The MCCs in Table 3 were calculated by summing the true/false positives/negatives across all pathways of the given hierarchy level and across all CV iterations as described in the Methods, which prevents the calculation of a standard deviation. Table S3 contains these sums as well as the number of pathway/CV iteration pairs that were summed. Since there were 100 CV iterations and 12 L2 pathways, there were a total of 1200 counts that contributed to the L2 sums. The L3 pathway sums likewise had 17,200 counts. The summed counts were combined to construct confusion matrixes to calculate a single MCC for each combination of hierarchy levels and determine whether or not the features were scaled. We see that for both hierarchy levels, the pathway categories predicted significantly better when trained on the combined dataset than when trained separately. At the same time, the non-scaled features performed better for the L2 pathways when training on the L2 pathways alone (Table 2); scaling resulted in greater performance for the L2 pathways when trained on the L2 + L3 combined dataset (Table 3). Taking the best results between scaled vs. unscaled datasets, the L2-only trained model had a mean MCC of 0.784 vs. an overall MCC of 0.891 for the L2 + L3 trained model, representing a huge improvement! The improvement is well outside the standard deviations in Table 2, specifically the 0.013 standard deviation for the L2-only trained model and 0.021 standard deviation for the combined model, with the latter standard deviation treated as an upper limit for the L2 pathway overall MCC.
Table 4 shows the computational resource usage of the models trained on the L3 only and L2 + L3 combined datasets, separated by whether the features were scaled. These are the computational resources used when evaluating the models over the 100 CV iterations. We see that scaling the features resulted in slightly longer compute time but slightly less GPU RAM and RAM. For the scaled datasets, the L3-only dataset took longer to train and evaluate despite there being less RAM utilization. This is likely due to the models requiring more epochs to converge. From Huckvale and Moseley [16], L2-only training and evaluation using an unscaled MLP model took roughly 90 min for 1000 CV iterations. In comparison, the training and evaluation on the L2 + L3 combined unscaled dataset across 100 CV iterations took 131.1 h. A large time increase in training and evaluation is to be expected since the L2-only dataset has 68,196 entries versus 1,045,672 entries in the L2 + L3 combined dataset. Resource usage statistics were collected using the gpu_tracker package [36].

3.2. Model Performance Per Pathway in the Combined Dataset

The following results are based solely on models trained on the scaled L2 + L3 combined dataset. Table S4 contains the pathway information used to produce the following plots.

3.2.1. Distribution of Pathway Statistics

There are two ways we measured the size of a pathway. The first is simply the number of metabolites associated with it. Each one of those metabolites has a certain number of non-hydrogen atoms as part of their molecular structure. So, the second way we measured a pathway size is the sum of all the non-hydrogen atoms across all the metabolites associated with the pathway. Figure 2 displays the distribution of the pathway sizes using both metrics.
Figure 3 shows the distribution of overall pathway-specific MCC scores across 100 CV iterations. While six pathways scored an overall MCC of less than 0.4 (see highlighted pathways in Supplemental Table S4), the majority of pathways scored above 0.4, with a median of 0.722.

3.2.2. Comparing Pathway Category Size to MCC

Figure 4 shows scatterplots comparing the pathway size to its overall MCC score across 100 CV iterations. The X axes are shown both on the regular scale as well as on the log10 scale. Both forms of measuring pathway size are shown. The log10 scale shows a clear, nearly linear relationship between pathway size and MCC.
Table 5 shows the correlations between the size of the pathway and the overall MCC of the pathway, as plotted in Figure 4 above. While the correlation coefficients are moderate, the p-values are very low. We see that the correlation is higher and more statistically significant when measuring the pathway size as the sum of the number of non-hydrogen atoms across all compounds in the pathway as compared to the mere number of compounds in the pathway category. The correlation is even stronger when calculating the Pearson correlation coefficient on the log10 scale compared to Spearman on the regular scale.
Since we can calculate the overall MCC of an individual pathway across the CV iterations, we can also calculate the overall MCC across subsets of pathways by summing their confusion matrixes. Figure 5 shows the increase in MCC across the remaining pathways after filtering pathways below a size threshold from the MCC calculation. For example, a threshold size of 0 is the overall MCC across all pathways, and a threshold of 200 only calculates the MCC of pathways with at least 200 associated metabolites (Figure 5a). The same trend is shown when measuring pathway size by a total number of non-hydrogen atoms with thresholds ranging up to 5000 (Figure 5c). Filtering pathways from the calculation also results in fewer pathways to consider, and Figure 5b,d shows the drop in remaining pathways as the threshold increases. We see an increase in MCC up to above 0.88 when only considering the 25 largest pathways. These trends are expected and simply highlight the higher information content of larger pathways with respect to model training.

3.3. Impact of MCC When Filtering Pathways from the Training Set by Pathway Size Thresholds

To determine how including smaller pathways (pathways with less associated metabolites) in the training set impacts the performance of the larger pathways, we created additional subsets by filtering pathways below a size threshold from the combined and scaled subset. With a threshold of 3, no metabolites were filtered since the smallest pathways had at least three metabolites associated with them. Using a threshold of 5 resulted in a subset containing 181 out of the 184 combined pathways and so on, with thresholds of 7, 10, 12, 20, 50, and 100. This is distinct from the filtering in Figure 5 since those results were from filtering pathways from the MCC calculation, but the model was trained on all pathways. For the results in Figure 6, the model was trained on a subset of the pathways to determine how excluding pathways from the training set, not just the MCC calculation, impacts the performance of the 33 largest pathways. The largest threshold was 100, resulting in only 33 pathways remaining in its corresponding training set (Figure 6a). To make all of the filtering thresholds comparable, all MCCs reported are based on these 33 largest pathways. We see that pathways smaller than 12 hinder the performance of these 33 largest pathways, with the lowest performance of 0.853 with a filter of 5 versus the highest performance of 0.872 with the 12-metabolite threshold. However, filtering at 20 or above resulted in decreasing performance, starting at 0.851.
Since the 12-metabolite count threshold dataset performed the best, Figure 7 shows the distribution of MCC scores across CV iterations for the entirety of the test set containing 173 out of 184 original pathways. We see a 0.006 improvement (increase) in mean and a 0.004 improvement (decrease) in standard deviation compared to the scaled L2 + L3 combined dataset that contained all 184 pathways (Table 2).

4. Discussion

In this work, we demonstrate that it is possible to develop a single binary classifier that can predict not just KEGG L2 metabolic pathway categories but more granular L3 pathways, with MCCs mostly above 0.4 and reaching above 0.8 for the largest pathways. Like the work in Huckvale and Moseley [16], this single binary classifier approach uses a cross-join of metabolite and pathway features to create a much larger dataset for training and testing while also allowing prediction on arbitrary metabolites and pathways. This approach enabled the prediction of not just the 12 L2 pathways but the 184 L2 + L3 combined pathways by eliminating the complexity and limitations of training and deploying a binary classifier for every pathway category or a multi-output model with an unrealistically high number of outputs. In particular, a multi-output model would need to be retrained with each new pathway added.
Models trained only on L3 pathways did not perform as well (mean MCC of 0.655 ± 0.031 SD) as models trained only on L2 pathways (mean MCC of 0.784 ± 0.013 SD). Models trained on the L2 + L3 combined dataset outperformed all previous models with a mean MCC of 0.800 ± 0.021 SD. Moreover, when just looking at the performance of L2 pathways, the L2 + L3 combined model had an overall MCC of 0.891! These results clearly demonstrate that adding more pathways increases the overall performance of the model, especially for large pathways. These results are a clear example of transfer learning, where training on additional pathways improves the performance of other pathways. However, we observed a clear trend where smaller pathways perform worse than larger pathways. However, there appears to be a sweet spot around pathways with 12 metabolites and larger that add more information than noise during model training. A training set trimmed to pathways with 12 or more metabolites maximized the overall MCC of 0.872 for the 33 largest pathways as compared to trainsets with more or fewer pathways. This final 12-metabolite threshold dataset produced a mean MCC of 0.806 ± 0.017 SD. Therefore, we recommend that future datasets filter pathways that are too small from the training set in order to improve the performance of the remaining pathways. However, the model is still capable of predicting these smaller pathways if desired. We also observe an increase in performance when normalizing the data feature-wise in addition to entry-wise. Thus, we recommend min-max scaling for future datasets in addition to filtering by pathway size.

5. Conclusions

Despite their increased difficulty to predict, this work demonstrates that metabolite association with individual L3 pathways can be predicted with an overall MCC of 0.726. Moreover, metabolite association with L2 pathways can be predicted with an overall MCC of 0.891 using the L2 + L3 combined dataset, representing transfer learning with increased dataset size. In general, larger pathways perform better than smaller pathways, and the smallest pathways can even decrease the performance of larger pathways. The 12-metabolite threshold dataset produced the highest mean MCC of 0.806 ± 0.017 SD. Thus, filtering these smallest pathways can maximize model performance, but filtering too much can decrease the performance due to removing valuable information for training.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/metabo14090510/s1, Table S1: Optimal hyperparameters by dataset; Table S2: Model performance metrics for each dataset; Table S3: Sum of True/False Positives/Negative metrics across CV iterations by pathway hierarchy level (L2 or L3); Table S4: Characteristics and performance metrics for each L2 and L3 pathway.

Author Contributions

Conceptualization, E.D.H. and H.N.B.M.; methodology, E.D.H. and H.N.B.M.; software, E.D.H.; validation, E.D.H. and H.N.B.M.; formal analysis, E.D.H.; investigation, E.D.H.; resources, E.D.H.; data curation, E.D.H.; writing—original draft preparation, E.D.H.; writing—review and editing, E.D.H. and H.N.B.M.; visualization, E.D.H.; supervision, H.N.B.M.; project administration, H.N.B.M.; funding acquisition, H.N.B.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Science Foundation, grant number 2020026 (PI Moseley), and by the National Institutes of Health, grant number P42 ES007380 (University of Kentucky Superfund Research Program Grant; PI Pennell). The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Science Foundation or the National Institute of Environmental Health Sciences.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All code and data for reproducing these analyses can be accessed via the following Figshare item: https://doi.org/10.6084/m9.figshare.26505907.

Acknowledgments

We thank the University of Kentucky Center for Computational Sciences and Information Technology Services Research Computing for their support and use of the Lipscomb Compute Cluster and associated research computing resources.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Voet, D.; Voet, J.G.; Pratt, C.W. Fundamentals of Biochemistry: Life at the Molecular, 5th ed.; Wiley: Hoboken, NJ, USA, 2016. [Google Scholar]
  2. Berg, J.M.; Tymoczko, J.L.; Gatto, G.J.; Stryer, L. Biochemistry, 9th ed.; W. H. Freeman: New York, NY, USA, 2019. [Google Scholar]
  3. Nelson, D.L.; Cox, M.M. Principles of Biochemistry, 8th ed.; W. H. Freeman: New York, NY, USA, 2021. [Google Scholar]
  4. Kanehisa, M.; Furumichi, M.; Sato, Y.; Kawashima, M.; Ishiguro-Watanabe, M. KEGG for taxonomy-based analysis of pathways and genomes. Nucleic Acids Res. 2023, 51, D587–D592. [Google Scholar] [CrossRef] [PubMed]
  5. Kanehisa, M.; Goto, S. KEGG: Kyoto encyclopedia of genes and genomes. Nucleic Acids Res. 2000, 28, 27–30. [Google Scholar] [CrossRef] [PubMed]
  6. Kanehisa, M. Toward understanding the origin and evolution of cellular organisms. Protein Sci. 2019, 28, 1947–1951. [Google Scholar] [CrossRef] [PubMed]
  7. Caspi, R.; Billington, R.; Keseler, I.M.; Kothari, A.; Krummenacker, M.; Midford, P.E.; Ong, W.K.; Paley, S.; Subhraveti, P.; Karp, P.D. The MetaCyc database of metabolic pathways and enzymes—A 2019 update. Nucleic Acids Res. 2020, 48, D445–D453. [Google Scholar] [CrossRef] [PubMed]
  8. Milacic, M.; Beavers, D.; Conley, P.; Gong, C.; Gillespie, M.; Griss, J.; Haw, R.; Jassal, B.; Matthews, L.; May, B.; et al. The reactome pathway knowledgebase 2024. Nucleic Acids Res. 2024, 52, D672–D678. [Google Scholar] [CrossRef]
  9. Du, B.-X.; Zhao, P.-C.; Zhu, B.; Yiu, S.-M.; Nyamabo, A.K.; Yu, H.; Shi, J.-Y. MLGL-MP: A Multi-Label Graph Learning framework enhanced by pathway interdependence for Metabolic Pathway prediction. Bioinformatics 2022, 38, i325–i332. [Google Scholar] [CrossRef]
  10. Baranwal, M.; Magner, A.; Elvati, P.; Saldinger, J.; Violi, A.; Hero, A.O. A deep learning architecture for metabolic pathway prediction. Bioinformatics 2020, 36, 2547–2553. [Google Scholar] [CrossRef]
  11. Hu, L.-L.; Chen, C.; Huang, T.; Cai, Y.-D.; Chou, K.-C. Predicting biological functions of compounds based on chemical-chemical interactions. PLoS ONE 2011, 6, e29491. [Google Scholar] [CrossRef]
  12. Yang, Z.; Liu, J.; Wang, Z.; Wang, Y.; Feng, J. Multi-Class Metabolic Pathway Prediction by Graph Attention-Based Deep Learning Method. In Proceedings of the 2020 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Seoul, Republic of Korea, 16–19 December 2020; pp. 126–131. [Google Scholar]
  13. Huckvale, E.D.; Moseley, H.N.B. A cautionary tale about properly vetting datasets used in supervised learning predicting metabolic pathway involvement. PLoS ONE 2024, 19, e0299583. [Google Scholar] [CrossRef]
  14. Huckvale, E.D.; Powell, C.D.; Jin, H.; Moseley, H.N.B. Benchmark dataset for training machine learning models to predict the pathway involvement of metabolites. Metabolites 2023, 13, 1120. [Google Scholar] [CrossRef]
  15. Jin, H.; Moseley, H.N.B. md_harmonize: A Python Package for Atom-Level Harmonization of Public Metabolic Databases. Metabolites 2023, 13, 1199. [Google Scholar] [CrossRef] [PubMed]
  16. Huckvale, E.D.; Moseley, H.N.B. Predicting the pathway involvement of metabolites based on combined metabolite and pathway features. Metabolites 2024, 14, 266. [Google Scholar] [CrossRef] [PubMed]
  17. Guo, X.; Yin, Y.; Dong, C.; Yang, G.; Zhou, G. On the class imbalance problem. In Proceedings of the 2008 Fourth International Conference on Natural Computation, Jinan, China, 18–20 October 2008; pp. 192–201. [Google Scholar]
  18. Huckvale, E.; Moseley, H.N.B. kegg_pull: A software package for the RESTful access and pulling from the Kyoto Encyclopedia of Gene and Genomes. BMC Bioinform. 2023, 24, 78. [Google Scholar] [CrossRef] [PubMed]
  19. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining—KDD ’16, San Francisco, CA, USA, 13–17 August 2016; ACM Press: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
  20. Verstraeten, G.; Van den Poel, D. Using Predicted Outcome Stratified Sampling to Reduce the Variability in Predictive Performance of a One-Shot Train-and-Test Split for Individual Customer Predictions; Working Papers of Faculty of Economics and Business Administration, Ghent University, Belgium 06/360; Ghent University, Faculty of Economics and Business Administration: Ghent, Belgium, 2006; Volume 214. [Google Scholar]
  21. Chicco, D.; Starovoitov, V.; Jurman, G. The benefits of the matthews correlation coefficient (MCC) over the diagnostic odds ratio (DOR) in binary classification assessment. IEEE Access 2021, 9, 47112–47124. [Google Scholar] [CrossRef]
  22. Rossum, G.V.; Drake, F.L. Python 3 Reference Manual; CreateSpace: Scotts Valley, CA, USA, 2009; ISBN 1441412697. [Google Scholar]
  23. The pandas development team pandas-dev/pandas: Pandas 1.0.3. Zenodo 2020. [CrossRef]
  24. Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N.J.; et al. Array programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef]
  25. Collette, A. Python and HDF5; O’Reilly: Springfield, MO, USA, 2013. [Google Scholar]
  26. Falcon, W.; Borovec, J.; Wälchli, A.; Eggert, N.; Schock, J.; Jordan, J.; Skafte, N.; Ir1dXD; Bereznyuk, V.; Harris, E.; et al. PyTorchLightning/pytorch-lightning: 0.7.6 release. Zenodo 2020. [Google Scholar] [CrossRef]
  27. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L.; et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. arXiv 2019, arXiv:1912.01703. [Google Scholar] [CrossRef]
  28. Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A Next-generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining—KDD ’19, Anchorage, AK, USA, 4–8 August 2019; ACM Press: New York, NY, USA, 2019; pp. 2623–2631. [Google Scholar]
  29. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Müller, A.; Nothman, J.; Louppe, G.; et al. Scikit-learn: Machine Learning in Python. arXiv 2012, arXiv:1201.0490. [Google Scholar] [CrossRef]
  30. Chamberlin, D. SQL. In Encyclopedia of Database Systems; Liu, L., Özsu, M.T., Eds.; Springer: Boston, MA, USA, 2009; pp. 2753–2760. ISBN 978-0-387-35544-3. [Google Scholar]
  31. Raasveldt, M.; Mühleisen, H. Duckdb: An embeddable analytical database. In Proceedings of the 2019 International Conference on Management of Data, Amsterdam, The Netherlands, 30 June–5 July 2019; ACM: New York, NY, USA, 2019; pp. 1981–1984. [Google Scholar]
  32. Salesforce. Tableau Public; Salesforce: San Francisco, CA, USA, 2024. [Google Scholar]
  33. Waskom, M. seaborn: Statistical data visualization. JOSS 2021, 6, 3021. [Google Scholar] [CrossRef]
  34. Hunter, J.D. Matplotlib: A 2D Graphics Environment. Comput. Sci. Eng. 2007, 9, 90–95. [Google Scholar] [CrossRef]
  35. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0 Contributors SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed]
  36. Huckvale, E.D.; Moseley, H.N.B. gpu_tracker: Python package for tracking and profiling GPU utilization in both desktop and high-performance computing environments. arXiv 2024, arXiv:2404.01473. [Google Scholar]
Figure 1. Violin plots of MCC scores across 100 CV iterations for models trained on the L3 only or L2 + L3 combined datasets, with or without scaling.
Figure 1. Violin plots of MCC scores across 100 CV iterations for models trained on the L3 only or L2 + L3 combined datasets, with or without scaling.
Metabolites 14 00510 g001
Figure 2. Histograms of pathway size. (a) Histogram of a number of metabolites associated with a pathway. (b) Histogram of number of non-hydrogen atoms summed across metabolites associated with a pathway.
Figure 2. Histograms of pathway size. (a) Histogram of a number of metabolites associated with a pathway. (b) Histogram of number of non-hydrogen atoms summed across metabolites associated with a pathway.
Metabolites 14 00510 g002
Figure 3. Histogram of pathway-specific overall MCC scores.
Figure 3. Histogram of pathway-specific overall MCC scores.
Metabolites 14 00510 g003
Figure 4. Scatterplots of overall MCC scores versus pathway size. (a,b) Scatterplot of overall MCC score versus number of metabolites associated with a pathway. (c,d) Scatterplot of overall MCC score versus number of non-hydrogen atoms summed across metabolites associated with a pathway.
Figure 4. Scatterplots of overall MCC scores versus pathway size. (a,b) Scatterplot of overall MCC score versus number of metabolites associated with a pathway. (c,d) Scatterplot of overall MCC score versus number of non-hydrogen atoms summed across metabolites associated with a pathway.
Metabolites 14 00510 g004
Figure 5. Line plots of overall MCC and pathway size based on pathway size filtering. (a) Line plot of overall MCC based on metabolite count filtering. (b) Line plot of number of pathways based on metabolite count filtering. (c) Line plot of overall MCC based on non-hydrogen atom count filtering. (d) Line plot of number of pathways based on non-hydrogen atom count filtering.
Figure 5. Line plots of overall MCC and pathway size based on pathway size filtering. (a) Line plot of overall MCC based on metabolite count filtering. (b) Line plot of number of pathways based on metabolite count filtering. (c) Line plot of overall MCC based on non-hydrogen atom count filtering. (d) Line plot of number of pathways based on non-hydrogen atom count filtering.
Metabolites 14 00510 g005
Figure 6. Bar plots of model performance based on pathway size filtering of the training set. (a) Bar plot of the number of pathways included in training based on metabolite count filtering. (b) Bar plot of overall MCC of the 33 largest pathways based on metabolite count filtering of the training set.
Figure 6. Bar plots of model performance based on pathway size filtering of the training set. (a) Bar plot of the number of pathways included in training based on metabolite count filtering. (b) Bar plot of overall MCC of the 33 largest pathways based on metabolite count filtering of the training set.
Metabolites 14 00510 g006
Figure 7. Histogram of MCC score across 100 CV iterations trained on the 12-metabolite count threshold dataset.
Figure 7. Histogram of MCC score across 100 CV iterations trained on the 12-metabolite count threshold dataset.
Metabolites 14 00510 g007
Table 1. Description of cross-joined metabolite-pathway paired datasets used for model training and testing.
Table 1. Description of cross-joined metabolite-pathway paired datasets used for model training and testing.
Dataset# Metabolite Features# Pathway Features# Metabolites# Pathways# Entries
L214,655543556831268,196
L314,65589515683172977,476
Combined14,655897756831841,045,672
Table 2. Mean model MCC performance metrics based on the given dataset.
Table 2. Mean model MCC performance metrics based on the given dataset.
DatasetScaledMean MCCStandard Deviation
CombinedTrue0.8000.021
False0.7710.009
L2 onlyTrue0.7280.029
False0.7840.013
L3 onlyTrue0.6550.031
False0.6180.048
Table 3. Overall L2 + L3 combined model MCC performance metrics specific to pathway hierarchy level.
Table 3. Overall L2 + L3 combined model MCC performance metrics specific to pathway hierarchy level.
Test SetScaledMCC
L2 onlyTrue0.891
False0.850
L3 onlyTrue0.726
False0.703
Table 4. Hardware utilization for model training and evaluation across 100 CV iterations.
Table 4. Hardware utilization for model training and evaluation across 100 CV iterations.
DatasetScaledResourceUnitAmount
CombinedTrueCompute timeHours131.8
GPU RAMGigabytes4.3
RAMGigabytes13.6
FalseCompute timeHours131.1
GPU RAMGigabytes4.6
RAMGigabytes14.1
L3 onlyTrueCompute timeHours171.3
GPU RAMGigabytes2.9
RAMGigabytes12.6
FalseCompute timeHours127.8
GPU RAMGigabytes4.1
RAMGigabytes16.6
Table 5. Correlations between overall MCC and pathway size.
Table 5. Correlations between overall MCC and pathway size.
Pathway Size MetricCorrelation Coefficient/Scalep-Value
# Compounds0.442 Spearman/regular3.463 × 10−11
# Non-hydrogen Atoms0.501 Spearman/regular4.234 × 10−14
# Compounds0.572 Pearson/log102.177 × 10−17
# Non-hydrogen Atoms0.584 Pearson/log103.160 × 10−18
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Huckvale, E.D.; Moseley, H.N.B. Predicting the Association of Metabolites with Both Pathway Categories and Individual Pathways. Metabolites 2024, 14, 510. https://doi.org/10.3390/metabo14090510

AMA Style

Huckvale ED, Moseley HNB. Predicting the Association of Metabolites with Both Pathway Categories and Individual Pathways. Metabolites. 2024; 14(9):510. https://doi.org/10.3390/metabo14090510

Chicago/Turabian Style

Huckvale, Erik D., and Hunter N. B. Moseley. 2024. "Predicting the Association of Metabolites with Both Pathway Categories and Individual Pathways" Metabolites 14, no. 9: 510. https://doi.org/10.3390/metabo14090510

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop