Next Article in Journal
Atrial Fibrillation Among ICU Patients with Type 2 Respiratory Failure: Who Is at Risk and What Are the Outcomes?
Previous Article in Journal
The Clinical Significance and Potential of Complex Diagnosis for a Large Scar Area Following Myocardial Infarction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Potential Protective Effect of Hepatitis B Immunity Against Diabetes Mellitus: A Retrospective Propensity-Matched Cohort Study

by
Nhu Quynh Phan
1,2,
Shih-Jung Lin
3,
Ngoc Hoang Le
4,
Van Thuan Nguyen
1,
Tan Ha Mai
5,
Jin-Hua Chen
6,7,8,
Min-Huei Hsu
6,
Dinh Khanh Hoang
1,9,
Phung Manh Thang
2,
Ya-Li Huang
10,* and
Chiehfeng Chen
10,11,12,13,*
1
International Ph.D. Program in Medicine, College of Medicine, Taipei Medical University, Taipei 11031, Taiwan
2
Department of Infection Control, Cho Ray Hospital, Ho Chi Minh City 700000, Vietnam
3
School of Medicine, College of Medicine, Taipei Medical University, Taipei 11031, Taiwan
4
Graduate Institute of Biomedical Materials and Tissue Engineering, College of Biomedical Engineering, Taipei Medical University, Taipei 11031, Taiwan
5
Department of Computer Science and Information Engineering, National Taiwan University, Taipei 10617, Taiwan
6
Graduate Institute of Data Science, College of Management, Taipei Medical University, Taipei 11031, Taiwan
7
Research Center of Biostatistics, College of Management, Taipei Medical University, Taipei 11031, Taiwan
8
Biostatistics Center, Wan Fang Hospital, Taipei Medical University, Taipei 11695, Taiwan
9
Department of Histopathology, Hai Phong University of Medicine and Pharmacy, Hai Phong 180000, Vietnam
10
Department of Public Health, School of Medicine, College of Medicine, Taipei Medical University, Taipei 11031, Taiwan
11
Cochrane Taiwan, Taipei Medical University, Taipei 11031, Taiwan
12
Evidence-Based Medicine Center, Wan Fang Hospital, Taipei Medical University, Taipei 11695, Taiwan
13
Division of Plastic Surgery, Department of Surgery, Wan Fang Hospital, Taipei Medical University, Taipei 11695, Taiwan
*
Authors to whom correspondence should be addressed.
Diagnostics 2025, 15(13), 1610; https://doi.org/10.3390/diagnostics15131610
Submission received: 10 May 2025 / Revised: 20 June 2025 / Accepted: 22 June 2025 / Published: 25 June 2025
(This article belongs to the Special Issue New Technologies and Tools Used for Risk Assessment of Diseases)

Abstract

Background: Hepatitis B virus (HBV) infection affects glucose metabolism and increases diabetes risk; HBV vaccination may reduce this risk. The role of HBV immunity in diabetes prevention among individuals without HBV infection is underexplored. This study aims to evaluate whether HBV immunity reduces diabetes risk in individuals without HBV infection. Methods: This retrospective cohort study used de-identified electronic medical records from TriNetX. Adults with hepatitis B surface antibody (HBsAb) results without a history of HBV infection or diabetes were identified. Diabetes was defined on the basis of a diabetes diagnosis, diabetes medication use, or glycated hemoglobin ≥ 6.5%. Propensity score matching was conducted to balance demographics and comorbidities between groups. Results: The HBV-immunized group had a 15% lower diabetes risk than the HBV-unimmunized group (HR: 0.85 [0.84–0.87]). A dose–response effect was observed, with higher HBsAb levels showing a greater reduction in the risk of diabetes. HBsAb levels of ≥100 and ≥1000 mIU/mL were associated with 19% (HR: 0.81 [0.80–0.83]) and 43% (HR: 0.57 [0.54–0.60]) reductions in diabetes risk, respectively, compared with HBsAb < 10 mIU/mL. The reduced risk of diabetes was associated with age. Immunized individuals aged 18 to 44 years, 45 to 64 years, and ≥65 years had 20% (HR: 0.80 [0.78–0.82]), 11% (HR: 0.89 [0.87–0.92]), and 12% (HR: 0.88 [0.84–0.91]) lower diabetes risks, respectively, compared with unimmunized individuals. Conclusions: HBV immunity may be associated with a reduced risk of diabetes, suggesting broader HBV vaccination as a dual-benefit strategy for the prevention of hepatitis B and diabetes, especially in regions with a high prevalence of both diseases.

1. Introduction

