This study aims to assess the proficiency of supervised machine learning techniques in discriminating between normal and abnormal bone mineral density (BMD) by leveraging clinical features and texture analysis of spinal bone tissue in patients diagnosed with primary hyperparathyroidism (PHP). From a total of 219 patients diagnosed with PHP, the 58 who had undergone both DXA and abdominal CT scan were included in this study. BMD was assessed by quantifying the Hounsfield units (HU) and performing texture analysis on every CT scan. The first lumbar vertebral body texture features were extracted by using LifeX 7.3.0 software. Initial classification into normal or abnormal BMD was performed with different machine learning techniques by training a model with the variables obtained from the texture analysis. Differentiating osteopenia from osteoporosis was evaluated by creating two models, one including the variables obtained from the texture analysis and HU and another one which only included the HU. Their performance was evaluated in the validation and test groups by calculating the accuracy, precision, recall, F1 score, and AUC. Bayes demonstrated higher performance for discerning individuals with normal and abnormal BMD, with an AUC of 0.916. The results from the second analysis showed a better performance for the model including the variables obtained from the texture analysis compared to the model that was solely trained with the HU (AUC in the training group of 0.77 vs. 0.65 in the test groups, respectively). In conclusion, analysis of BMD obtained from abdominal CT scans including texture analysis provide a better classification of normal density, osteopenia and osteoporosis in patients with PHP.