Introduction

Hepatic encephalopathy (HE) is a critical complication in patients with acute liver failure (ALF), acute-on-chronic liver failure (ACLF), or decompensated cirrhosis, and is associated with poor prognosis (Cordoba et al. 2014; Rose et al. 2020). Roughly, HE can be described as a complex neurocognitive disorder caused by an impairment of the hepatic ability to detoxify neurotoxic metabolites and/or portosystemic shunting (Vilstrup et al. 2014).

Symptoms of HE range from low-grade cognitive impairment to coma. HE is subdivided into two main categories: covert HE (CHE) and overt HE (OHE) (Vilstrup et al. 2014). CHE comprises the two lowest grades according to the West-Haven criteria (minimal hepatic encephalopathy (MHE) and HE grade 1 (HE 1)), whereas OHE includes the HE grades 2 to 4 (HE 2–4). Figure 1 displays the classification of HE according to the West-Haven criteria.

Major HE risk factors include age, poorer liver function, a history of OHE or insertion of a transjugular intrahepatic portosystemic shunt (TIPS) (Gairing et al. 2022b; Rose et al. 2020). A growing body of evidence indicates that several underlying etiologies that drive chronic liver disease have direct effects on the brain and may be important contributors to the individual HE risk in the long term (Balzano et al. 2018; Forton et al. 2001; Grover et al. 2016; Mosher et al. 2018; Rose et al. 2020). In addition, diabetes mellitus (DM) has been identified as another potential risk factor for the development of HE in patients with cirrhosis (Elkrief et al. 2014; Jepsen et al. 2015; Kalaitzakis et al. 2007; Labenz et al. 2020a). In general, DM is associated with a higher risk of cirrhosis-associated complications and poorer survival in patients with cirrhosis (Elkrief et al. 2014, 2016). In recent decades, the prevalence of type 2 diabetes mellitus (T2DM) has increased worldwide and represents an unprecedented public health burden (Tinajero and Malik 2021). DM itself has detrimental effects even on patients without liver cirrhosis and is one of the most important risk factors for developing non-alcoholic fatty liver disease (NAFLD) (Friedman et al. 2018). This is one of the reasons why the incidences of NAFLD, NAFLD-related cirrhosis and ultimately NAFLD-related hepatocellular carcinoma (HCC) are rising (Foerster et al. 2022). Additionally, DM plays an important role not only in the development of NAFLD-associated cirrhosis, but also in patients with cirrhosis of other etiologies, such as alcohol-related cirrhosis (Whitfield et al. 2022; Wlazlo et al. 2010). Thus, the number of patients with both cirrhosis and DM will likely increase. To date, the prevalence of DM already ranges from 22 to 40% in patients with cirrhosis (Butt et al. 2013; Elkrief et al. 2014; Jepsen et al. 2015). In light of this development, knowledge on the influence of DM on HE is critical, as glycemic control is a potentially modifiable target to prevent HE. In recent years, several articles reviewed the impact of DM and/or NAFLD on cognitive function (Biessels and Despa 2018; Colognesi et al. 2020; Kjærgaard et al. 2021; Weinstein et al. 2018). In this article, we expand these articles by reviewing the current knowledge on the association between DM and the risk of HE in patients with cirrhosis.

Fig. 1
figure 1

Grading of hepatic encephalopathy (HE) according to the West-Haven criteria. Minimal hepatic encephalopathy (MHE) is the lowest HE grade and can only be diagnosed by psychometric testing. HE grades 1–4 are clinically detectable. CHE: covert hepatic encephalopathy; OHE: overt hepatic encephalopathy. Created with BioRender.com

Pathophysiology of HE in patients with cirrhosis and diabetes mellitus

The pathophysiology of HE is complex and still not fully understood. Roughly, it is based on a combination of hyperammonemia and systemic inflammation. The detailed pathophysiology of HE in patients with cirrhosis is comprehensively reviewed elsewhere and not within the scope of this article (Rose et al. 2020).

There are several effects of DM that may link DM and HE in patients with cirrhosis (Fig. 2). First, DM is associated with autonomic dysfunction. As a result, the gastrointestinal transit time is delayed, which promotes constipation and small intestinal bacterial overgrowth (SIBO) (Abrahamsson 1995). Even hyperglycemia itself impairs gastric and small intestinal motility leading to a prolonged gastrointestinal transit time. This may elevate the risk of HE in patients with cirrhosis by an increase in bacterial translocation from the gut and an increased intestinal ammonia production (Sigal et al. 2006; Spengler et al. 1989; Wegener et al. 1990). Second, DM is associated with alterations in the gut microbiome itself (Qin et al. 2012). Third, DM could increase ammonia production by inducing small intestine glutaminase type K and accelerating muscle breakdown (Ampuero et al. 2012). Fourth, T2DM-associated insulin resistance (IR) may promote an increased protein catabolism, which may result in higher blood ammonia levels. In this context, Chow et al. found that insulin does not stimulate muscle protein synthesis, but causes muscle protein anabolism by inhibiting muscle protein breakdown (Chow et al. 2006). Insulin also acts on the central nervous system (CNS) by modulating behavior and systemic metabolism (Kullmann et al. 2020). Here, it promotes neurite growth, modulates catecholamine release and uptake, regulates ligand-gated ion channel transport, GABA expression and localization, N-methyl-d-aspartate (NMDA) and α-amino-3-hydroxy-5methyl-4-isoxazolepropionic acid (AMPA) receptors. This results in a modulation of activity-dependent synaptic plasticity, i.e., long-term potentiation (LTP) and long-term depression (LTD) via NMDA receptor signaling (Arnold et al. 2018; Fadel and Reagan 2016; van der Heide et al. 2005). Thus, IR of certain brain areas, including the hypothalamus, the hippocampus and the cerebral cortex, has a negative effect on metabolism by disturbing cerebral insulin pathways. Moreover, it is well known that the consumption of a high caloric diet also leads to high concentration of inflammatory cytokines in the brain, resulting in microgliosis, astrocytosis and neuronal damage (Bélanger et al. 2011; Horvath et al. 2010). These pathophysiological aspects might play a role not only in HE-related but also in HE-independent cognitive deficits caused by DM and glycemic control.

Fig. 2
figure 2

Diabetes-associated factors which may trigger or exacerbate hepatic encephalopathy (HE). DM-related factors that may influence the risk of HE include autonomic dysfunction with prolonged intestinal transit time and small intestinal bacterial overgrowth (SIBO), insulin resistance with increased muscle protein breakdown, and systemic inflammation due to increased production of pro-inflammatory cytokines such as interleukin-6 (IL-6) or tumor-necrosis factor alpha (TNFα). NH3: ammonium hydroxide. Created with BioRender.com

Fifth, systemic inflammation not only plays a critical role in T2DM, but also in the development of HE (Tranah et al. 2013). In this context, IR and T2DM are considered as chronic inflammatory conditions due to the increased production of pro-inflammatory cytokines such as interleukin-6 (IL-6) or tumor-necrosis factor alpha (TNFα) (Basu et al. 2011). Recently, increased IL-6 serum levels were found to be associated with the presence of MHE and the development of OHE (Gairing et al. 2022a; Labenz et al. 2019). Last, both T2DM and cirrhosis increase the susceptibility of patients to bacterial infections, which may further enhance the release of pro-inflammatory cytokines (Diaz et al. 2008; Trail et al. 1993).

Cognitive impairments in patients with diabetes mellitus without cirrhosis

The link between DM, cognitive deficits, and the development of dementia is well established in the literature (You et al. 2021; Zilliox et al. 2016). In this context, passive cognitive impairment triggered by acute hypo- or hyperglycemia, persistent mild cognitive impairment, and clinically relevant dementia should be differentiated. In general, elevated blood glucose levels are associated with a deterioration in cognitive performance in the long term (Tortelli et al. 2017). This is underscored by a study by Morris et al. suggesting that glycemic control is related to cognitive decline and progression to Alzheimer’s Disease (AD) (Morris et al. 2014). Moreover, T2DM is associated with a 50% increase in the risk of dementia (Biessels et al. 2006). To date, it is unclear whether factors related to glycemic dysregulation increase dementia risk or whether this risk is modulated by other DM-associated factors, particularly an unfavorable vascular risk factor profile (Sharma et al. 2020). Ultimately, several factors are involved that individually may only have a small effect on their own, but collectively can cause cognitive dysfunction (Biessels and Despa 2018). Prominent examples are atherosclerosis and stroke, as well as ischemic small vessel disease, which are more common in patients with T2DM than in the general population (Abner et al. 2016). In addition, patients with manifestations of microvascular (e.g., diabetic retinopathy) or macrovascular disease (e.g., myocardial infarction, stroke) are also more likely to have poorer cognitive performance compared to healthy individuals (Biessels et al. 2014; Feinkohl et al. 2015).

