Within the external dataset, individuals with osteoporosis exhibited significantly lower levels of age, BMI, HDL-C, TC, ALB, TBIL, TG, and TyG compared to those without osteoporosis (P < 0.05). Here, ALB is linked to osteoporosis.