Diabetes mellitus is a major and growing global health concern characterized by persistent hyperglycemia and serious complications such as cardiovascular disease, kidney failure, and blindness [1]. In 2024, an estimated 588.7 million people were living with diabetes, and this number is projected to rise by 45% to 852.5 million by 2050 if current trends continue. Also in 2024, diabetes caused over 3.4 million deaths, accounting for 9.3% of all global mortality. The economic burden is also substantial, with global health expenditure related to diabetes surpassing USD 1 trillion, equivalent to 12% of total healthcare spending [2]. Given the escalating burden of diabetes globally, effective prevention strategies are urgently required to halt the progression of diabetes and alleviate its substantial health and economic burdens.
In addition to the regulatory role of the pancreas, the liver is also essential for maintaining glucose homeostasis. Specifically, it maintains plasma glucose levels through gluconeogenesis and glycogenolysis during fasting states. Conversely, after meals, the liver lowers blood glucose by converting excess glucose into glycogen via glycogenesis [3]. Previous studies have indicated that hepatitis B virus (HBV) infection may disrupt this balance by promoting gluconeogenesis and altering key metabolic pathways in hepatocytes [4]. Specifically, HBV X protein (HBx) may promote gluconeogenesis by upregulating the expression of genes for key gluconeogenic enzymes, leading to increased glucose production and the development of hyperglycemia and impaired glucose tolerance [5]. Several studies have discovered a higher prevalence of diabetes in patients with HBV infection compared with those without HBV infection [6,7]. A 12-year follow-up cohort study provided novel evidence of an association between HBV infection and the risk of diabetes. The results reveal that diabetes may be an additional metabolic complication of HBV infection [8]. Consequently, the effective prevention of HBV infection may have significant implications for diabetes prevention strategies.
HBV vaccination is an effective method for activating the immune system and preventing HBV infection [9], which in turn may reduce the risk of diabetes. Hepatitis B surface antibody (HBsAb), which indicates the presence of immunity against HBV, can be produced either after recovery from HBV infection or following HBV vaccination [10]. Huang et al. (2015) indicated that vaccination against HBV not only protects against HBV infection but may also play a role in reducing the risk of diabetes by enhancing immune responses; successful HBV vaccination could decrease the risk of diabetes by 33% [11]. This result suggests that HBV vaccination prevents diabetes, especially among at-risk patients with HBV.
Although the significant association between HBV infection and diabetes risk has been welldocumented in several observational studies [12,13], the potential protective effect of HBV immunity against diabetes has not been thoroughly examined. Preliminary evidence suggests that successful HBV vaccination reduces the risk of diabetes [11], potentially by preventing infection with the virus and thereby preventing liver damage and cirrhosis, which are the complications of HBV infection that affect glucose metabolism. However, whether the protective effects of HBV vaccine-induced immunity against diabetes are independent of infection prevention remains unclear. Recent theories have proposed that vaccination might decrease the risk of chronic diseases, including diabetes, by both preventing infection and enhancing immune regulation [14,15]. To address this research gap, our study investigated whether HBV immunity, as measured by HBsAb titers, is independently associated with a reduced risk of diabetes mellitus in individuals without HBV infection.

2. Materials and Methods

2.1. Database

This retrospective cohort study was conducted using data from TriNetX (TriNetX Inc., Cambridge, MA, USA). TriNetX is a global platform that provides access to a comprehensive network of de-identified electronic medical records (EMRs) that contain data on diagnoses, procedures, medications, laboratory test results, and genomic information that can be used for biomedical and clinical research [16]. A real-time analysis of the Global Collaborative Network on the TriNetX platform was conducted in October 2024. This study did not involve any intervention or interaction with human subjects, and data were de-identified following the standards outlined in Section §164.514(a) of the Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule. The de-identification process was confirmed by a formal determination from a qualified expert as specified in Section §164.514(b)(1) of the HIPAA Privacy Rule, which was last updated in December 2020. Given the de-identified nature of the data, this study was granted exemption from informed consent requirements.

2.2. Study Participants and Cohorts

This study included adults (aged ≥ 18 years) with medical records mentioning HBsAb serology test results between 1 January 2005 and 31 December 2023. Patients with a history of HBV infection, as indicated by a HBV diagnosis, hepatitis B surface antigen (HBsAg) positivity, or hepatitis B core antibody (HBcAb) positivity [10], were excluded from this study (Supplementary Table S6). The index date was the date of the HBsAb serology test.
The study participants were divided into two cohorts on the basis of HBV immunization status. The HBV-immunized group comprised individuals who were HBsAb-positive (≥10 mIU/mL), and the HBV-unimmunized group comprised individuals who were HBsAb-negative (<10 mIU/mL). Because patients with a history of HBV infection were excluded from our study, the positive HBsAb status in the immunized group likely resulted from vaccination. By contrast, in the control group, HBsAb negativity likely resulted from non-vaccination or vaccination without subsequent immunity development [10].
Patients who developed diabetes before the index date, as indicated by a diabetes diagnosis (International Classification of Diseases, Tenth Revision, Clinical Modification [ICD-10-CM] codes E08–E13); the use of antihyperglycemic drugs; or glycated hemoglobin (HbA1c) levels ≥ 6.5%, were excluded from both groups (Figure 1).

2.3. Outcomes

In this study, the outcome was new-onset diabetes, which was identified using (1) ICD-10-CM codes E08–E13, (2) the use of antihyperglycemic drugs, and (3) HbA1c level ≥ 6.5%. This study examined a composite outcome including any of (1), (2), or (3).
Within each group, patients were followed up for the occurrence of outcomes from the first day to 15 years after the index date.

2.4. Statistical Analysis