The pathophysiology of diabetic cognitive impairment is complex but is likely to involve the following mechanisms: abnormalities in insulin signaling and insulin receptor sensitivity in neurons, dysregulation and defects of mitochondria in the presynaptic hippocampus, diabetic autonomic neuropathy and an increase in the expression of pro-inflammatory cytokines in the brain (Zilliox et al. 2016). In addition, microcirculatory disorders, such as disruption of the blood-brain barrier (BBB), also play an important role in the development of cognitive impairment (Mogi and Horiuchi 2011). This change in permeability could lead to lower insulin levels in the brain and lower insulin-supported neuronal and glial activity (Heni et al. 2014).

In T2DM, cognitive changes mainly affect learning and memory, mental flexibility and speed (Awad et al. 2004; Stewart and Liolitsa 1999; Tortelli et al. 2017). In general, early diagnosis of cognitive impairment is critical to ensure that patients are still able to independently and reliably manage (insulin-) therapy and the appropriate diet. Thus, patients with T2DM and signs of cognitive deficits should be screened annually for dementia using established tests (Kulzer et al. 2013).

Diabetes mellitus and minimal hepatic encephalopathy (MHE)

MHE is the lowest grade of HE and can only be detected with specialized tests. The portosystemic hepatic encephalopathy score (PHES) is the current gold standard for MHE diagnosis (Vilstrup et al. 2014). Patients with HE 1 only show low-grade clinical symptoms. Thus, diagnosis of HE 1 is examiner-dependent and often not reliably reproducible (Reuter et al. 2018). About a decade ago, MHE and HE 1 were grouped together under the umbrella term “covert” HE (CHE). CHE affects approximately one-third of all patients with cirrhosis and has a distinct impact on patients’ quality of life as well as their prognosis (Labenz et al. 2018, 2020b). Currently, only few studies investigated the association between DM and the prevalence of MHE or CHE (Table 1). Kalaitzakis et al. found an association between the time to conduct the number connection test A (NCT A), which is a part of PHES, and the presence of DM (Kalaitzakis et al. 2007). When interpreting this study, it has to be acknowledged that the NCT A is no validated tool to detect MHE in patients with cirrhosis. Nevertheless, a recently published study found a moderate association between DM and the presence of CHE, defined by the gold standard PHES, in a large cohort of patients with cirrhosis (Labenz et al. 2020a). However, it has to be mentioned that this association lost significance when excluding patients with a history of OHE from the multivariable analysis. One of the most important findings of this study was that there was a significant association between HbA1c levels ≥ 6.5% and the presence of CHE, while there was no significant association between HbA1c levels < 6.5% and CHE (Labenz et al. 2020a). This finding underscores the hypothesis that there may not be a relationship between DM and CHE per se, but that glycemic control may be the relevant modulator.

Table 1 Studies evaluating the association between diabetes mellitus and covert hepatic encephalopathy (CHE)

There are also negative studies that argue against an association between DM and MHE/CHE. A recent study by Acharya et al. investigating one of the largest cohorts ever published in the context of CHE (700 patients) found no association between major comorbidities, such as DM, and the presence of CHE (Acharya et al. 2021).

It has to be acknowledged that all of the aforementioned studies are limited by their cross-sectional design. Therefore, prospective studies with serial testing are needed in the future to determine whether patients with DM are at higher risk for the development of MHE/CHE. Another fact that has to be kept in mind when interpreting the aforementioned studies is that the tests used for detection of MHE are not specific for HE. Therefore, the interpretation of the respective test results may be complicated by the coexistence of other diseases leading to chronic brain injury, such as dementia or chronic alcohol consumption. As already reviewed above, DM may alter cognitive function and especially affects domains such as attention, memory, executive function, processing speed or motor dysfunction (Weissenborn 2019). Some of these changes overlap with dysfunctions caused by HE and may therefore hamper the interpretation of MHE tests. A study by Lauridsen et al. investigated the impact of common chronic diseases, including DM, on results in the PHES as well as the continuous reaction time (CRT) (Lauridsen et al. 2016). In this study, they found that the results in PHES or CRT did not differ between patients with DM or healthy controls. However, it has to be mentioned that 3 of 15 patients with DM had results of -4 and below in the PHES. Another study conducted by Goldbecker et al. found no influence of DM neither on PHES, nor on inhibitory control test (ICT) (Goldbecker et al. 2013). In summary, the current evidence does not suggest that DM may significantly interfere with MHE testing. However, additional studies in larger populations are needed to further elucidate this important topic. In particular, there is an urgent need for studies investigating the impact of DM on screening tests for MHE such as the simplified animal naming test (S-ANT1), which may be more broadly used in routine clinical practice (Campagna et al. 2017). Due to the fact that the S-ANT1 also tests memory, a domain that may not be directly affected by HE, the influence of diabetes mellitus on test results may be even stronger than that of HE (Weissenborn et al. 2003).

Diabetes mellitus and overt hepatic encephalopathy (OHE)

The development of OHE is a turning point in the course of cirrhosis and a remarkable predictor of poor prognosis (Jepsen et al. 2010). In addition to poor prognosis, OHE has detrimental effects on patients’ quality of life, is a huge burden for caregivers and is associated with a cumulative cognitive deficit (Bajaj et al. 2010; Nagel et al. 2022). In contrast to several liver-related risk factors, the impact of the most common comorbidities of patients with cirrhosis, such as DM, on the risk of OHE has not been extensively studied in the past (Labenz et al. 2020b; Praktiknjo et al. 2020). Additionally, most of the published studies are of comparably low evidence and either retrospective or cross-sectional in design. A study conducted by Sigal et al. investigated the impact of DM on the presence of different HE grades in a relatively small subset of patients with hepatitis C virus-associated cirrhosis (Sigal et al. 2006). Although the association between DM and the presence of HE did not reach significance, patients with DM suffered from more severe HE grades. Currently, there are only two prospective studies describing an association between DM and the development of OHE. The first one is a post-hoc analysis of the satavaptan trials in patients with cirrhosis and ascites. In this study, Jepsen et al. found a robust association between DM and the development of OHE with an adjusted hazard ratio of 1.86 (Jepsen et al. 2015). However, this study is limited by the lack of CHE testing at baseline. The second study included 240 prospectively followed patients of whom 27% suffered from DM (Labenz et al. 2020a). This study found an association between DM and the development of OHE even after adjusting for the presence of CHE at baseline in multivariable analysis. Again, as also mentioned above, this study demonstrated that especially the degree of glycemic control seems to be associated with the development of OHE rather than DM per se. Here, the OHE-rate was increased in patients with poorer glycemic control (HbA1c ≥ 6.5% vs. no diabetes mellitus), while there was no association between better glycemic control (HbA1c < 6.5%) and the development of OHE (Labenz et al. 2020a). However, it has to be mentioned that the findings of this study are limited by its observational design and the single-center setting. To give a balanced view on the impact of DM on the risk for OHE, it has to be reported that there are also negative studies reporting on this topic. A recently published study by Acharya et al. investigated the association between comorbid conditions and the development of OHE in a large cohort of patients with cirrhosis (700 patients, 33% with prior OHE) (Acharya et al. 2021). Here, only liver-related variables predicted the occurrence of OHE in patients with prior OHE, while DM turned out to be no risk factor. Table 2 gives a brief overview on relevant studies investigating a potential association between DM and OHE.

Table 2 Studies investigating the association between diabetes mellitus and overt hepatic encephalopathy (OHE)

In conclusion, DM could be a risk factor for the development of OHE. However, the current evidence is only mediocre and based on cross-sectional studies, cohort studies and a post-hoc analysis of randomized-controlled trials with a focus on ascites. Therefore, additional high-quality studies are needed to draw a definitive conclusion on this important topic.

Therapeutic approaches

Considering the increasing prevalence of patients with cirrhosis with comorbid DM and its potential association with HE, DM might be a future therapeutic target for reducing the risk of HE. As mentioned above, poorer glycemic control seems to be associated with a higher OHE-risk (Labenz et al. 2020a). However, there is currently no prospective study available investigating the effect of an improvement in glycemic control on HE-risk. A study by Ampuero et al. demonstrated in a preclinical model that metformin inhibits glutaminase activity and may therefore have the potential to prevent HE (Ampuero et al. 2012). This hypothesis was validated in a retrospective analysis of 82 patients with cirrhosis. Here, metformin intake was associated with a lower risk of OHE during follow-up. However, these findings are in contrast to a recently published study indicating that metformin is associated with a reduced responsiveness to rifaximin (Ballester et al. 2022). In the future, prospective and randomized trials are needed to investigate these associations in more detail.

In an older study, acarbose was found to significantly reduce ammonia serum levels and to improve cognitive function in patients with cirrhosis, T2DM and HE grade 1–2 in a randomized controlled trial (Gentile et al. 2005). However, there are some case reports on fulminant hepatitis in patients treated with acarbose (Diaz-Gutierrez et al. 1998; La Vega et al. 2000). In addition, acarbose may lead to hypoglycemia, which may have worrisome consequences in patients with decompensated cirrhosis. Thus, acarbose is currently contraindicated in patients with cirrhosis.

In addition to studies indicating DM as a potential target for reducing the risk of HE, there is also preliminary evidence suggesting potentially harmful effects of DM on established HE treatments. Recently, a bicentric prospective cohort study including 63 patients with cirrhosis investigated the association of the metabolic syndrome on the response to rifaximin in patients with MHE (Ballester et al. 2022). The study found that older age, NAFLD, all metabolic syndrome-associated diseases including DM and metformin intake were associated with a reduced responsiveness to rifaximin (Ballester et al. 2022). However, the results of this study have to be interpreted in the context of its design. The sample size is comparably small and patients were not randomized to treatment. Additionally, the adherence rate to rifaximin treatment was only 72% and not surprisingly adherence to therapy was significantly associated with a better response to therapy. Therefore, more studies on this topic are needed before definitive conclusions can be drawn regarding the impact of DM on treatment with rifaximin.

In general, treatment of DM in patients with cirrhosis is challenging. First, lifestyle modifications such as diets (e.g., in obese patients with NAFLD-related cirrhosis) have to be finely balanced to achieve weight loss without triggering HE due to catabolism. Sarcopenia is a well-established risk factor for HE and should not be aggravated due to diet restrictions (Nardelli et al. 2019). Second, usually it is not easy to implement sport interventions into the daily routine of patients with decompensated cirrhosis (Elkrief et al. 2016). Last, most medications used for the treatment of DM are not approved in patients with impaired liver function. Metformin appears to be safe in more or less compensated patients with cirrhosis but it is contraindicated in concurrent acute kidney injury such as hepatorenal syndrome (HRS-AKI) (Elkrief et al. 2016). Regarding other pharmacological agents, their individual hepatotoxic potency and risk of hypoglycemia have to be kept in mind.

Conclusion and future perspectives

DM is a frequent comorbidity in patients with cirrhosis. Several studies indicate an association between diabetes mellitus as well as poorer glycemic control and the development of HE, although there are also conflicting results. However, studies are frequently limited by their designs, small cohorts and varying diagnostic tools and/or definitions used for diagnosing HE. Therefore, larger multicenter studies with sufficient follow-up and longitudinal assessment of cognitive function and glycemic control are urgently needed to clear the dust on this important topic.

In conclusion, the reciprocal relationship between cognitive impairment, long-term inadequate adherence to therapy, and unsatisfactory metabolic control may have the effect of a vicious circle. Therefore, it is of pivotal importance to screen patients with cirrhosis for new-onset DM and to adequately treat patients with an established diagnosis.