| Literature DB >> 35676965 |
Xiaotian Qiu1,2, Dengfeng Yao1, Xinchen Kang1, Abudukelimu Abulizi3.
Abstract
The current development of blockchain, technically speaking, still faces many key problems such as efficiency and scalability issues, and any distributed system faces the problem of how to balance consistency, availability, and fault tolerance need to be solved urgently. The advantage of blockchain is decentralization, and the most important thing in a decentralized system is how to make nodes reach a consensus quickly. This research mainly discusses the blockchain and K-means algorithm for edge AI computing. The natural pan-central distributed trustworthiness of blockchain provides new ideas for designing the framework and paradigm of edge AI computing. In edge AI computing, multiple devices running AI algorithms are scattered across the edge network. When it comes to decentralized management, blockchain is the underlying technology of the Bitcoin system. Due to its characteristics of immutability, traceability, and consensus mechanism of transaction data storage, it has recently received extensive attention. Blockchain technology is essentially a public ledger. This is done by recording data related to trust management to this ledger. To collaboratively complete artificial intelligence computing tasks or jointly make intelligent group decisions, frequent communication is required between these devices. By integrating idle computing resources in an area, a distributed edge computing platform is formed. Users obtain benefits by sharing their computing resources, and nodes in need complete computing tasks through the shared platform. In view of the identity security problems faced in the sharing process, this article introduces blockchain technology to realize the trust between users. All participants must register a secure identity in the blockchain network and conduct transactions in this security system. A K-means algorithm suitable for edge environments is proposed to identify different degradation stages of equipment operation reflected by multiple types of data. Based on the prediction of the fault state for a single type of data, the algorithm uses the historical data of multiple types of data together with the prediction data to predict the fault stage. During the research process, the average optimization energy consumption of K-means algorithm is 14.6% lower than that of GA. On the basis of designing a resource allocation scheme based on blockchain, the problem of how the participants can realize reliable resource use according to the recorded data on the chain is studied. The article implements the verification of the legality of the use of blockchain resources. In addition, a control node is introduced to master the global real-time information of the network to provide data support for the user's choice.Entities:
Mesh:
Year: 2022 PMID: 35676965 PMCID: PMC9168108 DOI: 10.1155/2022/1153208
Source DB: PubMed Journal: Comput Intell Neurosci
Figure 1System model.
Figure 2Structure of a BAcombo node.
Dataset information of 10 blocks (blocks 0–9).
| Block number | Timestamp | Block size | Used space | PoW |
|---|---|---|---|---|
| 0 | 0 | 540 | 5 | 17179869184 |
| 1 | 1438269988 | 537 | 10 | 17171480576 |
| 2 | 1438270017 | 544 | 47 | 171 63096064 |
| 3 | 1438270048 | 1079 | 40 | 171 54715646 |
| 4 | 1438270077 | 1079 | 6 | 17146339321 |
| 5 | 1438270083 | 537 | 50 | 17154711556 |
| 6 | 1438270107 | 537 | 41 | 17146335232 |
| 8 | 1438270110 | 1078 | 108 | 17154707466 |
| 9 | 1438270112 | 544 | 10 | 171 63083788 |
Minimum energy consumption comparison of four algorithms.
|
| SA | GA | ACO | K-means |
|---|---|---|---|---|
|
| 108.4 | 108.4 | 95.3 | 88.9 |
|
| 109.5 | 109.5 | 98.1 | 93.6 |
|
| 111.2 | 111.2 | 99.9 | 98.5 |
Figure 3Energy consumption optimization values of various algorithms under different MEC numbers.
Comparison of iteration times of the four algorithms.
|
| SA | GA | ACO | K-means |
|---|---|---|---|---|
|
| 143 | 73 | 52 | 43 |
|
| 109 | 59 | 66 | 57 |
|
| 218 | 90 | 107 | 66 |
Figure 4Iterative process of the four algorithms.
Figure 5Changes in the number of blocks and the energy consumption of processing data.
Figure 6Latency comparison of different processing schemes.
Specific parameter settings.
| Significance | Numerical value |
|---|---|
| The local computing power of the smart terminal | Evenly distributed between 1 and 2 GHash/s |
| Block size of smart terminal | 1 Mbit |
| Fixed income on blocks | 7000$ |
| Variable revenue coefficient of the block | 1,000 $/Mbit |
| Average generation rate per block | 1/600 |
| Marginal price of computing power | 10 $/GHash |
Figure 7Overall net benefit as a function of μ (total computing power obtained by all smart terminals from edge servers).
Performance testing of K-means algorithm.
| 5 user scenarios |
|
|
|
|---|---|---|---|
| K-means algorithm results | 52.4482 | 52.6437 | 52.8338 |
| K-means algorithm consume time | 0.314 s | 0.278 s | 0.249 s |
| CVX results | 52.4482 | 52.6437 | 52.8338 |
| CVX consume time | 148.5 s | 154.4 s | 140.39 s |
Figure 8The impact of edge servers providing computing power to intelligent terminals on the cost coefficient p.
Research environment.
| Bitrate level | Bitrate | Bottleneck bandwidth |
|---|---|---|
| 0 | 50 | 787611 |
| 1 | 200 | |
| 2 | 300 |
Figure 9Comparison of algorithm consensus latency.