Blockchain-Driven Incentive Mechanism and Multi-Level Federated Learning Method for Behavior Detection in the Internet of Vehicles
Abstract
:1. Introduction
2. Related Work
3. System Model
4. Methodology
4.1. Prepaid-Based Vehicle Node Selection
Algorithm 1 Prepaid-Based Vehicle Node Selection |
Input: Nmax, Tmax, λ, γ1, γ2, θ1, θ2; vehicle set V = {v1, …, vN}, each vi has: Rewardi, , VCi, MLi, BWi, Di, , EOi,j,max |
Output: Selected vehicle set Vselected |
1: /* Compute driving record DRi using Equation (1) */ |
2: for each vehicle vi ∈ V do |
3: Compute DRi |
4: end for |
5: /* Compute task complexity TCi using Equation (2) */ |
6: for each vehicle vi ∈ V do |
7: Compute trainable rounds per model |
8: Compute TCi |
9: end for |
10: /* Compute prepaid value Pi using Equation (3) */ |
11: for each vehicle vi ∈ V do |
12: Compute Pi |
13: end for |
14: /* Sort and select top Nmax nodes */ |
15: Sort vehicles by Pi in descending |
16: Select top Nmax vehicles into Vselected |
17: return Vselected |
4.2. Reputation-Based Federated Learning
Algorithm 2 Reputation-Based Federated Learning |
Input: M RSU nodes, L vehicle nodes, initial reputation {LRi}, weights ω 1, ω2, adjustment parameters γ, η, attributes {rai} |
Output: Aggregated global model Qb |
1: /* Compute local reputation LRi using Equation (6) */ |
2: for each vehicle node i ∈ V do |
3: Compute message accuracy Turei |
4: Compute LRi |
5: end for |
6: /* Update time-based reputation using Equation (8) */ |
7: for each time t and node i ∈ V do |
8: Compute |
9: end for |
10: /* Federated learning process*/ |
11: for each training round t do |
12: for each vehicle node i ∈ V do |
13: Train model on Si and update θi |
14: end for |
15: /* RSU lightweight aggregation using Equation (9) */ |
16: Compute global model |
17: /* Broadcast global model using Equation (10) */ |
18: for each vehicle i ∈ V do |
19: Receive for next round |
20: end for |
21: end for |
22: /* RSU full node aggregation using Equation (11) */ |
23: Compute final global model Qb |
24: return Qb |
4.3. Reputation-Based Incentive Mechanism
Algorithm 3 Reputation-Based Incentive Mechanism |
Input: Training sets {Si}, CPU frequency fij, bandwidth BWi, transmission power ρi |
Output: Reward values {Rewardi} |
1: /* Compute local training time using Equation (12) */ |
2: for each vehicle i ∈ V and model j do |
3: Compute |
4: end for |
5: /* Compute total energy consumption*/ |
6: for each vehicle i ∈ V and model j do |
7: Compute , ri, , , total energy Ei |
8: end for |
9: /* Compute reward using Equation (19) */ |
10: for each vehicle i ∈ V do |
11: Compute Rewardi |
12: end for |
13: return {Rewardi} |
4.4. Computational Complexity Analysis
5. Experimental Evaluation
5.1. Environment and Parameters of the Experiment
5.2. Experimental Evaluation of Multilevel Federated Learning Based on Vehicle Selection Algorithms
5.3. Experimental Evaluation of Reputation-Based Reward Mechanism Algorithms
- Storage amount evaluation
- 2.
- Comparative evaluation of trusted nodes
5.4. Summary of Experiments
- Trade-offs in model selection
- 2.
- Management of communication overhead in federated learning
- 3.
- Effectiveness of the reward mechanism
- 4.
- Dynamic Adjustment of Node Performance and Contribution
6. Summary and Scope
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Lu, N.; Cheng, N.; Zhang, N.; Shen, X.; Mark, J.W. Connected vehicles: Solutions and challenges. IEEE Internet Things J. 2014, 1, 289–299. [Google Scholar] [CrossRef]
- Catherine, H.; James, W.; IDC. China Connected Vehicle Market Report. 2023. Available online: https://s3.cn-north-1.amazonaws.com.cn/aws-dam-prod/2023_IDC_China_Connected_Vehicle_Market_Report_Reprint.pdf (accessed on 15 June 2024).
- Boualouache, A.; Ghamri-Doudane, Y. Zero-x: A blockchain-enabled open-set federated learning framework for zero-day attack detection in iov. IEEE Trans. Veh. Technol. 2024, 73, 12399–12414. [Google Scholar]
- Turgeman, N. Infographic: Top Real-World Threats Facing Connected Cars and Fleets. 2022. Available online: https://upstream.auto/blog/infographic-top-real-world-threats-facing-connected-cars-fleets/ (accessed on 1 September 2022).
- Xie, N.; Zhang, C.; Yuan, Q.; Kong, J.; Di, X. IoV-BCFL: An intrusion detection method for IoV based on blockchain and federated learning. Ad Hoc Netw. 2024, 163, 103590. [Google Scholar] [CrossRef]
- Boualouache, A.; Engel, T. A survey on machine learning-based misbehavior detection systems for 5g and beyond vehicular networks. IEEE Commun. Surv. Tutor. 2023, 25, 1128–1172. [Google Scholar] [CrossRef]
- Inuwa, M.M.; Das, R. A comparative analysis of various machine learning methods for anomaly detection in cyber attacks on IoT networks. Internet Things 2024, 26, 101162. [Google Scholar] [CrossRef]
- Din, I.U.; Khan, K.H.; Almogren, A.; Guizani, M. Machine Learning for Trust in Internet of Vehicles and Privacy in Distributed Edge Networks. IEEE Internet Things J. 2025, 1-1. [Google Scholar] [CrossRef]
- Zamanzadeh Darban, Z.; Webb, G.I.; Pan, S.; Aggarwal, C.; Salehi, M. Deep learning for time series anomaly detection: A survey. ACM Comput. Surv. 2024, 57, 1–42. [Google Scholar] [CrossRef]
- Gonaygunta, H.; Nadella, G.S.; Pawar, P.P.; Kumar, D. Enhancing cybersecurity: The development of a flexible deep learning model for enhanced anomaly detection. In Proceedings of the 2024 Systems and Information Engineering Design Symposium (SIEDS), Charlottesville, VA, USA, 3 May 2024; pp. 79–84. [Google Scholar]
- Qi, P.; Chiaro, D.; Guzzo, A.; Ianni, M.; Fortino, G.; Piccialli, F. Model aggregation techniques in federated learning: A comprehensive survey. Future Gener. Comput. Syst. 2024, 150, 272–293. [Google Scholar] [CrossRef]
- Pei, J.; Liu, W.; Li, J.; Wang, L.; Liu, C. A review of federated learning methods in heterogeneous scenarios. IEEE Trans. Consum. Electron. 2024, 70, 5983–5999. [Google Scholar] [CrossRef]
- Ali, S.; Li, Q.; Yousafzai, A. Blockchain and federated learning-based intrusion detection approaches for edge-enabled industrial IoT networks: A survey. Ad Hoc Netw. 2024, 152, 103320. [Google Scholar] [CrossRef]
- Feng, L.; Zhao, Y.; Guo, S.; Qiu, X.; Li, W.; Yu, P. Blockchain-based asynchronous federated learning for Internet of Things. IEEE Trans. Comput 2021, 71, 1092–1103. [Google Scholar] [CrossRef]
- Kim, H.; Park, J.; Bennis, M.; Kim, S.-L. Blockchained on-device federated learning. IEEE Commun. Lett. 2019, 24, 1279–1283. [Google Scholar] [CrossRef]
- Zou, Y.; Shen, F.; Yan, F.; Lin, J.; Qiu, Y. Reputation-based regional federated learning for knowledge trading in blockchain-enhanced IoV. In Proceedings of the 2021 IEEE Wireless Communications and Networking Conference (WCNC), Nanjing, China, 29 March–1 April 2021; pp. 1–6. [Google Scholar]
- Yang, Q.; Liu, Y.; Chen, T.; Tong, Y. Federated machine learning: Concept and applications. ACM Trans. Intell. Syst. Technol. (TIST) 2019, 10, 1–19. [Google Scholar] [CrossRef]
- Lu, Y.; Huang, X.; Zhang, K.; Maharjan, S.; Zhang, Y. Blockchain empowered asynchronous federated learning for secure data sharing in internet of vehicles. IEEE Trans. Veh. Technol. 2020, 69, 4298–4311. [Google Scholar] [CrossRef]
- Liu, W.; Xu, X.; Wu, L.; Qi, L.; Jolfaei, A.; Ding, W.; Khosravi, M.R. Intrusion detection for maritime transportation systems with batch federated aggregation. IEEE Trans. Intell. Transp. Syst. 2022, 24, 2503–2514. [Google Scholar] [CrossRef]
- Rahman, S.A.; Tout, H.; Talhi, C.; Mourad, A. Internet of things intrusion detection: Centralized, on-device, or federated learning? IEEE Netw. 2020, 34, 310–317. [Google Scholar] [CrossRef]
- Khan, I.A.; Razzak, I.; Pi, D.; Khan, N.; Hussain, Y.; Li, B.; Kousar, T. Fed-inforce-fusion: A federated reinforcement-based fusion model for security and privacy protection of IoMT networks against cyber-attacks. Inf. Fusion 2024, 101, 102002. [Google Scholar] [CrossRef]
- Driss, M.; Almomani, I.; e Huma, Z.; Ahmad, J. A federated learning framework for cyberattack detection in vehicular sensor networks. Complex Intell. Syst. 2022, 8, 4221–4235. [Google Scholar] [CrossRef]
- Hammoud, A.; Otrok, H.; Mourad, A.; Dziong, Z. On demand fog federations for horizontal federated learning in IoV. IEEE Trans. Netw. Serv. Manag. 2022, 19, 3062–3075. [Google Scholar] [CrossRef]
- Yang, J.; Hu, J.; Yu, T. Federated AI-enabled in-vehicle network intrusion detection for internet of vehicles. Electronics 2022, 11, 3658. [Google Scholar] [CrossRef]
- Qian, Y.; Rao, L.; Ma, C.; Wei, K.; Ding, M.; Shi, L. Toward efficient and secure object detection with sparse federated training over internet of vehicles. IEEE Trans. Intell. Transp. Syst. 2024, 25, 14507–14520. [Google Scholar] [CrossRef]
- Liang, C.; Shanmugam, B.; Azam, S.; Karim, A.; Islam, A.; Zamani, M.; Kavianpour, S.; Idris, N.B. Intrusion detection system for the internet of things based on blockchain and multi-agent systems. Electronics 2020, 9, 1120. [Google Scholar] [CrossRef]
- Sengupta, J.; Ruj, S.; Bit, S.D. A comprehensive survey on attacks, security issues and blockchain solutions for IoT and IIoT. J. Netw. Comput. Appl. 2020, 149, 102481. [Google Scholar] [CrossRef]
- Rao, B.T.; Narayana, V.L.; Pavani, V.; Anusha, P. Use of blockchain in malicious activity detection for improving security. Int. J. Adv. Sci. Technol. 2020, 29, 9135–9146. [Google Scholar]
- Liu, C.H.; Lin, Q.; Wen, S. Blockchain-enabled data collection and sharing for industrial IoT with deep reinforcement learning. IEEE Trans. Ind. Inform. 2018, 15, 3516–3526. [Google Scholar] [CrossRef]
- He, X.; Chen, Q.; Tang, L.; Wang, W.; Liu, T. CGAN-based collaborative intrusion detection for UAV networks: A blockchain-empowered distributed federated learning approach. IEEE Internet Things J. 2022, 10, 120–132. [Google Scholar] [CrossRef]
- Chai, H.; Leng, S.; Chen, Y.; Zhang, K. A hierarchical blockchain-enabled federated learning algorithm for knowledge sharing in internet of vehicles. IEEE Trans. Intell. Transp. Syst. 2020, 22, 3975–3986. [Google Scholar] [CrossRef]
- Ulllah, I.; Deng, X.; Pei, X.; Mushtaq, H. SecBFL-IoV: A Secure Blockchain-Enabled Federated Learning Framework for Resilience Against Poisoning Attacks in Internet of Vehicles. In Proceedings of the Chinese Conference on Pattern Recognition and Computer Vision (PRCV), Urumqi, China, 18–20 October 2024; pp. 410–428. [Google Scholar]
- García, S.; Erquiaga, M.J.; Zunino, A. IoT-23: A Labeled Dataset for IoT Network Traffic with Malicious and Benign Behavior; Stratosphere Laboratory, Czech Technical University in Prague: Prague, Czech Republic, 2020. [Google Scholar]
- Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
Symbol | Descriptions |
---|---|
i | The CAVs node |
j | The locally trained models for CAV nodes |
fij | The CPU and GPU cycle frequency of i during local model j |
cij | The CPU cycles required for i during local model j using a single data sample |
The amount of local data at i | |
The computational time for iterative learning of local model j of i | |
The effective capacitance parameters of the compute chipset of i | |
The CPU energy consumption consumed by one iteration in the model j | |
η | Learning Rate |
The accuracy of the local model j | |
The data transmission rate of node i | |
The transmission power of the node i | |
Point-to-point channel gain from the node i to RSUs | |
The total time to participate in one iteration of the global multilevel model | |
The transmission energy consumption of the global multilevel model | |
The total energy consumption of node i during one global iteration | |
The learning outcomes produced by each model j of the node i | |
The model parameter produced by each model j of the node i | |
Block | |
Preliminary global model parameters | |
Integrate the global model parameters | |
The relevant metric function of the reputation attribute | |
The initialized reputation value of the node i | |
The local reputation value of the node i | |
Federated learning model results for RSU aggregation | |
The prepayment amount of the node i | |
The excitation acquired by the node i |
Configuration | Items | Parameters |
---|---|---|
Hardware | CPU | Intel Core i7-9700K @ 3.60GHz |
Memory | 32 GB DDR4 RAM | |
Operating system | Ubuntu 20.04 LTS 64-bit | |
Graphics card | RTX 4090 | |
Software | Software version | TensorFlow 2.5.0 NumPy 1.19.5 |
Parameters | Effective capacitance parameter | ) |
Background noise | −174 | |
Gain of channel | ||
CPU cycles for training data samples | ||
Transmit power of vehicle V and RSU | (0.1, 2) | |
Batch size | 64 | |
Ratio of training and test set | 80:20 | |
Local epochs | 2 | |
Learning rate | 0.001 |
Learning Rate | Batch Size | Loss | Accuracy | Precision | Recall | f1 |
---|---|---|---|---|---|---|
0.0001 | 64 | 0.642 | 0.763 | 0.722 | 0.782 | 0.751 |
0.0005 | 64 | 0.595 | 0.772 | 0.744 | 0.785 | 0.764 |
0.001 | 64 | 0.483 | 0.79 | 0.773 | 0.793 | 0.783 |
0.005 | 64 | 0.575 | 0.77 | 0.716 | 0.779 | 0.746 |
0.01 | 64 | 0.629 | 0.743 | 0.7 | 0.765 | 0.731 |
0.5 | 64 | 1.092 | 0.65 | 0.636 | 0.66 | 0.647 |
0.001 | 32 | 0.502 | 0.759 | 0.686 | 0.776 | 0.728 |
0.001 | 64 | 0.483 | 0.790 | 0.772 | 0.793 | 0.783 |
0.001 | 128 | 0.502 | 0.781 | 0.736 | 0.789 | 0.761 |
0.001 | 256 | 0.578 | 0.776 | 0.645 | 0.785 | 0.708 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Shi, Q.; Wang, L.; Bao, Y.; Chen, C. Blockchain-Driven Incentive Mechanism and Multi-Level Federated Learning Method for Behavior Detection in the Internet of Vehicles. Symmetry 2025, 17, 669. https://doi.org/10.3390/sym17050669
Shi Q, Wang L, Bao Y, Chen C. Blockchain-Driven Incentive Mechanism and Multi-Level Federated Learning Method for Behavior Detection in the Internet of Vehicles. Symmetry. 2025; 17(5):669. https://doi.org/10.3390/sym17050669
Chicago/Turabian StyleShi, Quan, Lankai Wang, Yinxin Bao, and Chen Chen. 2025. "Blockchain-Driven Incentive Mechanism and Multi-Level Federated Learning Method for Behavior Detection in the Internet of Vehicles" Symmetry 17, no. 5: 669. https://doi.org/10.3390/sym17050669
APA StyleShi, Q., Wang, L., Bao, Y., & Chen, C. (2025). Blockchain-Driven Incentive Mechanism and Multi-Level Federated Learning Method for Behavior Detection in the Internet of Vehicles. Symmetry, 17(5), 669. https://doi.org/10.3390/sym17050669