Introduction

Rheumatoid arthritis (RA) is a systemic disease with chronic inflammatory joint disease as the main manifestation and can lead to the destruction of cartilage and bone. It is characterized by synovitis, joint destruction, bone loss, and systemic complications [1]. RA is associated with local and systemic inflammation, which can cause bone loss around the joint, bone erosion, osteoporosis, and fractures. Compared with primary osteoporosis, osteoporosis secondary to RA is more likely to lead to fracture [2].

At present, the gold standard for the diagnosis of osteoporosis is bone densitometry. Osteoporosis is a systemic bone disease, and bone loss and deterioration of bone tissue structure lead to bone fragility and increase in fracture susceptibility, especially at the hip, spine, and wrist. Therefore, determination of how to screen groups at high risk for osteoporosis early, comprehensively, and accurately is particularly important. Possible risk factors for osteoporosis in RA include age, sex, low body mass index, disease course, disease activity, CCP, rheumatoid factor (RF), and glucocorticoid use. Musculoskeletal ultrasound is a multiplanar, dynamic, and noninvasive examination method that can be used for dynamic evaluation of disease activities. Research shows that ultrasound and MRI show good correlations in the identification of inflammatory soft tissue and bone erosive bone lesions [3]. Various combinations of joint ultrasound scores can be used to evaluate RA disease activity, but the 7-joint ultrasound score (US7) is the first scoring system combining assessment of synovitis, tenosynovitis, and bone destruction in a comprehensive scoring system [4]. Moreover, US7 is as sensitive to disease changes as the 78-joint score. The US7 includes 7 joints that are most commonly affected in rheumatoid arthritis. Research shows that the joints that are most affected by local erosive bone changes in RA patients are usually the small joints of the hands and feet [5]. Local bone erosion and systemic osteoporosis have a common pathological basis; bone loss is mainly related to inflammation and disease activity, which can aggravate systemic bone loss. With the increase in local bone erosion, the bone density of RA patients decreases, and the osteoporosis incidence increases [6].

To improve the quality of life of patients with rheumatoid arthritis and detect osteoporosis early, it is necessary to develop a valid and reliable model to predict osteoporosis in patients with rheumatoid arthritis. Therefore, this study aimed to establish and verify a reliable prediction model for osteoporosis that could play an important role in the early clinical detection of osteoporosis in patients with rheumatoid arthritis.

Materials and methods

General information

A total of 270 patients with rheumatoid arthritis were recruited from the Department of Rheumatology and Immunology at our hospital from June 2019 to June 2020. According to the gold standard bone mineral density measurement, the subjects were divided into an osteoporosis group and a group without osteoporosis. There were 84 patients in the osteoporosis group, including 63 females and 21 males; the average age was 60.51 ± 9.95 years old, the course of disease was 36–120 months, and the duration of medication was 15–78.5 months. In the group without osteoporosis, there were 96 patients, including 76 females and 20 males; the mean age was 50.21 ± 9.40 years, the course of disease was 7.25–78.75 months, and the duration of medication was 3.25–40 months. There were 180 patients in the training set, including 139 females and 41 males; the average age was 55.02 ± 10.93 years old, the course of disease was 13.75–120 months, and the duration of medication was 6.25–60 months. There were 90 patients in the validation set, including 72 females and 18 males; the average age was 53.87 ± 10.72 years old, the course of disease was 25–120 months, and the duration of medication was 9.50–60.50 months. The research protocol was examined and approved by the Ethics Committee of the Second Affiliated Hospital of Fujian Medical University. All participants provided informed consent.

Diagnostic criteria

All the research subjects were classified in accordance with the classification criteria for rheumatoid arthritis established by the American College of Rheumatology (ACR)/European Union Against Rheumatism (EULAR) in 2010[7]. The diagnostic criteria for osteoporosis used in this study are in line with the diagnostic criteria for osteoporosis in the China Guidelines for the Diagnosis and Treatment of Senile Osteoporosis (2018) [8].

Exclusion criteria

Patients < 18 years old with a BMI < 18.5; patients with other immune and endocrine diseases, kidney diseases, severe liver and kidney dysfunction, blood system diseases, hysterectomy, premature menopause history (< 45 years old) and other diseases that affect changes in bone density; congenital joint dysplasia, joint trauma, and joint replacement surgery history; pregnancy or lactation; heavy smokers and drinkers (more than 3 units/day); and patients with long-term use of drugs that cause osteoporosis (including long-term (cumulative dose > 2 years) or high-dose (> 7.5 mg/day) glucocorticoid use).

Instruments and methods

Instruments