To minimize exposure selection bias, the study and comparison groups were matched using propensity score matching (PSM) at a 1:1 ratio to balance the distribution of covariates between the groups, including age at the index date, sex, ethnicity, BMI, HbA1c, socioeconomic and psychosocial circumstances, lifestyle factors (including tobacco use, nicotine dependence, and alcohol-related disorder), and comorbidities. Baseline comorbidities were hypertensive diseases, hyperlipidemia, heart failure, ischemic heart diseases, chronic kidney disease, overweight and obesity, and liver diseases (Supplementary Table S6). Baseline comorbidities were identified on the basis of diagnoses in EMRs before the index date. On the TriNetX platform, logistic regression analysis was implemented using user-defined covariate matrices to calculate propensity scores for each subject. These scores were then employed to pair patients using the greedy nearest-neighbor method, with a caliper size set to 0.1 of the pooled standard deviation. To prevent the bias often associated with nearest-neighbor matching, the order of the data rows was shuffled using the TriNetX platform. The balance of covariates was evaluated on the basis of standardized mean difference (SMD) values. SMD ≤ 0.1 indicated well-balanced covariates between the groups. Baseline characteristics are reported using descriptive statistics, namely the mean and standard deviation for continuous variables and the count and proportion for categorical variables.
Kaplan–Meier analysis was conducted to determine the cumulative incidence of outcomes between the two groups. The log-rank test was used to assess the differences in the probability of outcomes between the groups. Cox proportional hazards regression models were used to calculate hazard ratios (HRs) and 95% confidence intervals (CIs) by running a suite of tests with R’s Survival package v3.2-3 (R Foundation for Statistical Computing, Vienna, Austria). The results were validated by comparing the numbers with output from SAS version 9.4 (SAS Institute Inc., Cary, NC, USA).
To evaluate the dose–response relationship between hepatitis B surface antibody (HBsAb) levels and the risk of diabetes, we conducted an analysis using three separate Cox proportional hazards regression models. HBsAb concentrations were categorized into four groups based on clinically relevant thresholds: <10 mIU/mL (reference), ≥10 mIU/mL, ≥100 mIU/mL, and ≥1000 mIU/mL. The threshold of 10 mIU/mL is widely accepted as the minimum protective level against hepatitis B virus (HBV) infection, endorsed by professional societies such as the Infectious Diseases Society of America (IDSA) and the American Society for Microbiology (ASM) [17]. A level of ≥100 mIU/mL is recommended for high-risk populations, including healthcare workers and individuals with isolated anti-HBc or those living with HIV, to ensure a more sustained immune response [18,19]. Although rarely applied in routine clinical practice, a threshold of ≥1000 mIU/mL has been used in research settings to represent robust and long-lasting immunity, particularly among immunocompromised populations [20].
We performed stratified analyses to assess whether the risk of diabetes mellitus differed by region, sex, and age. For the analysis stratified by region, we used data from four regional collaborative networks on the TriNetX platform, namely the United States; Latin America; Europe, Middle East, and Africa; and Asia-Pacific networks.
To evaluate the robustness of the association between HBV immunity and diabetes risk, we conducted a sensitivity analysis using alternative HBsAb thresholds. Specifically, we compared the risk of diabetes among individuals with HBsAb levels ≥ 100 mIU/mL versus those with levels < 100 mIU/mL, and, separately, individuals with HBsAb levels ≥ 1000 mIU/mL versus those with levels < 1000 mIU/mL (Supplementary Table S5).
All statistical analyses were conducted using the browser-based, real-time analytics feature on the TriNetX Live platform. A two-sided p < 0.05 was considered statistically significant. Figures were generated using R version 4.4.0.

3. Results

3.1. Baseline Characteristics

The Global Collaborative Network includes data from more than 152 million people from 131 healthcare organizations (HCOs). After the application of the inclusion and exclusion criteria, our retrospective cohort study included 573,785 individuals in the HBV-immunized group (HBsAb ≥ 10 mIU/mL) and 318,684 individuals in the HBV-unimmunized group (HBsAb < 10 mIU/mL). Before PSM, differences in age and other demographics were observed between the two groups. After PSM, demographics were well balanced between the groups. Each group contained 291,231 individuals (Figure 1), with a mean age of 42.1 ± 16.1 years. Approximately 56% of both groups were women, and nearly 60% in each group were White individuals. Comorbidities, including hypertension, hyperlipidemia, heart failure, ischemic heart diseases, chronic kidney disease, overweight/obesity, and liver diseases, were also well balanced after matching (Supplementary Table S1).

3.2. The HBV-Immunized Group Had a Lower Risk of New-Onset Diabetes

In our analysis, the HBV-immunized group exhibited a significantly lower risk of new-onset diabetes than the HBV-unimmunized group. Kaplan–Meier curves were employed to visualize the cumulative incidence of diabetes mellitus between the groups based on the examination of the composite outcome over time. The curves indicated a consistently lower probability of diabetes onset in the HBV-immunized group than in the HBV-unimmunized group. Significant differences were noted between the groups, as confirmed by the p < 0.001 in the log-rank test (Figure 2).
These findings were confirmed by Cox regression models. As detailed in Table 1, compared with the HBV-unimmunized group, the HBV-immunized group exhibited a significant reduction in the risk of diabetes-related outcomes. Specifically, the risk of new-onset diabetes mellitus, as determined by the composite outcome, was reduced by 15% (HR: 0.85, 95% CI: 0.84–0.87). Moreover, the probability of receiving a diabetes diagnosis based on ICD-10-CM codes in EMRs was 11% lower in the HBV-immunized group (HR: 0.89, 95% CI: 0.87–0.91). In the analysis, the risk of using antihyperglycemic drugs reduced by 16% in HBV-immunized individuals (HR: 0.84, 95% CI: 0.83–0.86). In addition, in the HBV-immunized group, the likelihood of elevated HbA1c levels (HbA1c ≥ 6.5%) substantially decreased by 25% (HR: 0.75, 95% CI: 0.72–0.77).

3.3. Dose–Response Analysis

A dose–response relationship was observed between HBsAb levels and diabetes risk, with higher antibody concentrations being associated with a lower risk of diabetes. Individuals with HBsAb levels ≥ 10 mIU/mL exhibited a 15% reduction in the risk of the composite outcome compared with HBV-unimmunized individuals. Those with HBsAb levels ≥ 100 mIU/mL showed a 19% reduction in the risk (HR: 0.81; 95% CI: 0.80–0.83). Individuals with HBsAb levels ≥ 1000 mIU/mL exhibited the most marked reduction in the risk of incident diabetes, with a reduction of 43% (HR: 0.57, 95% CI: 0.54–0.60; Figure 3).
Dose–response effects were also consistently observed for the other diabetes-related outcomes, including diabetes mellitus diagnosis and the use of antihyperglycemic medications. However, for the outcome of elevated HbA1c levels (≥6.5%), although HRs decreased with increasing HBsAb levels, the CIs overlapped. Thus, the reduced risk of this specific outcome was less conclusive (Supplementary Figure S1).

3.4. Stratified Analysis

