Abstract
An intelligent particulate matter 2.5 forecasting system was established to enhance real-time air quality monitoring in Taiwan. Utilizing hourly data from 2024 to late 2025, the system employs deep time-series learning to capture short-term fluctuations and seasonal transitions, generating 1–2 h ahead predictions. Specifically optimized for edge computing, the system ensures low-latency, on-site inference for practical deployment. By categorizing pollution risk levels, the framework enables early warnings for high-pollution events. Evaluation using root mean square error, mean absolute error, and the coefficient of determination confirms high predictive precision, demonstrating its potential to shift air quality management from reactive monitoring to proactive, AI-driven intelligence for sustainable urban governance.
1. Introduction
Fine particulate matter (PM) 2.5 remains suspended for extended periods and penetrates deeply into the respiratory system, posing significant burdens on public health and socioeconomic stability. Consequently, hourly monitoring and short-term forecasting have become critical issues in air quality management. PM2.5 concentrations exhibit nonlinear fluctuations and cross-regional synchronized variations influenced by emissions, meteorological conditions (such as wind speed/direction, temperature, relative humidity, and rainfall), and topographical dispersion. In Yunlin and its surrounding areas in Taiwan, the complex interaction of industrial activity, traffic, and monsoonal circulation results in pollutant concentrations characterized by both inter-station correlations and temporal variations. Conventional single-station or traditional models struggle to adequately characterize these cross-station transmission and regional co-variation patterns.
Although recent advancements in Graph Neural Networks (GNNs) allow monitoring stations to be treated as nodes, combining temporal modeling to learn spatiotemporal dependencies, local-scale studies often suffer from inconsistent data specifications, opaque missing-value imputation, and data leakage during temporal splitting, which hinders reproducibility. Addressing these challenges, this study constructed an integrated hourly dataset from 10 monitoring stations in Yunlin and neighboring regions (1 January 2024–30 September 2025), ensuring consistent feature alignment and temporal synchronization with continuous sequences maintained through imputation. For modeling, a Spatio-Temporal Graph Convolutional Network (ST-GCN) was employed to explicitly represent inter-station correlations for PM2.5 forecasting. Performance was evaluated using root mean square error (RMSE), mean absolute error (MAE), and the coefficient of determination (R2). Notably, the dataset was chronologically split into training, validation, and testing sets to rigorously assess the model’s generalization capability for future time periods.
2. Related Work
2.1. PM2.5 Pollution and Influencing Factors
PM2.5 is composed of primary emissions and secondary formations. Its sources include direct particulate emissions from industrial processes, traffic combustion, and residential activities, as well as sulfates, nitrates, and secondary organic aerosols transformed from precursors such as SO2, NOx, and volatile organic carbons through photochemical or aqueous-phase reactions [1]. The generation and accumulation of PM2.5 are highly regulated by meteorological conditions, leading to distinct diurnal cycles, seasonal patterns, and episodic peaks. Specifically, temperature and relative humidity influence secondary formation and hygroscopic growth, while wind speed and direction dictate dispersion and transport. Furthermore, planetary boundary layer height and atmospheric stability determine the dilution capacity. Therefore, high-concentration events are more likely to accumulate under nocturnal or stagnant wind conditions [2]. Given that long-term PM2.5 exposure is closely linked to significant health risks, accurate forecasting and early warning systems carry substantial public health implications [3].
In local-scale monitoring networks, PM2.5 concentrations often display concurrent temporal nonlinearity and spatial correlation. Multiple stations may exhibit synchronous fluctuations driven by shared meteorological conditions, yet the magnitude of these responses varies according to local emission sources and geographical characteristics. Models that rely exclusively on single-station data or isolated features tend to overlook cross-station co-variation and transport dynamics, thereby limiting their capacity to capture peak pollution events, wind-shift episodes, and regional accumulation processes. Consequently, a critical research challenge is to develop approaches that simultaneously account for meteorological modulation, emission drivers, and inter-station interactions within high-resolution hourly datasets.
2.2. Multi-Station Data Integration and Preprocessing
Air quality monitoring data are characterized by high frequency, long-term duration, and multi-site distribution. However, practical applications are often hindered by missing values, timestamp inconsistencies, and varying parameter naming conventions. Without a standardized data structure, multi-station model training can suffer from biases due to misaligned features or inconsistent time series. Particularly in graph-based spatio-temporal models, all stations must be aligned to a synchronized timeline to correctly learn cross-station message passing and synchronized dynamics.
Previous studies have demonstrated practical experiences in multi-station sensing and integration, including the OpenSense Zurich urban-scale dataset [4], the MegaSense edge-based monitoring demonstration [5], and the use of low-cost multi-pollutant networks to quantify intra-urban spatial variations [6]. Furthermore, community-based monitoring and open-source frameworks have advanced data accessibility and procedural transparency [7,8], while public infrastructure research platforms have emphasized the importance of multi-site integration and long-term maintenance [9]. Collectively, data standardization, temporal synchronization, and transparent missing-value handling are key to enhancing model credibility and reproducibility.
For missing data, we used linear interpolation to maintain the continuity of hourly sequences and ensure multi-station alignment. This process is explicit and reproducible, serving as a foundational strategy for long-term monitoring data integration while avoiding additional assumptions introduced by complex imputation methods. Although linear interpolation may smooth out peaks or produce unrealistic extensions during prolonged gaps, we mitigate these risks through chronological data splitting and independent test set evaluation to verify the model’s generalization robustness for future periods.
2.3. Deep Models for PM2.5 Prediction
Deep learning, with its capacity for nonlinear fitting and automatic feature extraction, has been widely applied to air quality forecasting. Early research focused on urban-scale air quality inference and forecasting, integrating external information and regional correlations to enhance fine-grained estimation [10,11]. Architectural trends evolved from sequential or hybrid models such as Convolutional Neural Network, Long Short-Term Memory (LSTM), and Convolutional LSTM, to capture temporal dynamics [12,13], as well as generalized deep frameworks for multi-source spatio-temporal information integration [14,15].
However, in multi-station scenarios, simply concatenating features or modeling each station independently fails to explicitly utilize cross-station synchronization and pollution transport information, often leading to unstable training and a lack of interpretability. Graph Neural Networks (GNNs) address this by treating stations as nodes and representing their relationships using adjacency matrices. By aggregating neighbor information through graph convolution or message passing, combined with temporal modeling, spatio-temporal graph models are formed. These methods, such as Spatial Temporal Graph Convolutional Networks [16], Diffusion Convolutional Recurrent Neural Network [17], and Graph WaveNet for Deep Spatial-Temporal Graph Modeling [18], have matured in traffic forecasting and are highly applicable to multi-station PM2.5 prediction. Consequently, this study adopts ST-GCN as the core methodology, paired with a standardized data structure and linear interpolation, to validate multi-step PM2.5 forecasting performance and generalization at the local scale in a reproducible and transparent manner.
3. Methodology
We focused on hourly PM2.5 forecasting in the Yunlin area, Taiwan. Given that PM2.5 fluctuations are driven by meteorological conditions and exhibit both temporal dependencies (e.g., diurnal cycles) and spatial correlations (e.g., regional transport), single-station models often fail to capture inter-station dynamics during peak or transition periods. To address this, we developed a multi-station forecasting workflow using public hourly data. First, pollutant and meteorological features across all stations were standardized and time-aligned, with missing values filled via linear interpolation to ensure sequence continuity. Second, the dataset was chronologically split into training, validation, and testing sets. Finally, ST-GCN was implemented as the core model. By treating monitoring stations as graph nodes, the model explicitly learns spatial correlations and temporal dynamics to generate multi-step PM2.5 predictions for 1–2 h horizons.
3.1. Study Area and Data Sources
Observation data from ten air-quality monitoring stations (Mailiao, Taixi, Dongshi, Dongshi Industrial, Sihu, Tuku, Baozhong, Lunbei, Xiluo, and Dacheng) were used in this study. The study period spanned from 1 January 2024 to 30 September 2025, with an hourly temporal resolution. PM2.5 is used as the prediction target, while pollutant and meteorological variables are incorporated as input features to capture temporal variability as well as inter-station synchronization and potential regional transport effects. The final feature set includes pollutant concentrations of PM2.5 and PM10 (μg/m3); NO, NO2, NOx, SO2, and O3 (ppb); CO, CH4, total hydrocarbons and non-methane hydrocarbons (ppm), and meteorological conditions, including air temperature (°C), relative humidity (%), rainfall (mm/hr), wind direction (degree), and wind speed (m/s).
3.2. Data Preprocessing and Feature Integration
When integrating public hourly data across multiple years and monitoring sites, common challenges include inconsistent variable naming, missing measurements, and non-standardized timestamp formats. To enable synchronous multi-station inputs at each time step, column names were standardized, and pollutant and meteorological records were merged into a unified hourly table based on timestamps. For each station, a continuous hourly time index was established, and all observations were aligned to this complete timeline, thereby ensuring consistent time steps and continuity when constructing samples with sliding windows.
Missing values were addressed using time-based linear interpolation to maintain a simple and reproducible preprocessing pipeline. Although this method effectively fills sporadic gaps and preserves overall trends, it might introduce smoothing effects during peak events or across extended missing intervals. The dataset was subsequently divided chronologically into training, validation, and test sets to evaluate generalization to future periods. Tracking performance for peaks and turning points was examined through visualization in Section 3.5. To preserve physical meaning and interpretability, all variables were retained in their original measurement scales, and the preprocessed values were directly input into the model, allowing straightforward comparison with observed concentrations.
3.3. Time-Series Splitting and Sample Generation
We formulated multi-station PM2.5 forecasting as a multi-horizon time-series prediction task. When the number of monitoring stations (N) is 10, and the number of features is F, at each time step t, the multi-station feature matrix is represented as Xt ∈ R(N×F). To capture short-term accumulation, lagged responses, and decay dynamics, a fixed-length historical window L was employed to construct the input sequence, with samples generated using a sliding-window strategy. The prediction target was the PM2.5 concentration H ∈ {1,2} hours ahead.
To prevent information leakage, the dataset was partitioned chronologically into training, validation, and test sets with a ratio of 70:15:15. Identical temporal boundaries were applied across all stations, ensuring that multi-station inputs at the same timestamps were consistently assigned to the same split. This approach provides an evaluation setting that more closely reflects real-world deployment conditions.
3.4. Overview of ST-GCN Modeling and Training
We employed ST-GCN for multi-station PM2.5 forecasting to jointly model inter-station spatial dependencies (e.g., transport and co-variation) and hourly temporal dynamics. The monitoring network is represented as a graph, where stations are treated as nodes and inter-station relationships as edges. During feature updates, the model aggregates information from neighboring stations, explicitly incorporating cross-site spatial dependence beyond single-station time-series modeling.
Model training was conducted using a split ratio of 70:15:15. Evaluation was conducted by comparing observed and predicted values for representative stations, alongside overall performance metrics including R2, RMSE, and MAE. These assessments were applied across forecasting horizons of H = 1 and 2 h to evaluate predictive accuracy under different temporal settings.
3.5. Evaluation Metrics and Result Presentation
All metrics were computed on the test set, where RMSE and MAE measure error magnitude (μg/) and R2 reflects the explained variance. We selected a representative station (Tuku) and plotted a 120 h window (starting 00:00 on 1 August 2025) to compare observations against predictions, enabling inspection of fluctuation tracking and potential lag during peak events. Overall metrics are summarized in Table 1, and the comparison of global evaluation metrics is shown in Figure 1. The observed and predicted PM2.5 concentrations are presented in Figure 2 for H = 1 (1-h ahead) and in Figure 3 for H = 2 (2-h ahead). Performance degraded as the forecasting horizon increased. For H = 1, R2 = 0.81, RMSE = 4.566, and MAE = 2.711; for H = 2, R2 = 0.76, RMSE = 5.059, and MAE = 3.077. The 1 h-ahead forecast achieves the best fit, while the 2 h-ahead forecast shows increased error, reflecting the accumulation of uncertainty in multi-step forecasting (Table 1, Figure 1).
Table 1.
Global evaluation metrics of ST-GCN under different forecasting horizons (H = 1, 2, and 3).
Figure 1.
Comparison of global PM2.5 evaluation metrics (R2, RMSE, and MAE) across forecasting horizons for ST-GCN.
Figure 2.
Observed and predicted PM2.5 at the Tuku station for H = 1 (1 h ahead) using ST-GCN.
Figure 3.
Observed and predicted PM2.5 at the Tuku station for H = 2 (2 h ahead) using ST-GCN.
4. Conclusions
Using publicly available hourly monitoring data from Taiwan’s Ministry of Environment, we constructed a multi-station PM2.5–meteorology integrated dataset for ten sites in Yunlin County and surrounding areas, covering 1 January 2024 to 30 September 2025. A reproducible preprocessing and time-series splitting pipeline was established, including timestamp alignment and missing-value imputation via linear interpolation, followed by a chronological train/validation/test set split of 70:15:15. For modeling, ST-GCN was adopted to jointly learn inter-station spatial dependencies and hourly temporal dynamics. Multi-horizon forecasting was configured for H = 1 and 2, forming a spatiotemporal framework applicable to regional monitoring networks.
ST-GCN delivers stable performance for short-term PM2.5 forecasting, with higher accuracy at shorter horizons. At H = 1, the model achieved R2 = 0.81, RMSE = 4.566 (μg/), and MAE = 2.711 (μg/). When extending the horizon to H = 2, R2 decreased to 0.76, while RMSE and MAE increased to 5.059 (μg/) and 3.077 (μg/), respectively, reflecting the accumulation of uncertainty in multi-step forecasting. Observed–predicted comparison results at a representative station showed that the model captures major concentration variations, although peak events may be slightly smoothed. Overall, the results demonstrate the feasibility of applying ST-GCN for short-term multi-horizon PM2.5 prediction using public data. Future work may improve peak forecasting and cross-season generalization by incorporating uncertainty estimation, refining missing-data handling strategies, and integrating adaptive graph-structure learning mechanisms.
Author Contributions
Conceptualization, C.-H.L.; methodology, C.-H.L. and C.-C.C.; software, C.-C.C.; validation, C.-H.L. and C.-C.C.; formal analysis, C.-C.C.; investigation, C.-C.C.; resources, C.-H.L.; data curation, C.-C.C.; writing—original draft preparation, C.-C.C.; writing—review and editing, C.-H.L.; visualization, C.-C.C.; supervision, C.-H.L.; project administration, C.-H.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Seinfeld, J.H.; Pandis, S.N. Atmospheric Chemistry and Physics: From Air Pollution to Climate Change, 3rd ed.; Wiley: Hoboken, NJ, USA, 2016. [Google Scholar]
- Tai, A.P.K.; Mickley, L.J.; Jacob, D.J. Correlations between Fine Particulate Matter (PM2.5) and Meteorological Variables in the United States: Implications for the Sensitivity of PM2.5 to Climate Change. Atmos. Environ. 2010, 44, 3976–3984. [Google Scholar] [CrossRef] [Scilit]
- Pope, C.A., III; Dockery, D.W. Health Effects of Fine Particulate Air Pollution: Lines That Connect. J. Air Waste Manag. Assoc. 2006, 56, 709–742. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, J.J.; Faltings, B.; Saukh, O.; Hasenfratz, D.; Beutel, J. Sensing the Air We Breathe—The OpenSense Zurich Dataset. In Proceedings of the Twenty-Sixth AAAI Conference on Artificial Intelligence (AAAI-12), Toronto, ON, Canada, 22–26 July 2012; pp. 323–325. [Google Scholar]
- Lagerspetz, E.; Varjonen, S.; Concas, F.; Mineraud, J.; Tarkoma, S. Demo: MegaSense: Megacity-scale Accurate Air Quality Sensing with the Edge. In Proceedings of the 24th Annual International Conference on Mobile Computing and Networking (MobiCom ’18), New Delhi, India, 29 October–2 November 2018; pp. 843–845. [Google Scholar] [CrossRef] [Scilit]
- Tanzer, R.; Malings, C.; Hauryliuk, A.; Subramanian, R.; Presto, A.A. Demonstration of a Low-Cost Multi-Pollutant Network to Quantify Intra-Urban Spatial Variations in Air Pollutant Source Impacts and to Evaluate Environmental Justice. Int. J. Environ. Res. Public Health 2019, 16, 2523. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- U.S. Environmental Protection Agency. Village Green Station—Measuring Air Quality from a Park Bench (Village Green Project Fact Sheet); U.S. Environmental Protection Agency: Washington, DC, USA, 2016. Available online: https://19january2017snapshot.epa.gov/sites/production/files/2016-01/documents/village-green-project-fact-sheet.pdf (accessed on 9 January 2026).
- Gerboles, M.; Spinelle, L.; Kotsev, A.; Signorini, M. AirSensEUR: An Open-Designed Multi-Sensor Platform for Air Quality Monitoring. In Proceedings of the Fourth Scientific Meeting EuNetAir, Linköping, Sweden, 3–5 June 2015. [Google Scholar] [CrossRef] [Scilit]
- Catlett, C.E.; Beckman, P.H.; Sankaran, R.; Kusiak Galvin, K. Array of Things: A Scientific Research Instrument in the Public Way: Platform Design and Early Lessons Learned. In Proceedings of the 2nd International Workshop on Science of Smart City Operations and Platforms Engineering (SCOPE 2017), Pittsburgh, PA, USA, 21 April 2017; pp. 26–33. [Google Scholar] [CrossRef] [Scilit]
- Zheng, Y.; Liu, F.; Hsieh, H.-P. U-Air: When Urban Air Quality Inference Meets Big Data. In Proceedings of the 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD ’13), Chicago, IL, USA, 11–14 August 2013; pp. 1436–1444. [Google Scholar] [CrossRef] [Scilit]
- Zheng, Y.; Yi, X.; Li, M.; Li, R.; Shan, Z.; Chang, E.; Li, T. Forecasting Fine-Grained Air Quality Based on Big Data. In Proceedings of the 21st ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD 2015), Sydney, Australia, 10–13 August 2015; pp. 2267–2276. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Li, S. Air Quality Index Forecast in Beijing Based on CNN-LSTM Multi-Model. Chemosphere 2022, 308, 136180. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wen, C.; Liu, S.; Yao, X.; Peng, L.; Li, X.; Hu, Y.; Chi, T. A Novel Spatiotemporal Convolutional Long Short-Term Neural Network for Air Pollution Prediction. Sci. Total Environ. 2019, 654, 1091–1099. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Qi, Z.; Wang, T.; Song, G.; Hu, W.; Li, X.; Zhang, Z. Deep Air Learning: Interpolation, Prediction, and Feature Analysis of Fine-Grained Air Quality. IEEE Trans. Knowl. Data Eng. 2018, 30, 2285–2297. [Google Scholar] [CrossRef] [Scilit]
- Teng, M.; Li, S.; Xing, J.; Fan, C.; Yang, J.; Wang, S.; Song, G.; Ding, Y.; Dong, J.; Wang, S. 72-Hour Real-Time Forecasting of Ambient PM2.5 by Hybrid Graph Deep Neural Network with Aggregated Neighborhood Spatiotemporal Information. Environ. Int. 2023, 176, 107971. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yu, B.; Yin, H.; Zhu, Z. Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting. In Proceedings of the 27th International Joint Conference on Artificial Intelligence (IJCAI-18), Stockholm, Sweden, 13–19 July 2018; pp. 3634–3640. [Google Scholar]
- Li, Y.; Yu, R.; Shahabi, C.; Liu, Y. Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting. In Proceedings of the 6th International Conference on Learning Representations (ICLR 2018), Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
- Wu, Z.; Pan, S.; Long, G.; Jiang, J.; Zhang, C. Graph WaveNet for Deep Spatial-Temporal Graph Modeling. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence (IJCAI-19), Macao, China, 10–16 August 2019; pp. 1907–1913. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 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.


