Introduction

HIV/AIDS is one of the top global public health threats that causes significant cases, deaths, and socioeconomic impact. Due to the fragile healthcare system, insufficient manpower, and inadequate laboratory facilities, the disease is imposing multidimensional negative effects on human life [1, 2].

Despite the efforts made to fight HIV/AIDS in sub-Saharan Africa (SSA), the pandemic is contributing a lot to negatively affecting the socio-economic aspects of the population because of the associated death [1, 3]. SSA accounted for 70% of the global HIV cases [4]. Of the 15% of women aged 15–24 living with HIV, 80% of them live in SSA. In the region, more than 70% of them are young women.

To address the negative impact of HIV/AIDS, providing the testing service is foundational for managing, caring for, and presenting the case to reduce further incidences. Even if the service is low, both testing and counseling those who are expected to be tested are crucial [5]. Thus, it is recommended that providing testing and counseling services for HIV should be the standard guideline at all levels where the services can boost the health and well-being of the individual [6]. After the implementation of the services, the world witnessed that HIV testing and counseling (HTC) are very essential in the global efforts to scale up universal access to HIV treatment, care, and prevention strategies [7]. Accordingly, Ethiopia, including SSA, is putting the routine HIV testing and counseling services into action by using an opt-out approach, which means “provider-initiated HIV testing,” to realize high coverage of the services for all, particularly for pregnant mothers attending antenatal care services [8].

Moreover, HIV testing and counseling are majorly identified as crucial interventions for preventing new HIV infections and encouraging timely antiretroviral treatment (ART) initiation [9]. To enhance Prevention of Mother-to-Child Transmission (PMTCT), routine HTC be performed during the service rendered to pregnant mothers [10].

Several studies revealed that factors such as fear of receiving the test and already knowing one’s serostatus, issues of privacy [11], perceived need to obtain a partner’s permission to be detected, and lack of knowledge about HIV prevention and treatment [9], assuming that the test is optional, not discussing HIV testing with a partner before the ANC visit [12], attitude towards testing, and marital status [13] were determinants of HIV testing and counseling among pregnant mothers attending ANC services. However, “large population-based study shows that service coverage and determinants are limited. Therefore, the purpose of this study is to assess the coverage and determinants of HIV testing and counseling services among pregnant mothers attending ANC services in SSA countries using different nationwide data.

Methods and materials

Study settings and data source

This study was done by using secondary data from the DHS program in sub-Saharan African (SSA) countries. The data were obtained from the official database of the DHS program at www.measuredhs.com after authorization was granted via online request by explaining the purpose of our study. DHS is a nationally representative household survey that collects data on a broad range of health indicators like mortality, morbidity, fertility, contraceptive utilization, and maternal and child health [14]. Data from the DHS was combined from 2016 to 2020 for seventeen countries in the SSA. During the designated period, the most recent DHS of country-specific datasets were extracted. The 17 SSA countries from which data were extracted are Angola, Benin, Burundi, Cameroon, Ethiopia, Gambia, Guinea, Liberia, Mali, Mauritania, Malawi, Nigeria, Rwanda, Sierra Leone, Uganda, South Africa, and Zambia. To collect data that is comparable across countries in the world, the DHS program adopts standardized methods that involve uniform questionnaires, manuals, and field procedures. In this study, we used the individual record (IR) file to extract the outcome and independent variables. The surveys employed stratified two-stage cluster sampling technique. Detailed survey techniques and sampling methods used to collect data have been documented elsewhere [15].

Population and sample size

The source population for this study was all reproductive-age women (15–49) years old in SSA, whereas all reproductive-age women (15–49) years old in SSA who were in the selected countries were the study population. For this study, we excluded women who did not give birth in the five years before each country’s survey, and women who did not have any ANC visits during their last pregnancy within five years before each country’s survey. In addition, specific women who have no record for the outcome variable were also excluded.

Accordingly, a total weighted sample of 83,584 people who fulfilled the inclusion criteria was included in this study. The sample from each country was Angola (4,758), Benin (2,904), Burundi (6,935), Cameroon (4,184), Ethiopia (3,144), Gambia (4,152), Guinea (2,725), Liberia (2,621), Mali (3,641), Mauritania (4,565), Malawi (8,602), Nigeria (12,343), Rwanda (4,681), Sierra Leone (4,461), Uganda (7,232), South Africa (1,647), and Zambia (4,986).

Measurements

The outcome variable of this study was components of the HTC during the ANC visit. The outcome variable is binary, and it is coded as 1 if the woman received all three components of HTC. i.e., the women (i) received pretest HIV counseling, (ii) took an HIV test and obtained the result, and (iii) received post-test HIV counseling were coded as 0 otherwise.

Media exposure was created from the respondents’ exposure to newspapers, magazines, radio, and television. Accordingly, if the respondents had used at least one of them, we would consider them to have media exposure.

Data management and analysis

Data extraction, cleaning, coding, and statistical analysis were performed using STATA version 17 software. Before analysis, the data were weighted to ensure the representativeness of the sample and to obtain reliable estimates and standard errors. Cross-tabulations, tables, and graphs were used to describe the data.