The association between HBV immunity and reduced risk of diabetes mellitus varied by region. It was most prominent in the Europe, Middle East, and Africa region, and least evident in the United States (Figure 4 and Supplementary Table S2). These findings indicate possible geographical differences in the immunological responses or epidemiological characteristics related to hepatitis B and diabetes.
Stratified analysis by sex revealed that the association between HBV immunity and reduced diabetes risk was similar in both men and women (Figure 4 and Supplementary Table S3). Additionally, in the analysis stratified by age, the results demonstrated a stronger association with lower diabetes risk in younger individuals (aged 18 to 44 years) than in middle-aged (aged 45 to 64 years) and older adults (aged ≥ 65 years). Specifically, among young adults, the risk of diabetes was 20% lower in the HBV-immunized group (HBsAb ≥ 10 mIU/mL) than in the HBV-unimmunized group (HBsAb < 10 mIU/mL). Moreover, the association between HBV immunity and lower diabetes risk persisted in middle-aged adults and older adults, although the strength of the association was reduced. Middle-aged adults and older adults had 11% and 12% lower risks, respectively (Figure 4 and Supplementary Table S4).

3.5. Sensitivity Analysis

Compared with individuals with HBsAb < 100 mIU/mL, those with HBsAb ≥ 100 mIU/mL had significantly lower risks of all diabetes-related outcomes. The association remained robust even when the threshold was increased to 1000 mIU/mL (Supplementary Table S5).

4. Discussion

