Diff-KNN: Residual Correction of Baseline Wind Predictions in Urban Settings

D. Nowak, J. Werner, F. Hunger, T. Johnson, A. Mark, R. Mitkov, F. Edelvik. Machine Learning and Knowledge Extraction. 2025; 7(4):131. 29 October 2025.

Abstract

Accurate prediction of urban wind flow is essential for urban planning and environmental assessment. Classical computational fluid dynamics (CFD) methods are computationally expensive, while machine learning approaches often lack explainability and generalizability. To address the limitations of both approaches, we propose Diff-KNN, a hybrid method that combines Coarse-Scale CFD simulations with a K-Nearest Neighbors (KNN) model trained on the residuals between coarse- and fine-scale CFD results. Diff-KNN reduces velocity prediction errors by up to 83.5% compared to Pure-KNN and 56.6% compared to coarse CFD alone. Tested on the AIJE urban dataset, Diff-KNN effectively corrects flow inaccuracies near buildings and within narrow street canyons, where traditional methods struggle. This study demonstrates how residual learning can bridge physics-based and data-driven modeling for accurate and interpretable fine-scale urban wind prediction.




Photo credits: Nic McPhee