Introduction

Hepatitis C virus (HCV) remains a significant public health challenge, particularly among key populations, such as people who inject drugs (PWID)1. In 2022, approximately one million new HCV infections were recorded worldwide, with 43.6% attributed to PWID due to unsafe injecting2. PWID are exposed to various and changing risk environments and are at risk of multiple harms related to injecting drug use. There are approximately 14.8 million PWID globally, constituting approximately 0.29% of the global adult population aged 15–643. The global prevalence of HCV among PWID is notably high, exceeding 40%. This equates to an estimated 5.6 million individuals who have recently injected drugs and are living with HCV4, with approximately 44.8% of these cases occurring in regions such as the Eastern Mediterranean Region (EMR)5.

This high prevalence underscores the critical need for targeted interventions and practical strategies to reduce the burden of HCV within these vulnerable groups. Injection drug use is not only a primary route of HCV transmission but also contributes to a spectrum of health issues, including HIV, hepatitis B virus (HBV), and various other blood-borne diseases6. Among these, HCV is particularly concerning due to its potential to cause chronic liver disease, cirrhosis, and hepatocellular carcinoma7.

The prevention of HCV among PWID is hindered by inadequate harm reduction services, restrictive drug policies, limited healthcare access, low testing rates, direct-acting antiviral (DAA) therapy restrictions, and insufficient government support4. Despite advancements in treatment options, including the introduction of DAA, which offers a high cure rate, the incidence of HCV among PWID remains persistent7. This persistence is partly due to the challenges associated with controlling the behaviors that facilitate transmission, such as sharing injection equipment8,9.

Iran has one of the highest populations of PWID in the EMR10, with 46.5% of PWID being HCV antibody reactive11. Despite the scale-up of harm reduction programs, including the provision of clean syringes and opioid agonist therapy, the control of HCV among PWID remains suboptimal12. To achieve the World Health Organization’s HCV elimination goals by 2030, PWID are identified as a priority population for improving prevention, testing, linkage to care, treatment, and follow-up care4,13,14. To achieve the goal of HCV elimination among PWID, it is crucial to identify the factors influencing the implementation of effective interventions.

Numerous studies have examined the determinants of HCV infection in this high-risk group, identifying factors such as age15, injection duration15, HIV co-infection16, homelessness17, needle sharing8, and incarceration history18. Previous studies have examined the linear effect of injection duration on HCV infection15,19. A notable limitation in many existing studies is their approach to modeling injection duration, often treating it as a linear predictor20 or categorizing it into arbitrary time intervals21,22,23,24. While simplifying the analysis, this approach may not adequately capture the complex, non-linear relationship between injection duration and HCV seropositivity. Linear models assume a constant increase in risk with each additional year of injection, which may overlook periods of accelerated risk or plateaus. Similarly, categorizing injection duration into broad time bands can obscure important variations within those intervals, leading to potential misestimation of the risk associated with different stages of an injection career.

Modeling approaches are essential for evaluating the economic and demographic impacts of disease epidemiology, estimating the effectiveness of interventions, and providing policymakers with precise information to inform decisions on infectious disease control25. Using the same data, the previous study assessed the risk factors associated with HCV, with injection duration included as a categorical variable19. This study mainly aimed to explore the non-linear relationship between injection duration and HCV seropositivity status among people who inject drugs in Iran. By investigating the relationship between drug injection duration and HCV seropositivity, this study seeks to address a critical gap in the existing literature to model time in the same studies.

Methods

Study overview and participant recruitment

Using respondent-driven sampling (RDS)26, from July 2019 to March 2020, 2684 PWID were recruited from 11 major cities in Iran, encompassing Tehran (sample size: 392), Tabriz (136), Sari (200), Mashhad (318), Yazd (127), Kermanshah (506), Khorramabad (306), Ahvaz (195), Shiraz (91), Kerman (171), and Zahedan (242), as part of the fourth national HIV bio-behavioral surveillance survey19. The study investigators strategically chose these cities in consultation with the Ministry of Health to represent diverse geographical regions within the country (Fig. 1).

Fig. 1
figure 1

The geographical distribution of sample cities in national bio-behavioral, among people who inject drugs in Iran in 2020.

RDS is a probability-based sampling technique developed by Douglas Heckathorn in 199727. It is particularly recognized for its use in AIDS prevention research among drug users. Unlike conventional snowball sampling, RDS includes a mechanism to document participants’ network sizes, enabling researchers to estimate inclusion probabilities and adjust the sample to represent the target population better28.

To be eligible for participation, individuals had to meet the following inclusion criteria: (i) be 18 years of age or older at the time of the interview; (ii) report illicit drug injection within the past 12 months; (iii) reside in one of the surveyed cities; and (iv) possess a valid referral coupon, except seeds. We selected a 12-month period to align our findings with previous survey rounds. Additionally, this duration is recommended by the WHO29. Participant involvement was confidential, with all individuals providing verbal informed consent for collecting biological and behavioral data before enrolling in the study. A gender-matched, face-to-face interview in a private room was conducted to gather behavioral data using a standardized questionnaire. Additionally, participants consented to do HCV and HIV testing, which included pre-test and post-test counseling. HCV testing was carried out using an HCV antibody rapid test (SD-Bioline, South Korea). HIV testing utilized the SD-Bioline, South Korea, rapid test, followed by confirmatory testing with the Unigold HIV rapid test if the first test was reactive. Test results were linked to survey responses through a unique code to ensure confidentiality, and no personally identifying information was requested or retained26.

Throughout the study, many efforts were made to ensure the highest possible quality. This included providing comprehensive training to interviewers, piloting the questionnaire, closely supervising observers during data collection, and ensuring that completed questionnaires were transmitted daily to the central server via an online system. The research team conducted daily quality checks to maintain the integrity of the work.

Study covariates and outcome

This analysis’s primary outcome of interest was HCV seropositivity status (positive vs. negative). The time lag from the drug injection to the interview time (as the detection time) was considered the main predictor variable. The principal emphasis of this modeling approach was to elucidate the non-linear association between the time since the onset of drug injection and the presence of HCV.

Some confounding variables also entered into the model, including sex (male vs. female), education (under high school vs. high school or more), marital status (single, currently married, divorced/widowed), HIV seropositivity status (positive vs. negative), ever injected methamphetamine (yes vs. no), lifetime history of homelessness (yes vs. no), public injecting in the last 12 months (yes vs. no), ever shared needle/syringe with others (yes vs. no), deprivation of health services due to drug use (yes vs. no), ever incarcerated (yes vs. no), and the first experience of drug use through injecting drugs (yes vs. no). The time since the onset of drug injection (year) was calculated as the current age minus the age at the first drug use.

Statistical analysis

In this study, a multilevel Generalized Additive Model (GAM) with a logit link function was employed to analyze the relationship between the predictor variables and the binary outcome of interest. These models allow for the inclusion of non-linear relationships between predictors, the response variable, and the hierarchical structure of the data. The multilevel framework accounts for the potential clustering of observations within higher-level units, while the GAM component flexibly models non-linear associations30.

A binary generalized additive logistic regression model was formulated as follows:

$$\:\text{log}\left(\frac{P\left({\varvec{y}}_{\varvec{i}\varvec{j}}=1\right)}{P\left({\varvec{y}}_{\varvec{i}\varvec{j}}=0\right)}\right)={\beta\:}_{0}+\sum\:_{l=1}{\beta\:}_{l}{x}_{lij}+\sum\:_{k=1}{{f}_{k}(z}_{kij})+{u}_{j}$$

,

where yij denotes the binary outcome for individual i (i = 1, 2, …, n) in cluster j (j = 1, 2, …, J), fk(zkij) represent the smooth, non-linear function of the k-th (k = 1, 2, …, q) covariate zkij for individual i in cluster j, \(\:\sum\:_{l=1}{\beta\:}_{l}{x}_{lij}\) (l = 1, 2, …, p) indicates the linear part of the model which associated with other independent variables (x1ij to xpij indicates the p independent variables), and β0 is constant, uj is the random effect for cluster j.

The multilevel generalized additive logistic model was fitted to the HCV seropositivity status by considering the smooth time since the onset of drug injection. This study considered the random intercept for city levels in the model. The PWIDs (first level) are nested within cities (second level).

The thin-plate spline was considered as spline function. The Effective Degrees of Freedom (EDF) measures the complexity or flexibility of the smooth function used in the model. The degree of smoothness is automatically determined using penalized likelihood estimation. The model optimizes a trade-off between good fit to the data (low bias) and avoiding overfitting (low variance). This is done using penalized regression splines, where a penalty term is added to control the roughness of the smooth function. In this context, it tells you how much the relationship between time since the onset of drug injection and HCV seropositivity deviates from linearity. A higher EDF suggests a more complex, non-linear relationship. First, the crude odds ratio (cOR) for each independent variable was assessed, considering the association of the injection duration. Subsequently, the adjusted odds ratio (aOR) was evaluated, accounting for all predictor and confounding variables in conjunction with the injection duration association. Two models were fitted: one excluding random effects and the other including them. The model comparisons used the Bayesian information criterion (BIC) to identify the most parsimonious model.