To investigate the association between HBV immunity and diabetes risk, we conducted a retrospective cohort study using data from the Global Collaborative Network on the TriNetX platform. The main finding is that immunized (HBsAb-positive) individuals exhibited a 15% reduction in diabetes risk compared with unimmunized individuals (Table 1). Given that the study population included only those without HBV infection, the positive HBsAb status in the HBV-immunized group likely resulted from vaccination. This observation supported an association between HBV vaccine-induced immunity and diabetes prevention. A dose–response relationship was also observed, with higher antibody levels being associated with a lower risk of diabetes. Moreover, this association appeared stronger in younger individuals than in middle-aged and older adults.
Our main findings support the hypothesis that HBV immunity is associated with a reduced risk of diabetes, which is consistent with the results of previous studies. For example, Li et al. reported a lower prevalence of diabetes among HBsAb-positive retired women in China (OR: 0.579, 95% CI: 0.388–0.918) [21]. However, the study by Li et al. only excluded HBsAg-positive individuals at the time of data collection and did not consider HBcAb status; thus, the history of HBV infection was uncertain in some participants. Additionally, our study results are partially consistent with those of Huang et al., who used data from the NHANES database and reported a 33% reduction in diabetes risk among successfully vaccinated individuals [11]. Huang defined successfully vaccinated individuals as those who were HBsAb-positive, HBsAg-negative, and HBcAb-negative with a history of HBV vaccination. The control group included individuals with mixed immunity backgrounds, potentially including those previously infected with HBV. The inclusion of individuals with previous infection in the control group may contribute to higher diabetes risk due to liver damage from previous HBV infection, which may impair metabolic regulation and increase diabetes risk [8]. By focusing on individuals who have never been infected with HBV, the present study eliminated the influence of differing HBV infection rates between groups. Thus, this study reveals that the 15% reduction in diabetes risk is directly associated with HBV immunity. This finding suggests that HBV immunity may be associated with a lower risk of diabetes through mechanisms beyond the prevention of HBV infection, potentially involving unique metabolic pathways. Additionally, both the studies by Li et al. and Huang et al. had cross-sectional designs, limiting the strength of causal inference. Thus, from Li and Huang’s odds ratio results, besides concluding that HBV immunity reduces diabetes risk, it could also be inferred that individuals with diabetes may have a reduced ability to develop immunity after vaccination compared to those without diabetes. The present cohort study excluded individuals who had diabetes before the index date. Therefore, the strength of causal inference in this study is higher than that in cross-sectional studies, supporting a more reliable association between HBV immunity and reduced diabetes risk.
Some studies have provided inconsistent results for this association. Data from two large cross-sectional studies in Guangdong, China, revealed no association between serological HBsAb status and the presence of diabetes [22]. Similarly, a cohort study, also conducted in a Chinese population, initially found a lower diabetes risk in participants with HBsAg-negative/anti-HBs-positive/anti-HBc-negative status (implying immunity due to hepatitis B vaccination) than in those with HBsAg-negative/anti-HBs-negative/anti-HBc-negative status (indicating susceptibility to HBV) in an unadjusted model (HR: 0.89, 95% CI: 0.84–0.95, p = 0.0002). However, after adjustment for age, sex, and other covariates, this association became nonsignificant [23]. Therefore, more studies are warranted to confirm the relationship between HBV immunity and diabetes.
The results suggest that higher antibody concentrations are associated with stronger reductions in the risk of diabetes, as reflected in the composite outcome, diabetes mellitus diagnosis, and the use of any anti-hyperglycemic drugs. For the outcome of HbA1c ≥ 6.5%, the CIs overlapped, which may weaken the strength of the dose–response interpretation. However, this could be attributed to the fact that individuals with diabetes who maintain good glycemic control through medications, diet, and physical activity can achieve HbA1c levels within or close to the normal range. Consequently, the distribution of HbA1c values may not differ substantially between well-controlled diabetic individuals and those without diabetes, potentially attenuating the observed association for this specific outcome [24]. According to current guidelines, individuals who achieve HBsAb levels ≥ 10 mIU/mL within 1–2 months of completing the HBV vaccine series are considered to be protected against HBV infection [25]. However, if achieving higher antibody levels can offer greater protective effects against diabetes, ensuring a higher tier of HBsAb through vaccination might be beneficial.
In the present study, stratified analysis revealed significant geographical differences in the protective effects of HBV immunity against diabetes. Notably, the United States—despite its wealth and advanced healthcare system—showed the least benefit in diabetes prevention associated with HBV immunity. According to the most recent International Diabetes Federation (IDF) Diabetes Atlas 2025, the prevalence of diabetes among adults (20–79 years) varies markedly by region: Africa 4.2%, Middle East and North Africa 17.6%, South and Central America 10.0%, North America and Caribbean 15.1%, Southeast Asia 9.7%, and Western Pacific 12.4% [2]. These marked regional differences in diabetes prevalence may partly explain our findings, highlighting the influence of geographical and population factors in modifying the impact of HBV immunity on diabetes risk. The geographical differences may be influenced by variations in ethnicity, genetic predisposition, dietary habits, and lifestyle factors across regions, all of which are closely linked to diabetes risk. However, due to the limited data on various ethnicities in the TriNetX database, which relies on EMRs, we were unable to conduct further stratified analyses by ethnicity to examine these potential contributors in greater detail.
The age-stratified analysis indicated that the association between HBV immunity and reduced diabetes risk was stronger in younger individuals compared to middle-aged and older individuals. This finding may be attributed to the natural aging of the immune system, also known as immunosenescence, which leads to diminished vaccine-induced immune responses in older adults [26]. A national cohort study by Mereen also demonstrated that responses to the HBV vaccine declined in individuals aged > 40 years and were markedly lower in those aged > 60 years [27]. Additionally, circulating HBsAb levels have been shown to wane over time after vaccination [28]. These factors—waning immunity and immunosenescence—may collectively explain the attenuated protective effect observed in older adults in our study.
The aforementioned phenomenon can be explained as follows. Individuals who develop immunity after vaccination may have stronger immune regulation than others; in other words, they have better immune fitness. Vaccines affect the immune system both directly and indirectly. In addition to protecting against the target disease, vaccines exert indirect effects on other illnesses, contributing to the overall health of vaccinated individuals. One plausible explanation is trained immunity, in which innate immune cells undergo epigenetic reprogramming, leading to enhanced nonspecific responses and improved immune regulation. This mechanism has been demonstrated in response to several vaccines, including BCG and influenza. BCG vaccination, for example, has been linked to reduced all-cause mortality, improved immune responses to other vaccines, and even decreased cancer incidence—effects beyond its protection against tuberculosis. Influenza vaccination has also shown protective associations with reduced cardiovascular events and all-cause mortality, likely via modulation of systemic inflammation [14,15]. Given that chronic inflammation contributes to insulin resistance and type 2 diabetes, HBV vaccination may reduce diabetes risk through similar pathways. These non-specific effects support the potential of HBV immunization not only for hepatitis B prevention but also as a broader strategy for metabolic health.
From a behavioral perspective, individuals who complete vaccination schedules may be more health-conscious and more likely to engage in healthier behaviors, such as maintaining a better diet or exercising regularly. This raises the possibility that health behavior may act as a confounder in the observed association. In addition, comorbid conditions that are closely linked to diabetes—such as hypertension, dyslipidemia, obesity, and liver disease—may also contribute to the association between HBV immunity and diabetes risk. Although we adjusted for these comorbidities and selected lifestyle factors in our propensity score matching, residual confounding cannot be fully excluded.
The potential for the HBV vaccine to prevent both hepatitis B and diabetes mellitus suggests that the HBV vaccine is a unique dual-benefit intervention. Traditional diabetes prevention requires lifestyle changes, dietary adjustments, exercise, or medication, which require long-term commitment and can be costly. By contrast, the HBV vaccine is accessible and cost-effective, especially in regions with a high prevalence of both HBV and diabetes, such as the Asia-Pacific region and Africa [29,30]. Further studies are needed to confirm these effects and investigate the underlying mechanisms. If validated, the HBV vaccine could become a key tool for the prevention of both infectious and chronic diseases.
Our study has several key strengths. First, with a large sample size drawn from a multinational database, the study results can be generalized to different populations, enhancing the reliability and applicability of the results across different populations. Second, PSM was used to reduce the effect of confounding variables. Notably, to the best of our knowledge, this study is the first to explore the dose–response relationship between HBsAb levels and diabetes, potentially leading to some suggestions for future research.
The study has a few limitations. Because the HBV vaccine has been widely administered over the last century and is recommended from early childhood, vaccine history might not be comprehensively recorded in EMRs [25]. Therefore, we did not use vaccine history data. Instead, we relied on serology as an indirect method of interpretation, which may limit the comprehensiveness of our analysis. To define HBV immunization status, we excluded individuals with prior HBV infection by removing those who had had an HBV diagnosis or tested positive for either HBsAg or HBcAb. Then we inferred that HBsAb positivity in the remaining cohort likely reflected vaccine-induced immunity. This classification approach is commonly used in the HBV vaccination guidelines [10]. However, we acknowledge that rare cases of past HBV infection with negative HBcAb results have been reported, primarily due to immunosuppression or the limited sensitivity of serological assays [31,32], which may lead to a small risk of misclassification. In addition, although we applied propensity score matching to minimize confounding, residual confounding may still exist due to unmeasured variables such as health-seeking behavior, vaccination adherence, and detailed socioeconomic status. These factors could influence both HBV immunity and diabetes risk, but were not fully captured in the database. Furthermore, the accuracy of our findings may be affected by the possibility of misdiagnosis, lack of data, and insufficient reporting of certain factors, as is the case with all clinical database studies.

5. Conclusions

HBV immunity may be associated with a reduced risk of diabetes, suggesting broader HBV vaccination as a dual-benefit strategy for the prevention of hepatitis B and diabetes, especially in regions with a high prevalence of both diseases. Further studies are needed to confirm these findings and to clarify the mechanisms underlying the role of HBV immunity in diabetes prevention.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/diagnostics15131610/s1, Figure S1: Dose–Response Effect of Hepatitis B Surface Antibody Levels and Diabetes Mellitus; Table S1: Baseline characteristics of the HBV-immunized group and HBV-unimmunized group before and after propensity score matching; Table S2: Risk of Diabetes Mellitus, comparing HBV-immunized group and HBV-unimmunized group, stratified by region; Table S3: Risk of Diabetes Mellitus, comparing HBV-immunized group and HBV-unimmunized group, stratified by sex; Table S4: Risk of Diabetes Mellitus, comparing HBV-immunized group and HBV-unimmunized group, stratified by age group; Table S5: Risk of Diabetes Mellitus, comparing groups with HBsAb ≥100 vs. <100 mIU/mL and ≥1000 vs. <1000 mIU/mL; Table S6: Definition of variables using the TriNetX Live platform.