Given the hierarchical structure of the DHS data, women in one cluster might be more similar to one another than women in another. This may lead to a violation of the assumptions of observational independence and uniform variance among clusters. Therefore, in order to provide an impartial estimate and a dependable standard error, an advanced statistical model must account for the cluster variability.

Furthermore, multilevel mixed effect logistic regression was fitted, accounting for the outcome variable’s dichotomous nature. Bi-variable multilevel analysis was used to identify variables that are candidates for multi-variable multilevel analysis and checked for significance at a p-value < 0.25. Finally, a multivariable, multilevel logistic regression model was used to identify the determinants of HTC during the ANC visit. Adjusted odds ratios with 95% confidence intervals were used to measure statistical significance.

After selecting the possible explanatory variables for multivariable logistic analysis, we have fitted four different plausible models. These were the null model (model with no explanatory variables) which were used to verify community variance and provide evidence to assess random effects at the community level, model 1 (which consists of only individual variables), model 2 (which includes community-level variables), and the final model (model 3 contains both individual and community-level variables). Finally, the model with smaller Akaike Information Criterion (AIC) and Bayesian Information Criterion (BIC) was considered a parsimonious model. For measures of variation (random effects), the intra-cluster correlation coefficient (ICC), the proportional change in variance (PCV), and the median odds ratio (MOR) were used.

Results

Basic characteristics of women’s attending Antenatal care

A total of 83,584 women were included in this study. Most of the women, 38,704 (46.31%), were between the ages of 25 and 34, and the majority, 58,582 (70.09%), were married. Two-thirds (66.30%) of the women had media exposure, and the majority (52.415, or 63.34%) of them had access to a health facility. In addition, the majority (52,789, or 63.16%) of the women included had 4 or more ANC visits. This study found high coverage of HTC among married women, among women who had secondary and above education, and among those who were residing in an urban area. There is also high coverage of HTC-rich women and those who have two children (Table 1).

Table 1 Basic characteristics of women in sub-Saharan African Countries from 2016 to 2020 and Bi-variable multilevel mixed-Effect logistic regression in COR (n = 83,584)

HIV testing and counseling (HTC) during ANC visit in sub-saharan African countries

HTC coverage in sub-Saharan Africa was found to be 62.87% with a 95% CI (62.54–63.19). The highest and lowest HTC coverage were found in Malawi (89.93%) with a 95% CI of 89.28–90.55 and Mauritania (5.73% with a 95% CI of 5.09–6.44), respectively (Fig. 1).

Fig. 1
figure 1

Prevalence of HIV Testing and Counseling (HTC) During ANC Visit in sub-Saharan Africa (SSA) Countries from 2016–2020

Determinants of HIV testing and counseling

Random effects

The results of the null model revealed that there was statistically significant variability in the odds of HTC with a community variance of 3.54, and the ICC in the null model suggested that only 5.83% of the total variability in HTC was ascribed to the differences between communities, which suggests there was variation in HTC among clusters. In the model-III model (model adjusted for both individual and community-level factors), community variance = 0.97; SE 0.03 remained significant but reduced, and 22.80% of the total variance of HTC can be attributed to the community, which suggests there were cluster differences. The value of the median odds ratio in the final model was 2.55, indicating the existence of cluster variation among individuals. It implies that a woman from a higher cluster was 2.55 times more likely to have HTC than a woman from a lower cluster. The PCV value for the better-fitted model was 72.60%, which shows that 72.60% of the variation in HTC was explained by combining variables in the final model (Table 2).

Table 2 Multivariable multilevel mixed-Effect logistic regression analysis of determinants of HIV testing and counseling in sub-Saharan Africa Countries from 2016 to 2020

Fixed effects

The model with smaller AIC and BIC was considered a parsimonious model, and the interpretation of the fixed effects was based on this model. Model-III was adjusted for both individual and community-level factors that have small AIC and BIC, compared to other models, and this model fits the data well. In the multivariable analysis, respondent’s age group, respondent’s education, partner’s or husband’s education, media exposure, access to a health facility, wealth index, number of children in a family, number of ANC visits, place of residence, and country of origin were significant determinants of HTC in SSA at a 5% level of significance.

The odds of having HTC during an ANC visit were 1.64 (AOR = 1.64; 95%CI: 1.46–1.83) times higher among the women in the age group of 35–49, compared to the women in the age group of 15–19. Women who have secondary and above education levels were 1.50 times more likely to have HTC during ANC visits compared to those with no formal education (AOR = 1.50; 95% CI: 1.39–1.60). Women who have 4 and above ANC visits were 85% more likely to have HTC during ANC visits than their counterparts (AOR = 1.85; 95% CI: 1.68–2.02). Women who live in urban areas were 1.41 times more likely to have HTC during ANC visits compared to those who live in rural areas (AOR = 1.40; 95% CI: 1.30–1.52). The odds of having HTC during an ANC visit were 6.19 (AOR = 6.19; 95%CI: 5.19–7.38) times higher among the women who live in Rwanda compared to the women who live in Nigeria. However, the odds of having HTC during an ANC visit were 98% less likely among women who live in Mauritania, compared to those who live in Nigeria (AOR = 0.02; 95%CI: 0.01–0.03) (Table 2).