The ultrasonic instrument used was China Mindray 7 ultrasonic diagnostic instrument with a high-frequency linear array probe (frequency 4–15 MHz); the skeletal muscle system imaging mode was selected. The bone mineral density was examined using a Hologic Discovery dual-energy X-ray densimeter.

Methods

Laboratory examination

The results of the detection of C-reactive protein (C-RP), erythrocyte sedimentation rate (ESR), rheumatoid factor (RF), and anti-cyclic citrullinated peptide antibody (CCP) were recorded for all patients (normal values C-RP, 0–8 mg/L; ESR, ≦ 20 mm/h; RF, 0–30 IU/ml; CCP, 0–25 RU/ml).

RA activity scoring method

All subjects were scored according to the DAS28 scoring method. Calculation formula: DAS28 = [0.56 × sqrt(t28) + 0.28 × sqrt(sw28)+

0.70 × Ln (ESR)] × 1.08 + 0.16.

Ultrasonic examination

The ultrasonic operation steps were carried out according to the guidelines for the high-frequency ultrasonic examination of muscle joints formulated by the European Rheumatism Union. The wrist joint (Wri), the second and third metacarpophalangeal joints (MCP2, MCP3), the second and third proximal interphalangeal joints (PIP2, PIP3), and the second and fifth metatarsophalangeal joints (MTP2, MTP5) of the affected dominant limb (on the side of the body with more severe symptoms and signs) were detected with a 7-joint ultrasound scoring system. When examining the Wri, MCP2, MCP3, PIP2, and PIP3 joints, the patient sits directly opposite the examining physician and keeps their wrist and elbow relaxed and lying flat on the examination table (if elderly or injured patients cannot maintain the above posture, they can lie flat on the examination bed with their upper arms on both sides of the body).When examining the MTP2 and MTP5 joints, the patient takes a supine or sitting position to extend or bend the knee joint by 45° to keep the ankle joint in a natural or resting position. Grayscale ultrasound (GSUS) tendon tenosynovitis and bone erosion were evaluated according to a binary classification score, with “none” scored as 0 and “yes” scored as 1. GSUS was evaluated according to a semiquantitative score to evaluate synovitis: no synovial hyperplasia: 0 points; the synovial membrane was slightly thickened, and the highest point was lower than the level of the joint cavity connection: 1 point; the synovial membrane was moderately thickened, and the highest point was close to the level of the joint cavity connection: 2 points; the synovial membrane was severely thickened, and the highest point exceeded the level of the joint cavity connection: 3 points. Power doppler ultrasound (PDUS) was used with a semiquantitative method to evaluate the blood flow signals in the hyperplastic synovium and tendon sheath: no obvious blood flow signal: 0 points; ≦ 3 dots or 2 dots and 1 linear blood flow signal: 1 point; > 3 punctate blood flows or blood flows fused into slices but with ≦ 50% lesion area: 2 points; dendritic and reticular blood flow signals can be found in the lesion, with the range exceeding 50% of the lesion: 3 points. According to the scores of GSUS synovitis, PDUS synovitis, GSUS tenosynovitis, PDUS tenosynovitis, and ultrasonic bone erosion in each joint, the individual scores of the 7 joints were calculated, and the individual scores were summed to determine the total US7 score.

Bone mineral density examination

All patients were measured by Hologic Discovery A dual-energy X-ray absorptiometry. The bone mineral densities of lumbar spine 1-4, femoral neck, total hip, and distal radius 1/3 were measured by a conventional DXA measurement method. The definition of osteoporosis was defined as the BMD value < 2.5 T-score at any of the 3 measured locations (i.e., lumbar spine 1–4, femoral neck, total hip).

Statistical analysis

