Netinfo Security ›› 2024, Vol. 24 ›› Issue (3): 473-485.doi: 10.3969/j.issn.1671-1122.2024.03.012

Previous Articles     Next Articles

TAP Rule Processing System Based on Federated Learning and Blockchain Technology

XUE Mingzhu, HU Liang, WANG Ming, WANG Feng()   

  1. College of Computer Science and Technology, Jilin University, Changchun 130012, China
  • Received:2023-12-20 Online:2024-03-10 Published:2024-04-03
  • Contact: WANG Feng E-mail:wangfeng12@mails.jlu.edu.cn

Abstract:

Trigger-action programming (TAP) provides a convenient programming paradigm for users to interact with Internet of Things (IoT) devices. Analyzing user-defined TAP rules using machine learning techniques enables functionalities such as TAP rule recommendation and generation, and can improve user experience. However, TAP rules may contain personal privacy information, raising concerns about data upload and sharing. The paper proposes a TAP rule processing system based on federated learning and blockchain technology. Users can train TAP models locally without uploading private data. In order to solve the problem of centralized server single point failure and prevent malicious model parameter uploading, this article uses blockchain technology to improve the centralized TAP federated learning architecture. Users transmit locally updated model gradients to miners in the blockchain for anomaly detection and cross-validation. The mining committee integrated accumulated gradients from normal users to obtain a global model, connected as a block on the blockchain, available for download and use by normal users. The article uses a lightweight unsupervised non-negative matrix factorization method to verify the effectiveness of the proposed distributed learning architecture based on federated learning and blockchain. Experiments confirm that the architecture can effectively protect the privacy in TAP data, and that miners in the blockchain can well identify malicious model parameters, ensuring model stability.

Key words: trigger-action programming, non-negative matrix factorization, federated learning, blockchain

CLC Number: