A Hybrid CFD–ML Approach for Rapid Assessment of Particle Dispersion in a Port-Industrial Environment
Abstract
1. Introduction
- Port-Industrial Digitalization and Mesh Generation: A high-resolution 3D digital model of the Port of El Grao (Castellón de la Plana, Spain) was developed using LiDAR data, cadastral information, and CAD processing, enabling a geometrically accurate representation of port infrastructure.
- Integrated CFD–ML Workflow: A workflow combining OpenFOAM-based aerodynamic and particulate transport simulations with a decoder-style ML model architecture is proposed. Horizontal (Z-axis) 2D slices of the particle concentration fields are used to train the surrogate model, with hyperparameters optimized using the Optuna framework for efficient convergence.
- Performance and Accuracy: While CFD simulations required 432,000 s for steady state and 108,000 s for transient state on 100 cores, the trained ML surrogate performed inference in milliseconds on a GPU, achieving a computational acceleration factor of approximately . The validation results demonstrate that the ML model reliably reproduces CFD predictions across multiple wind scenarios.
2. Methods
2.1. Computational Model
2.2. Computational Domain and Boundary Conditions
2.3. Validation of the Aerodynamics
2.4. Data Pre-Processing and I/O Depiction
- Vertical Slicing: The original 3D particle concentration fields (see Figure 10a) were decomposed into 14 discrete horizontal 2D slices along the Z-axis (Figure 10b). These slices were extracted at 0.5 m intervals, spanning the critical 3 m to 10 m height range. The vertical slice range of 3 m to 10 m was selected to represent the human inhalation zone, most relevant for pedestrian and ground-level residential exposure assessment in the closest neighborhood, as previous studies in the area have demonstrated.
- Spatial Downsampling and Gridding: Each 2D slice was mapped to a standardized 1000 × 1000 pixel grid using the KDTree utility from SciPy (https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.KDTree.html (accessed on 23 December 2025)), which employs a nearest-neighbor interpolation method. This downsampling (Figure 10c) strikes a balance between preserving the resolution of key dispersion features and maintaining computational tractability for model training.
- Field Binarization: To simplify the learning task and focus on the primary objective of identifying particle presence, the continuous concentration fields were converted into binary masks. A global threshold was defined as the mean particle count across all non-zero grid cells in the dataset. For each cell, a value of 1 was assigned if its particle count exceeded this threshold, indicating particle presence; otherwise, it was set to 0 (Figure 10c). This transformation converts a complex regression problem into a more stable classification task. A sensitivity analysis has been conducted; varying this threshold by ±25% altered the total classified plume area by less than 5%, confirming the robustness of this method for defining the plume’s spatial footprint, which is the primary focus of this study.
- Particle Size Discretization: To capture the distinct dispersion dynamics governed by aerodynamic diameter, the dataset was partitioned into three discrete classes Figure 10d:
- (a)
- ;
- (b)
- ;
- (c)
- .
2.5. ML Model
- Number of hidden layers: [1–5];
- Number of neurons for each layer: [8–128];
- Learning rate: [ down to ].
3. Results
3.1. Aerodynamics
3.2. Particle Dispersion
3.3. ML Inference
3.4. ML Evaluation
4. Conclusions and Future Work
- The model achieves robust performance metrics on scenarios unseen during training, confirming its generalization capability.
- The computational cost reduction is remarkable: an acceleration factor of approximately compared to CFD simulations, reducing multi-day HPC computations to millisecond-scale inference on a GPU.
- This efficiency enables new applications, such as real-time analysis, rapid response to critical pollution episodes, and integration into digital twin systems with live meteorological data.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Monteiro, A.; Gama, C.; Baldasano, J.M. Shipping emissions in the Iberian Peninsula and impacts on air quality. Atmos. Chem. Phys. 2020, 20, 9473–9498. [Google Scholar] [CrossRef]
- Viana, M.; Hammingh, P.; Colette, A.; Querol, X.; Degraeuwe, B.; Vlieger, I.; de van Aardenne, J. Impact of maritime transport emissions on coastal air quality in Europe. Atmos. Environ. 2014, 90, 96–105. [Google Scholar] [CrossRef]
- Clemente, Á.; Yubero, E.; Galindo, N.; Crespo, J.; Nicolás, J.F.; Santacatalina, M.; Carratalá, A. Quantification of the impact of port activities on PM10 levels at the port–city boundary of a Mediterranean city. J. Environ. Manag. 2021, 81, 111842. [Google Scholar] [CrossRef]
- Contini, D.; Gambaro, A.; Belosi, F.; De Pieri, S.; Cairns, W.R.L.; Donateo, A.; Zanotto, E.; Citron, M. The direct influence of ship traffic on atmospheric PM2.5, PM10 and PAH in Venice. J. Environ. Manag. 2011, 92, 2119–2129. [Google Scholar] [CrossRef]
- Karl, M.; Ramacher, M.O.P.; Oppo, S.; Lanzi, L.; Majamäki, E.; Jalkanen, J.-P.; Lanzafame, G.M.; Temime-Roussel, B.; Le Berre, L.; D’Anna, B. Measurement and modeling of ship-related ultrafine particles and secondary organic aerosols in a Mediterranean port city. Toxics 2021, 11, 771. [Google Scholar] [CrossRef]
- Amato, F.; Alastuey, A.; de la Rosa, J.; Gonzalez Castanedo, Y.; Sánchez de la Campa, A.M.; Pandolfi, M.; Lozano, A.; Contreras González, J.; Querol, X. Trends of road dust emissions contributions on ambient air particulate levels at rural, urban and industrial sites in southern Spain. Atmos. Chem. Phys. 2014, 14, 3533–3544. [Google Scholar] [CrossRef]
- Karanasiou, A.; Amato, F.; Moreno, T.; Lumbreras, J.; Borge, R.; Linares, C.; Boldo, E.; Alastuey, A.; Querol, X. Road dust emission sources and assessment of street washing effect. Aerosol Air Qual. Res. 2014, 14, 734–743. [Google Scholar] [CrossRef]
- Taylor, M.P. Atmospherically deposited trace metals from bulk mineral concentrate port operations. Sci. Total Environ. 2015, 515–516, 143–152. [Google Scholar] [CrossRef]
- Lee, Y.Y.; Yuan, C.S.; Yen, P.H.; Mutuku, J.K.; Huang, C.E.; Wu, C.C.; Huang, P.J. Suppression efficiency for dust from an iron ore pile using a conventional sprinkler and a water mist generator. Aerosol Air Qual. Res. 2020, 22, 210320. [Google Scholar] [CrossRef]
- Marchand, G.; Gardette, M.; Nguyen, K.; Amano, V.; Neesham-Grenon, E.; Debia, M. Assessment of Workers’ Exposure to Grain Dust and Bioaerosols During the Loading of Vessels’ Hold: An Example at a Port in the Province of Québec. Ann. Work Expo. Health 2017, 61, 836–843. [Google Scholar] [CrossRef] [PubMed]
- World Health Organization. Ambient Air Pollution: A Global Assessment of Exposure and Burden of Disease; World Health Organization: Geneva, Switzerland, 2016; Available online: https://www.who.int/docs/default-source/gho-documents/world-health-statistic-reports/world-heatlth-statistics-2016.pdf (accessed on 3 October 2025).
- Gorlé, C.; van Beeck, J.; Rambaud, P.; Van Tendeloo, G. CFD Modelling of Small Particle Dispersion: The Influence of the Turbulence Kinetic Energy in the Atmospheric Boundary Layer. Atmos. Environ. 2009, 43, 238–252. [Google Scholar] [CrossRef]
- Pan, Y.; Zhang, L. Roles of Artificial Intelligence in Construction Engineering and Management: A Critical Review and Future Trends. Autom. Constr. 2021, 122, 103517. [Google Scholar] [CrossRef]
- Charitonidou, M. Urban Scale Digital Twins in Data-Driven Society: Challenging Digital Universalism in Urban Planning Decision-Making. Int. J. Archit. Comput. 2022, 20, 238–253. [Google Scholar] [CrossRef]
- Cuellar, A.; Güemes, A.; Ianiro, A.; Flores, Ó.; Vinuesa, R.; Discetti, S. Three-dimensional Generative Adversarial Networks for Turbulent Flow Estimation from Wall Measurements. J. Fluid Mech. 2024, 991, A1. [Google Scholar] [CrossRef]
- Haasdonk, B.; Kleikamp, H.; Ohlberger, M.; Schindler, F.; Wenzel, T. A New Certified Hierarchical and Adaptive RB-ML-ROM Surrogate Model for Parametrized PDEs. SIAM J. Sci. Comput. 2023, 45, A1457–A1489. [Google Scholar] [CrossRef]
- Zhu, Q.; Liu, Z.; Yan, J. Machine Learning for Metal Additive Manufacturing: Predicting Temperature and Melt Pool Fluid Dynamics Using Physics-Informed Neural Networks. Comput. Mech. 2021, 67, 619–635. [Google Scholar] [CrossRef]
- Vinuesa, R.; Brunton, S.L. Enhancing Computational Fluid Dynamics with Machine Learning. Nat. Comput. Sci. 2022, 2, 358–366. [Google Scholar] [CrossRef]
- Li, Y.; Huang, X.; Huang, X.; Gao, X.; Hu, R.; Yang, X.; He, Y.-L. Machine Learning and Multilayer Perceptron Enhanced CFD Approach for Improving Design on Latent Heat Storage Tank. Appl. Energy 2023, 347, 121458. [Google Scholar] [CrossRef]
- Mendil, M.; Leirens, S.; Novello, P.; Duchenne, C.; Armand, P. A 3D Discrepancy Modeling Framework for Urban Pollution Prediction in Accelerated Time. Environ. Model. Softw. 2025, 194, 106662. [Google Scholar] [CrossRef]
- Mao, R.; Liu, Y.; Li, L.; Liu, Z.; Ma, M.; Yang, T. Rapid CFD Prediction Based on Machine Learning Surrogate Model in Built Environment: A Review. Fluids 2025, 10, 193. [Google Scholar] [CrossRef]
- Bahman Zadeh, Z. Modeling Spatial Distribution of Particles in Transportation Systems Using Computational Fluid Dynamics and Machine Learning Approaches. Ph.D. Dissertation, Drexel University, Philadelphia, PA, USA, 2024. Available online: https://search.proquest.com/openview/77859b05bd1cc850c56a5eab002349f1 (accessed on 23 December 2025).
- Issakhov, A.; Sabyrkulova, A.; Rysmambetov, N. Prediction of the Air Pollution from Emissions in Idealized Urban Street Canyons Using Machine Learning and Computational Fluid Dynamics (CFD) Methods. Environ. Model. Assess. 2025, 30, 36. [Google Scholar] [CrossRef]
- Wai, K.-M.; Yu, P.K.N. Application of a Machine Learning Method for Prediction of Urban Neighborhood-Scale Air Pollution. Int. J. Environ. Res. Public Health 2023, 20, 2412. [Google Scholar] [CrossRef] [PubMed]
- Lotrecchiano, N.; Sofia, D.; Giuliano, A.; Barletta, D.; Poletto, M. Real-time On-road Monitoring Network of Air Quality. Chem. Eng. Trans. 2019, 74, 241–246. [Google Scholar] [CrossRef]
- Hashad, K.; Gu, J.; Yang, B.; Rong, M.; Chen, E.; Ma, X.; Zhang, K.M. Designing Roadside Green Infrastructure to Mitigate Traffic-Related Air Pollution Using Machine Learning. Sci. Total Environ. 2021, 773, 144760. [Google Scholar] [CrossRef]
- Kek, H.C.; Mesgarpour, M.; Alizadeh, M.; Wongwises, S.; Doranehgard, M.H.; Jowkar, M.; Karimi, N. Particle dispersion for indoor air quality control considering air change approach: A novel accelerated CFD-DNN prediction. Energy Build. 2024, 306, 113938. [Google Scholar] [CrossRef]
- Van Quang, T.; Doan, D.T.; Yun, G.Y. Recent advances and effectiveness of machine learning models for fluid dynamics in the built environment. Eng. Appl. Comput. Fluid Mech. 2024, 18, 2371682. [Google Scholar] [CrossRef]
- Salim, S.M.; Schlünzen, K.H.; Grawe, S. Numerical simulation of dispersion in urban street canyons with avenue-like tree plantings: Comparison between RANS and LES. Build. Environ. 2011, 46, 1735–1746. [Google Scholar] [CrossRef]
- Ismail, W.H.W.; Mohamad, M.F.; Ikegaya, N.; Chung, J.; Hirose, C.; Abd Razak, A.; Azmi, A.M. Comprehensive comparisons of RANS, LES, and experiments over cross-ventilated building under sheltered conditions. Build. Environ. 2024, 254, 111402. [Google Scholar] [CrossRef]
- Rodríguez Berrio, J.F.; Castaño Usuga, F.A.; Correa, M.A.; Rodríguez Cortes, F.; Saldarriaga, J.C. Comparative CFD Analysis Using RANS and LES Models for NOx Dispersion in Urban Streets with Active Public Interventions in Medellín, Colombia. Sustainability 2025, 17, 6872. [Google Scholar] [CrossRef]
- Menter, F.R. Two-equation eddy-viscosity turbulence models for engineering applications. AIAA J. 1994, 32, 1598–1605. [Google Scholar] [CrossRef]
- Dhunny, A.Z.; Samkhaniani, N.; Lollchund, M.R.; Rughooputh, S.D.D.V. Investigation of Multi-Level Wind Flow Characteristics and Pedestrian Comfort in a Tropical City. Urban Clim. 2018, 24, 185–204. [Google Scholar] [CrossRef]
- Jeanjean, A.P.R.; Hinchliffe, G.; McMullan, W.A.; Monks, P.S.; Leigh, R.J. A CFD study on the effectiveness of trees to disperse road traffic emissions at a city scale. Atmos. Environ. 2015, 120, 1352–2310. [Google Scholar] [CrossRef]
- Takano, Y.; Moonen, P. On the influence of roof shape on flow and dispersion in an urban street canyon. J. Wind. Eng. Ind. Aerodyn. 2013, 123, 107–120. [Google Scholar] [CrossRef]
- Franke, J.; Hellsten, A.; Schlünzen, H.; Carissimo, B. Best Practice Guideline for the CFD Simulation of Flows in the Urban Environment. Technology Report COST Action, 2007. Available online: https://hal.science/hal-04181390 (accessed on 23 December 2025).
- Tominaga, Y.; Mochida, A.; Yoshie, R.; Kataoka, H.; Nozu, T.; Yoshikawa, M.; Shirasawa, T. AIJ Guideline for Practical Applications of CFD to Pedestrian Wind Environment around Buildings. J. Wind Eng. Ind. Aerodyn. 2008, 96, 1749–1761. [Google Scholar] [CrossRef]
- Salazar, J.; Albani, R. Atmospheric Boundary Layer Flow Simulations with OpenFOAM Using a Modified k-epsilon Model Consistent with Prescribed Inlet Conditions. ABCM Eng. Proc. 2022. [Google Scholar] [CrossRef]
- Wieringa, J. Updating the Davenport roughness classification. J. Wind. Eng. Ind. Aerodyn. 1992, 41, 357–368. Available online: https://www.sciencedirect.com/science/article/pii/016761059290434C (accessed on 23 December 2025). [CrossRef]
- Petroff, A.; Mailliat, A.; Amielh, M.; Anselmet, F. Aerosol dry deposition on vegetative canopies. Part I: Review of present knowledge. Atmos. Environ. 2001, 42, 3625–3653. [Google Scholar] [CrossRef]
- Zhang, L.; Gong, S.; Padro, J.; Barrie, L. A size-segregated particle dry deposition scheme for an atmospheric aerosol module. Atmos. Environ. 2001, 35, 549–560. [Google Scholar] [CrossRef]
- OpenCFD Ltd. OpenFOAM User Guide, Section 4.4: Mesh Generation with the snappyHexMesh Utility. Available online: https://www.openfoam.com/documentation/user-guide/4-mesh-generation-and-conversion/4.4-mesh-generation-with-the-snappyhexmesh-utility (accessed on 23 December 2025).
- Blocken, B.; Stathopoulos, T.; Carmeliet, J. CFD Simulation of the Atmospheric Boundary Layer: Wall Function Problems. Atmos. Environ. 2007, 41, 238–252. [Google Scholar] [CrossRef]
- Hargreaves, D.M.; Wrightet, N.G. On the use of the k–ε model in commercial CFD software to model the neutral atmospheric boundary layer. J. Wind. Eng. Ind. Aerodyn. 2007, 95, 355–369. [Google Scholar] [CrossRef]
- Zoljalali, M.; Mohsenpour, A.; Omidbakhsh Amiri, E. Developing MLP-ICA and MLP Algorithms for Investigating Flow Distribution and Pressure Drop Changes in Manifold Microchannels. Arab. J. Sci. Eng. 2022, 47, 6477–6488. [Google Scholar] [CrossRef]
- Ghazvini, M.; Varedi-Koulaei, S.M.; Ahmadi, M.H. Optimization of MLP Neural Network for Modeling Effects of Electric Fields on Bubble Growth in Pool Boiling. Heat Mass Transf. 2023, 60, 329–336. [Google Scholar] [CrossRef]
- Hora, G.S.; Giometto, M.G. Surrogate Modeling of Urban Boundary-Layer Flows. arXiv 2023, arXiv:2306.17807. [Google Scholar] [CrossRef]
- Lumet, E.; Rochoux, M.C.; Jaravel, T.; Lacroix, S. Uncertainty-aware surrogate modeling for urban air pollutant dispersion prediction. Build. Environ. 2025, 267, 112287. [Google Scholar] [CrossRef]
- Chen, T.; Li, R.; Hu, X.; Zhang, B.; Liu, Y.; Wang, L.; Gao, N. Machine learning as CFD surrogate models for rapid prediction of building-related physical fields: A review of methods and state-of-the-art. Build. Environ. 2025, 285, 113667. [Google Scholar] [CrossRef]
- Caron, C.; Lauret, P.; Bastide, A. Machine Learning to speed up Computational Fluid Dynamics engineering simulations for built environments: A review. Build. Environ. 2025, 206, 108315. [Google Scholar] [CrossRef]
- Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A Next-Generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA, 4–8 August 2019. [Google Scholar]
- Yang, S.; Vinuesa, R.; Kang, N. Enhancing Graph U-Nets for Mesh-Agnostic Spatio-Temporal Flow Prediction. arXiv 2024, arXiv:2406.03789. [Google Scholar] [CrossRef]
- Lupo Pasini, M.; Reeve, S.T.; Zhang, P.; Choi, J.Y. HydraGNN: Distributed PyTorch Implementation of Multi-Headed Graph Convolutional Neural Networks; Technical Report; Oak Ridge National Laboratory: Oak Ridge, TN, USA, 2021. [Google Scholar] [CrossRef]
- Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-Informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]


















