Air quality prediction based on quantum activation function optimized hybrid quantum classical neural network

Yumin Dong, Feifei Li, Tingting Zhu, Rui YanFrontiers in Physics 2024

Abstract

Accurate prediction of the Air Quality Index (AQI) is critical for public health and urban planning but remains a significant challenge due to the complex, non-linear nature of atmospheric pollutants. Traditional deep learning models often struggle with gradient issues and the "dying ReLU" problem during time-series forecasting. This study introduces a hybrid quantum-classical neural network (HQCNN-LSTM) that leverages a novel quantum activation function (QReLU). By combining Variational Quantum Circuits (VQC) for spatial feature extraction with Long Short-Term Memory (LSTM) networks for temporal dependencies, the model achieves higher precision. Experimental results across four major Chinese cities demonstrate that the QReLU-optimized hybrid model significantly outperforms classical benchmarks in terms of RMSE, MAE, and MAPE.

Introduction: The Challenge of Air Quality Forecasting

Predicting air quality involves analyzing a multitude of variables, including PM2.5, $SO_2$, $NO_2$, CO, and $O_3$. These pollutants exhibit intricate spatial correlations and temporal trends that vary based on meteorological conditions and human activity. While classical deep learning architectures like Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) units have become standard tools for this task, they are not without limitations.

Two primary hurdles hinder classical models:

  1. The Gradient Problem: In deep networks processing long time-series data, gradients can vanish or explode, preventing the model from learning long-term dependencies effectively.
  2. The "Dying ReLU" Problem: The Rectified Linear Unit (ReLU) is the most prevalent activation function. However, it outputs zero for any negative input. If a large portion of neurons enter this inactive state, the network's capacity to extract spatial features is severely diminished.

Methodology: The HQCNN-LSTM Architecture

To overcome these limitations, the researchers developed a hybrid architecture that integrates quantum computing principles into the classical deep learning pipeline. The model, termed QRELU-HQCNN-LSTM, follows a multi-stage process to process air quality data.

Figure 1: Model structure diagram showing the integration of HQCNN, pooling, and LSTM layers.

The workflow begins with an input layer receiving multi-pollutant data. This is followed by the Hybrid Quantum Convolutional Neural Network (HQCNN) layer, which performs spatial feature extraction. Unlike classical filters, the HQCNN uses quantum bits (qubits) and Variational Quantum Circuits (VQC) to identify complex patterns. After spatial processing and pooling, the data is fed into an LSTM layer to capture temporal evolutions before reaching the final output layer.

Innovation: Quantum Convolution and the QReLU Function

The core of the spatial extraction process lies in the quantum convolutional layer. Here, classical data is transformed into quantum states through quantum coding.

Figure 2: Detailed architecture of the quantum convolutional layer, featuring VQC and measurement components.

Variational Quantum Circuits (VQC)

As shown in Figure 2, the VQC consists of adjustable quantum gates ($W_i(\theta_i)$) that perform rotations and create entanglement between qubits. This allows the model to explore a much larger feature space than classical convolutions. The "measurement" step then collapses these quantum states back into classical information for further processing.

The Quantum Activation Function (QReLU)

The most significant innovation is the Quantum Activation Function (QReLU). Inspired by the "Leaky ReLU" but implemented within a quantum Hilbert space, QReLU utilizes quantum entanglement to ensure that negative inputs do not result in a complete loss of information. By maintaining a non-zero state for negative values through quantum superposition, the function prevents the "dying ReLU" phenomenon, keeping the network's "neurons" active and improving the robustness of spatial feature extraction.

Experimental Validation

The model was tested using historical air quality data from four Chinese cities: Shanghai, Chengdu, Shenzhen (2015-2016), and Hangzhou (2022-2023). Each dataset included seven input variables, with the goal of predicting the next day's AQI.

Performance Metrics

The QRELU-HQCNN-LSTM model consistently outperformed standard LSTMs and classical CNN-LSTMs. Notable results include:

  • Shenzhen: The model achieved a Root Mean Square Error (RMSE) of 11.48, a 20% improvement over the standard LSTM's 14.38.
  • Shanghai: The inclusion of the QReLU function specifically reduced the RMSE by 1.56 compared to a hybrid model using standard quantum layers without the specialized activation.
  • Generalization: Across all cities, the Mean Absolute Error (MAE) and Mean Absolute Percentage Error (MAPE) were significantly lower, indicating better curve fitting and a superior ability to predict sudden pollution spikes.

Conclusion and Future Work

The integration of quantum mechanics into neural network architectures provides a powerful tool for environmental forecasting. By using quantum entanglement to solve classical activation flaws, the HQCNN-LSTM model offers a more accurate and robust approach to AQI prediction.

While the current implementation relies on quantum simulators—which are computationally intensive on classical hardware—the results pave the way for future deployment on real-world Noisy Intermediate-Scale Quantum (NISQ) devices. Future research will focus on optimizing circuit complexity and testing the model on broader environmental datasets to further validate its scalability and efficiency.

Summary updated

BibTeX
@inproceedings{dong2024air,
  author = {Yumin Dong and Feifei Li and Tingting Zhu and Rui Yan},
  title = {{Air quality prediction based on quantum activation function optimized hybrid quantum classical neural network}},
  booktitle = {Frontiers in Physics},
  year = {2024},
  doi = {10.3389/fphy.2024.1412664},
}
Figure