The overall RDS-adjusted estimates were reported for HCV prevalence in subgroups of PWID recruited in the 2020 survey, which considered network size and homophily within networks. RDS-adjusted estimates for HCV prevalence were calculated in RDS-Analyst. However, we use an unweighted model based on Avery, et al.31. They showed significant bias and unacceptably high type-I error rates for weighted models and recommended unweighted models. The chi-square and Mann-Whitney U tests were applied to compare the socio-demographic and behavioral characteristics of PWIDs among seronegative and seropositive HCV groups. All analysis was done using R software version 4.3.1. P-values less than 0.05 were considered as significant.

Results

Demographics

A total of 2,684 PWID with an average age of 40.2 (Standard Deviation [SD] = 9.3) years were recruited during the study period. Among them, 699 individuals (26.0%) were HCV seropositive. Most participants were male (96.6%). Most participants were divorced/widowed (38.3%), followed by single (36.6%) and currently married (25.0%). A majority had less than a high school education (69.1%), with a smaller percentage having completed high school or more (30.9%). On average, individuals in the combined group started using drugs at the age of 19.6 (SD = 5.1) years. The average duration of drug injection was 19.2 (SD = 9.1) years for seronegative and 24.5 (SD = 8.9) years for seropositive HCV participants. A small percentage (4.7%) of participants had their first drug use experience through injection. Among them, 56.6% reported a history of lifetime homelessness. Nearly half of the participants (46.6%) reported deprivation of health services due to drug use (Table 1).

Table 1 Socio-demographic and behavioral characteristics of people who inject drugs in the 2020 National HIV Bio-behavioral.

HIV seropositivity

The data shows a higher prevalence of ever HIV seropositivity among individuals with seropositive HCV (9.6%) compared to those with HCV seronegative (1.41%) (P-value < 0.001) (Table 1).

Drug use behaviors

A prevalent behavior reported among participants was methamphetamine injection (34.2%). The prevalence was higher among those with HCV seropositivity (44.6%). A total of 18.9% of participants reported ever shared needle/syringe with others. For those with seronegative HCV, the percentage of ever shared needle/syringe was 13.3%, whereas it was higher at 34.6% among individuals with seropositive HCV (P-value < 0.001) (Tables 1 and 2).

Table 2 The association of hepatitis C virus (HCV) antibody prevalence and other variables among people who inject drugs (PWID) in 2020 National HIV bio-behavioral using a multilevel generalized additive logistic regression model.

Selection of the best model

The non-linear relationship between the duration since drug injection and seropositive HCV was found based on the observed probability of seropositive HCV in relation to the time since the onset of drug injection (Part A of Fig. 2). Model comparison was conducted using the BIC, with the model excluding random effects yielding a BIC of 1983.7 and the model including random effects showing a BIC of 1934.8. Given the lower BIC, the model with random effects was selected, and the corresponding results were reported.

Fig. 2
figure 2

Smoothed association of time since injection duration (years) on Hepatitis C virus (HCV) seropositivity among people who inject drugs (PWID) in 2020 national HIV bio-behavioral using a multilevel generalized additive logistic regression model. Part (A) Observed probability of seropositive HCV in relation to time since onset of drug injection. Parts (B) and (C) Smoothed estimates for the duration since the start of the drug injection. The time since the first injection drug has a non-linear relationship with the log odds as well as the odds of getting diagnosed with seropositive HCV. The shaded area measures the 95% confidence interval in the model estimate. In part (B), the univariate model illustrates the association of the injection period on HCV, considering only the injection period as the predictor variable. In part (C), the model demonstrates the association of the injection period on HCV while controlling for all independent variables.

Crude model

The crude analysis reveals several notable associations with HCV seropositivity. Specifically, the odds of HCV seropositivity was significantly lower among females (cOR = 0.49, 95% CI: 0.30, 0.82; p-value = 0.006), individuals with higher educational attainment (cOR = 0.72, 95% CI: 0.58, 0.89; p-value = 0.002), those who are married (cOR = 0.55, 95% CI: 0.42, 0.72; p-value < 0.001), and widows or divorced individuals (cOR = 0.77, 95% CI: 0.60, 0.99; p-value = 0.040) (Table 2).

