Skip to main content

Employing Explainable AI Techniques for Air Pollution: An Ante-Hoc and Post-Hoc Approach in Dioxide Nitrogen Forecasting

  • Conference paper
  • First Online:
Intelligent Data Engineering and Automated Learning – IDEAL 2024 (IDEAL 2024)

Abstract

With the advancement of Artificial Intelligence (AI) techniques in different areas of our society, namely with the use of Machine and Deep Learning models, some challenges must be faced. One of these challenges is responding to the lack of transparency in these models, which makes it difficult to explain the results they obtained. This research centres on predicting the concentration of nitrogen dioxide (NO\({_2}\)), a critical air pollutant, using a Long Short-Term Memory model (LSTM) along with applying Explainable AI (XAI) techniques to understand the predictions made. Two explainability techniques were applied: an ante-hoc approach with an Attention layer and a post-hoc approach using Shapley Additive Explanations (SHAP). The Attention layer identified carbon monoxide (CO) and NO\({_2}\) as the most powerful features, while the SHAP analysis highlighted NO\({_2}\) as the predominant contributor to the predictions, followed by particulate matter (PM\(_{2.5}\)) and CO. The results demonstrated that the target value significantly impacts the model’s forecast for both XAI techniques.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ahmed, D.M., Hassan, M.M., Mstafa, R.J.: A review on deep sequential models for forecasting time series data. Appl. Comput. Intell. Soft Comput. 2022(1), 6596397 (2022). https://doi.org/10.1155/2022/6596397

    Article  Google Scholar 

  2. Bacanin, N., et al.: The explainable potential of coupling hybridized metaheuristics, XGBoost, and shap in revealing toluene behavior in the atmosphere. Sci. Total Environ. 929, 172195 (2024)

    Article  Google Scholar 

  3. Chamola, V., Hassija, V., Sulthana, A.R., Ghosh, D., Dhingra, D., Sikdar, B.: A review of trustworthy and explainable artificial intelligence (XAI). IEEE Access (2023). https://doi.org/10.1109/ACCESS.2023.3294569

  4. Dwivedi, R., et al.: Explainable AI (XAI): core ideas, techniques, and solutions. ACM Comput. Surv. 55(9), 1–33 (2023). https://doi.org/10.1145/356104

    Article  Google Scholar 

  5. Hossain, M.R.: Killing billions to save millions? Analyzing the double jeopardy of fossil-fuel-led economic development in bangladesh. Environ. Dev. Sustain. 1–32 (2023). https://doi.org/10.1007/s10668-023-03497-2

  6. Manisalidis, I., Stavropoulou, E., Stavropoulos, A., Bezirtzoglou, E.: Environmental and health impacts of air pollution: a review. Front. Public Health 8, 14 (2020). https://doi.org/10.3389/fpubh.2020.00014

    Article  Google Scholar 

  7. Mukhamediev, R.I., et al.: Review of artificial intelligence and machine learning technologies: classification, restrictions, opportunities and challenges. Mathematics 10(15), 2552 (2022). https://doi.org/10.3390/math10152552

    Article  Google Scholar 

  8. Orellano, P., Reynoso, J., Quaranta, N., Bardach, A., Ciapponi, A.: Short-term exposure to particulate matter (pm10 and pm2. 5), nitrogen dioxide (no2), and ozone (O3) and all-cause and cause-specific mortality: systematic review and meta-analysis. Environ. Int. 142, 105876 (2020). https://doi.org/10.1016/j.envint.2020.105876

  9. Ozyegen, O., Ilic, I., Cevik, M.: Evaluation of interpretability methods for multivariate time series forecasting. Appl. Intell. 1–17 (2022). https://doi.org/10.1007/s10489-021-02662-2

  10. Pantiskas, L., Verstoep, K., Bal, H.: Interpretable multivariate time series forecasting with temporal attention convolutional neural networks. In: 2020 IEEE Symposium Series on Computational Intelligence (SSCI), pp. 1687–1694. IEEE (2020)

    Google Scholar 

  11. Retzlaff, C.O., et al.: Post-hoc vs ante-hoc explanations: XAI design guidelines for data scientists. Cogn. Syst. Res. 86, 101243 (2024). https://doi.org/10.1016/j.cogsys.2024.101243

    Article  Google Scholar 

  12. Sen, J., Mehtab, S.: Long-and-short-term memory (LSTM) networks architectures and applications in stock price prediction. Emerg. Comput. Paradigms: Principles Adv. Appl. 143–160 (2022). https://doi.org/10.1002/9781119813439.ch8

  13. Sunder, M.S., Tikkiwal, V.A., Kumar, A., Tyagi, B.: Unveiling the transparency of prediction models for spatial PM2. 5 over Singapore: comparison of different machine learning approaches with explainable artificial intelligence. AI 4(4), 787–811 (2023)

    Google Scholar 

  14. Taye, M.M.: Understanding of machine learning with deep learning: architectures, workflow, applications and future directions. Computers 12(5), 91 (2023). https://doi.org/10.3390/computers12050091

    Article  Google Scholar 

  15. Van Zyl, C., Ye, X., Naidoo, R.: Harnessing explainable artificial intelligence for feature selection in time series energy forecasting: a comparative analysis of grad-cam and shap. Appl. Energy 353, 122079 (2024). https://doi.org/10.1016/j.apenergy.2023.122079

    Article  Google Scholar 

  16. Vega, G.M., Aznarte José, L.: Shapley additive explanations for NO2 forecasting. Eco. Inform. 56, 101039 (2020)

    Article  Google Scholar 

  17. Wang, Y., et al.: Contrasting trends of PM2. 5 and surface-ozone concentrations in China from 2013 to 2017. Natl. Sci. Rev. 7(8), 1331–1339 (2020). https://doi.org/10.1093/nsr/nwaa032

Download references

Acknowledgements

This work is financed by National Funds through the Portuguese funding agency, FCT - Fundação para a Ciência e a Tecnologia within project 2022.06822.PTDC (https://doi.org/10.54499/2022.06822.PTDC). The work of Pedro Oliveira was supported by the doctoral Grant PRT/BD/154311/2022 financed by the Portuguese Foundation for Science and Technology (FCT), and with funds from European Union, under MIT Portugal Program.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Pedro Oliveira .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2025 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Oliveira, P., Franco, F., Bessa, A., Durães, D., Novais, P. (2025). Employing Explainable AI Techniques for Air Pollution: An Ante-Hoc and Post-Hoc Approach in Dioxide Nitrogen Forecasting. In: Julian, V., et al. Intelligent Data Engineering and Automated Learning – IDEAL 2024. IDEAL 2024. Lecture Notes in Computer Science, vol 15346. Springer, Cham. https://doi.org/10.1007/978-3-031-77731-8_30

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-77731-8_30

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-77730-1

  • Online ISBN: 978-3-031-77731-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics