Hostname: page-component-76d6cb85b7-jhrpq Total loading time: 0 Render date: 2026-07-13T06:44:02.143Z Has data issue: false hasContentIssue false

Air quality prediction from images in Indonesia: enhancing model explainability through visual explanation with AQI-net and grad-CAM

Published online by Cambridge University Press:  28 August 2025

Muhammad Labib Alauddin
Affiliation:
Departemen Teknik Informatika, Fakultas Ilmu Komputer, Universitas Brawijaya, Malang, Indonesia
Novanto Yudistira*
Affiliation:
Departemen Teknik Informatika, Fakultas Ilmu Komputer, Universitas Brawijaya, Malang, Indonesia
Muhammad Arif Rahman
Affiliation:
Departemen Teknik Informatika, Fakultas Ilmu Komputer, Universitas Brawijaya, Malang, Indonesia
*
Corresponding author: Novanto Yudistira; Email: yudistira@ub.ac.id

Abstract

Good air quality is a critical determinant of public health, influencing life expectancy, respiratory health, work productivity, and the prevention of chronic diseases. This study presents a novel approach to classifying the Air Quality Index (AQI) using deep learning techniques, specifically convolutional neural networks (CNNs). We collected and curated a dataset comprising 11,000 digital images from three distinct regions in Indonesia—Jakarta, Malang, and Semarang—ensuring uniformity through standardized acquisition settings. The images were categorized into four air quality classes: good, moderate, unhealthy for sensitive groups, and unhealthy. We designed and implemented a CNN architecture optimized for AQI classification. The model achieved an impressive accuracy of 99.81% using K-fold cross-validation. In addition, the model’s interpretative capabilities were examined using techniques such as Grad-CAM, providing valuable insights into how the CNN identifies and classifies air quality conditions based on image features. These findings underscore the effectiveness of CNNs for AQI classification and highlight the potential for future work to incorporate a more diverse set of digital images captured from various perspectives to enhance dataset complexity and model robustness. The dataset is publicly accessible at https://doi.org/10.5281/zenodo.15727522.

Information

Type
Application Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Table 1. Air Quality Index class (Li et al., 2017)

Figure 1

Figure 1. Examples of datasets collected clockwise, ranging from good, moderate, unhealthy for some people, and unhealthy air quality.

Figure 2

Figure 2. Shooting locations in Jakarta, Semarang, and Malang, with red dots on the picture indicating the exact shooting points and numbers representing the AQI sensors.

Figure 3

Table 2. Architecture of the proposed AQI-Net

Figure 4

Table 3. Performance comparison of models

Figure 5

Figure 3. Comparison of several architectures on the Indonesian dataset.

Figure 6

Figure 4. Testing the AQI-Net model with Grad-CAM on an image labeled “Unhealthy for Some”: Each row in the figure corresponds to a different target class from the dataset, starting from the top: “good,” “moderate,” “unhealthy for some,” and “unhealthy.”

Author comment: Air quality prediction from images in Indonesia: enhancing model explainability through visual explanation with AQI-net and grad-CAM — R0/PR1

Comments

Dear Editor of Environmental Data Science,

We are pleased to submit our manuscript entitled “Air Quality Prediction from Images in Indonesia: Enhancing Model Explainability through Visual Explanation with AQI-Net and Grad-CAM” for consideration in Environmental Data Science, as part of the facilitated publication track from the Climate Informatics 2025 conference, where this work was presented and well received.

In this paper, we propose a novel and interpretable deep learning framework (AQI-Net) to predict Air Quality Index (AQI) categories from digital images, with a specific focus on urban Indonesian environments. Our contributions are threefold:

1. High-Performance Image-Based AQI Classification: AQI-Net achieves up to 99.81% accuracy in a cross-validated setting using CNNs, offering a sensor-free yet robust method for real-time environmental monitoring.

2. Dataset Contribution: We curated and publicly released a novel dataset comprising 11,000+ labeled images from Jakarta, Semarang, and Malang, which aligns visual features with real-time AQI labels (verified via IQAir).

3. Explainability via Grad-CAM: To ensure model transparency, we integrated Grad-CAM visualizations, highlighting how the model correlates sky regions and environmental structures with AQI categories.

We believe this work is well-suited for Environmental Data Science due to its interdisciplinary nature—bridging computer vision, environmental monitoring, and public health informatics—and its potential to serve communities where sensor infrastructure is lacking.

This manuscript is an original work and is not under consideration elsewhere. All authors have approved the submission, and there are no conflicts of interest to declare. The dataset is freely accessible at: https://github.com/lastranger21/AQI-Classification-In-Indonesia.

We sincerely thank the Environmental Data Science editorial team and the Climate Informatics 2025 organizers for this opportunity, and we look forward to your feedback.

Sincerely,

Novanto Yudistira (corresponding author)

Department of Informatics Engineering

Faculty of Computer Science

Universitas Brawijaya, Malang, Indonesia

Email: yudistira@ub.ac.id

Review: Air quality prediction from images in Indonesia: enhancing model explainability through visual explanation with AQI-net and grad-CAM — R0/PR2

Conflict of interest statement

Reviewer declares none.

Comments

1. Summary: In this section please explain in your own words what problem the paper addresses and what it contributes to solving it.

