Low back pain (LBP) is a highly common musculoskeletal condition and the leading cause of work absenteeism. This project aims to develop a medical test to help healthcare professionals decide on and assign physical treatment for patients with nonspecific LBP. The design uses machine learning (ML) models based on the classification of motion capture (MoCap) data obtained from the range of motion (ROM) exercises among healthy and clinically diagnosed patients with LBP from Imbabura–Ecuador. The following seven ML algorithms were tested for evaluation and comparison: logistic regression, decision tree, random forest, support vector machine (SVM), k-nearest neighbor (KNN), multilayer perceptron (MLP), and gradient boosting algorithms. All ML techniques obtained an accuracy above 80%, and three models (SVM, random forest, and MLP) obtained an accuracy of >90%. SVM was found to be the best-performing algorithm. This article aims to improve the applicability of inertial MoCap in healthcare by making use of precise spatiotemporal measurements with a data-driven treatment approach to improve the quality of life of people with chronic LBP.