Author Contributions

Conceptualization, N.Q.P., S.-J.L., N.H.L., V.T.N., P.M.T., Y.-L.H., and C.C.; Data curation, N.Q.P. and T.H.M.; Formal analysis, N.Q.P. and V.T.N.; Funding acquisition, C.C.; Investigation, N.Q.P.; Methodology, N.Q.P., V.T.N., J.-H.C., M.-H.H., P.M.T., Y.-L.H., and C.C.; Project administration, C.C.; Resources, M.-H.H. and C.C.; Software, N.Q.P., J.-H.C., M.-H.H., D.K.H., and T.H.M.; Supervision, Y.-L.H. and C.C.; Validation, N.Q.P.; Visualization, N.Q.P.; Writing—original draft, N.Q.P., S.-J.L., and D.K.H.; Writing—review and editing, N.Q.P., N.H.L., Y.-L.H., and C.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

This study did not involve any intervention or interaction with human subjects, and data were de-identified following the standards outlined in Section §164.514(a) of the Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule. The de-identification process was confirmed by a formal determination from a qualified expert as specified in Section §164.514(b)(1) of the HIPAA Privacy Rule, which was last updated in December 2020.

Informed Consent Statement

Given the de-identified nature of the data, this study was granted exemption from informed consent requirements.

Data Availability Statement

The original data used in the current study are not available due to the policy restrictions of the TriNetX database.

Acknowledgments

We gratefully acknowledge the Taipei Municipal Wanfang Hospital (managed by Taipei Medical University) (112TMU-WFH-14) for their assistance during the initial conceptualization of this study.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
HBVHepatitis B virus
HBsAbHepatitis B surface antibody
HBsAgHepatitis B surface antigen
HBcAbHepatitis B core antibody
HRHazard ratio
HCOshealthcare organizations
EMRselectronic medical records
ICD-10-CMInternational Classification of Diseases, Tenth Revision, Clinical Modification
HbA1cGlycated hemoglobin
CIConfidence interval
PSMPropensity score matching
OROdds ratio

