信息网络安全 ›› 2024, Vol. 24 ›› Issue (3): 473-485.doi: 10.3969/j.issn.1671-1122.2024.03.012

• 技术研究 • 上一篇    下一篇

基于联邦学习和区块链技术的TAP规则处理系统

薛茗竹, 胡亮, 王明, 王峰()   

  1. 吉林大学计算机科学与技术学院,长春 130012
  • 收稿日期:2023-12-20 出版日期:2024-03-10 发布日期:2024-04-03
  • 通讯作者: 王峰 E-mail:wangfeng12@mails.jlu.edu.cn
  • 作者简介:薛茗竹(1999—),女,吉林,硕士研究生,主要研究方向为区块链、隐私保护|胡亮(1968—),男,吉林,教授,博士,CCF会员,主要研究方向为网络安全|王明(1998—),男,山西,硕士研究生,主要研究方向为物联网数据挖掘|王峰(1987—),男,吉林,副教授,博士,CCF会员,主要研究方向为计算机系统架构、网络空间安全
  • 基金资助:
    国家重点研发计划(2017YFA0604500);吉林省科技发展计划(20220101115JC)

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

摘要:

触发执行编程(Trigger-Action Programming,TAP)为用户联动物联网(Internet of Things,IoT)设备提供了便捷的编程范式。利用机器学习对用户已编辑的TAP规则进行分析,实现TAP规则推荐和生成等功能可以提升用户体验。但TAP规则可能包含个人隐私信息,用户对上传和分享TAP信息存在顾虑。文章提出了基于联邦学习和区块链技术的TAP规则处理系统,用户可在本地进行TAP模型训练,无需上传隐私数据。为解决集中式服务器单点故障和防范恶意模型参数上传的问题,文章利用区块链技术改进集中式TAP联邦学习架构。用户将本地模型更新的累积梯度传输给区块链中的矿工,进行异常识别和交叉验证。矿工委员会整合正常用户提供的累积梯度,得到的全局模型作为一个新区块的数据,链接到区块链上,供用户下载使用。文章采用轻量级无监督的非负矩阵分解方法验证了提出的基于联邦学习和区块链的分布式学习架构的有效性。实验证明该联邦学习架构能有效保护TAP数据中的隐私,并且区块链中的矿工能够很好地识别恶意模型参数,确保了模型的稳定性。

关键词: 触发执行编程, 非负矩阵分解, 联邦学习, 区块链

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

中图分类号: