Introduction

Hip fractures that occur in Asia are forecast to account for half of all global hip fractures by 20501. Osteoporosis (OP) is the most common bone disorder in the world, resulting in reduced bone strength, decreases in bone mass, and microarchitectural bone deterioration2. Type 2 diabetes mellitus (T2DM) and OP are both highly prevalent chronic diseases, and the association between the two is an area of active research. Diabetes is a group of metabolic diseases characterized by hyperglycemia resulting from defects in insulin secretion, insulin action, or both. T2DM, which accounts for 90–95% of those with diabetes previously referred to as non–insulin-dependent diabetes, T2DM, or adult-onset diabetes, encompasses individuals who have insulin resistance and usually have relative (rather than absolute) insulin deficiency3. Diabetes increases rapidly in the world, especially in Asia. In Asian countries, the predicted prevalence of diabetes by the year 2030 is more than double-rates that in 2000.

Both T2DM and OP are affected by aging and quite often coexist. Furthermore, the fracture risk in patients with T2DM is increased4. In T2DM hyperinsulinemia, insulin resistance and increased body weight may result in an increase of bone mass, however, accumulation of advanced glycation end products within the bone collagen driven by glucotoxicity may increase the cortical porosity5.It is generally agreed that vitamin D is responsible for maintaining normal levels of serum Ca and P. The insulin resistance was more in vitamin D deficiency state6. Previous research show that 25-hydroxyvitamin D (25[OH]D) concentrations are negatively correlated with insulin resistance and bone turnover7. Elevated blood sugar raises the risk of OP in patients with T2DM8. Taking vitamin D can prevent OP or improve outcomes9. However, little evidence was found to exploring the association between blood glucose levels and 25(OH)D in patients with OP. Therefore, we conducted a study and hypothesized that fasting glucose is negatively correlated with 25(OH)D in the OP population.

Materials and methods

Study design and population

This is a retrospective cross-sectional study from a prospectively collected database (January 2015–March 2022) at our tertiary referral center. A total of 2409 consecutive patients with newly diagnosed OP and who were hospitalized were included in the study. The study population included OP patients older than 50 years who visited the clinic between 2015 and 2022. OP is diagnosed based on the presence of fragility fractures in the absence of other metabolic bone disorders, and even with a normal bone mineral density (T-score). OP is also diagnosed based on a T-score of − 2.5 or lower, even in the absence of a prevalent fracture10. Patients were excluded if they exhibited: 1) Age < 50 years (n = 73). 2). Patients who fasted for less than 8 h to undergo fasting blood glucose (FBG) testing (n = 54). 3). Patients suffering from medical conditions or taking medications that interfere with glucose metabolism (n = 125). 4). Patients with incomplete data (n = 73). A total of 2084 patients did not meet exclusion criteria and were enrolled in the study. In this study, we did not focus on whether or not patients had been diagnosed with diabetes, and as such the diagnosis of diabetes had no impact on this study of the association between 25(OH)D and blood glucose levels. A schematic diagram of our patient selection process is presented in Fig. 1. We received ethical approval from the Affiliated Kunshan Hospital of Jiangsu University (approval No. 2020-03-046-K01), and the study was compliant with the Declaration of Helsinki. Patient information was initially documented for the hospital’s quality improvement purposes. Data analyzers were blinded to the identity of patients. Written informed consent was not required due to the anonymous data gathering and observational nature of the study.

Figure 1
figure 1

A schematic diagram of the study design. FBG, fast blood glucose.

Dependent variable

FBG is the dependent variable of this study. It has important significance for diabetes and can be conveniently and objectively observed. FBG were measured on an empty stomach (at least 8 h) to ensure the accuracy of blood glucose. In clinical settings, the FBG is strongly recommended because it is easier and faster to perform, more convenient and acceptable to patients, more reproducible, and less expensive.

Measurement of vitamin D