References

  1. Alberti, K.G.; Zimmet, P.Z. Definition, diagnosis and classification of diabetes mellitus and its complications. Part 1: Diagnosis and classification of diabetes mellitus provisional report of a WHO consultation. Diabet. Med. 1998, 15, 539–553. [Google Scholar] [CrossRef]
  2. Federation, I.D. IDF Diabetes Atlas, 11th ed.; IDF: Brussels, Belgium, 2025; Available online: https://diabetesatlas.org (accessed on 10 June 2025).
  3. Petersen, M.C.; Vatner, D.F.; Shulman, G.I. Regulation of hepatic glucose metabolism in health and disease. Nat. Rev. Endocrinol. 2017, 13, 572–587. [Google Scholar] [CrossRef] [PubMed]
  4. Shi, Y.-X.; Huang, C.-J.; Yang, Z.-G. Impact of hepatitis B virus infection on hepatic metabolic signaling pathway. World J. Gastroenterol. 2016, 22, 8161–8167. [Google Scholar] [CrossRef] [PubMed]
  5. Shin, H.-J.; Park, Y.-H.; Kim, S.-U.; Moon, H.-B.; Park, D.S.; Han, Y.-H.; Lee, C.-H.; Lee, D.-S.; Song, I.-S.; Lee, D.H.; et al. Hepatitis B virus X protein regulates hepatic glucose homeostasis via activation of inducible nitric oxide synthase. J. Biol. Chem. 2011, 286, 29872–29881. [Google Scholar] [CrossRef] [PubMed]
  6. Cai, C.; Zeng, J.; Wu, H.; Shi, R.; Wei, M.; Gao, Y.; Ma, W. Association between hepatitis B virus infection and diabetes mellitus: A meta-analysis. Exp. Ther. Med. 2015, 10, 693–698. [Google Scholar] [CrossRef]
  7. Khalili, M.; Lombardero, M.; Chung, R.T.; Terrault, N.A.; Ghany, M.G.; Kim, W.R.; Lau, D.; Lisker-Melman, M.; Sanyal, A.; Lok, A.S.; et al. Diabetes and prediabetes in patients with hepatitis B residing in North America. Hepatology 2015, 62, 1364–1374. [Google Scholar] [CrossRef]
  8. Hong, Y.S.; Chang, Y.; Ryu, S.; Cainzos-Achirica, M.; Kwon, M.-J.; Zhang, Y.; Choi, Y.; Ahn, J.; Rampal, S.; Zhao, D.; et al. Hepatitis B and C virus infection and diabetes mellitus: A cohort study. Sci. Rep. 2017, 7, 4606. [Google Scholar] [CrossRef]
  9. Locarnini, S.; Hatzakis, A.; Chen, D.-S.; Lok, A. Strategies to control hepatitis B: Public policy, epidemiology, vaccine and drugs. J. Hepatol. 2015, 62, S76–S86. [Google Scholar] [CrossRef]
  10. Conners, E.E.; Panagiotakopoulos, L.; Hofmeister, M.G.; Spradling, P.R.; Hagan, L.M.; Harris, A.M.; Rogers-Brown, J.S.; Wester, C.; Nelson, N.P. Screening and Testing for Hepatitis B Virus Infection: CDC Recommendations—United States 2023. MMWR Recomm. Rep. 2023, 72, 1–25. [Google Scholar] [CrossRef]
  11. Huang, J.; Ou, H.-Y.; Lin, J.; Karnchanasorn, R.; Feng, W.; Samoa, R.; Chuang, L.-M.; Chiu, K.C. The Impact of Hepatitis B Vaccination Status on the Risk of Diabetes, Implicating Diabetes Risk Reduction by Successful Vaccination. PLoS ONE 2015, 10, e0139730. [Google Scholar] [CrossRef]
  12. Shen, Y.; Zhang, J.; Cai, H.; Shao, J.-G.; Zhang, Y.-Y.; Liu, Y.-M.; Qin, G.; Qin, Y. Identifying patients with chronic hepatitis B at high risk of type 2 diabetes mellitus: A cross-sectional study with pair-matched controls. BMC Gastroenterol. 2015, 15, 32. [Google Scholar] [CrossRef] [PubMed]
  13. Zhang, J.; Shen, Y.; Cai, H.; Liu, Y.; Qin, G. Hepatitis B virus infection status and risk of type 2 diabetes mellitus: A meta-analysis. Hepatol. Res. 2015, 45, 1100–1109. [Google Scholar] [CrossRef] [PubMed]
  14. Goeijenbier, M.; van Sloten, T.; Slobbe, L.; Mathieu, C.; van Genderen, P.; Beyer, W.E.; Osterhaus, A.D. Benefits of flu vaccination for persons with diabetes mellitus: A review. Vaccine 2017, 35, 5095–5101. [Google Scholar] [CrossRef] [PubMed]
  15. Laupèze, B.; Del Giudice, G.; Doherty, M.T.; Van der Most, R. Vaccination as a preventative measure contributing to immune fitness. NPJ Vaccines 2021, 6, 93. [Google Scholar] [CrossRef]
  16. Palchuk, M.B.; London, J.W.; Perez-Rey, D.; Drebert, Z.J.; Winer-Jones, J.P.; Thompson, C.N.; Esposito, J.; Claerhout, B. A global federated real-world data and analytics platform for research. JAMIA Open 2023, 6, ooad035. [Google Scholar] [CrossRef]
  17. Miller, J.M.; Binnicker, M.J.; Campbell, S.; Carroll, K.C.; Chapin, K.C.; Gonzalez, M.D.; Harrington, A.; Jerris, R.C.; Kehl, S.C.; Leal, S.M.; et al. Guide to Utilization of the Microbiology Laboratory for Diagnosis of Infectious Diseases: 2024 Update by the Infectious Diseases Society of America (IDSA) and the American Society for Microbiology (ASM). Clin. Infect. Dis. 2024, ciae104. [Google Scholar]
  18. HIV, PoGftPaToOIiAaAW. Guidelines for the Prevention and Treatment of Opportunistic Infections in Adults and Adolescents with HIV. Available online: https://clinicalinfo.hiv.gov/en/guidelines/adult-and-adolescent-opportunistic-infection (accessed on 10 June 2025).
  19. Komatsu, H.; Klenerman, P.; Thimme, R. Discordance of hepatitis B vaccination policies for healthcare workers between the USA, the UK, and Germany. Hepatol. Res. 2020, 50, 272–282. [Google Scholar] [CrossRef]
  20. Davila, S.; Froeling, F.E.M.; Tan, A.; Bonnard, C.; Boland, G.J.; Snippe, H.; Hibberd, M.L.; Seielstad, M. New genetic associations detected in a host response study to hepatitis B vaccine. Genes Immun. 2010, 11, 232–238. [Google Scholar] [CrossRef]
  21. Li, M.; Zhou, H.; Guan, Y.; Peng, H.; Wang, S.; Zhang, P.; Su, B. Positive hepatitis B surface antibody is associated with reduced risk of diabetes mellitus in retired female Chinese workers. J. Diabetes 2016, 8, 158–161. [Google Scholar] [CrossRef]
  22. Liu, Y.; Jiang, C.; Hao, Y.; Xu, L.; Zhang, W.; Jin, Y.L.; Zhu, T.; Lam, T.H. Association of hepatitis B surface antigen seropositivity and hepatitis B surface antibody seropositivity with diabetes: A cross-sectional study based on two Chinese populations in Guangdong, China. BMJ Open 2020, 10, e028968. [Google Scholar] [CrossRef]
  23. Lei, S.; Chen, S.; Zhao, X.; Zhang, Y.; Cheng, K.; Zhang, X.; Wang, Z.; Sun, Y.; Wu, S.; Wang, L. Hepatitis B virus infection and diabetes mellitus: The Kailuan prospective cohort study in China. Hepatol. Int. 2020, 14, 743–753. [Google Scholar] [CrossRef]
  24. Punthakee, Z.; Miller, M.E.; Simmons, D.L.; Riddle, M.C.; Ismail-Beigi, F.; Brillon, D.J.; Bergenstal, R.M.; Savage, P.J.; Hramiak, I.; Largay, J.F.; et al. Durable change in glycaemic control following intensive management of type 2 diabetes in the ACCORD clinical trial. Diabetologia 2014, 57, 2030–2037. [Google Scholar] [CrossRef] [PubMed]
  25. Schillie, S.; Vellozzi, C.; Reingold, A.; Harris, A.; Haber, P.; Ward, J.W.; Nelson, N.P. Prevention of Hepatitis B Virus Infection in the United States: Recommendations of the Advisory Committee on Immunization Practices. MMWR Recomm. Rep. 2018, 67, 1–31. [Google Scholar] [CrossRef] [PubMed]
  26. Di Lello, F.A.; Martínez, A.P.; Flichman, D.M. Insights into induction of the immune response by the hepatitis B vaccine. World J. Gastroenterol. 2022, 28, 4249–4262. [Google Scholar] [CrossRef] [PubMed]
  27. Meeren, O.V.D.; Crasta, P.; Cheuvart, B.; Ridder, M.D. Characterization of an age-response relationship to GSK’s recombinant hepatitis B vaccine in healthy adults: An integrated analysis. Hum. Vaccin. Immunother. 2015, 11, 1726–1729. [Google Scholar]
  28. Bruce, M.G.; Bruden, D.; Hurlburt, D.; Zanis, C.; Thompson, G.; Rea, L.; Toomey, M.; Townshend-Bulson, L.; Rudolph, K.; Bulkow, L.; et al. Antibody Levels and Protection After Hepatitis B Vaccine: Results of a 30-Year Follow-up Study and Response to a Booster Dose. J. Infect. Dis. 2016, 214, 16–22. [Google Scholar] [CrossRef]
  29. Ginzberg, D.; Wong, R.J.; Gish, R. Global HBV burden: Guesstimates and facts. Hepatol. Int. 2018, 12, 315–329. [Google Scholar] [CrossRef]
  30. Lin, X.; Xu, Y.; Pan, X.; Xu, J.; Ding, Y.; Sun, X.; Song, X.; Ren, Y.; Shan, P.F. Global, regional, and national burden and trend of diabetes in 195 countries and territories: An analysis from 1990 to 2025. Sci. Rep. 2020, 10, 14790. [Google Scholar] [CrossRef]
  31. Anastasiou, O.E.; Widera, M.; Verheyen, J.; Korth, J.; Gerken, G.; Helfritz, F.A.; Canbay, A.; Wedemeyer, H.; Ciesek, S. Clinical course and core variability in HBV infected patients without detectable anti-HBc antibodies. J. Clin. Virol. 2017, 93, 46–52. [Google Scholar] [CrossRef]
  32. Avettand-Fenoel, V.; Thabut, D.; Katlama, C.; Poynard, T.; Thibault, V. Immune suppression as the etiology of failure to detect anti-HBc antibodies in patients with chronic hepatitis B virus infection. J. Clin. Microbiol. 2006, 44, 2250–2253. [Google Scholar] [CrossRef]
Figure 1. Flowchart of participant selection.
Figure 1. Flowchart of participant selection.
Diagnostics 15 01610 g001
Figure 2. Kaplan–Meier curves of cumulative incidence of diabetes mellitus by composite outcome. *** p log-rank test < 0.001.
Figure 2. Kaplan–Meier curves of cumulative incidence of diabetes mellitus by composite outcome. *** p log-rank test < 0.001.
Diagnostics 15 01610 g002
Figure 3. Dose–response effect of hepatitis B surface antibody levels and diabetes mellitus by composite outcome.
Figure 3. Dose–response effect of hepatitis B surface antibody levels and diabetes mellitus by composite outcome.
Diagnostics 15 01610 g003
Figure 4. Risk of diabetes mellitus by composite outcome, stratified by region, age, and sex.
Figure 4. Risk of diabetes mellitus by composite outcome, stratified by region, age, and sex.
Diagnostics 15 01610 g004
Table 1. Risk of diabetes mellitus, comparing HBV-immunized group and HBV-unimmunized group (n = 291,231).
Table 1. Risk of diabetes mellitus, comparing HBV-immunized group and HBV-unimmunized group (n = 291,231).
OutcomePatients with OutcomeHazard Ratio
(95% CI)
HBV-Immunized Group
(HBsAb ≥ 10 mIU/mL)
HBV-Unimmunized Group
(HBsAb < 10 mIU/mL)
Composite outcome 27,65331,2090.85 (0.84, 0.87)
Diabetes mellitus diagnosis12,61813,7310.89 (0.87, 0.91)
Any anti-hyperglycemic drugs21,02624,1920.84 (0.83, 0.86)
HbA1c ≥ 6.5%710791780.75 (0.72, 0.77)
For outcomes among the HBV-immunized group and the HBV-unimmunized group (after propensity score matching). Composite outcome: ‘Diabetes mellitus diagnosis’ or ‘Any anti-hyperglycemic drugs’ or ‘HbA1c ≥ 6.5%’.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Phan, N.Q.; Lin, S.-J.; Le, N.H.; Nguyen, V.T.; Mai, T.H.; Chen, J.-H.; Hsu, M.-H.; Hoang, D.K.; Thang, P.M.; Huang, Y.-L.; et al. Potential Protective Effect of Hepatitis B Immunity Against Diabetes Mellitus: A Retrospective Propensity-Matched Cohort Study. Diagnostics 2025, 15, 1610. https://doi.org/10.3390/diagnostics15131610

AMA Style

Phan NQ, Lin S-J, Le NH, Nguyen VT, Mai TH, Chen J-H, Hsu M-H, Hoang DK, Thang PM, Huang Y-L, et al. Potential Protective Effect of Hepatitis B Immunity Against Diabetes Mellitus: A Retrospective Propensity-Matched Cohort Study. Diagnostics. 2025; 15(13):1610. https://doi.org/10.3390/diagnostics15131610

Chicago/Turabian Style

Phan, Nhu Quynh, Shih-Jung Lin, Ngoc Hoang Le, Van Thuan Nguyen, Tan Ha Mai, Jin-Hua Chen, Min-Huei Hsu, Dinh Khanh Hoang, Phung Manh Thang, Ya-Li Huang, and et al. 2025. "Potential Protective Effect of Hepatitis B Immunity Against Diabetes Mellitus: A Retrospective Propensity-Matched Cohort Study" Diagnostics 15, no. 13: 1610. https://doi.org/10.3390/diagnostics15131610

APA Style

Phan, N. Q., Lin, S.-J., Le, N. H., Nguyen, V. T., Mai, T. H., Chen, J.-H., Hsu, M.-H., Hoang, D. K., Thang, P. M., Huang, Y.-L., & Chen, C. (2025). Potential Protective Effect of Hepatitis B Immunity Against Diabetes Mellitus: A Retrospective Propensity-Matched Cohort Study. Diagnostics, 15(13), 1610. https://doi.org/10.3390/diagnostics15131610

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop