1. Introduction
The coronavirus disease 2019 (COVID-19) pandemic has imposed an unprecedented and multifaceted health and socio-economic burden globally. By the end of 2023, cumulative reported cases exceeded 770 million, with more than 7 million deaths and economic losses surpassing $10 trillion [
1], [
2]. In this context, wastewater-based surveillance (WBS) has rapidly emerged as a critical public health tool, enabling real-time, cost-efficient, and population-wide monitoring of pathogen dynamics across diverse spatiotemporal dimensions [
3], [
4], [
5], [
6], [
7]. Currently, more than 70 countries have established extensive wastewater monitoring systems and maintain 166 open-access data dashboards to facilitate global tracking of surveillance results [
8], [
9]. For example, the United States and many European countries have institutionalized wastewater testing through systematic sampling strategies and advanced molecular diagnostics to track viral transmission patterns and detect emerging mutations [
10], [
11], [
12], [
13], [
14], [
15]. China has similarly implemented nationwide severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) wastewater surveillance since December 25, 2022 [
16], [
17], achieving reliable viral quantification and accurate forecasting of community-level infection dynamics in high- and middle-income regions, such as Beijing [
18], [
19], [
20], Shenzhen [
8], and Dalian [
21]. Collectively, these efforts demonstrate the value of WBS in supporting early outbreak detection and effective public health responses [
22], [
23], [
24], [
25], [
26], [
27].
Nevertheless, the modeling and interpretation of wastewater surveillance data face considerable challenges [
28]. First, fluctuations in water quality parameters (e.g., dilution, pH, and temperature) significantly affect the stability of viral biomarkers and compromise the accuracy of quantification [
29], [
30], while population dynamics within catchment areas further complicate data interpretation [
31], [
32], [
33], [
34], [
35], [
36], [
37], [
38]. Second, classical epidemiological models, constrained by idealized assumptions of homogeneous mixing, often fail to capture the intricate and heterogeneous transmission patterns observed in real-world settings. Although environment-driven models incorporate climatic covariates, their limited associations with transmission pathways restrict predictive accuracy [
39]. Most current wastewater-based models rely on viral load as a singular indicator, resulting in wide prediction intervals and reduced robustness of epidemiological inference [
11], [
18], [
19], [
40], [
41]. In addition, the dispersion of resources due to multi-pathogen monitoring [
42], [
43], [
44], [
45], [
46] and the lack of clearly defined thresholds for public health action further constrain the independent early-warning capacity of WBS [
40], [
41], [
47]. These limitations highlight the urgent need to integrate multi-source data to overcome the inherent weaknesses of single surveillance modalities, thereby improving the accuracy, reliability, and timeliness of predictive models and public health responses.
In parallel, the digital revolution has opened new paradigms in epidemic intelligence. Internet search analytics have proven instrumental in monitoring and predicting epidemic dynamics. For instance, the Google Flu Trends project demonstrated the potential of search queries to identify norovirus, COVID-19, and influenza outbreaks at their early stages. Similarly, research on avian influenza A (H7N9) in China revealed that Baidu Research Index and Weibo Posting Index data could predict disease outbreaks weeks in advance [
48], [
49], [
50], [
51]. Personal internet search behaviors serve as real-time proxies for population-level awareness, disease prevention, symptomatology, and health-seeking activities. Advanced statistical and machine learning approaches have leveraged these digital traces to yield actionable and timely epidemiological insights [
52], [
53], [
54]. Nevertheless, predictions reliant solely on internet search data remain susceptible to external noise (e.g., media coverage and policy changes). Linking WBS with disease dynamics requires integrating diverse data streams from environmental and climate sciences, pathogen biology, societal perception, and online search data. However, methodological frameworks capable of supporting such comprehensive analyses remain lacking.
Accordingly, we systematically analyzed influent samples collected in Nanning (a provincial capital) between February 1, 2023 and January 31, 2024, to develop an integrated “wastewater-digital” surveillance framework. External validation was conducted in three socioeconomically and structurally diverse urban centers—Changsha (a provincial capital), Xiamen (a high-income coastal port city), and Nanjing (a megacity)—within a concurrent one-year monitoring period. In this study, we highlight how coupling WBS with search-behavior data (Baidu Research Index) can enhance epidemic early-warning capacity and provide a generalizable approach applicable to future emerging infectious diseases. We derived population-level early-warning thresholds based on viral loads in wastewater and enhanced prediction accuracy and sensitivity by synergistically integrating wastewater data with online search trends. By combining the reliability and representativeness of wastewater surveillance with high temporal and spatial resolution of digital epidemiology, our approach not only significantly strengthens epidemic surveillance capacity but also delivers a rapid, scalable, and cost-effective intelligent public health surveillance solution for resource-constrained settings worldwide.
2. Methods
2.1. Study design
In this study, we adopted a retrospective, observational time-series design to evaluate the association and predictive performance of an integrated wastewater-digital surveillance framework for COVID-19 (
Fig. 1). The primary objective was to determine whether integrating wastewater-based epidemiology (WBE) indicators with internet search behavior improves the prediction of community-level epidemiological indicators compared with wastewater surveillance alone. The analysis comprised three stages: ① characterization of temporal relationships between SARS-CoV-2 concentrations in wastewater and reported epidemiological indicators; ② integration of wastewater signals with internet search indices using statistical and machine-learning models; and ③ external validation of the integrated model across multiple cities with heterogeneous demographic and environmental characteristics. All analyses were conducted at the population level using aggregated surveillance data.
2.2. Study methods
The primary study site was Nanning, the capital of Guangxi Zhuang Autonomous Region, with a resident population of approximately 8.97 million. Located in southwestern China, Nanning serves as a gateway to the Association of Southeast Asian Nations (ASEAN) and experiences a warm, humid subtropical monsoon climate with frequent international exchanges. From February 1, 2023 to January 31, 2024, four categories of data were systematically collected: First, wastewater surveillance data comprised 1164 untreated influent samples collected semi-weekly from 12 major wastewater treatment plants (WWTPs), covering 58.7% of the urban population (Table S1 in Appendix A). Samples were concentrated using polyethylene glycol-sodium chloride precipitation, followed by quantitative measurement of SARS-CoV-2 concentrations and six influent physicochemical parameters: daily flow, temperature, total suspended solids (TSS), chemical oxygen demand (COD) determined by the dichromate method, pH, and ammonia nitrogen (NH
3-N;
Table 1, Section S1 and Table S2 in Appendix A). Second, population surveillance data included 16 epidemiological indicators obtained from medical institutions across 15 counties, districts, and development zones, as well as from fever clinics (outpatient departments) in rural township health centers (
Table 1, Section S2 and Table S3 in Appendix A). Third, internet search surveillance data consisted of Baidu search indicators for 126 COVID-19-related terms, categorized into 13 thematic groups, retrieved from the Baidu Research Index platform (
Table 1, Section S3 and Table S4 in Appendix A). Fourth, meteorological data, including daily precipitation and temperature (mean, maximum, and minimum), were extracted from the Climate Data Online (CDO) platform (Section S4 and Table S5 in Appendix A).
The Nanning dataset was analyzed in three phases. In Phase I, wastewater viral concentrations were log-transformed, smoothed, normalized, weighted, and processed for lag analysis and flow adjustment. The 7-day flow-weighted moving average concentration (FWMAC) was identified as the wastewater indicator most strongly associated with COVID-19 case trends (Section S5 in Appendix A). Using the 7-day FWMAC as the independent variable, with influent water temperature and COD as covariates, multiple linear regression (MLR) models were applied to examine associations with the 16 population surveillance indicators. A distributed lag non-linear model (DLNM) was then used to characterize temporal lead-lag relationships between the 7-day FWMAC and population indicators (Section S6 in Appendix A). The moving-average (e.g., 7-day FWMAC) effectively interpolates between sampling points, yielding a daily-resolution trend that can precede clinical reports by a shorter interval than the raw sampling frequency (Fig. S1 in Appendix A).
In Phase II, the three machine learning models MLR, random forest (RF), and extreme gradient boosting (XGB) were applied to evaluate the associations between the 126 Baidu search terms across 13 categories and the 7-day FWMAC. The three terms showing the strongest correlations (e.g., “second positive,” “four stages of COVID-19 clinical progression,” and “ibuprofen”) were selected for their ability to capture early public awareness and health-seeking behavior, thereby complementing the biological signal from wastewater. These terms were combined to construct a composite Baidu Research Index. Dual-indicator MLR and RF models, incorporating both the integrated Baidu Research Index and the 7-day FWMAC, were then developed to predict population surveillance indicators (Section S7 and Fig. S1 in Appendix A).
In Phase III, external validation was conducted in Changsha, Xiamen, and Nanjing. Similar to Nanning, these cities function as political, economic, and transportation hubs within their respective provinces, with dense and mobile populations that serve as sensitive nodes for epidemic introduction and spread. Each city also maintained extensive wastewater treatment coverage and standardized case reporting systems, along with high internet penetration, ensuring systematic and comparable data collection. They differ in population size and regional characteristics: Changsha (11.62 million residents) is an inland manufacturing and transport hub with high population density and a hot, humid, variable climate; Xiamen (5.35 million) is an internationalized southeastern coastal port and tourist city with substantial migrant populations and a humid maritime climate; and Nanjing (9.58 million) is an eastern center for science and education with concentrated medical resources and a north subtropical climate with four distinct seasons. These shared features and contrasts provide a robust setting for assessing the generalizability of the integrated framework. For each city, wastewater surveillance, reported case data, and Baidu Research Index data were collected to construct dual-indicator models, and predictive performance for reported case numbers was evaluated (Section S8 in Appendix A).
Additional methodological details are provided in Appendix A. All data collection and analytical procedures were approved by the Chinese Center for Disease Control and Prevention (CCDC) and the CDCs of Nanning, Changsha, Xiamen, and Nanjing. The datasets contain no confidential or personally identifiable information and comply with public dissemination requirements. All statistical analyses were conducted in R software (version 4.3.2; R Core Team, Austria), with a significance threshold of α = 0.05.
3. Results
3.1. Spatiotemporal dynamics of SARS-CoV-2 concentrations in Nanning wastewater from February 2023 to January 2024
A comprehensive, year-long, semi-weekly surveillance of SARS-CoV-2 in wastewater was systematically conducted across 12 major WWTPs covering six urban districts of Nanning from February 1, 2023 to January 31, 2024 (
Fig. 1, Table S1). The presentation of the full annual cycle, including periods of lower viral activity, is essential for establishing baseline community transmission levels, calibrating early-warning thresholds, and evaluating the stability and specificity of the surveillance framework across diverse epidemiological phases. All 1164 collected samples were positive for SARS-CoV-2, and all quality control metrics consistently met verification standards (Fig. S2 in Appendix A), confirming data reliability. Multiple normalization procedures, including log-transformation, smoothing, normalization with physical or chemical parameters, flow weighting, and time-lag adjustment, were applied, and the results remained consistent across these approaches, thereby demonstrating their robustness (Fig. S3 and Tables S6 and S7 in Appendix A). The 7-day FWMAC of SARS-CoV-2 in wastewater was selected as the representative metric for each sampling event, with the highest correlation (Pearson correlation coefficient (
r) = 0.95,
P < 0.001; Fig. S4 and Table S7 in Appendix A).
Using this metric, two distinct infection peaks were identified during the study period. The first occurred on May 18, 2023, with a peak concentration of 1619 copies·mL
-1, and the second on September 28, 2023, with a lower peak concentration of 294 copies·mL
-1. These wastewater-derived peaks coincided with two epidemiologically defined high-incidence periods (May 1-June 22, 2023 and July 3-October 30, 2023) as determined by the baseline method (
Fig. 2(a)). Additionally, the concentrations, peak values, and peak incidence of SARS-CoV-2 in wastewater were generally consistent across all 12 WWTPs, with no significant spatial heterogeneity (
Fig. 2(b)).
3.2. Significant correlations between the 7-day FWMAC and population surveillance indicators in Nanning
A correlation analysis was conducted between the 7-day FWMAC of wastewater viral loads and 16 population-level surveillance indicators classified into three categories of outpatient clinic, antigen testing, and hospitalization (Figs. S5 and S6 in Appendix A). A MLR adjusted for key confounders, such as influent water temperature and COD, identified significant indicators, each exhibiting the coefficient of determination (
R2) > 0.7 (
P < 0.01). Specifically, four indicators showed significant positive correlations with the 7-day FWMAC: reported cases (
R2 = 0.92), diagnosed cases in fever clinics (
R2 = 0.72), positive diagnoses in fever clinics (
R2 = 0.86), and hospitalizations (
R2 = 0.78, all
P < 0.01;
Fig. 3(a)). These associations remained robust after logarithmic transformation, lag analysis, and temperature adjustment (Fig. S7 in Appendix A). Consistently, the RF model revealed similar positive correlations (reported cases:
R2 = 0.91; diagnosed cases in fever clinics:
R2 = 0.82; positive diagnoses in fever clinics:
R2 = 0.81; and hospitalizations:
R2 = 0.71; all
P < 0.01;
Fig. 3(a)).
DLNM results confirmed that such an effect of the 7-day FWMAC on reported cases, diagnosed cases in fever clinics and hospitalizations occurred at lag 0 and persisted through lag 7, suggesting that wastewater changes lead population surveillance data by 1-7 days (
Fig. 3(b)). Further analysis using the cross-correlation function (CCF) and ordinary least squares (OLS) confirmed that the wastewater signal could lead to key indicators, such as hospitalizations, by up to 7 days (CCF = 0.81; Figs. S8 and S9 in Appendix A). The exposure-response relationship indicated that increases in the 7-day FWMAC of wastewater quantitatively associated with increased risks for population surveillance indicators. Specifically, when the 7-day FWMAC of wastewater reached 134 copies·mL
-1, the relative risk (RR, the ratio of the incidence rate between the exposed and non-exposed) for reported cases increased to 5 (95% confidence interval (95% CI), 1.51-16.61) and further rose to 10 (95% CI, 3.15-31.80) at 423 copies·mL
-1. In contrast, diagnosed cases in fever clinics showed a more gradual risk increase, with significance observed at 274 copies·mL
-1. Hospitalizations exhibited an intermediate pattern, with an RR of 1.72 (95% CI, 1.00-2.97) at 154 copies·mL
-1 and 5 (95% CI, 3.01-8.32) at 539 copies·mL
-1 (
Fig. 3(c)). A mass conservation model (Eq. (S3) in Appendix A) further validated the epidemiological relevance of wastewater surveillance by demonstrating significant concordance between 7-day FWMAC-predicted and reported hospitalization rates (
R2 = 0.60,
P < 0.01; Fig. S10 in Appendix A).
3.3. Baidu Research Index correlated with 7-day FWMAC of wastewater and enhanced population forecasting in Nanning
A systematic analysis of 13 categories of COVID-19-related Baidu search terms revealed significant and strong correlations between public internet search behavior and the 7-day FWMAC (Tables S8-S13 in Appendix A). The 7-day FWMAC showed strong correlation with 13 specific Baidu Research Index categories (
R2 > 0.438,
P < 0.001), particularly those related to infections, symptoms, and antigen testing (
Fig. 4(a), Tables S8-S11). Among the 126 specific Baidu terms analyzed, “second positive,” “ibuprofen,” “daily symptoms (days 1-7),” “fourth dose of the COVID-19 vaccine,” “four stages of COVID-19 clinical progression,” “best medications for COVID-19,” “reinfection with SARS-CoV-2,” “showering during SARS-CoV-2 infection,” “SARS-CoV-2 positive status,” “smoking during SARS-CoV-2 infection,” and “Paxlovid” were identified as particularly important (
R2 > 0.41,
P < 0.01;
Figs. 4(a) and
(b), Tables S12 and S13 and Fig. S11 in Appendix A).
To identify the most relevant Baidu indicators, RF, XGB, and MLR models were employed, which consistently selected “second positive,” “four stages of COVID-19 clinical progression,” and “ibuprofen” as the top indicators (
Fig. 4(b), Tables S13 and S14-S16 in Appendix A). Temporal correlation analysis of these three Baidu indicators with the 7-day FWMAC revealed pronounced peaks in May 2023, with preliminary minor peaks in search term frequency preceding the main epidemic peak (Fig. S11). These Baidu indicators show significant correlations with the wastewater 7-day FWMAC, specifically the “second positive” (
R2 = 0.624,
P < 0.01), “ibuprofen” (
R2 = 0.624,
P = 0.01), and “four stages of COVID-19 clinical progression” (
R2 = 0.669,
P = 0.01). A composite Baidu Research Index combining these three terms exhibited a substantially stronger correlation (
R2 = 0.78,
P < 0.01) with the 7-day FWMAC than any individual indicator (
Fig. 4(c)). Most importantly, the dual-indicator MLR model integrating the composite Baidu Research Index with the 7-day FWMAC accurately predicted key population surveillance indicators: reported cases (
R2 = 0.94), diagnosed cases in fever clinics (
R2 = 0.78), positive diagnoses in fever clinics (
R2 = 0.88), and hospitalizations (
R2 = 0.82; all
P < 0.01;
Fig. 4(d)). Similarly, the RF model also produced strong predictions: reported cases (
R2 = 0.92), diagnosed cases in fever clinics (
R2 = 0.81), positive diagnoses in fever clinics (
R2 = 0.82), and hospitalizations (
R2 = 0.72; all
P < 0.01;
Fig. 4(d)). For the predicted key population surveillance indicators, the dual-indicator MLR model (
R2 = 0.78-0.94) significantly outperformed the individual models using either the 7-day FWMAC alone (
R2 = 0.72-0.92) or the composite Baidu Research Index alone (
R2 = 0.74-0.83;
Figs. 3(a) and
Figs. 4(d), Fig. S12 in Appendix A). Similarly, the dual-indicator RF model (
R2 = 0.72-0.92) significantly surpassed the individual models based solely on the 7-day FWMAC (
R2 = 0.71-0.91) or the composite Baidu Research Index alone (
R2 = 0.71-0.90;
Figs. 3(a) and
Figs. 4(d), Fig. S12).
3.4. Validation of integrated wastewater-Baidu Research Index predictive models in three cities beyond Nanning
To further validate the integration of digital indicators with wastewater surveillance, comparative studies were conducted in three additional cities of Nanjing, Changsha, and Xiamen. Two predictive models for weekly COVID-19 incidence were evaluated: one relying solely on the 7-day FWMAC, and another incorporating the 7-day FWMAC with three key Baidu indicators (“second positive,” “four stages of COVID-19 clinical progression,” and “ibuprofen”). All three cities exhibited a pronounced peak of reported COVID-19 cases in May 2023, consistent with the trend in Nanning, with Changsha showing a substantially higher peak than the other two cities.
The inclusion of digital search data markedly enhanced MLR model performance across all cities, with the greatest improvement observed in Changsha (
R2 from 0.57 to 0.70, a 22.8% increase; RMSE from 1248.73 to 1042.33, a 16.5% decrease), followed by Xiamen (
R2 from 0.75 to 0.87, a 16.0% increase; RMSE from 437.57 to 321.66, a 26.5% decrease) and Nanjing (
R2 from 0.87 to 0.88, a 1.1% increase; RMSE from 424.87 to 407.12, a 4.2% decrease; all
P < 0.01;
Fig. 5(a)). Similarly, the RF models also showed significant improvement, with
R2 increasing from 0.44 to 0.60 in Changsha (a 36.4% increase; RMSE from 1448.26 to 1203.30, a 16.9% decrease), from 0.60 to 0.78 in Xiamen (a 30.0% increase; RMSE from 561.11 to 419.84, a 25.2% decrease), and from 0.81 to 0.85 in Nanjing (a 4.9% increase; RMSE from 550.56 to 510.01, a 7.4% decrease; all
P < 0.001;
Fig. 5(b)).
4. Discussion
4.1. Wastewater SARS-CoV-2 levels as a predictor for population tiered risk warning
Our findings provide compelling evidence supporting the critical value of WBE in infectious disease surveillance and management. By systematically quantifying SARS-CoV-2 concentrations from 12 WWTPs during the early phases of three epidemic waves, we demonstrated that wastewater surveillance served as a highly sensitive and reliable early-warning indicator, consistently preceding reported cases, fever clinic diagnoses, and hospitalizations by 1-7 days. Using DLNM, we further elucidated the concentration-response relationships between wastewater viral loads and key population indicators, thereby establishing a stratified risk threshold to guide timely and tiered public health responses.
Both the MLR and RF models revealed significant and strong associations between SARS-CoV-2 concentrations in wastewater and epidemiological indicators, including reported cases, diagnosed cases in fever clinics, positive diagnoses, and hospitalizations. However, the RF model showed slightly lower R2 values than that of the MLR model, possibly due to the predominance of linear relationships between predictors and outcomes. While the RF model can capture complex non-linear interactions, its advantage diminishes when linear trends dominate. Nevertheless, the consistent direction and significance across both models highlight the robustness of these relationships, confirming that wastewater viral load reliably reflects community infection dynamics.
Prior research has explored the application of WBS to determine the relationship between SARS-CoV-2 concentrations in wastewater and population-level surveillance metrics [
55], [
56], [
57]. Significant correlations have been consistently observed between wastewater SARS-CoV-2 levels and COVID-19 incidence, reported cases, and hospitalizations [
9], [
56], [
58], [
59], [
60], [
61]. Moreover, multiple studies have reported that the peak viral concentrations in wastewater typically precede increases in COVID-19 cases by approximately 1-14 days [
62], [
63]. This temporal advantage positions WBE as an indispensable tool for proactive epidemic management. The heterogeneity observed among studies may be partially attributed to differences in population characteristics, healthcare-seeking behaviors, and environmental exposure profiles [
64], [
65]. Additionally, limitations in sampling frequency and underreporting of COVID-19 cases (e.g., often due to limited testing capacity) may further contribute to these discrepancies [
66], [
67], [
68]. Factors such as the population size covered by sampling sites, influent water temperature, and rainfall may also influence the consistency of the observed relationship between case rates and viral loads [
69], [
70].
The completeness and accuracy of COVID-19 case reporting have changed over time and continue to evolve as diagnostic practices and public health strategies adapt to changing circumstances. Widespread use of at-home testing has reduced the proportion of infections captured by official reporting systems, making confirmed COVID-19 cases a less reliable proxy for true disease burden. In this context, WBE offers a more objective and stable surveillance tool [
71], [
72]. In China, the cessation of large-scale nucleic acid testing in January 2023 and the subsequent reliance on symptom-triggered conventional clinical surveillance during the study period (from February 2023 onward) further amplifies the importance of WBE as a timely and objective early-warning system.
Using DLNM, we systematically assessed the concentration-response relationship between the 7-day FWMAC of SARS-CoV-2 in wastewater and four key population surveillance indicators (reported cases, diagnosed cases in fever clinics, positive diagnoses in fever clinics, and hospitalizations). Innovatively, we established early warning risk stratification thresholds, thereby facilitating tiered and timely public health responses tailored to real-time epidemic dynamics. This advancement holds particular significance for developing countries or regions with constrained medical resources, where traditional sentinel surveillance often suffers from inadequate capacity and substantial data latency. In contrast, WBE offers a scalable, objective, and real-time solution for forecasting disease burden and optimizing resource allocation. For instance, when the 7-day FWMAC exceeded 134 copies·mL
-1 (RR = 5 for reported cases), targeted primary response measures, such as enhanced fever clinic capacity could be initiated; exceeding 539 copies·mL
-1 (RR = 10 for hospitalizations) warrants immediate cross-regional medical resource allocation and critical care bed expansion to prevent healthcare system overload [
73]. The mass conservation model further demonstrated concordance between 7-day FWMAC-estimated hospitalization rates and actual reported hospitalization rates, reinforcing the epidemiological relevance and practical utility of this approach. Collectively, these findings indicate that wastewater surveillance can support early hospital preparedness, strategic resource planning, and timely public health intervention, particularly when clinical testing capacity is limited [
74].
4.2. Synergistic integration of wastewater surveillance and Baidu Research Index for enhanced public health response
Our findings advance the field of WBE by integrating digital search data from the Baidu Research Index with wastewater viral concentrations. By quantifying the predictive importance of search indicators through MLR and machine learning models, we revealed a novel synergy between wastewater viral signals and population-level internet search behaviors toward symptoms, medications, and vaccination for COVID-19. This integrative approach provides a multidimensional perspective for elucidating both viral transmission dynamics and population-level behavioral responses, offering superior predictive performance and interpretability compared to the use of wastewater or digital data alone.
We comprehensively employed three machine learning models, namely RF, XGB, and MLR, to quantitatively evaluate the predictive importance of Baidu Research Index indicators. Leveraging the unique algorithmic advantages of each model, we captured the nonlinear and complex relationships between internet search behavior and wastewater viral dynamics. MLR demonstrated superior interpretability through standardized coefficients; however, its rigid linear assumptions resulted in an 18%-22% higher mean absolute error (MAE) compared to tree-based models when capturing nonlinear interactions between internet search queries and wastewater viral dynamics [
75]. RF exhibited enhanced resistance to overfitting through bootstrap aggregation, particularly effective when processing sparse data from emerging search terms. However, the inherent randomness of subspace sampling introduced 9%-12% variance in prediction across repeated trials [
76]. XGB achieved relatively optimal predictive accuracy using gradient-boosted tree ensembles, effectively identifying threshold effects in the temporal patterns of search queries, although its computational intensity (requiring 3.2 times longer training duration than RF) presented practical challenges [
77]. The integrated analysis, leveraging results from all three models, compensated for individual algorithmic limitations and yielded more robust and generalizable predictive indicators.
Specifically, search metrics such as “second positive,” “four stages of COVID-19 clinical progression,” and “ibuprofen” exhibited higher correlations with wastewater viral concentrations. Moreover, a minor upward trend in search activity was observed prior to the peaks in both population search volume and wastewater viral loads, indicating that individuals sought symptom-related information online before pursuing medical care or sharing health status on social media [
78]. The choice of digital search terms may be closely linked to real-world clinical experiences (e.g., symptom progression and medication usage) and influenced by public risk perception and information-seeking behaviors [
54]. Search behaviors thus serve not only as indirect reflection of potential increases in cases but also as external manifestations of societal awareness and collective response patterns. The statistically significant and strong correlation suggests that population-level digital search behavior may serve as a high-resolution proxy for disease risks and public concerns. This anticipatory signal highlights the promise of digital surveillance platforms (e.g., Baidu and Google) in providing early warnings that complement traditional laboratory-based surveillance systems.
Prior studies using Google Trends have demonstrated similar utility in forecasting COVID-19 case incidence, epidemic waves, public anxiety, and symptom patterns [
49]. For example, Zulli et al. [
48] reported strong correlations between Google search queries and wastewater viral concentrations for influenza A (
R2 = 0.76) and respiratory syncytial virus (
R2 = 0.66), with additional associations for norovirus and mpox when clinical data were limited. Ammerman et al. [
50] identified significant correlations between wastewater concentrations of HuNoV GII and Google searches for “norovirus” and “stomach flu,” while Guzman et al. [
49] similarly demonstrated that concentrations of HuNoV GI, GII, and their combined values were associated with search queries for “norovirus,” “stomach flu,” and “gastroenteritis.” Furthermore, Zayed et al. [
51] showed that Google Trends data outperformed Twitter signals by predicting the onset of COVID-19 epidemic waves in Canada one week earlier and their peak three weeks earlier, respectively. Together, these findings underscore the grounding role of wastewater surveillance and the strong linkage between internet search behavior and community infection dynamics.
By integrating Baidu Research Index search data with wastewater surveillance, we substantially improved predictive performance for infectious disease trends. In the MLR model,
R2 increased from 0.92 to 0.94 for reported cases, from 0.72 to 0.78 for diagnosed cases in fever clinics, and from 0.78 to 0.82 for hospitalizations. Similar improvements were observed in the RF model, with
R2 rising slightly from 0.91 to 0.92 for reported cases and from 0.71 to 0.72 for hospitalizations. The consistent direction and significance of correlations across both models underscore the robustness of these relationships, confirming that integrating wastewater and digital surveillance data can reliably capture population-level infection dynamics. Previous studies based solely on wastewater surveillance achieved moderate predictive performance, with
R2 values ranging from 0.59 to 0.90 for reported cases and hospitalizations [
79], [
80], [
81]. Separately, research using Baidu Research Index data found that search and information indices for “coronavirus,” “pneumonia,” and “mask” were strongly associated with reported cases in Guangxi (Spearman correlation coefficient (
r) > 0.81 and > 0.6, respectively) [
82]. To the best of our knowledge, this is the first study in China to establish a digital-biological fusion model combining wastewater viral concentrations with Baidu Research Index data to predict population-level health indicators. This hybrid approach is scalable and cost-effective, and requires minimal additional infrastructure, offering public health authorities a practical tool for early outbreak detection and real-time intervention planning.
For example, when the regional Baidu Research Index exceeds a predefined threshold, it can automatically trigger an escalation in wastewater sampling frequency at key locations (e.g., increasing from weekly to 2-3 times per week). Concurrent detection of anomalies in both data streams enables advanced geospatial analytics and machine learning to forecast medical resource needs with superior precision, facilitating optimal stockpiling and allocation of critical supplies, such as diagnostic kits and ventilators. Further research is needed to determine optimal sampling frequencies and to establish predictive guidelines for early warnings and public health interventions [
83], [
84], [
85], [
86]. Collectively, this integrative approach leverages the complementary strengths of biological surveillance and digital epidemiology, offering a multidimensional lens for interpreting both viral transmission dynamics and population behavioral responses. The integration of digital search data and wastewater monitoring represents a paradigm shift towards proactive, data-driven epidemic surveillance, enabling timely, targeted, and equitable public health responses [
87], [
88].
The improved predictive performance of the combined model arises from the complementary nature and synergistic characteristics of wastewater surveillance and internet search data. Wastewater data reflect community-level biological shedding of pathogens but are susceptible to environmental variability and population dynamics that can complicate interpretation [
28], [
42]. In contrast, search data capture real-time changes in public health concerns and behavioral intentions; although they do not directly represent infection status, they are sensitive indicators of population-level symptom perception and risk awareness. Integrating these two data streams facilitates a dual validation between biological emission signals and social behavioral signals [
51], [
52], [
53], [
54]. When trends from both sources are concordant, confidence in epidemic assessment is strengthened and predictive uncertainty is reduced. Conversely, discrepancies may indicate more complex situations, such as environmental interference, asymptomatic transmission, or media-driven fluctuations in public attention, which warrant further investigation. Overall, this integrative approach offsets the limitations of individual data sources and establishes a more resilient surveillance framework that supports more timely and reliable public health assessment.
The model developed in this study was primarily established using epidemic data from 2023 to 2024, a period dominated by the Omicron variant [
89]. Therefore, the associations observed between search behavior and epidemic dynamics are inherently stage specific. As viral variants continue to evolve, population immunity changes, and healthcare-seeking behaviors shift, key model components—such as the search-term library, weighting parameters, and early warning thresholds—may gradually diverge from real-world conditions, potentially reducing predictive performance. To ensure long-term effectiveness, the model requires continuous and dynamic updating. First, a regular updating mechanism for model parameters and features should be established. This can be implemented through fixed re-evaluation intervals or event-driven recalibration triggered by major epidemiological events, such as the emergence of new variants. Based on updated wastewater surveillance and clinical data, newly relevant symptom-related search terms (e.g., “sore throat” and “diarrhea”) can be introduced, while terms with declining relevance can be removed. Meanwhile, model parameters should be retrained using recent data, with corresponding adjustments to data-fusion weights and warning thresholds. Second, the wastewater-digital dual-source framework provides an inherent self-calibration capacity. Wastewater data serve as an objective indicator of community-level infection prevalence and can correct distortions in search trends caused by fluctuations in public attention or media coverage. Conversely, emerging or rapidly increasing search terms may indicate shifts in symptom profiles, thereby informing adjustments to wastewater monitoring strategies. This bidirectional feedback enables timely identification of performance changes and supports adaptive model updating. Finally, the proposed early warning framework is highly scalable. By integrating objective biological signals with digital behavioral indicators, the system retains flexibility under evolving epidemic conditions. Even if the predictive value of specific search terms declines, warning capacity can be maintained by incorporating alternative data sources, such as symptom self-reporting systems or pharmaceutical sales data-within the same data-fusion paradigm. Overall, we propose a dynamically adjustable predictive modeling framework designed supporting sustained, prospective infectious disease surveillance under changing epidemiological conditions.
4.3. Validation of the integrated wastewater-Baidu Research Index model across three cities with enhanced early warning capacity
Both MLR and RF models demonstrated improved predictive performance after integrating Baidu Research Index data with wastewater surveillance across three additional cities—Nanjing, Changsha, and Xiamen. Consistent gains across models reinforce the robustness of this dual-source framework and its potential to enhance the accuracy and timeliness of epidemic surveillance. Incorporating digital behavioral data (Baidu Research Index) as a complement to wastewater surveillance enables a more proactive early warning system for public health monitoring. Wastewater surveillance captures biological evidence of population-level infection through real-time viral shedding, whereas search behaviors such as “second positive” and “ibuprofen” reflect active information- and health-seeking actions during prodromal or early symptomatic phases, providing a unique insight into population risk perception and behavioral responses [
90], [
91], [
92], [
93]. Importantly, these digital traces may precede increases in clinical visits and detectable viral loads in wastewater, providing early warning for potential outbreaks and supporting timely interventions [
48], [
49], [
94].
The representativeness and limitations of both data streams warrant consideration. Search data are low-cost and highly responsive; however, the proprietary algorithms underlying online platforms (e.g., Google Trends and Baidu Research Index) require certain time and resource inputs for data collection and processing. This may introduce latency, which could affect timeliness under rapidly evolving epidemic conditions. In contrast, wastewater surveillance provides an objective measure of infection prevalence but is constrained by sampling coverage, frequency, and resource-intensive nature of analytical requirements, limiting spatiotemporal resolution. Integrating these data sources leverages complementary strengths: Wastewater signals provide a biological ground truth that reduces noise and false positives in search-based models, while digital search data enable continuous, near-zero-cost monitoring of early healthcare-seeking behaviors before viral shedding becomes detectable in wastewater [
49]. This synergy is particularly valuable when large-scale diagnostic testing is suspended and mild or asymptomatic infections are underreported, as multi-source corroboration can mitigate delays and gaps inherent in traditional surveillance systems.
Heterogeneity in correlations between wastewater and population surveillance across cities may reflect several factors [
95]. First, demographic profiles shape infection and healthcare-seeking behaviors; for example, Changsha’s younger and more mobile population may exhibit distinct transmission and reporting patterns. Cities with stronger healthcare systems and higher testing rates, such as Nanjing, tend to produce more timely and accurate case reporting, strengthening alignment with wastewater signals. Environmental factors, including rainfall and wastewater infrastructure, also affect viral dilution and transport in wastewater [
95]. After integrating Baidu Research Index data, Changsha exhibited the largest gains in predictive accuracy, potentially attributable to its younger, digitally engaged population, and heightened health awareness. In contrast, in Nanjing, alternative information channels, such as official government communications or healthcare applications, may reduce reliance on search engines, limiting incremental gains. As a special economic zone with advanced digital infrastructure, Xiamen also exhibited significant improvement in predictive performance.
Differences in epidemic phase during the study period may further explain intercity variability. Rapid epidemic escalation typically heightens public concern and increases correlated search activity, thereby increasing the predictive value of digital surveillance, as observed in Changsha. Conversely, during endemic or declining phases, reduced public attention may introduce noise and diminish the contribution of search data [
51], [
82]. The generalizability and equity of this framework therefore require careful consideration. Validation was conducted in large urban centers with high internet penetration and robust infrastructure. In rural settings, weaker or different relationships between search behavior and infection dynamics may arise due to limited internet access, alternative information sources (e.g., community networks versus search engines), and distinct health-seeking behaviors. This urban-rural digital divide constitutes a key limitation and raises equity challenge in digital surveillance: Populations with limited digital access may be underrepresented in early warning systems. Overall, the predictive utility of search data is context-dependent, shaped by demographic structure, socioeconomic conditions, internet penetration, health literacy, public concern, and epidemic phases. Cultural and linguistic differences also influence the effectiveness of specific search terms, underscoring the need for local adaptation and semantic calibration. Moreover, digital search trends are sensitive to exogenous influences, such as media coverage, policy announcements, and public sentiment, which may confound their relationship with true disease dynamics. For example, extensive media reporting may suppress subsequent search activity, whereas official health communications may stimulate searches [
51], [
94], [
96].
Importantly, the proposed wastewater-digital integrated framework is designed as a complementary predictive approach that leverages the synergistic integration of multiple data sources and can be extended to other infectious diseases. Its scalability is supported by two factors: the expanding scope of WBE across diverse pathogens and the presence of disease-specific information-seeking behaviors observable in digital data. Influenza and norovirus illustrate this potential, as both are routinely monitored within wastewater surveillance networks across multiple cities worldwide [
16]. Influenza virus subtypes (e.g., influenza A H1N1 and H3N2) and norovirus genogroups GI and GII can be detected in wastewater at early stages, and their viral concentrations of influenza subtypes and norovirus genogroups have been shown to correlate with community case counts, providing biological signals for modeling [
97], [
98], [
99]. In parallel, characteristic symptoms—such as fever and myalgia for influenza, and diarrhea and vomiting for norovirus—often trigger distinct information-seeking and health-related behaviors. By selecting symptom-related keywords and behavioral indicators, such as medication searches or purchase records, digital signals temporally aligned with wastewater viral loads can be constructed. For example, the framework could be adapted for influenza by integrating wastewater influenza data with search trends for terms of “fever,” “myalgia,” and “oseltamivir,” or for norovirus by linking wastewater signals with queries related to “diarrhea,” “vomiting,” and “antidiarrheal agents” [
82]. Nevertheless, pathogen-specific epidemiological characteristics must be considered in practical applications. Norovirus short shedding duration and clustered outbreaks may require higher sampling frequency, while symptom overlap between influenza and other respiratory infections (e.g., COVID-19) may necessitate multivariable modeling or text-based approaches to improve signal discrimination. In addition, the strong seasonality of influenza may introduce background fluctuations in behavioral data, requiring adjustment for climatic or seasonal covariates. Therefore, by modifying wastewater targets, updating symptom- and behavior-related keyword libraries, and adjusting model parameters, this framework can be adapted to monitor other infectious diseases in settings where wastewater surveillance infrastructure is available.
Applying this framework to emerging pathogens presents additional challenges, particularly when public awareness is low or clinical and behavioral responses are atypical early stages of an outbreak, symptom-related information seeking and health behaviors may be weak or delayed, leading to insufficient digital signal strength. In addition, pathogen-specific differences in shedding dynamics may affect the temporal alignment between wastewater signals and community infection. To address these challenges, the framework can be adapted to detect anomalous symptom-related patterns beyond predefined keywords, including sudden surges or co-occurring signals across time and space. Additionally, keyword libraries and monitoring features can be updated dynamically as new symptoms emerge. When diagnostic data are limited, cross-validation across multiple data sources becomes critical. Wastewater surveillance, which captures asymptomatic and unreported infections independently of healthcare-seeking behavior, can serve as a stable reference [
42]. Convergent increases in wastewater pathogen levels and anomalous digital behaviors may therefore strengthen early warning assessments.
In practice, this framework can function as an embedded, complementary early warning probe alongside existing disease surveillance systems. Continuous monitoring of community-level digital behavioral signals, combined with concurrent wastewater surveillance data, can help identify anomalies and guide targeted verification and field investigation. This integrated approach allows field epidemiological investigations to be more precisely focused on areas with elevated potential risk. Overall, by integrating community behavioral signals with environmental biological evidence, the proposed framework may offer additional insights for early risk assessment during periods when case reporting is incomplete or delayed, serving as a useful complement to traditional surveillance systems and exploring a feasible technical pathway to strengthen pandemic preparedness for emerging infectious diseases.
5. Limitation and implication
To the best of our knowledge, we present the first validated, open-source digital WBE framework for early epidemic warning. The system can be deployed within 72 h in any city with wastewater surveillance and internet access, at a cost over 90% lower than traditional sentinel monitoring. By introducing a “symptom-medication-wastewater” triad feature template, the framework demonstrates strong external generalizability. Validation across Changsha, Xiamen, and Nanjing showed a mean 37% improvement in predictive accuracy, establishing a scalable and cost-efficient paradigm for early infectious disease warning across diverse urban settings in China. Several limitations warrant consideration. First, digital traces from alternative search engines and widely used social media platforms, such as Weibo and WeChat, were not incorporated, although these sources may contain complementary behavioral signals that could enhance surveillance sensitivity and specificity. Second, the digital surveillance component relied exclusively on Baidu Research Index data, which reflects China’s unique internet ecosystem. Search behavior, platform usage, and data accessibility differ substantially across regions, limiting the direct global generalizability of our findings. In addition, internet search data are susceptible to external influences, including government announcements, media coverage, and viral social media activity, which can introduce short-term perturbations and decouple search trends from underlying epidemiological dynamics [
49], [
54], [
82]. Their stability is further constrained by reliance on proprietary algorithms with limited transparency. Third, neither the primary study site (Nanning) nor the validation sites (Changsha, Xiamen, and Nanjing) implemented adaptive wastewater sampling in response to Baidu Research Index trends, leaving the operational feasibility and performance of dynamic sampling strategies untested. Moreover, all study sites were economically developed cities, and applicability to resource-limited regions with different infrastructure, sanitation systems, and internet access remains uncertain. Fourth, the framework was evaluated exclusively for COVID-19 and has not yet been systematically assessed for other infectious diseases, such as respiratory viruses, enteroviruses, or poliovirus [
42], [
43], [
44], [
45], [
46].
Despite these limitations, integrating wastewater surveillance with digital behavioral indicators shows substantial potential for strengthening early warning systems and optimizing public health resource allocation, particularly in settings where clinical surveillance is incomplete or delayed. COVID-19 served as a proof-of-concept in this study; the broader objective is to advance a generalizable framework to support preparedness for future epidemics. Future research should pursue several strategic directions. First, digital surveillance algorithms should be refined to improve noise filtering, reduce sensitivity to media- or policy-driven fluctuations, and enhance real-time responsiveness for actionable early warnings. Second, validation should be extended to more heterogeneous contexts, including rural areas, resource-limited regions, settings with fragile healthcare systems, extreme climatic conditions, and populations with diverse sociocultural and digital behaviors, to ensure robustness and equity. Third, additional real-time data streams—such as pharmacy sales (e.g., antipyretics and antibiotics) reflecting self-medication behavior, mobility and geolocation data capturing transmission risk, and social media sentiment (e.g., Weibo and WeChat) indicating public concern and behavioral change—should be integrated to strengthen situational awareness. Fourth, in regions without dominant search platforms, such as Baidu, alternative search engines (e.g., Google, Naver, and Yandex) and region-specific social media platforms should be leveraged. Incorporating contextual information on population characteristics, internet use, healthcare access, and environmental conditions can be used to guide model adaptation and calibration when deploying this framework in new regions. Ultimately, the potential of this integrated framework extends beyond COVID-19 to applications including antimicrobial resistance surveillance, seasonal influenza forecasting, and early detection of emerging or unknown pathogens, offering a scalable architecture for global epidemic preparedness.