Analyzing the influence of environment, demographic and socio-economic factors on Aedes albopictus (Diptera: Culicidae) mosquito density at the micro-level using XGBoost and SHAP
摘要
Effective mosquito control in urban areas requires understanding of how climatic, ecological and socioeconomic factors shape vector abundance. However, most studies use linear or opaque models that overlook nonlinear relationships between environmental conditions and Aedes albopictus density. These complex associations remain insufficiently characterized in highly urbanized settings, where interacting environmental and human factors jointly influence mosquito habitats.
MethodsWe trained a random forest model, an XGBoost model with a default squared-error objective and an XGBoost model with a Poisson count objective using adult Aedes albopictus monitoring data collected across Shanghai from April to November 2023. Model performance was evaluated with RMSE, MAE, R2 and Poisson deviance, and temporally blocked cross-validation was applied to assess temporal generalizability. SHAP analysis was used to interpret variable importance and contribution patterns. To examine operational relevance, we additionally evaluated hotspot localization accuracy using July 2024 data.
ResultsOn the independent test set, the XGBoost-Poisson model achieved the best overall accuracy (R2 = 0.73, Poisson deviance = 4.52). SHAP analysis identified the 14-day temperature lag as the dominant predictor, followed by a slight negative population density and compulsory completion of education. Precipitation and NDVI showed smaller positive contributions. Age structure variables exhibited nonlinear trends—with an inverted-U shape for children, a declining pattern for older adults and a shallow U shape for building height. By site type, mosquito density tended to be higher near schools, livestock sheds and office areas and lower in residential, farmhouse, park and hospital environments. Under temporally blocked cross-validation, the model retained moderate temporal generalization. In out-of-time hotspot validation, the top 10% of sites captured 41–50% of hotspots, rising to 60–68% at 25% coverage, suggesting moderate spatial localization.
ConclusionsThe framework identified key environmental and socioeconomic drivers of Aedes albopictus density in Shanghai. Despite moderate temporal generalization, it provides interpretable, fine-scale insights to guide targeted vector control and inform urban mosquito management in dense metropolitan settings. Future research should validate the framework across additional seasons and diverse urban contexts, incorporate finer environmental and infrastructural data and enhance uncertainty quantification for improved interpretive robustness.
Graphical abstract