Conversely, higher odds of HCV seropositivity were observed in PWID who tested ever positive for HIV (cOR = 8.82, 95% CI: 5.31, 14.65; p-value < 0.001), those with an ever injected methamphetamine (cOR = 2.32, 95% CI: 1.88, 2.86; p-value < 0.001), individuals with an ever being incarcerated(cOR = 2.39, 95% CI: 1.93, 2.96; p-value < 0.001), PWID with a history of homelessness (cOR = 1.24, 95% CI: 1.01, 1.52; p-value = 0.040), those who ever shared needle/syringe (cOR = 3.25, 95% CI: 2.10, 5.05; p-value < 0.001), and those who had deprivation of health services due to drug use (cOR = 1.25, 95% CI: 1.03, 1.53; p-value = 0.028) (Table 2).

Figure 2, part B, illustrates the smoothed estimates for the duration since the initiation of drug injection. The EDF of 3.12 indicates a non-linear relationship. The plot illustrates how the HCV seropositivity changes over time as drug injection duration increases. The association between the duration since the onset of drug injection and HCV seropositivity does not follow a simple linear pattern (p-value < 0.001).

Adjusted model

Holding other variables constant, PWID individuals who were currently married had a lower odds of HCV seropositivity (aOR = 0.67; 95% CI: 0.48, 0.93; p-value = 0.018) when compared to singles. Additionally, individuals who tested ever positive for HIV had a higher odds (aOR: 10.54; 95% CI: 5.39, 20.61; p-value < 0.001) for testing positive for HCV. Individuals who had an ever injected methamphetamine were at a higher risk of HCV seropositivity (aOR = 1.72; 95% CI: 1.33, 2.22; p-value < 0.001). Moreover, ever shared needle/syringe with others was associated with an elevated odds of HCV seropositivity (aOR = 2.63, 95% CI: 1.32, 5.22; p-value = 0.006). Lastly, PWID individuals with a history of ever being incarcerated had an aOR of 1.97 (95% CI: 1.50, 2.58; p-value < 0.001) for testing positive for HCV (Table 2).

The EDF of 2.01 indicates the non-linearity in this association, implying that the relationship between time since the onset of drug injection and HCV seropositivity is not linear (p-value < 0.001). Figure 2, part C, illustrates the smoothed estimates for the duration since the initiation of drug injection. This variable exhibits non-linear effects, as indicated by the observed proportions. Within the first 20 years following the initial injection, the probability of a positive HCV test exhibits an upward trajectory. The rate of increase diminishes as the injection duration lengthens.

Discussion

This study showed there is a non-linear association between the duration of injection drug use and HCV seropositivity among PWID. We also found that the odds of HCV transmission were higher among PWID who had ever shared needles/syringes, those who had ever tested positive for HIV, those who had ever injected methamphetamine, and those who had a history of incarceration. Conversely, those who were currently married had lower odds of HCV seropositivity.

We found a non-linear association between the duration of injection and HCV infection. In this regard, in the first 20 years after the start of injection, the odds of testing positive for HCV rises rapidly, indicating a period of heightened risk. However, following this initial surge, the rate of increase slows down. This enables us to capture the complex association between injection duration and HCV infection, highlighting periods of increased vulnerability and risk plateaus that linear models or categorical methods might overlook. However, previous studies have treated injection duration as a linear predictor20 or categorized it into time intervals21,22,23,24. The non-linear pattern indicates that the risk of HCV infection may accelerate after specific critical points in an individual’s injection career, possibly due to the cumulative effects of ongoing risky behaviors32 or the weakening of immune defenses over time33. An increase in HCV positivity among PWID during the first 20 years from the onset of injection can be explained by high-risk behaviors at the onset of drug use34, exposure to high-prevalence networks35, rapid transmission dynamics, frequent sharing of equipment, increased frequency of injection, and initial lack of knowledge. After 20 years, many individuals who are at high risk of contracting HCV may have already been exposed to and contracted the virus. Over time, PWID may become more aware of the risks associated with unsafe injection practices and adopt harm-reduction strategies, such as using sterile needles and avoiding sharing equipment.

