Assessing airflow perturbations in naturally ventilated barns: A comparative study of image similarity metrics using machine learning

While natural ventilation is crucial for maintaining an ideally optimized air exchange rate (AER) and animal wellbeing, measuring the accurate airflow patterns is indeed challenging. This study investigates the behavior of a wide range of image similarity indices to detect differences between computational fluid dynamics (CFD) images of barn ventilation. To this end, a comprehensive dataset of barn airflow patterns was generated via CFD simulations under diverse conditions, then systematically distorted using swirl transformations to simulate controlled perturbations in airflow images with known ground truth. A broad set of image similarity indices was included to evaluate their sensitivity in the context of CFD images. We further fitted 14 state-of-the-art machine learning regressor models to predict the ground truth perturbation from the similarity indices and investigated which index has the highest feature importance. The strongest predictive performance (R 2 = 0.89) is achieved using a stacked model of top 6 regressors, namely LightGBM, XGBoost, CatBoost, Gradient Boosting, Extra Trees and Random Forest, achieving R 2 of 0.879, 0.872, 0.870, 0.868, 0.860 and 0.840, respectively. We also show that DCT subband similarity (DSS), Mean Deviation Similarity Index (MDSI) and Deep Image Structure and Texture Similarity (DISTS) have the highest feature importance in predicting the swirl extent. Our findings further reveal that top 7 image similarity metrics can reasonably predict the perturbations in CFD simulation images. Lastly, we validated the trained models on a real-world low resolution dataset from a dairy barn, showing a high empirical power of 0.96 for our stacked model. • We show image similarity indices fairly explain the CFD barn airflow perturbations. • DSS and MDSI are the most informative indices for CFD images of ventilated barns. • Machine learning can predict airflow distortions from similarity metrics (R²=0.89).

Authors

Institutions

Publication Details

Journal
Computers and Electronics in Agriculture
Published
2025-11-26
DOI
https://doi.org/10.1016/j.compag.2025.111186
Primary Topic
Odor and Emission Control Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Assessing airflow perturbations in naturally ventilated barns: A comparative study of image similarity metrics using machine learning

Abhijith Srinivas Bidaralli, Alireza Alaei, Farzin Kamari, Thomas Amon et al.
Computers and Electronics in Agriculture
Odor and Emission Control Technologies
article

Assessing airflow perturbations in naturally ventilated barns: A comparative study of image similarity metrics using machine learning

Abhijith Srinivas Bidaralli, Alireza Alaei, Farzin Kamari, Thomas Amon, David Janke, Razieh Abdollahipour, Cornelia Weltzien, Sabrina Hempel
article en

Abstract

While natural ventilation is crucial for maintaining an ideally optimized air exchange rate (AER) and animal wellbeing, measuring the accurate airflow patterns is indeed challenging. This study investigates the behavior of a wide range of image similarity indices to detect differences between computational fluid dynamics (CFD) images of barn ventilation. To this end, a comprehensive dataset of barn airflow patterns was generated via CFD simulations under diverse conditions, then systematically distorted using swirl transformations to simulate controlled perturbations in airflow images with known ground truth. A broad set of image similarity indices was included to evaluate their sensitivity in the context of CFD images. We further fitted 14 state-of-the-art machine learning regressor models to predict the ground truth perturbation from the similarity indices and investigated which index has the highest feature importance. The strongest predictive performance (R 2 = 0.89) is achieved using a stacked model of top 6 regressors, namely LightGBM, XGBoost, CatBoost, Gradient Boosting, Extra Trees and Random Forest, achieving R 2 of 0.879, 0.872, 0.870, 0.868, 0.860 and 0.840, respectively. We also show that DCT subband similarity (DSS), Mean Deviation Similarity Index (MDSI) and Deep Image Structure and Texture Similarity (DISTS) have the highest feature importance in predicting the swirl extent. Our findings further reveal that top 7 image similarity metrics can reasonably predict the perturbations in CFD simulation images. Lastly, we validated the trained models on a real-world low resolution dataset from a dairy barn, showing a high empirical power of 0.96 for our stacked model. • We show image similarity indices fairly explain the CFD barn airflow perturbations. • DSS and MDSI are the most informative indices for CFD images of ventilated barns. • Machine learning can predict airflow distortions from similarity metrics (R²=0.89).

Computers and Electronics in AgricultureVol. 241
Leibniz Institute for Agricultural Engineering and Bioeconomy (DE), Technische Universität Berlin (DE), University of Tübingen (DE)
Openalex Percentile: Top 71%
Odor and Emission Control Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.