| U | p | k | |||
|---|---|---|---|---|---|
| inlet | iF | zG | iF | iF | Cc |
| outlet | zG | fV | zG | zG | Cc |
| top | fSS | zG | zG | zG | Cc |
| buildings | fV | zG | wF | wF | wF |
| ground and sea | fV | zG | wF | wF | wF |
| Inlet Wind Condition | Reference Station (P1) | Validation Station (P2) | |
|---|---|---|---|
| Velocity (m/s) | 2 | ; m/s | ; m/s |
| Direction (°) | 150 | ; m/s | ; m/s |
| Location | Parameter | 3 m/s | 6 m/s |
|---|---|---|---|
| Initial (0 m) | Median Particle Size (μm) | ≈3.0 | ≈3.0 |
| Range of Particle Sizes (μm) | 1.5–4.8 | 1.5–4.8 | |
| Insight | Similar particle size distribution at the source for both wind speeds. | ||
| Early Downstream (170 m) | Median Particle Size (μm) | ≈3.0 | ≈3.1 |
| Range of Particle Sizes (μm) | 1.8–4.5 | 1.6–4.7 | |
| Insight | 6 m/s wind retains slightly larger particles, with a wider range. | ||
| Midstream (510 m) | Median Particle Size (μm) | ≈2.8 | ≈2.9 |
| Range of Particle Sizes (μm) | 1.5–4.2 | 1.5–4.5 | |
| Insight | Both wind speeds show removal of larger particles, with 6 m/s retaining them longer. | ||
| Midstream (850 m) | Median Particle Size (μm) | ≈2.7 | ≈2.8 |
| Range of Particle Sizes (μm) | 1.5–3.8 | 1.5–4.0 | |
| Insight | Larger particles are progressively removed. | ||
| Long-Range Transport (1020–1190 m) | Median Particle Size (μm) | ≈2.5 | ≈2.6 |
| Range of Particle Sizes (μm) | 1.5–3.5 | 1.5–3.7 | |
| Insight | Both wind speeds carry primarily fine particles (≈2.5 μm). Aerodynamic filtering removes larger particles, stabilizing smaller ones. |
| Metric | Equation | Description |
|---|---|---|
| Precision (P) | Fraction of predicted positives that are correct. | |
| Recall (R)/Sensitivity | Fraction of actual positives correctly identified. | |
| F1 score | Harmonic mean of precision and recall. | |
| Accuracy | Overall agreement between predictions and true labels. | |
| Specificity (TNR) | Ability to correctly identify negative cases. | |
| Negative Predictive Value (NPV) | Fraction of predicted negatives that are truly negative. | |
| False Positive Rate (FPR) | Tendency to incorrectly label negatives as positives. | |
| False Negative Rate (FNR) | Tendency to miss actual positives. |
| F1 | Precision | |
|---|---|---|
| 0.82 | 0.76 | |
| 0.82 | 0.85 | |
| 0.84 | 0.83 | |
| 0.80 | 0.85 | |
| 0.83 | 0.85 |
| Metric | Value |
|---|---|
| Accuracy | 0.9200 |
| True Negative Rate (TNR) | 0.9568 |
| Negative Predictive Value (NPV) | 0.9398 |
| False Positive Rate (FPR) | 0.0432 |
| False Negative Rate (FNR) | 0.2 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
González Barberá, A.; Nabi, R.; Macias, A.; Monrós-Andreu, G.; Chiva, S. A Hybrid CFD–ML Approach for Rapid Assessment of Particle Dispersion in a Port-Industrial Environment. Environments 2026, 13, 19. https://doi.org/10.3390/environments13010019
González Barberá A, Nabi R, Macias A, Monrós-Andreu G, Chiva S. A Hybrid CFD–ML Approach for Rapid Assessment of Particle Dispersion in a Port-Industrial Environment. Environments. 2026; 13(1):19. https://doi.org/10.3390/environments13010019
Chicago/Turabian StyleGonzález Barberá, Alejandro, Raheem Nabi, Aina Macias, Guillem Monrós-Andreu, and Sergio Chiva. 2026. "A Hybrid CFD–ML Approach for Rapid Assessment of Particle Dispersion in a Port-Industrial Environment" Environments 13, no. 1: 19. https://doi.org/10.3390/environments13010019
APA StyleGonzález Barberá, A., Nabi, R., Macias, A., Monrós-Andreu, G., & Chiva, S. (2026). A Hybrid CFD–ML Approach for Rapid Assessment of Particle Dispersion in a Port-Industrial Environment. Environments, 13(1), 19. https://doi.org/10.3390/environments13010019