SPSS statistics v20 (IBM Corp, Los Angeles, CA, USA) and R statistical software (version 4.0.2; http://www.R-project.org/) were used to analyze the data. When the measurement data conformed to the normal distribution, they were summarized as the mean ± standard deviation; the nonnormally distributed data were summarized using the median (M, P25-P75). The independent sample t test was used for comparison of the means between two groups conforming to a normal distribution, and the Mann-Whitney U test was used for comparison of nonnormally distributed data. Count data are expressed as percentages and ratios, and the chi-square test was used for comparison. Spearman correlation analysis was performed to determine the correlations between the medication time, age, disease course, US7 system scores, CRP, ESR, RF, CCP, DAS28, and the different bone density groups. A prediction model was established in the training set. In the univariate analysis, the variables (p < 0.1) that may be related to rheumatoid arthritis osteoporosis were included in the binary logistic regression analysis. The final prediction model was constructed with variables significant in the univariate analysis (p < 0.05) and variables considered to be clinically relevant. Using the nomogram function in the rms package in R statistical software, a nomogram for predicting the possibility of osteoporosis in patients with rheumatoid arthritis was established. To reflect the predictive model’s ability to accurately distinguish patients with osteoporosis from patients without osteoporosis, an ROC curve was drawn with the help of the pROC package in R statistical software, and the optimal cutoff value was calculated. The AUC value represents the discrimination capacity of the model. The greater the AUC value, the better the discrimination of the model. To evaluate the consistency between the predicted risk and the actual risk, a calibration plot was drawn using the val.prob function in the rms package in R statistical software; the closer the calibration line of the model is to the standard line, the better the calibration degree of the model is. The dca package in R statistical software was used to draw the clinical decision curve to reflect the clinical effectiveness of the model. p < 0.05 indicates that the difference is statistically significant.

Results

Comparison of demographic characteristics, laboratory values and ultrasonography in patients with rheumatoid arthritis

There was no significant difference between the training set and the verification set in terms of the demographic characteristics, laboratory values, or ultrasonography (Table 1).

Table 1 The difference in training set and the verification set in terms of the demographic characteristics, laboratory values, or ultrasonography

Correlation analysis of osteoporosis-related factors in the training set

In 180 patients with RA, DAS28 (r = 0.629, p < 0.001), 7-joint ultrasonic bone erosion (r = 0.634, p < 0.001), and the total US7 score (r = 0.624, p < 0.001) were positively correlated with osteoporosis in RA patients. Age (r = 0.454, p < 0.001), CRP (r = 0.481, p < 0.001), ESR (r = 0.479, p < 0.001), CCP (r = 0.409, p < 0.001), synovitis score on GSUS (r = 0.514, p < 0.001), synovitis score on PDUS (r = 0.574, p < 0.001), tenosynovitis score on GSUS (r = 0.597, p < 0.001), and tenosynovitis score on PDUS (r = 0.503, p < 0.001) were moderately correlated with osteoporosis in RA patients. Disease duration (r = 0.346, p < 0.001), RF (r = 0.372, p < 0.001), and treatment duration (r = 0.326, p < 0.001) were weakly positively correlated with the severity of osteoporosis in RA patients.

Univariate analysis of osteoporosis-related factors in the training set

The variables suspected to predict osteoporosis were analyzed between patients with osteoporosis and patients without osteoporosis in the training set, and the results are shown in Table 2. Except for sex, there were differences between the osteoporosis and nonosteoporosis patients, and the differences were statistically significant.

Table 2 Results of the variables suspected to predict osteoporosis between patients with osteoporosis and patients without osteoporosis in the training set

Osteoporosis prediction model developed in the training set

Age, disease duration, treatment duration, DAS28, CRP, ESR, CCP, RF, synovitis score on GSUS, synovitis score on PDUS, tenosynovitis score on GSUS, tenosynovitis score on PDUS, 7-joint ultrasonic bone erosion, and total US7 scores were designated as variables X1-X14, respectively. Variables X1-X14 were all significant factors identified through single-factor analysis and were included in the binary logistic regression analysis. Five variables, namely age (X1), disease course (X2), DAS28 (X4), CCP (X7), and 7-joint ultrasonic bone erosion (X14), were statistically significant in the constructed model (Table 3). The predictive model with five significant independent variables was logit Y = − 12.647 + 0.133X1 + 0.011X2 + 0.754X4 + 0.001X7 + 0.605X14. The overall accuracy rate of the model was 88.3%, and the accuracy rate of predicting osteoporosis with the model was 86.9%.

Table 3 Five variables, namely age (X1), disease course (X2), DAS28 (X4), CCP (X7), and 7-joint ultrasonic bone erosion (X14), were statistically significant in the constructed model

Internal and external validation of the model

Based on the binary logistic regression model, a new nomogram was established (Fig. 1). According to the visual graph, each predictor was assigned a score, and then the scores are added to obtain the total score. Finally, the corresponding osteoporosis risk is read according to the total score and used to help formulate the clinical treatment strategy. The age variable has the largest absolute effect (100 points), and the remaining variables are scored according to the weight of each effect. Then, by adding the scores for all of the model variables and comparing the total score to the scale in the nomogram, the risk of osteoporosis can be determined. When the model was verified internally, the C-index value for predicting osteoporosis was 0.947 (95% CI 0.932~0.977). The C-index value for predicting osteoporosis predicted on external verification was 0.946 (95% CI 0.940~0.994). The calibration graph shows good agreement between the deviation-corrected prediction and the ideal reference line in the training set and the verification set (Fig. 2). When > 0.483 was taken as the cutoff value for the diagnosis of osteoporosis, the sensitivity, specificity, positive likelihood ratio, negative likelihood ratio, and Jordan index of the model were 90.24%, 87.76%, 7.37, 0.11, and 78.00%, respectively. According to the Hosmer-Lemeshow test, the p values of the training group and verification group were 0.929 and 0.902, respectively, which indicates that the model was in good agreement with the observed data. It is suggested that this model is suitable for use in rheumatoid arthritis patients, and it can be used to judge whether further bone mineral density measurement is needed according to the nomogram scoring system. In the decision curve, the model curve in the training set is notably better than the two extreme lines, suggesting that the overall net benefit in the population is good; the verification set also performed well (Fig. 3).

Fig. 1
figure 1

Nomogram for predicting osteoporosis in patients with rheumatoid arthritis

Fig. 2
figure 2

The calibration plot of the novel nomogram in the verification set. The logistic correction curve (solid black line) is close to the ideal reference line (solid gray line), which indicates that the nomogram performed well in the verification set

Fig. 3
figure 3

Decision curve for evaluating the clinical effectiveness of the prediction model. In the decision curve, the abscissa is the threshold probability, the ordinate is the net benefit, and there are two extreme lines besides the model curve (gray horizontal line indicates that all samples are negative, that is, the osteoporosis probability is less than the threshold probability, and none of the patients had osteoporosis, so the overall net benefit is 0; the gray curve indicates the opposite situation, that is, all of the patients had osteoporosis, and the net benefit is negative). The thick blue line indicates the prediction model

Discussion

RA is a chronic inflammatory disease characterized by continuous inflammation of the synovium, joint destruction, bone loss, and systemic complications [9]. Bone changes in rheumatoid arthritis include periarticular bone erosion, periarticular bone loss, and systemic osteoporosis [10].

There are many possible risk factors for osteoporosis in RA patients, such as age, female sex, low body mass index, glucocorticoid use (daily dose ≥ 7.5 mg), long disease course, high activity, and CCP [11].

Our study shows that the osteoporosis group was older and has a longer disease course than the group without osteoporosis; age and disease course were independent risk factors for predicting osteoporosis. Research by Tong shows that age is a risk factor for osteoporosis in RA patients [12]. The risk of vertebral fracture in RA patients increases by 7.2% for every 1 year of increase in age. Research by Gauri also shows that patients with a longer disease course and higher activity are more likely to suffer from osteopenia and osteoporosis [13]. Previous studies showed that the use of glucocorticoids and other drugs was an independent risk factor for osteoporosis [14]. Interestingly, our research results showed that compared with the osteoporosis group and the group without osteoporosis, the osteoporosis group had a longer treatment duration, and there was a weak correlation between the treatment duration and osteoporosis (r = 0.346, p < 0.001). The reason for this may be that we have excluded long-term (cumulative dose > 2 years) and high-dose (> 7.5 mg/day) glucocorticoid patients, and many studies show that short-term, low-dose glucocorticoid therapy can stabilize the bone mineral density in early RA with high disease activity [15].

DAS28 is an important way to evaluate the disease activity of RA. Our research shows that the disease activity of the two groups of patients was different, with the disease activity of osteoporosis group being the higher. DAS28 is an independent predictor of osteoporosis, and disease activity was strongly correlated with osteoporosis (r = 0.629, p < 0.001). This indicates that there was a correlation between disease activity and bone loss. Bone mineral density loss occurs in the early stage of RA and increases with the increase of disease activity, which is consistent with the research viewpoints of many scholars [16, 17]. Research shows that the CRP and ESR values of the osteoporosis groups were higher than the non-osteoporosis group, and there was a moderate correlation with osteoporosis, but CRP and ESR were not independent predictors of osteoporosis; the research of Tomizawa and other scholars also confirm this point [18].

There are many kinds of autoantibodies in the sera of RA patients, with the most common being CCP and RF. In our study, the CCP were different between the osteoporosis and the group without osteoporosis. Many studies have shown that CCP is associated with local and systemic bone mineral density reduction and osteoclast-mediated bone resorption in RA patients [19]. For early RA patients, when CCP is positive, high-frequency ultrasound is more likely to find articular cartilage destruction and bone erosion changes [20]. Our research shows that CCP is a predictor of osteoporosis. Research by Tomizawa showed that CCP is a risk factor not only for joint destruction in RA patients but also for bone loss. It is worth mentioning that although RF is not a predictor of osteoporosis, there were differences between the osteoporosis and the group without osteoporosis, and there was correlation with osteoporosis; the reason may be that the relationship between RF and BMD loss is obviously dose-dependent, and a significant difference was only observed in patients with high levels because high levels of RF enhance the relationship between CCP and bone loss [21].

All indexes of the US7 score were significantly different between the osteoporosis group and the group without osteoporosis. 7-joint ultrasonic bone erosion (r = 0.634, p < 0.001) and US7 total score (r = 0.624, p < 0.001) had a strong positive correlation with osteoporosis. Gong’s research on the correlation between systemic osteoporosis and local bone erosion in rheumatoid arthritis patients in China shows that osteoporosis is the early manifestation of RA bone erosion; it has been confirmed that RA is related to a high risk of osteoporosis, and whole body bone density is related to local bone erosion in rheumatoid arthritis patients in China. With the increase in local bone erosion, the bone density of RA patients decreases, and the incidence of osteoporosis increases [22]. Bone erosion is generally regarded as irreversible, and it is the key result of inflammatory rheumatism, which is related to the severity of disease and deterioration of function [23]. Elshahaly used X-ray to detect hand and foot bone erosion and study its relationship with hip bone density. The results showed that the hip bone density of rheumatoid arthritis patients with bone erosion was significantly lower than that of patients without bone erosion. The results suggested that focal bone loss in RA was closely related to systemic bone loss [24]. Numerous studies have shown that the joints most frequently invaded by rheumatoid arthritis are the facet joints; the 2nd metacarpophalangeal joint, 3rd metacarpophalangeal joint, 5th metacarpophalangeal joint, 2nd metatarsophalangeal joint, 5th metatarsophalan-geal joint, and the joints detected by the 7-joint ultrasonic score method are the joints most prone to rheumatoid arthritis bone erosion [25, 26]. Compared with X-ray detection of hand and foot bone erosion in patients with rheumatoid arthritis, ultrasound detection has the advantage no radioactivity and real-time results, and ultrasound can also detect bone and joint from palmar, dorsal, medial, and lateral angles on the long-axis and short-axis tangent plane. Roux’s research also proved that ultrasound is a reliable way to evaluate bone erosion. The number of RA patients with bone erosion detected by ultrasound is approximately twice that of X-ray examination, especially in early RA [27].

Many studies have used multiple logistic regression analysis to analyze the risk factors for osteoporosis in RA patients. The results showed that age, course of disease, CCP, and DAS28 were risk factors for osteoporosis in RA patients, which was similar to the results of our study [28, 29]. With regard to the prediction model of rheumatoid arthritis osteoporosis, Meng’s research used the Asian osteoporosis self-assessment tool (OSTA) to explore the value of the OSTA index in predicting osteoporosis in elderly patients with rheumatoid arthritis in China [30]. The results of binary logistic regression analysis showed that the Sharp score was an independent risk factor for RA-induced osteoporosis, while the OSTA index was the only protective factor. Aizer’s research used stepwise logistic regression analysis to determine the independent predictors of osteoporosis [31]. The results showed that the independent predictors were age, female sex, fracture history, steroid use, and the doctor’s assessment of RA activity. Although two scholars have performed regression analysis on rheumatoid arthritis osteoporosis and identified the risk factors for osteoporosis, they have not verified the prediction model. Therefore, our study not only established a prediction model of rheumatoid arthritis osteoporosis but also verified the model. The C-index value for predicting osteoporosis was 0.947 (95% CI = 0.932~0.977) in the internal validation and 0.946 (95% CI = 0.940~0.994) in the external validation. The calibration plot showed good consistency between the deviation corrected prediction and the ideal reference line in both the training set and the verification set. In the decision curve, the model curve in the training set was notably better than the two extreme lines, suggesting that the overall net benefit of the population was good; the verification set also performed well. The verification results show that the model has not only good discrimination and calibration ability but also good clinical applicability.

This study has several limitations. First, this was a single-center study. Although we have verified the model internally and externally in independent cohorts in the same center, the conclusion should be cautious; we will continue to collect data from other centers for further verification. Second, the sample size of this study was small, so we will continue to collect cases and conduct multicenter research and verification in the future. Third, excluding patients with long-term use of drugs that cause osteoporosis (including long-term (cumulative dose > 2 years) or high-dose (> 7.5 mg/day) glucocorticoid use) will influence our results and limit their applicability to other populations. Fourth, the prevalence of rheumatoid arthritis was different from those in other ethnic groups. Therefore, this nomogram requires validation in other ethnic groups’ cohort and may require modification prior to its general use.

In summary, a prediction model based on age, course of disease, DAS28, CCP, and 7-joint ultrasonic bone erosion has good discrimination, calibration, and clinical effectiveness and may become a useful clinical model for predicting osteoporosis risk in patients with rheumatoid arthritis.