An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution Forecasting
Energy is at the center of human society and drives the technologies and overall human well-being. Today, artificial intelligence (AI) technologies are widely used for system modeling, prediction, control, and optimization in the energy sector. The internet of things (IoT) is the core of the third w...
Main Authors: | , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2022-08-01
|
Series: | Energies |
Subjects: | |
Online Access: | https://www.mdpi.com/1996-1073/15/16/5892 |
_version_ | 1797445743913467904 |
---|---|
author | Yuan Liu Wangyang Yu Cong Gao Minsi Chen |
author_facet | Yuan Liu Wangyang Yu Cong Gao Minsi Chen |
author_sort | Yuan Liu |
collection | DOAJ |
description | Energy is at the center of human society and drives the technologies and overall human well-being. Today, artificial intelligence (AI) technologies are widely used for system modeling, prediction, control, and optimization in the energy sector. The internet of things (IoT) is the core of the third wave of the information industry revolution and AI. In the energy sector, tens of billions of IoT appliances are linked to the Internet, and these appliances generate massive amounts of data every day. Extracting useful information from the massive amount of data will be a very meaningful thing. Complex event processing (CEP) is a stream-based technique that can extract beneficial information from real-time data through pre-establishing pattern rules. The formulation of pattern rules requires strong domain expertise. Therefore, at present, the pattern rules of CEP still need to be manually formulated by domain experts. However, in the face of complex, massive amounts of IoT data, manually setting rules will be a very difficult task. To address the issue, this paper proposes a CEP rule auto-extraction framework by combining deep learning methods with data mining algorithms. The framework can automatically extract pattern rules from unlabeled air pollution data. The deep learning model we presented is a two-layer LSTM (long short-term memory) with an attention mechanism. The framework has two phases: in the first phase, the anomalous data is filtered out and labeled from the IoT data through the deep learning model we proposed, and then the pattern rules are mined from the labeled data through the decision tree data mining algorithm in the second phase. We compare other deep learning models to evaluate the feasibility of the framework. In addition, in the rule extraction stage, we use a decision tree data mining algorithm, which can achieve high accuracy. Experiments have shown that the framework we proposed can effectively extract meaningful and accurate CEP rules. The research work in this paper will help support the advancement of the sector of air pollution prediction, assist in the establishment of air pollution regulatory strategies, and further contribute to the development of a green energy structure. |
first_indexed | 2024-03-09T13:31:15Z |
format | Article |
id | doaj.art-8131c54674e9449791ac35845daa887d |
institution | Directory Open Access Journal |
issn | 1996-1073 |
language | English |
last_indexed | 2024-03-09T13:31:15Z |
publishDate | 2022-08-01 |
publisher | MDPI AG |
record_format | Article |
series | Energies |
spelling | doaj.art-8131c54674e9449791ac35845daa887d2023-11-30T21:18:16ZengMDPI AGEnergies1996-10732022-08-011516589210.3390/en15165892An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution ForecastingYuan Liu0Wangyang Yu1Cong Gao2Minsi Chen3Ministry of Education Key Laboratory for Modern Teaching Technology, Shaanxi Normal University, Xi’an 710119, ChinaMinistry of Education Key Laboratory for Modern Teaching Technology, Shaanxi Normal University, Xi’an 710119, ChinaSchool of Computer Science and Electronic Engineering, University of Essex, Colchester CO4 3SQ, UKSchool of Computing and Engineering, University of Huddersfield, Huddersfield HD1 3DH, UKEnergy is at the center of human society and drives the technologies and overall human well-being. Today, artificial intelligence (AI) technologies are widely used for system modeling, prediction, control, and optimization in the energy sector. The internet of things (IoT) is the core of the third wave of the information industry revolution and AI. In the energy sector, tens of billions of IoT appliances are linked to the Internet, and these appliances generate massive amounts of data every day. Extracting useful information from the massive amount of data will be a very meaningful thing. Complex event processing (CEP) is a stream-based technique that can extract beneficial information from real-time data through pre-establishing pattern rules. The formulation of pattern rules requires strong domain expertise. Therefore, at present, the pattern rules of CEP still need to be manually formulated by domain experts. However, in the face of complex, massive amounts of IoT data, manually setting rules will be a very difficult task. To address the issue, this paper proposes a CEP rule auto-extraction framework by combining deep learning methods with data mining algorithms. The framework can automatically extract pattern rules from unlabeled air pollution data. The deep learning model we presented is a two-layer LSTM (long short-term memory) with an attention mechanism. The framework has two phases: in the first phase, the anomalous data is filtered out and labeled from the IoT data through the deep learning model we proposed, and then the pattern rules are mined from the labeled data through the decision tree data mining algorithm in the second phase. We compare other deep learning models to evaluate the feasibility of the framework. In addition, in the rule extraction stage, we use a decision tree data mining algorithm, which can achieve high accuracy. Experiments have shown that the framework we proposed can effectively extract meaningful and accurate CEP rules. The research work in this paper will help support the advancement of the sector of air pollution prediction, assist in the establishment of air pollution regulatory strategies, and further contribute to the development of a green energy structure.https://www.mdpi.com/1996-1073/15/16/5892the internet of things (IoT)energy intelligentsustainable citycomplex event processing (CEP) |
spellingShingle | Yuan Liu Wangyang Yu Cong Gao Minsi Chen An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution Forecasting Energies the internet of things (IoT) energy intelligent sustainable city complex event processing (CEP) |
title | An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution Forecasting |
title_full | An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution Forecasting |
title_fullStr | An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution Forecasting |
title_full_unstemmed | An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution Forecasting |
title_short | An Auto-Extraction Framework for CEP Rules Based on the Two-Layer LSTM Attention Mechanism: A Case Study on City Air Pollution Forecasting |
title_sort | auto extraction framework for cep rules based on the two layer lstm attention mechanism a case study on city air pollution forecasting |
topic | the internet of things (IoT) energy intelligent sustainable city complex event processing (CEP) |
url | https://www.mdpi.com/1996-1073/15/16/5892 |
work_keys_str_mv | AT yuanliu anautoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting AT wangyangyu anautoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting AT conggao anautoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting AT minsichen anautoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting AT yuanliu autoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting AT wangyangyu autoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting AT conggao autoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting AT minsichen autoextractionframeworkforceprulesbasedonthetwolayerlstmattentionmechanismacasestudyoncityairpollutionforecasting |