Air Quality Forecasting in Thessaloniki: A Data-Driven Approach
- Anastasia Papadopoulou, Alexandros Pournaras, Eleftheria Ioannidou
- AIR QUALITY
- 10 min read
Air Quality
Air quality is very important for both environmental health and our well-being, serving as an indicator of air cleanliness at a specific location at a given time. The concentration of various air pollutants determines air quality. Air pollutants include the following ones:
- Sulphur Dioxide (SO2)
- Ammonia (NH3)
- Nitrogen Dioxide (NO2)
- Carbon Dioxide (CO2)
- Carbon Monoxide (CO)
- Ozone (O3)
- Particulate Matter, PM (PM2.5 and PM10)
Research indicates that brief exposure to increased concentrations of these air pollutants can have various health effects, from eye irritation to heart issues, while extended exposure might even lead to cancer. Given these risks, researching air quality forecasting and gathering real-time air quality data has become a significant field of study.
Air Quality Forecasting
Air quality forecasting involves two processes:
- Continuous monitoring of air quality
- Prediction of the quality (air pollutant) levels for the upcoming period, typically ranging from a few hours to several days
This prediction helps communities prepare and respond proactively to potential health risks associated with poor air quality. To preserve environmental health and our well-being, regulatory agencies worldwide, including the Environmental Protection Agency (EPA), have introduced air quality limits.
Air quality limits are guidelines that define the highest acceptable concentrations of these air pollutants, that are safe for us to breathe. These guidelines can vary depending on factors such as the pollutant, the exposure duration, and the geographical location. Certain regions impose stricter limits due to their environmental conditions and population density.
Air Quality in Thessaloniki
Thessaloniki, the second-largest city in Greece, has been struggling with poor air quality, due to the following factors:
- High traffic volume, especially from cars and trucks
- Industrial activities, including manufacturing, shipping and energy production
- Residential heating during the winter, often from wood and coal burning
- Topography of Thessaloniki, which is surrounded by mountains, which can trap pollutants
By 2021, the situation had become so critical that the European Commission took legal action against Greece. For this reason, Thessaloniki was chosen as our main area of interest.
Data
Data were gathered from the Municipality of Thessaloniki to implement a data-driven approach for air quality forecasting. To ensure reliability, two urban monitoring stations were chosen: Egnatia and Eptapyrgio. Our primary focus was on assessing the city’s air quality, with particular emphasis on PM2.5 due to its pronounced health implications.
Time-series of PM2.5 and temperature measurements from 2014 to 2016, were carefully chosen as they are the most representative and indicative of the expected impact of anthropogenic emissions on PM2.5 concentrations in the city. This pollutant exhibits remarkable day-to-day variability, with its peak occurring during the winter months when concentrations often exceed the threshold of 35, a limit defined by EPA’s 24-hour limits. In particular, the Egnatia monitoring station, located at the core, registers peak concentrations exceeding 150, while the Eptapyrgio monitoring station, located on the outskirts, registers peak concentrations exceeding 80.
However, during the preprocessing phase, some data gathered from these stations was missing. So, we used a data imputation method named linear interpolation to estimate this missing data. By applying the method, we developed a more reliable machine learning model to forecast air quality in Thessaloniki.
Machine Learning Model
Machine learning methods are the most frequently used in air quality forecasting. Some of these methods are the following:
- Classical regression-based algorithms: Multiple Linear Regression (MLR) and Auto-Regressive Integrated Moving Average (ARIMA) are frequently used because they are simple and interpretable.
- Machine learning regression-based algorithms: Support Vector Regression (SVR), Decision Trees (DT), Random Forest (RF), and K-Nearest Neighbors regression (KNN), are more flexible and accurate than the classical regression-based algorithms.
- Deep learning algorithms: Multi-Layer Perceptron neural networks (MLP), Convolutional Neural Networks (CNN), Recurrent Neural Networks (RNN), and Long Short-Term Memory neural networks (LSTM), are known to capture complex temporal and spatial patterns in time-series data.
Among these methods, LSTM networks were chosen due to their ability to address time-series problems, such as the air quality forecasting. In fact, LSTM networks are the most frequently used deep learning method. It is used in 36.13% of all deep learning-based research papers and it represents the 27.6% of the total use of deep learning algorithms in air quality forecasting. This wide usage is due to their architecture.
LSTM, a type of RNN architecture, consists of the following parts:
- Cell: Stores the data.
- Forget gate: Decides what data to remember and to forget over time.
- Input gate: Decides the amount of data that will be stored in the cell.
- Output gate: Predicts the value of data for the upcoming period.
Our LSTM models features are the following:
- Sequential architecture with three stacked LSTM layers
- Each LSTM layer is followed by dropout layers
- Dense output layer followed by a dropout layer
- Hyperparameter tuning, such as batch size, learning rate and lookback window (aka lag), through manual trial-and-error method with validation data
We chose to use only two measurements, PM2.5 and temperature, as inputs for the models, given their role in improving model performance. Additionally, by incorporating location data (latitude and longitude) as inputs, the model’s performance improved even more.
Sanity check
However, before initiating the experiments regarding Thessaloniki, our initial objective was to evaluate our LSTM implementation by comparing it to a research paper, on publicly available data. This preliminary step served as a “sanity check” to ensure the reliability of our LSTM approach. This methodological stage is crucial, mainly because there is a lack of papers addressing air quality forecasting specific to Thessaloniki, making direct comparisons a noteworthy challenge.
In order to do this, we used Beijing Multi-Site Air-Quality dataset, which contains hourly measurements from 12 nationally-controlled air-quality monitoring sites across Beijing, China. We compared our model to the LSTM implementation presented in the paper titled “Air Quality Forecasting with Hybrid LSTM and Extended Stationary Wavelet Transform” and conducted experiments with an LSTM model for next-hour forecasts, using the preceding 15 hours as input. The outcomes indicated a close alignment between the performance of our LSTM implementation and the results reported in the paper mentioned.
Approach
In the experiments regarding Thessaloniki, forecasts were done using data from the preceding 15 days (about 2 weeks) as input. We used two distinct types of models:
- Model designed for next-day forecasts
- Model designed for 5-day forecasts, one prediction for each day
And we tested two distinct training approaches for each model type:
- In the first approach, we trained and evaluated the model using the data of each station separately
- In the second approach, we trained a model using combined training data from both stations and evaluated its performance on the test data of each station separately
The aim of these training approaches was to examine whether models trained exclusively on data from a single station would outperform those trained on both stations.
These experiments involved training a model on the data from 2014 – 2015 (training data) of a particular station and evaluating its performance on the corresponding test data from 2016. Moreover, to evaluate the next-day and 5-day forecasting models, we used standard regression metrics, with a particular focus on metrics such as RMSE (Root Mean Square Error) and normalized RMSE. Finally, for the 5-day forecasting model, we conducted separate evaluations for each of the five predicted days.
Results
Eventually, the performance of the next-day forecasting model closely resembled the next-day prediction of the 5-day forecasting model, rendering the former redundant. Training on each station separately was anticipated to yield more accurate forecasts, yet the outcome was only slightly better. However, the utilization of location data as inputs allowed the model trained on both stations to achieve comparable performance to the model trained on each station separately. Moreover, as expected, a decrease in error was observed during the initial days, followed by an increase as the days progressed.
In the following figure, the red dots represent the recorded PM2.5 values (target values) over a 20-day period, with the initial 7 values estimated through interpolation due to missing data. Meanwhile, the green dots represent the prediction for the last 5 days based on the preceding 15 days as input. Although the model’s daily predictions are not flawless, it successfully captures the overall trend of increasing PM2.5 concentrations over the upcoming 5 days, rising from approximately 15 to the upper 20s.
In summary, our study highlights the effectiveness of LSTM networks in addressing air quality forecasting challenges. We presented insights into model selection, training approaches, and input features, culminating in a model capable of predicting air quality trends for the impending days. Our work contributes to the ongoing efforts to better comprehend and manage air pollution’s impact, thereby safeguarding both the environment and our well-being.
Summary
Despite being a city with notably degraded air quality, Thessaloniki, Greece, has received relatively limited attention in the literature concerning the effects of air pollution on human health compared to other regions with similar issues.
Rapid urbanization accompanying economic growth contributes significantly to the degradation of air quality, posing risks to human health and the environment. Therefore, precise analysis and forecasting of air quality are crucial for sustainable development.
In order to achieve accurate results, we used LSTM networks, which proved to be very effective. We presented insights into model selection, training approaches, and input features, resulting in a model capable of forecasting air quality for the upcoming period. This contributes to the broader goal of understanding and managing air pollution, which is important for keeping our environment and ourselves healthy.
References & Resources
- Beijing Multi-Site Air-Quality Dataset
- Belavadi, S.V., Rajagopal, S., Ranjani, R., Mohan, R., 2020. Air Quality Forecasting using LSTM RNN and Wireless Sensor Networks. Procedia Computer Science, vol. 170, 241-248.
- Brauer, M., 2016. The global burden of disease from air pollution. In: 2016 AAAS Annual Meeting (February 11-15, 2016). Aaas.
- EEA, Air Quality in Europe – 2012 Report; EEA: Copenhagen, Denmark, 2012.
- EEA. Air Quality in Eurpope – 2018 Report; EEA: Copenhagen, Denmark, 2018.
- Gusten, H., Heinrich, G., Monnich, E., Weppner, J., Cvitas, T., Klainsinc, L., Varotsos, C.A., Moussiopoulos, N., 1997. Thessaloniki ’91 Field measurement campaign – II. Ozone formation in the greater Thessaloniki area. Atmospheric Environment, vol. 37 (8), 1115-1126.
- IQAir, 2024.
- Karanasiou, A., Querol, X., Alastuey, A., Perez, N., Pey, J., Perrino, C., Berti, G., Gandini, M., Poluzzi, V., Ferrari, S., de la Rosa, J., Pascal, M., Samoli, E., Kelessis, A., Sunyer, J., Alessandrini, E., Stafoggia, M., Forastiere, F., the MED-PARTICLES Study Group, 2014. Particulate matter and gaseous pollutants in the Mediterranean Basin: Results from the MED-PARTICLES project. Science of the Total Environment, vol. 488-489, 297-315.
- Méndez, M., Merayo, M.G. & Núñez, M. Machine learning algorithms to forecast air quality: a survey. Artif Intell Rev 56, 10031–10066 (2023).
- Pleijel, H., 2000. Ground-level ozone. A problem largely ignored in southern Europe. In Air Pollution and Climate Series, Swedish NGO Secretariat on Acid Rain; Swedish NGO Secretariat on Acid Rain: Göteborg, Sweden, p. 28.
- Sicard, P., Agathokleous, E., De Marco, A., Paoletti, E., Catalayud, V., 2021. Urban population exposure to air pollution in Europe over the last decades. Environmental Sciences Europe, vol. 33:28.
- Slini, T., Kaprara, A., Karatzas, K., Moussiopoulos, N., 2006. PM10 forecasting for Thessaloniki, Greece. Environmental Modelling & Software, vol. 21, 559-565.
- World Health Organization (WHO), 2023. Monitoring air pollution levels is key to adopting and implementing WHO’s Global Air Quality Guidelines.
- Yu, Y., Si, X., Hu, C., Zhang, J., 2019. A review of Recurrent Neural Networks: LSTM Cells and Network Architectures. Neural Computation, vol. 31 (7), 1235-1270.
- Zeng, Y., et al., 2021. Air Quality Forecasting with Hybrid LSTM and Extended Stationary Wavelet Transform. Research Square.
- https://www.ekathimerini.com/news/1160120/greece-taken-to-court-over-thessaloniki-air-pollution/