Discussion

This study assessed the coverage and determinants of HIV testing and counseling services among mothers attending ANC in sub-Saharan African countries. This study found that the coverage of HIV Testing and Counseling Services among mothers attending ANC was 62.87% (95%CI: 62.54–63.19), and women’s age, mother’s education level, partner’s educational level, media exposure, distance from a health facility, wealth index, number of children in a family, number of ANC visits, residence, and country in which the mothers live determine the HIV testing and counseling of mothers at ANC clinics.

According to a finding of this study, the coverage of HTC among mothers attending ANC in sub-Saharan African countries was 62.87%. This finding was lower than the World AIDS Day report of 85% [16] and WHO global guidance on coverage of HIV testing and counseling for pregnant women of ≥ 95% [17, 18]. This could be because in sub-Saharan Africa, the strategy for testing and counseling services may be poor and not given attention. Another challenge in HIV testing and counseling service coverage is the acceptability of HIV services, which many developing countries with high HIV prevalence face. For many pregnant women, even after being diagnosed with HIV, there is no guarantee that they will accept treatment and adhere to it. As a result, making HIV testing and counseling services accessible and focusing on increasing coverage is essential for the elimination of infant HIV transmission in sub-Saharan Africa [19].

In this study, the odds of utilizing HTC among the women attending ANC in the age group of 35–49 were 1.64 times more likely than those women in the age group of 15–19. A similar study reported a relatively higher uptake of HIV testing among women, which is encouraging for women. The age group 25–34 had the highest likelihood of having been tested, and those age groups closely follow and understand that PMTCT services are well functioning [20]. Antenatal caregivers should emphasize the age group of pregnant mothers to reduce barriers to testing and increase awareness about HCT during ANC visits.

According to a finding of this study, women who have secondary and above education levels were 1.5 times more likely to utilize HTC compared to those with no formal education. Similarly, the study pointed out that the decisions of pregnant women to take up HTC are mostly influenced by a lack of information and a lack of education [21, 22]. The utilization of HCT is lowest among those with no formal education, and individuals who have primary education are about three times more likely to take HCT compared to those with no formal education [23]. Shreds of evidence of an absence of counselors, poor counseling, and a lack of awareness and knowledge about HCT are the main reasons cited for not undergoing HIV testing during pregnancy [24]. Similar findings depicted that pregnant mothers who had no formal education and had a primary level of education were less likely to accept human immune virus testing than women who had a diploma and an above-average level of educational status [25]. Hence, efforts must be directed towards groups of pregnant women who are less likely to be formally educated, and focusing on counseling during ANC utilization could be enormously effective in increasing the utilization of HCT among women.

In this study, Women who have 4 and above ANC visits were 1.85 times more likely to have HTC than their counterparts. A similar finding indicated that Pregnant women having only two antenatal care visits were 76% less likely to utilize the service as compared to pregnant women having three or more antenatal care visits [26, 27]. This highlights that focusing on improvement of quality and coverage of health services has significant effects on HCT service utilization of Pregnant Mothers. That means mothers who got good counseling and service during ANC visits trust any service given at the ANC clinic and this may be enhanced their HCT service utilization.

This study pointed out that women who live in urban areas were 1.4 times more likely to have HTC compared to those who live in rural areas. Another finding reported that the acceptance of provider-initiated HIV testing was higher among rural residents than in urban areas [28]. During counseling sessions, antenatal care providers should focus on barriers to provider-initiated HIV testing, such as residence, because rural residents could fear stigmatization and may not want to disclose their test results to their husbands. Therefore, strategies for educating and counseling rural residents on HCT should be developed and implemented to improve the utilization and changing behaviors of pregnant mothers.

This study also revealed that the odds of HTC were 6.2 times higher among the women who live in Rwanda compared to the women who live in Nigeria. However, the odds of HTC were 98% less likely among women who live in Mauritania compared to those who live in Nigeria. In Rwanda, HIV testing and counseling (HTC) is acceptable, and currently, using a rapid testing strategy is feasible and acceptable [29]. In Ethiopia, efforts should be made to improve the quality and coverage of HCT services and mitigate the barriers preventing mothers from seeking HIV testing [24]. African countries could be strengthening the introduction of HCT, which will lead to the diagnosis of HIV-positive women in labor, appropriate interventions, and the prevention of MTCT of HIV.

Conclusion

This study revealed that HTC coverage was 62.87% in sub-Saharan Africa. Factors affecting the HTC coverage were age, education, frequency of ANC visits, residence area, and living in Rwanda and Mauritania. Therefore, to increase HTC coverage in SSA, policymakers on maternal health and other stakeholders should work with an integrated approach with other sectors and give prior attention to modifiable factors such as promoting women’s education and the comprehensiveness of ANC follow-up services during the follow-up.