The paper tackles the challenge of assessing air quality in a cost-effective and accessible manner. Traditional methods rely on expensive sensors, limiting their availability in certain regions. To address this, the authors propose AQI-Net, a deep learning-based model using Convolutional Neural Networks (CNNs) to classify air quality based on digital images. By leveraging a dataset of 11,000 images from three cities in Indonesia, the model achieves an impressive accuracy of 99.81%. The study also enhances model interpretability using Grad-CAM, providing insights into how visual features contribute to air quality classification. The findings suggest that AI-driven image analysis can serve as a viable alternative to sensor-based AQI monitoring.

2. Please select a score of relevance to climate informatics which promotes the interdisciplinary research between climate science, data science, and computer science.

Highly relevant

3. Relevance and Impact: Is this paper a significant contribution to interdisciplinary climate informatics?

This paper makes a significant contribution to interdisciplinary climate informatics by bridging environmental science and computer vision. By introducing a novel approach to air quality assessment, it offers a scalable solution for regions with limited sensor coverage. The integration of explainable AI techniques, such as Grad-CAM, enhances transparency in deep learning models, making the research valuable for both scientific and public health applications. The publicly accessible dataset also fosters further research in environmental monitoring, reinforcing its impact across multiple disciplines.

4. Overall recommendation of the submission.

Minor Revision: Borderline, require minor changes.

5. Detailed Comments

Very interesting and clear, though sometimes a bit repetitive. I have a few minor questions/comments:

- Since the model identifies air quality from sky images, it seems limited to daytime use. Could it still work at night, or are there ways to adapt it for low-light conditions?

- The title might be a bit misleading, as the study focuses on Indonesia. Additionally, while the model’s accuracy is impressive, the explainability part feels secondary, with Grad-CAM providing useful but not groundbreaking insights into how the model works (it corresponds with human perception, as you mentioned).

- p.6 line 28: I believe it would be more accurate to refer to the stride as "stride = 2“ rather than ”2x2," since it’s a parameter, not a matrix.

- Flattening confusion: I’m a bit unclear about the 2D dimensions after flattening (140, 145). Shouldn’t this result in a single vector instead? Also, which of these dimensions corresponds to the batch size?

- Parameter comparison: It’s surprising that a 3-layer convolutional network has more parameters than ResNet50. Maybe double-check?

- I assume Table 3 reports the validation accuracy? Or is it the training one?

- p.1 line 27: You mention using k-fold cross-validation, but I couldn’t find details on how the data is split between training and validation. Could you clarify the procedure used for this split?

Review: Air quality prediction from images in Indonesia: enhancing model explainability through visual explanation with AQI-net and grad-CAM — R0/PR3

Conflict of interest statement

Reviewer declares none.

Comments

1. Summary: In this section please explain in your own words what problem the paper addresses and what it contributes to solving it.

The paper presents a well-structured study on air quality classification using deep learning, effectively demonstrating the potential of CNN-based models for AQI prediction. The explanations are clear, and the dataset is carefully curated, though some areas could benefit from additional details, such as dataset sourcing and model selection rationale. Minor refinements in writing style, figure placement, and citation consistency would further enhance the clarity and readability of the paper.

2. Please select a score of relevance to climate informatics which promotes the interdisciplinary research between climate science, data science, and computer science.

Somewhat relevant

3. Relevance and Impact: Is this paper a significant contribution to interdisciplinary climate informatics?

The paper presents a well-structured study on air quality classification using deep learning, effectively demonstrating the potential of CNN-based models for AQI prediction. The explanations are clear, and the dataset is carefully curated, though some areas could benefit from additional details, such as dataset sourcing and model selection rationale. Minor refinements in writing style, figure placement, and citation consistency would further enhance the clarity and readability of the paper.

4. Overall recommendation of the submission.

Major Revision: Clearly below the acceptance threshold and require notable changes.

5. Detailed Comments

Clarify Dataset Source: The dataset is described as being collected from three cities, but it would be beneficial to mention whether it was manually captured or sourced from an online database.

Standardize Acronym Usage: The document uses “AQI” consistently, but in some places, “air quality index” is written in full. Ensure consistent usage throughout.

Improve Figure References: Sentences such as “As shown in Figure 1” should provide a brief explanation of what the figure illustrates to enhance clarity.

Grammar Refinements: In the sentence, “Based on Table 1. We can see that the air quality index can be clustered...”, the period after “Table 1” should be removed for grammatical correctness.

Enhance Explanation of Model Selection: The document states that AQI-Net was compared with ResNet50, VGG16, and ColorNet. A brief explanation of why these architectures were chosen would provide better context.

Revise Transition Phrases: Some sections, such as moving from the dataset to the AQI-Net model, could use smoother transitions to improve readability.

Improve Numerical Presentation: In Table 3, the training times include excessive decimal places (e.g., 10263.70s). Rounding to two decimal places (e.g., 10263.7s) would make it cleaner.

Clarify Grad-CAM Visual Explanation: The discussion on Grad-CAM would benefit from a clearer description of how it visually highlights areas of importance.

Reformat Citations for Consistency: Ensure all citations are formatted consistently, particularly within inline text references.

Ensure Figure Placement Matches Text Flow: Figures should appear close to the text discussing them. Some references to figures appear before they are actually shown, which may cause confusion.

Recommendation: Air quality prediction from images in Indonesia: enhancing model explainability through visual explanation with AQI-net and grad-CAM — R0/PR4

Comments

This article was accepted into the Climate Informatics 2025 Conference after the authors addressed the comments in the reviews provided. It has been accepted for publication in Environmental Data Science on the strength of the Climate Informatics Review Process.

Decision: Air quality prediction from images in Indonesia: enhancing model explainability through visual explanation with AQI-net and grad-CAM — R0/PR5

Comments

No accompanying comment.