In humans, the most abundant form of vitamin D in the blood is 25(OH)D, and serum levels are used to reliably estimate a patient’s vitamin D status. Serum 25(OH)D concentrations were measured immediately using an automated electrochemiluminescence immunoassay on a Roche Cobas 8000/e602 analyzer (Roche Diagnostics, Mannheim, Germany). There is no medical consensus regarding the status cut-off values of 25(OH)D concentrations. Vitamin D deficiency is defined as a 25(OH)D below 20 ng/ml (50 nmol/L), and vitamin D insufficiency as a 25(OH)D of 21–29 ng/ml (52.5–72.5 nmol/L)11. The time of blood collection was included in the analysis. Seasons were defined as: Spring, March–May; Summer, June–August; Autumn, September–November; Winter, December–February.

Laboratory tests

All of the laboratory tests were analyzed using the Wako Assay Kit loaded on the LABOSPECT 008 automated analyzer (Hitachi High-Technologies, Tokyo, Japan). FBG were measured using the hexokinase glucose-6-phosphate dehydrogenase method and measured by an automatic biochemical analyzer (Accu-Chek Guide; Roche Diabetes Care GmbH, Germany).

Covariates

The covariates analyzed in this study were age, sex, body mass index (BMI), season of blood collection, year of blood collection, neutrophil count (reference range: 2–7.5 × 109/L), lymphocyte count (reference range: 2–4 × 109/L), category of diagnosis (OP without OPF, OPF), hemoglobin (reference range: male: 120–165 g/L, female: 110–150 g/L), calcium level (reference range: 2.25–2.75 mmol/L), albumin level (reference range: 35–50 g/L), high-density lipoprotein (HDL) level (reference range: 1.16–1.55 mmol/L), and the Charlson comorbidity index (CCI) score 12. All laboratory variables were measured after hospitalization, and patients were asked to fast before the collection of blood samples. Comorbidity was assessed using the CCI score.

Statistics

Patient demographic, clinical, and laboratory characteristics are expressed as mean (standard deviation [SD]) or/and median (first quartile [Q1] to third quartile [Q3]) in case of continuous variables, and as frequency (percentage) in the case of categorical variables; P-value on ANOVA, P-value* on Kruskal–Wallis Rank Test for continuous variables or Fisher Exact for categorical variables with Expected < 10. A univariate analysis was carried out with the Pearson’s chi-square or Fisher’s exact test in case of categorical data. Independent samples t-test was employed for continuous variables with normal distribution, and Mann–Whitney U test was employed for non-normally distributed continuous data. We also conducted univariate logistic regression analysis to evaluate the association between the characteristics of OP patients and FBG.

Using generalized estimating equations (GEE) allowed us to evaluate independent associations between FBG and maternal serum 25(OH)D by controlling for the influence of covariances. We calculated the results of the unadjusted or minimally adjusted analysis and those from fully adjusted analysis. First, collinearity diagnosis of covariances was performed using variance inflation factor (VIF) analysis (the variable average total cholesterol was first removed due to VIF > 10). Then, a judgement on whether to adjust covariances was made using the following principles: Criteria 1, the covariate is added to the basic model or removed from the full model and the matched odds ratio (OR) or standard regression coefficient (β) is changed by at least 10%; Criteria 2: Criteria 1 or a covariate P-value of < 0.1 in the univariate model.

Non-linear relationships were additionally identified via a generalized additive model (GAM), and on finding a non-linear correlation, the threshold effect in terms of the smoothing curve was calculated using a two-piecewise linear regression model. When a clear ratio was apparent in the smoothing curve, the recursive method was applied to automatically calculate the turning point at which to use the maximum likelihood model.

In addition, to test the robustness and potential variation in the different subgroups, we repeated the subgroup analyses while stratifying by different covariates.

All statistical analyses were performed using the Empower Stats (www.empowerstats.com, X&Y solutions, Inc., Boston, MA, USA) and R software version 3.6.3 (http://www.r-project.org). A P-value < 0.05 was set as the significance threshold.

Results

Patients characteristics

There were 2,084 patients included in final analysis. 1089 patients had serum 25(OH)D of 20 ng/ml or less, 718 patients had serum 25(OH)D between 20 and 30 ng/ml, while the others had serum 25(OH)D above 30 ng/ml. Patients with vitamin D deficiency had the highest mean FBG, at 6.29 mmol/L. Patients with serum 25(OH)D above 30 ng/ml had the lowest fasting glucose (Mean, 5.77; SD, 1.58; mmol/L). Women are more likely than men to be deficient in vitamin D. With the exception of the lymphocyte count and the year of blood drawing, it appeared that all variables were statistically significant with respect to serum 25(OH)D levels (Table 1).

Table 1 Characteristics of study participants.

Univariate analysis

Furthermore, we performed univariate analysis, as shown in Table 2. We found that serum 25(OH)D levels were inversely associated with FBG below 20 ng/ml, whereas above 20 ng/ml, FBG values did not appear to have a statistically significant relationship with serum 25(OH)D without adjusting for variables. We also found that hemoglobin content, albumin, serum calcium, lymphocytes, neutrophils, and high-density lipoprotein had significant significance for the change of FBG in univariate analysis.

Table 2 Univariate analysis for FBG.

Multivariate linear regression analysis

Table 3 show the independent association between serum 25(OH)D and FBG using multivariate linear regression analysis. For all patients’ serum 25(OH)D was significantly negatively associated with FBG in the unadjusted model (β, − 0.02; 95% CI, − 0.03, − 0.02; P < 0.0001). And after adjusting age, sex, BMI, neutrophil count, category of diagnosis, season of blood collection and year of blood collection, the negative association was significant (β, − 0.01; 95% CI − 0.02, − 0.00; P = 0.0473). Further adjusting hemoglobin, calcium, albumin, high density lipoprotein, lymphocyte count and CCI, the negative association was significant (β, − 0.02; 95% CI, − 0.03, − 0.01; P = 0.0011).

Table 3 Relationship between serum 25(OH)D level and FBG in different models.

Threshold analysis and the spline smoothing plot

The data in Table 4 correspond to threshold effect analyses assessing the association between serum 25(OH)D and FBG levels. These analyses were adjusted for age, sex, BMI, neutrophil count, category of diagnosis, season of blood collection, year of blood collection, hemoglobin, calcium, albumin, high density lipoprotein, lymphocyte count and CCI, and ultimately revealed a significant non-linear relationship with an inflection point (K) at 23.39 ng/mL. This indicates that at serum 25(OH)D level below this threshold, a strong significant negative relationship is evident between serum 25(OH)D level and glucose (β, − 0.04; 95% CI, − 0.05, − 0.02; P = 0.0002). In contrast, when serum 25(OH)D levels exceed 23.39 ng/mL, these two variables are not significantly related (β, − 0.00; 95% CI − 0.02, 0.02; P = 0.9616) (Fig. 2).

Table 4 Threshold effect analysis examining the relationship between serum 25(OH)D level and FBG.
Figure 2
figure 2

The adjusted smoothed curves of the 25(OH)D and FBG. In this plot, the red line indicates the nonlinear association between 25(OH)D and FBG, and the blud lines serve as 95% confidence interval A nonlinear relationship was observed after adjusting for age, gender, BMI, neutrophil count, diagnosis categorical, season of blood collection, year of blood collection, hemoglobin, calcium, albumin, high density lipoprotein, lymphocyte count and CCI.

Subgroup analysis

To further confirm that the findings are robust to potential confounders in fully adjusted Model II, we performed the subgroup analyses while stratifying by sex, age, BMI, neutrophil count, hemoglobin, albumin, lymphocyte count, high density lipoprotien, category of diagnosis, supplementing vitamin D categorical, season of blood collection, year of blood collection and ICC (Table 5). All analysis were adjusted for the above ten covariates except the subgroup variable. We found significant interactions (Table S1) between the associations of hemoglobin with blood glucose and vitamin D in both unadjusted and incomplete adjusted models (P = 0.0280; P = 0.0175), with changes in vitamin D and blood glucose being more pronounced when hemoglobin was less than 110 g/L (β, − 0.05; 95% CI − 0.07–0.02; P = 0.0002; β, − 0.04; 95% CI − 0.06–0.01; P = 0.0037). However, in the fully adjusted model, the interaction was not significant (P = 0.0972). We did not find any significant interaction effects between exposed factors (i.e. gender, Season of blood collection, year of blood collection, Neutrophil count, Main diagnosis, BMI, Hemoglobin, Calcium, Albumin, High Density Lipoprotein, CCI and Lymphocyte count. all P ≥ 0.05).

Table 5 Subgroup analyses examining the relationship between serum 25(OH)D level and FBG.

Discussion

In this retrospective cross-section study, we found that in the osteoporotic population, we explored the correlation between serum 25(OH)D and FBG, and found that when adjusting for any factor, FBG concentration decreased by 0.02 mmol/L for every 1 ng/ mL increase in serum 25(OH)D concentration. In the adjusted 2 model, FBG decreased by 0.02 mmol/L for every 1 ng/mL increase in serum 25(OH)D concentration. Subsequently, we performed curve fitting and threshold effect value analysis, and found that fasting glucose and serum 25(OH)D were not only linear, but also non-linear. When the concentration of 25(OH)D was less than 23.39 ng/mL, the relationship between the two was most significant, and the 25(OH)D increased by 1 ng/mL, and the FBG decreased by 0.04 mmol/L. However, when the concentration of 25(OH)D was greater than 23.39 ng/ mL, the relationship between the two was not obvious. Therefore, we suggest that vitamin D supplementation in patients with OP should reach 23.39 ng/ mL, which may reduce blood glucose. In the end, we complete subgroup analyses examining the relationship between serum 25(OH)D level and glucose. The relationship between FBG and 25(OH)D was stable. But it also found that hemoglobin may be mediated by interaction (Table S1).

The few studies that have investigated the relationship between FBG levels and 25(OH)D have found no relationship. Intraperitoneal injections of vitamin D (7 ng/g) administered daily for 15 days to female albino mice with alloxan-induced diabetes led to significant improvements in glucose metabolism. Specifically, the treatment resulted in lower serum glucose levels, enhanced activity of enzymes involved in glucose metabolic pathways, restoration of glucose homeostasis, and reduced pancreatic and liver damage, according to animal studies12. Administration of 20,000 IU/kg cholecalciferol via intraperitoneal injection in male Sprague–Dawley rats with streptozotocin-induced diabetes led to significant improvements in metabolic markers. Specifically, the treatment resulted in decreased levels of fasting plasma glucose (FBG) and Hemoglobin A1c (HbA1c), as well as improved levels of insulin and IGF-113. In human studies, in the study of Mohammad J. Alkhatatbeh and Khalid K. Abdul-Razzak14, a significant negative correlation was found between HbA1c and 25(OH)D levels, no similar association was found between FBG and 25(OH)D levels in patients with T2DM. In their cohort study, Zoppini et al. found no significant correlation between 25-hydroxyvitamin D (25(OH)D) levels and fasting blood glucose (FBG) levels15. Wu Chunhua et al.16 found that vitamin D supplementation had no effect on FBG levels in patients with T2DM. In our research, we found that FBG decreased with the increase of serum 25(OH)D. This may be because of the data we have in the OP population. Endocrine society clinical guidelines recommend maintaining serum 25 hydroxyvitamin D at approximately 30 ng/ml11. In a double-blind randomized clinical trial, weekly treatment with 50,000 IU oral vitamin D for eight weeks in vitamin D-deficient obese individuals with type 2 diabetes mellitus (T2DM) led to a significant decrease in HbA1c levels, but did not result in significant changes in fasting blood glucose (FBG), insulin, HOMA-IR index, or quantitative insulin sensitivity check index (QUICKI)17. However, we recommend that maintaining serum 25 hydroxyl vitamin D at 23 ng/ mL may be the most effective for lowering blood glucose, while it has no effect when it exceeds 23 ng/ml.

The involvement of vitamin D in glucose metabolism is thought to be linked to its role in pancreatic insulin secretion and regulation of peripheral insulin sensitivity18. Although commonly known as a vitamin, vitamin D has been recognized to have several hormonal functions that are thought to occur through its interactions with vitamin D receptors (VDRs). These receptors are widely expressed on various cell types and play a key role in mediating the effects of vitamin D on target tissues19. One of these functions is the interaction of vitamin D with VDRs present in pancreatic beta islet cells19. Studies in animal models have shown that mice lacking functional vitamin D receptors (VDRs) exhibit impaired insulin secretion20. Moreover, studies have shown that vitamin D supplementation can stimulate insulin biosynthesis in pancreatic islets of rats21. In humans, certain variants of the VDR gene have been linked to impaired insulin secretion and an increased risk of developing type 2 diabetes mellitus (T2DM)22. Furthermore, studies suggest that vitamin D may play a role in enhancing peripheral insulin sensitivity, possibly through its interactions with VDRs expressed in human skeletal muscle and adipose tissue cells18,23,24. Specifically, skeletal muscle and adipose tissue cells play a crucial role in determining peripheral insulin sensitivity, as they are responsible for glucose uptake in response to insulin secretion18. Vitamin D both enhances and promotes insulin secretion from pancreatic β-cells insulin. One of the underlying molecular mechanisms involves the regulation of intracellular Ca2+ concentrations. Non-genomic actions of 1, 25-hydroxyvitamin D3 (1,25[OH]2D3) have been identified as responsible for increasing cytoplasmic Ca2+ levels, leading to activation of insulin exocytosis in pancreatic β-cells and subsequent increased insulin secretion25,26. Vitamin D deficiency can contribute to insulin resistance through several potential mechanisms. For example, the activation of peroxisome proliferator-activated receptor delta (PPAR-δ) by 1,25(OH)2D3 enhances insulin sensitivity27. Additionally, vitamin D improves glucose metabolism by upregulating the Sirtuin 1 (SIRT1)/ insulin receptor substrate1 (IRS1)/ Glucose transporter type 4 (GLUT-4)signaling cascade and enhancing glucose uptake, which is especially evident in high glucose-treated C2C12 mouse myoblast cell (C2C12) myotubes28. Vitamin D also modulates the low-grade chronic inflammation often associated with insulin resistance. Notably, pro-inflammatory cytokines such as Tumor Necrosis Factor-alpha (TNF-α) interfere with peripheral insulin sensitivity by inhibiting insulin-dependent tyrosine phosphorylation of IRS-1. This disrupts the appropriate activation of downstream insulin signaling molecules, including Phosphatidylinositol 3-kinase (PI3K), and the translocation of GLUT-4 to the cell surface29,30. Vitamin D counteracts the release of pro-inflammatory cytokines, such as TNF-α and interleukin 6 (IL-6), and C-reactive protein31. Furthermore, the bioactive form of vitamin D strongly suppresses the activation of the nuclear factor kappa-B (NF-κB) and Mitogen-Activated Protein Kinase (MAPK) signaling pathways, effectively preventing the transcription of pro-inflammatory genes32. Consequently, vitamin D significantly alleviates inflammation within adipose tissue.

While prior reports have revealed a link between OP and T2DM, in this study we did not examine the incidence of diabetes in our study population given that whether or not patients were diagnosed with T2DM had no impact on the study. However, individuals with T2DM often exhibit normal to high BMD despite an increased risk of fractures33,34. Perturbations in glucose metabolism may impact several bone-derived factors. Hyperglycemia, in particular, can have toxic effects on the differentiation of bone marrow mesenchymal cells (MSCs), leading to a shift towards adipogenesis over osteogenesis35. In fact, it has been observed that high glucose levels can activate the non-canonical Wnt/protein kinase C pathway, which may contribute to impaired bone formation and increased adipogenesis36 and this pathway upregulates peroxisome proliferator-activated receptor gamma (PPARγ), a key regulator of adipogenesis, which leads to increased adipogenesis and bone loss37. Type I collagen is a fibrillary protein, which forms a triple-helix motif and undergoes self-assembly into highly organized fibrils stabilized by enzymatic cross-linking. In addition to natural enzymatic cross-linking, chemical cross-linking may occur between serum sugars and exposed amino acid residues, leading to post-translational modifications of collagen and the production of advanced glycation end-products (AGEs)38. The irreversible formation of AGEs through the Maillard reaction or non-enzymatic glycation process has been reported to result in the dysfunction of macromolecules, such as nucleic acids, lipids, and proteins, due to their accumulation39. There is increasing evidence to suggest that AGEs, which accumulate with age, can significantly decrease bone density and mineralization40. Further research has confirmed that AGEs play a significant role in impaired bone formation by triggering inflammation and bone loss in the pathogenesis of OP41.

The primary physiological function of vitamin D is to maintain normal levels of calcium and phosphorus in the body, which is achieved through the activity of its active metabolite, 1α,25-dihydroxyvitamin D [1α,25(OH)2D]42,43,44. Although various dietary factors can affect calcium absorption, such as protein intake, sodium intake, or glucose, the primary regulator is 1,25(OH)2D, which acts through the VDR to synthesize genes and proteins involved in calcium transport45. The deletion of VDR results in calcium malabsorption46. Vitamin D deficiency can result in secondary hyperparathyroidism and subsequent bone loss, leading to osteoporosis and fractures, as well as mineralization defects that can result in osteocalcin deficiency in the long term. It can also cause muscle weakness, increasing the risk of falls and fractures. Vitamin D status is closely linked to bone mineral density and bone turnover, with the active metabolite 1α,25(OH)2D playing a major role in maintaining calcium and phosphorus balance through the regulation of calcium transport proteins and genes via the VDR, with factors such as protein intake, sodium intake, and glucose levels also impacting calcium absorption. In mice with VDR deletion, calcium malabsorption has been observed47.

It should be noted that our study included patients with various comorbidities, including those affecting bone metabolism and blood sugar levels. While we adjusted for these conditions using the CCI, there may still be residual confounding factors that could have influenced the observed associations. Additionally, the presence of specific comorbidities, such as Cushing’s disease or acromegaly, may also influence bone metabolism and blood sugar levels, were not specifically addressed in this study. Future research with a more targeted approach to these specific comorbidities is warranted to further elucidate their impact on the relationship between vitamin D levels and fasting blood glucose.

This study has other limitations. First, this is a cross-sectional study, and it is difficult to complete the investigation of the cause of the association between serum 25(OH)D and FBG. Therefore, this association requires further investigation to determine the mechanism between elevated serum 25(OH)D and decreased FBG. Although some covariates were adjusted for, only the association between serum 25(OH)D and FBG was investigated, and residual confounding variables such as medication effects cannot be ruled out in the analysis. Therefore, further well-designed and stratified cohort studies, with appropriate control groups and accounting for confounding factors, are necessary to better understand the relationship between serum 25(OH)D and FBG.

Conclusions

We demonstrated a negative relationship between serum 25(OH)D and FBG in the OP population. Another nonlinear relationship and threshold effect were found between the above two variables. The results revealed that the potential effect of vitamin D on blood glucose in patients with OP. We recommend vitamin D supplementation for patients with OP, which can not only improve bone quality in patients with OP, but also improve their blood glucose level. We recommend a serum vitamin D level of at least 23.39 ng/ml for this purpose. However, future prospective intervention studies with a larger sample size are necessary to confirm this hypothesis.

Ethics

The study protocol was accepted by the ethical committee of Jiangsu University’s affiliated Kunshan Hospital (permission No. 2020-03-046-K01), and it adhered with the Helsinki Declaration. Initially, patient information was documented for the sake of quality improvement at the hospital. Because of the investigation’s anonymous and observational nature, the necessity for informed consent was dropped, and the decision was authorized by the Ethics Council of Kunshan Hospital, Jiangsu University. The identify of the patients was concealed from data analysts.