Construction of a Machine Learning Pipeline Based on NMR Data: Analysis and Determination of the Primary Structure of Single-Stranded RNA
Abstract
This study aims to establish a machine learning pipeline for determining and analyzing the primary structure using NMR data of single-stranded RNA. The pipeline consists of two steps, stage 1 uses an RNA binary classification model, and stage 2 uses an A/U/G/C four-classification recognition and sorting model. During the experiment, the single-stranded RNA NMR data collected from BMRB and NP-MRD data sources were processed using category imbalance calculation and SMOTE oversampling methods. Models such as random forest and gradient boosting, 5-fold cross-validation, Wilson score confidence interval, and generalization ability evaluation were used to determine the generalization ability of the models and whether overfitting occurred. Results show that the best model for stage1 is the Random Forest model (with 30 features)with an accuracy rate of 90.48%; the best model for stage2 is the Gradient Boosting model (100 trees, depth 5, learning rate 0.1) with an accuracy rate of 96.30% on the independent test set. And in the feature engineering of the stage2 model, four H6-H5 difference features were added, which cut down the confusion between C and U and improved the accuracy of the model. This machine learning pipeline can predict RNA sequences of 8-20 nucleotides based on NMR data.
References
- Li, D.W., Hansen, A. L., Bruschweiler-Li, L., et al (2022). Fundamental and practical aspects of machine learning for the peak picking of biomolecular NMR spectra. Journal of Biomolecular NMR, 76(4), 649–657. https: //doi.org/10.1007/s10858-022-00393-1
- Cortés, I., Cuadrado, C., Hernández Daranas, A., et al (2023). Machine learning in computational NMR-aided structural elucidation. Frontiers in Natural Products, 2, 122426. https: //doi.org/10.3389/fnphe.2023.1122426
- Sato, K., & Hamada, M. (2023). Recent trends in RNA informatics: a review of machine learning and deep learning for RNA secondary structure prediction and RNA drug discovery. Briefings in Bioinformatics, 24(4), 1–13. https: //doi.org/10.1093/bib/bbad186
- Wang, Y., Han, G., Jiang, X., et al. (2021). Chemical shift prediction of RNA imino groups: application toward characterizing RNA excited states. Nature Communications, 12, 1595. https: //doi.org/10.1038/s41467-021-21840-x
- Kuhn, S. (2022). Applications of machine learning and artificial intelligence in NMR. Magnetic Resonance in Chemistry, 60(12), n/a. https: //doi.org/10.1002/mrc.5310
- Hoch, J. C., Baskaran, K., Burr, H., et al (2023). Biological magnetic resonance data bank. Nucleic Acids Research, 51(D1), D368–D376. https: //doi.org/10.1093/nar/gkac1050
- Wishart, D. S., Sajed, T., Pin, M., et al (2025). The Natural Products Magnetic Resonance Database (NP-MRD) for 2025. Nucleic Acids Research, 53(D1), D700–D708. https: //doi.org/10.1093/nar/gkae10
- He, H., & Garcia, E. A. (2009). Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9), 1263–1284. https: //doi.org/10.1109/TKDE.2008.239
- Chawla, N. V., Bowyer, K. W., Hall, L. O., et al (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. https: //doi.org/10.1613/jair.953
- Yang, Y., & Mirzaei, G. (2024). Performance analysis of data resampling on class imbalance and classification techniques on multi-omics data for cancer classification. PloS one, 19(2), e0293607. https: //doi.org/10.1371/journal.pone.0293607
- Kohavi, R. (1995). A study of cross-validation and bootstrap for accuracy estimation and model selection. In Proceedings of the International Joint Conference on Artificial Intelligence (pp. 1137-1145). https: //www.ijcai.org/Proceedings/95-2/Papers/016.pdf
- Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. https: //doi.org/10.1016/j.ipm.2009.03.002
- Saha, U. S., Vendruscolo, M., Carpenter, A. E., et al (2024). Step Forward Cross Validation for Bioactivity Prediction: Out of Distribution Validation in Drug Discovery. bioRxiv: the preprint server for biology, 2024.07.02.601740. https: //doi.org/10.1101/2024.07.02.601740
- Robinson, M. C., Glen, R. C., & Lee, A. A. (2020). Validating the validation: reanalyzing a large-scale comparison of deep learning and machine learning models for bioactivity prediction. Journal of computer-aided molecular design, 34(7), 717–730. https: //doi.org/10.1007/s10822-019-00274-0
- Wilson, E. B. (1927). Probable Inference, the Law of Succession, and Statistical Inference. Journal of the American Statistical Association, 22(158), 209–212. https: //doi.org/10.1080/01621459.1927.10502953
- Bayle, P., Bayle, A., Janson, L., et al (2020). Cross-validation confidence intervals for test error. In Advances in Neural Information Processing Systems (Vol. 33). https: //proceedings.neurips.cc/paper/2020/file /bce9abf229ffd7e570818476ee5d7dde-Paper.pdf
- Boldini, D., Grisoni, F., Kuhn, D., et al (2023). Practical guidelines for the use of gradient boosting for molecular property prediction. Journal of Cheminformatics, 15, 73. https: //doi.org/10.1186/s13321-023-00743-7
- Markoulidakis, I., Rallis, I., Georgoulas, I., et al (2021). Multiclass Confusion Matrix Reduction Method and Its Application on Net Promoter Score Classification Problem. Technologies, 9(4), 81. https: //doi.org/10.3390/technologies9040081
- Bharathi. (2021). Latest guide on confusion matrix for multi-class classification. Analytics Vidhya. https: //www.analyticsvidhya.com/blog/2021/06/confusion-matrix-for-multi-class-classification/