Our study showed the association of injection-related behaviors and structural vulnerabilities in HCV transmission. Factors such as being single, ever shared needle/syringe with others, having ever injected methamphetamine, and a history of ever being incarcerated were all significantly associated with HCV seropositivity. These findings align with existing literature, which has identified that married PWID had a lower odds of HCV infection36. Methamphetamine injection is significantly associated with HCV seropositivity, highlighting the growing concern over stimulant injection as a key factor in the transmission of both HCV and HIV37. Also, needle sharing and incarceration have been identified as key risk factors for HCV infection among PWID18,38. The increased risk among those with the experience of imprisonment could be related to their behaviors outside and inside the prison. A higher prevalence of needle/syringe39 among this population and living in an environment40 with higher risk could be the main predictors of a higher prevalence of HCV among incarcerated people.

The study findings also highlighted the critical intersection of HIV and HCV among PWID. HIV infection was significantly associated with HCV seropositivity, reflecting the shared transmission routes and risk behaviors that contribute to the co-prevalence of these infections. The interaction between HIV and HCV is complex, with evidence suggesting that HIV co-infection accelerates HCV progression, leading to more severe liver disease and complicating treatment strategies41. Additionally, people living with HIV exhibit different rates of spontaneous HCV clearance compared to those without HIV, further complicating the clinical management of co-infected patients42. These findings underscore the importance of integrated care models that address both HIV and HCV in PWID, with a focus on improving testing, treatment access, and patient outcomes43.

This study had three limitations. First, the cross-sectional design of the survey imposes limitations on our ability to draw conclusions about causal relationships and the timing of events between HCV and the various determinants we are investigating. Specifically, because the data is collected at a single point in time, we cannot ascertain whether the determinants influenced the presence of HCV or if the infection affected these determinants. This lack of temporal sequencing restricts our understanding of the dynamics involved, making establishing any definitive cause-and-effect relationships challenging. Consequently, our findings may only reflect associations rather than true causal effects. Second, some behaviors were self-reported and thus subject to potential recall bias. Third, the associations of age and age at the first drug injection were not examined independently due to collinearity between these variables. Instead, the duration of injection—calculated as the difference between age and age at first drug injection—was utilized as a variable, indirectly capturing the association of age. This approach allows for an indirect assessment of HCV risk associated with age.

RDS effectively recruits hard-to-reach populations but has several limitations. These include potential biases from unequal network sizes and errors in measuring network size, which can affect weighting accuracy. It may not sufficiently address biases arising from unequal homophily among participants, resulting in skewed outcomes. Additionally, reliance on peer recruitment can introduce selection bias and limit generalizability, while estimating network size and handling non-response bias present significant challenges. Other concerns include transmission errors and recall issues when participants estimate their network size28,44,45,46. Nonetheless, RDS enhances traditional methods by incorporating random selection of venue-day-time units and peer referrals, making it more appropriate for populations lacking clear social networks. It also provides advantages such as access to hidden populations and reduced sampling bias, facilitating data collection that better represents the population and offers insights into social dynamics and community structures47. Another limitation is related to using the formula ‘current age minus age at first drug use’ to calculate injection duration, which could lead to misclassification bias, as participants may have had periods of abstinence during that time.

It is suggested to utilize a spatial random effect rather than a random intercept48. Incorporating spatial information may display spatial autocorrelation due to common socio-environmental factors. Geographically closer cities may exhibit more similar HCV prevalence rates due to shared healthcare resources, policies, or sociocultural norms. Future studies can also consider other significant HCV risk factors, such as blood transfusions or surgery before 1992.

Conclusion

In conclusion, our study underscores the critical importance of addressing injection duration and associated risk behaviors to mitigate the ongoing HCV seropositivity among PWID. The non-linear relationship between injection duration and HCV seropositivity highlights the need for early intervention strategies, including needle exchange programs, HCV testing, and safe injection education, which should be prioritized to mitigate the rapid increase in HCV seropositivity observed during the initial years of drug injection. Additionally, the findings highlight the role of behavioral interventions aimed at reducing high-risk behaviors such as needle-sharing and methamphetamine use. Future research should continue to explore the complexities of this relationship and develop targeted strategies to address the specific needs of short-term injectors. By integrating these approaches into public health interventions, we can reduce the transmission of HCV and HIV among PWID, improve health outcomes for this population, and ultimately reduce the burden of these infections on society. Continued research is needed to explore the complex dynamics of HCV transmission further and refine intervention strategies that effectively mitigate these risks.