Edge AI acceleration processing method and device, electronic device and readable storage medium
By introducing blockchain and field programmable gate array technology into edge AI computing, segmenting and processing feature data solves the security and privacy protection problems of edge AI computing, and achieves efficient and safe edge AI accelerated processing.
Patent Information
- Application Number
- CN202110930879.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-08-13
AI Technical Summary
In the existing technology, edge AI computing has security issues, data privacy protection is difficult, and multi-node data sharing trust issues, and the traditional separation of cloud and mobile terminals leads to increased network latency and computing power consumption.
Using an edge computing network integrated with blockchain, feature data is uploaded to the edge platform through segmentation points, and processed using preset artificial intelligence model conversion rules and tools of field programmable gate arrays, combined with brick technology and convolution layering processing to ensure data security and computing efficiency.
It achieves decentralized edge AI acceleration, reduces network transmission costs and delays, enhances the security of data transmission, protects user privacy, and solves trust and security issues through blockchain technology.
Smart Images

Figure CN115706703B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to an edge AI acceleration processing method and device, an electronic device, and a readable storage medium. Background Art
[0002] There are currently two mainstream approaches to using artificial intelligence applications: one is to complete the forward reasoning process of the entire AI algorithm on the mobile terminal; the other is to upload the data to the cloud, and the cloud or edge cloud server will perform forward reasoning and feed the calculation results back to the mobile terminal.
[0003] Applications running on mobile devices, such as face recognition and autonomous driving, mostly use the first method. This method either uses a forward neural network acceleration framework to transplant the network model trained on the PC to the mobile device, and completes the entire reasoning process in the mobile hardware device CPU, GPU, and DSP; or uses a neural network backend acceleration library to call hardware devices to accelerate AI operations.
[0004] The hardware performance on mobile devices is far inferior to that of servers, so many lightweight networks have been developed specifically for mobile devices. However, due to the limited accuracy of these networks, they cannot be applied in many fields.
[0005] The second method is usually used in the industry to process images, video streams, voice and text data using deep learning technology. This method either uses the powerful GPU cluster resources on the cloud server to complete the network reasoning process, or uses the edge cloud server close to the mobile terminal to reduce network latency and accelerate reasoning. After the reasoning process is completed, the results are fed back to the mobile device.
[0006] In the paper "Neurosurgeon: Collaborative Intelligence Between the Cloud and Mobile Edge", a third method in addition to the above two solutions is proposed: according to the algorithm model, current network conditions, mobile device hardware conditions, etc., the forward neural network is intelligently divided at the network layer granularity, with one part running on the mobile device and the other part running on the cloud server. This approach reduces the system latency while also reducing the power consumption of mobile devices for computing. It is an effective method to intelligently divide the algorithm model according to the real-time situation and complete the reasoning process through the collaboration between the mobile terminal and the edge computing platform, but there are the following defects: 1) Security issues brought about by the computing sharing process; 2) Confidentiality of network models, parameters and privacy of user data; 3) Trust issues in multi-node data sharing. Summary of the invention
[0007] The present invention provides an edge AI acceleration processing method and device, an electronic device and a readable storage medium to solve the technical defects existing in the prior art.
[0008] The present invention provides an edge AI acceleration processing method, comprising:
[0009] Build an edge computing network that integrates blockchain;
[0010] Based on the structure of the edge computing network, the edge computing network is divided to obtain division points;
[0011] Uploading the feature data to the edge platform at the split point;
[0012] Based on preset field programmable gate array artificial intelligence model conversion rules and tools, the feature data is processed and the calculation results are fed back to the mobile device.
[0013] According to the edge AI acceleration processing method of the present invention, the artificial intelligence model conversion rules and tools based on the preset field programmable gate array process the feature data, including:
[0014] The brick technology is used to split the channel-dimensional features into vectors of the first vector and the second vector, and input them into multiple non-blocking parallel processing computing processing units. Each clock cycle takes the corresponding bricks according to the number of tiles, and reassembles them in the on-chip cache through blocking channels to form a feature map.
[0015] According to the edge AI acceleration processing method of the present invention, the artificial intelligence model conversion rules and tools based on the preset field programmable gate array process the feature data, and further include:
[0016] The artificial intelligence model is layered by convolution. When an artificial intelligence model has N layers of convolution operations, the description of each operand in the generated .h header file is discribe[num], num=N array;
[0017] After each layer of features is loaded into the cache, it is split into bricks and all are input into the computing unit after a clock cycle. While the feature values are input into the computing unit, the next layer of parameters are preloaded into the cache.
[0018] The model parameters of each operator in each layer trained by the artificial intelligence model are stored in binary file format in order according to the channel dimension.
[0019] According to the edge AI acceleration processing method of the present invention, the edge computing network is segmented to obtain segmentation points, and the method further comprises:
[0020] Verify the nodes on the blockchain.
[0021] According to the edge AI acceleration processing method of the present invention, before uploading the feature data to the edge platform at the split point, it includes:
[0022] The network condition is judged, and in response to a good rate of the network condition being greater than a preset threshold, the feature data is uploaded to the edge platform at the split point.
[0023] According to the edge AI acceleration processing method of the present invention, before uploading the feature data to the edge platform at the split point, it includes:
[0024] The split point is adjusted according to the server load, and the feature data is uploaded to the edge platform at the adjusted split point.
[0025] According to the edge AI acceleration processing method of the present invention, before feeding back the calculation result to the mobile device, the method includes:
[0026] Based on the calculation results, the credit of the edge computing network is improved and put on the chain.
[0027] The present invention also provides an edge AI acceleration processing device, comprising:
[0028] Network building modules for building edge computing networks that integrate blockchain;
[0029] A network segmentation module, used to segment the edge computing network based on the structure of the edge computing network to obtain segmentation points;
[0030] A data transmission module, used to upload the feature data to the edge platform at the split point;
[0031] The data processing module is used to process the feature data based on preset field programmable gate array artificial intelligence model conversion rules and tools, and feed back the calculation results to the mobile device.
[0032] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned edge AI acceleration processing methods are implemented.
[0033] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described edge AI acceleration processing methods.
[0034] The present invention divides the edge computing network to obtain division points, uploads feature data to the edge platform at the division points, and then processes the feature data based on the preset field programmable gate array artificial intelligence model conversion rules and tools. The data is transmitted to the edge platform blockchain through the edge device, and the data is fed back to the user device for inference after analysis. Decentralized edge AI acceleration reduces network transmission costs and delays; edge AI acceleration that integrates blockchain technology makes data transmission safer and better protects user privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 It is a flowchart of the edge AI acceleration processing method provided by the present invention;
[0037] Figure 2 It is a structural schematic diagram of the edge AI acceleration processing device provided by the present invention;
[0038] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Combine the following Figure 1 An edge AI (Artificial Intelligence) acceleration processing method of the present invention is described, the method comprising:
[0041] S1. Build an edge computing network integrating blockchain;
[0042] The constructed edge computing network is based on software-defined and virtual distributed blockchain. Edge AI computing is no longer based on the processing of AI applications in the data center on the cloud, but keeps the data local to the device and transfers part of the AI work to the device. At this time, edge AI computing faces a large number of heterogeneous computing resources and a large number of nodes that may be hijacked. Therefore, the traditional centralized AI framework for the cloud is not suitable for direct application, and a new edge architecture supported by blockchain has been proposed.
[0043] To protect user data privacy, in a blockchain-based mobile edge computing network, mobile devices are linked to the mobile edge network through 5G base stations and communicate with the nearest edge server, which allows them to communicate through shared keys. At the same time, communication verification is based on identity management and access control. Generally, a central management agency is established within a domain to manage identities or verify identities in a distributed manner. If the identity is verified to be reliable, its permitted behavior is trustworthy.
[0044] The edge server is mainly responsible for local network control, providing outsourced data storage and computing for local blockchain devices in a secure manner, some of which will be merged into higher-level server blockchains. Docker containers are deployed on edge nodes (generally edge servers), which execute smart contracts to ensure that transactions are securely and properly verified. Edge nodes use different types of blockchains based on different trust, privacy, and fault tolerance requirements. All docker containers are managed uniformly by the kubenetes cluster, which is responsible for the management and downloading of applications.
[0045] Edge nodes can use a variety of encryption algorithms to establish collaborative relationships between multiple parties while ensuring privacy. Adding new blocks to the blockchain requires confirmation by the consensus mechanism. Any block records and stores a piece of data connected to the previous block, and a new block is only attached to the ledger when the corresponding message is verified by the majority of participants. This special mechanism design ensures good robustness under single point failures and avoids malicious tampering of data.
[0046] S2. Based on the structure of the edge computing network, split the edge computing network to obtain split points;
[0047] The edge computing network can be split by finding suitable points in the edge computing network, and the first half runs on mobile devices.
[0048] S3, uploading the feature data to the edge platform at the split point;
[0049] At the split point, the feature data is uploaded to the edge platform through the network. The second half is calculated by the platform and the results are fed back to the mobile terminal.
[0050] S4. Based on the preset field programmable gate array AI (artificial intelligence) model conversion rules and tools, the feature data is processed and the calculation results are fed back to the mobile device.
[0051] The purpose of AI acceleration based on edge computing platform is to achieve real-time computing, and the introduction of blockchain technology is mainly to ensure the security of data and algorithms. However, this introduction has increased time consumption to a certain extent. In order to ensure the acceleration capability of edge AI, FPGA (Field-Programmable Gate Array) is introduced to accelerate blockchain and AI models.
[0052] Different from the encryption and decryption algorithms of blockchain, in artificial intelligence, AI edge computing networks are complex and changeable. Different edge computing networks are usually used in different application scenarios, and the same model will also make certain optimization adjustments over time. FPGA is a semi-custom circuit and a programmable logic gate array. This means that replacing the edge computing network will bring a lot of workload to the algorithm lightweight migration personnel. To solve this problem, a set of FPGA-based AI model conversion rules and tools are designed. Different deep learning frameworks have different edge computing network description files. For example, prototxt used by caffe needs to be converted into a c++-based .h header file on the host side that can be understood by FPGA when converted into a model suitable for FPGA. Algorithm conversion rules mainly refer to the rules for generating .h control flow files; edge computing networks and hyperparameters are stored and protected on the edge blockchain.
[0053] The present invention divides the edge computing network to obtain division points, uploads feature data to the edge platform at the division points, and then processes the feature data based on the preset field programmable gate array artificial intelligence model conversion rules and tools. The data is transmitted to the edge platform blockchain through the edge device, and the data is fed back to the user device for inference after analysis. Decentralized edge AI acceleration reduces network transmission costs and delays; edge AI acceleration that integrates blockchain technology makes data transmission safer and better protects user privacy.
[0054] According to the edge AI acceleration processing method of the present invention, the artificial intelligence model conversion rules and tools based on the preset field programmable gate array process the feature data, including:
[0055] The brick technology is used to split the channel-dimensional features into vectors of the first vector and the second vector, and input them into multiple non-blocking parallel processing computing processing units. Each clock cycle takes the corresponding bricks according to the number of tiles, and reassembles them in the on-chip cache through blocking channels to form a feature map.
[0056] FPGA has limited on-chip storage resources, so it is difficult to load and calculate all images and features at once like GPU (Graphics Processing Unit). Therefore, tile technology is used to split the features of channel chw (channel dimensions are c, h, w) into vectors of Cwec (C vector, indicating the number of pixels in the C direction) and Wwec (W vector, indicating the number of pixels in the W direction), and input them into multiple non-blocking parallel processing PEs (computation processing units). Each cycle clock cycle will take the corresponding number of tiles according to the number of PEs, and finally reassemble them into a new feature map in the on-chip cache through a blocking channel.
[0057] Taking the AlexNet network structure as an example, a neural network performs corresponding calculations on feature maps through multiple operators. The input and output parameters of each layer are different, the required cycles are different, and the data flow is different. Therefore, a set of rules needs to be designed to achieve flexible algorithm transplantation.
[0058] According to the edge AI acceleration processing method of the present invention, the artificial intelligence model conversion rules and tools based on the preset field programmable gate array process the feature data, and further include:
[0059] The artificial intelligence model is layered by convolution. When an artificial intelligence model has N layers of convolution operations, the description of each operand in the generated .h header file is an array of discribe[num], num=N;
[0060] After each layer of features is loaded into the cache, it is split into bricks and all are input into the computing unit after a clock cycle. While the feature values are input into the computing unit, the next layer of parameters are preloaded into the cache.
[0061] The model parameters of each operator in each layer trained by the artificial intelligence model are stored in binary file format in order according to the channel dimension.
[0062] The edge computing network can be layered by convolution. Assuming an edge computing network has N layers of convolution (full connection can be regarded as a special convolution) operations, the description of each operand in the generated .h is an array of discribe[num], num = N. For example, alexnet has 5 layers of convolution, N = 5. Each num in the array is a specific description of the parameters of the current layer.
[0063] As described in Alexnet, the normalization function of each layer is: CONSTANT bool norm_enabled[NUM_CONVOLUTIONS]={true,true,false,false,false}; it can be seen that the normalization function module is needed to perform calculations after the first two layers of convolution, but not after the last three layers.
[0064] For example, Alexnet describes each layer of filters (model convolution parameters): CONSTANT int filter_full_size[NUM_CONVOLUTIONS] = {3*3, 5*5, 3*3, 3*3, 3*3}; each num value describes the filter size corresponding to the current layer.
[0065] The entire FPGA-based AI acceleration software design adopts a pipeline-filter architecture.
[0066] As mentioned above, after each layer of features is loaded into the cache, it is split into tiles. After cycle clock cycles,
[0067] Cycle=(C x W x H) / (Cwec x Wwec x Kwec),
[0068] All are input into the computing unit. In order to make full use of hardware resources, a pipelined approach is used to preload the next layer of parameters into the cache while the feature values are input into the computing unit. The maximum number of cycles required is:
[0069] Cycle(next)=(K x P x Q) / (Cwec x Wwec x Kwec),
[0070] Therefore, the clock cycle required to complete an operator is
[0071] Cycle=if(Cycle>Cycle(next))? Cycle: Cycle(next);
[0072] The host is responsible for controlling each operator in the FPGA to be called through the Cycle round.
[0073] The model parameters of each operator in each layer are stored in binary bin files in order according to the dimension of nchw.
[0074] According to the edge AI acceleration processing method of the present invention, the edge computing network is segmented to obtain segmentation points, and the method further comprises:
[0075] Verify the nodes on the blockchain. Users can first verify the on-chain before calling edge acceleration, which involves credit, so the nodes on the blockchain also need to be verified. The edge consensus mechanism increases the incentive for user data sharing.
[0076] According to the edge AI acceleration processing method of the present invention, before uploading the feature data to the edge platform at the split point, it includes:
[0077] The network condition is judged, and in response to the network condition good rate being greater than the preset threshold, the characteristic data is uploaded to the edge platform at the split point. The network condition good rate refers to the communication degree, that is, if the network condition is good, the characteristic data is uploaded to the edge platform at the split point; if the network condition good rate is not greater than the preset threshold, it directly jumps to the step of credit improvement on the chain, and there is no need to perform steps such as uploading the characteristic data to the edge platform at the split point.
[0078] According to the edge AI acceleration processing method of the present invention, before uploading the feature data to the edge platform at the split point, it includes:
[0079] Adjust the split point according to the server load, and upload the feature data to the edge platform at the adjusted split point. Adjust the split point according to the server load to take load balancing into consideration.
[0080] According to the edge AI acceleration processing method of the present invention, before feeding back the calculation result to the mobile device, the method includes:
[0081] Based on the calculation results, the credit of the edge computing network is improved and put on the chain.
[0082] The credibility of positive and useful results will be enhanced, and highly credible information will be involved in multi-user decision-making. Data will be transmitted to the edge platform blockchain through edge 5G devices, and will be fed back to the user device after analysis and reasoning. This solves the credibility problem of multi-node information decision-making.
[0083] See also Figure 2 The edge AI acceleration processing device provided by the present invention is described below. The edge AI acceleration processing device described below and the edge AI acceleration processing method described above can be referred to each other. The edge AI acceleration processing device includes:
[0084] A network construction module 10, used to construct an edge computing network integrating blockchain;
[0085] The constructed edge computing network is based on software-defined and virtual distributed blockchain. Edge AI computing is no longer based on the processing of AI applications in the data center on the cloud, but keeps the data local to the device and transfers part of the AI work to the device. At this time, edge AI computing faces a large number of heterogeneous computing resources and a large number of nodes that may be hijacked. Therefore, the traditional centralized AI framework for the cloud is not suitable for direct application, and a new edge architecture supported by blockchain has been proposed.
[0086] To protect user data privacy, in a blockchain-based mobile edge computing network, mobile devices are linked to the mobile edge network through 5G base stations and communicate with the nearest edge server, which allows them to communicate through shared keys. At the same time, communication verification is based on identity management and access control. Generally, a central management agency is established within a domain to manage identities or verify identities in a distributed manner. If the identity is verified to be reliable, its permitted behavior is trustworthy.
[0087] The edge server is mainly responsible for local network control, providing outsourced data storage and computing for local blockchain devices in a secure manner, some of which will be merged into higher-level server blockchains. Docker containers are deployed on edge nodes (generally edge servers), which execute smart contracts to ensure that transactions are securely and properly verified. Edge nodes use different types of blockchains based on different trust, privacy, and fault tolerance requirements. All docker containers are managed uniformly by the kubenetes cluster, which is responsible for the management and downloading of applications.
[0088] Edge nodes can use a variety of encryption algorithms to establish collaborative relationships between multiple parties while ensuring privacy. Adding new blocks to the blockchain requires confirmation by the consensus mechanism. Any block records and stores a piece of data connected to the previous block, and a new block is only attached to the ledger when the corresponding message is verified by the majority of participants. This special mechanism design ensures good robustness under single point failures and avoids malicious tampering of data.
[0089] A network segmentation module 20, configured to segment the edge computing network based on the structure of the edge computing network to obtain segmentation points;
[0090] The edge computing network can be split by finding suitable points in the edge computing network, and the first half runs on mobile devices.
[0091] A data transmission module 30, used to upload the feature data to the edge platform at the split point;
[0092] At the split point, the feature data is uploaded to the edge platform through the network. The second half is calculated by the platform and the results are fed back to the mobile terminal.
[0093] The data processing module 40 is used to process the feature data based on preset field programmable gate array artificial intelligence model conversion rules and tools, and feed back the calculation results to the mobile device.
[0094] The purpose of AI acceleration based on edge computing platform is to achieve real-time computing, and the introduction of blockchain technology is mainly to ensure the security of data and algorithms. However, this introduction has increased time consumption to a certain extent. In order to ensure the acceleration capability of edge AI, FPGA (Field-Programmable Gate Array) is introduced to accelerate blockchain and AI models.
[0095] According to the edge AI acceleration processing device of the present invention, the data processing module 40 is specifically used for:
[0096] The brick technology is used to split the channel-dimensional features into vectors of the first vector and the second vector, and input them into multiple non-blocking parallel processing computing processing units. Each clock cycle takes the corresponding bricks according to the number of tiles, and reassembles them in the on-chip cache through blocking channels to form a feature map.
[0097] FPGA has limited on-chip storage resources, so it is difficult to load and calculate all images and features at once like GPU (Graphics Processing Unit). Therefore, tile technology is used to split the features of channel chw (channel dimensions are c, h, w) into vectors of Cwec (C vector, indicating the number of pixels in the C direction) and Wwec (W vector, indicating the number of pixels in the W direction), and input them into multiple non-blocking parallel processing PEs (computation processing units). Each cycle clock cycle will take the corresponding number of tiles according to the number of PEs, and finally reassemble them into a new feature map in the on-chip cache through a blocking channel.
[0098] Taking the AlexNet network structure as an example, a neural network performs corresponding calculations on feature maps through multiple operators. The input and output parameters of each layer are different, the required cycles are different, and the data flow is different. Therefore, a set of rules needs to be designed to achieve flexible algorithm transplantation.
[0099] According to the edge AI acceleration processing device of the present invention, the data processing module 40 is specifically used for:
[0100] The artificial intelligence model is layered by convolution. When an artificial intelligence model has N layers of convolution operations, the description of each operand in the generated .h header file is an array of discribe[num], num=N;
[0101] After each layer of features is loaded into the cache, it is split into bricks and all are input into the computing unit after a clock cycle. While the feature values are input into the computing unit, the next layer of parameters are preloaded into the cache.
[0102] The model parameters of each operator in each layer trained by the artificial intelligence model are stored in binary file format in order according to the channel dimension.
[0103] The edge computing network can be layered by convolution. Assuming an edge computing network has N layers of convolution (full connection can be regarded as a special convolution) operations, the description of each operand in the generated .h is an array of discribe[num], num = N. For example, alexnet has 5 layers of convolution, N = 5. Each num in the array is a specific description of the parameters of the current layer.
[0104] As described in Alexnet, the normalization function of each layer is: CONSTANT bool norm_enabled[NUM_CONVOLUTIONS]={true,true,false,false,false}; it can be seen that the normalization function module is needed to perform calculations after the first two layers of convolution, but not after the last three layers.
[0105] For example, Alexnet describes each layer of filters (model convolution parameters): CONSTANT int filter_full_size[NUM_CONVOLUTIONS] = {3*3, 5*5, 3*3, 3*3, 3*3}; each num value describes the filter size corresponding to the current layer.
[0106] The entire FPGA-based AI acceleration software design adopts a pipeline-filter architecture.
[0107] As mentioned above, after each layer of features is loaded into the cache, it is split into tiles. After cycle clock cycles,
[0108] Cycle=(C x W x H) / (Cwec x Wwec x Kwec),
[0109] All are input into the computing unit. In order to make full use of hardware resources, a pipelined approach is used to preload the next layer of parameters into the cache while the feature values are input into the computing unit. The maximum number of cycles required is:
[0110] Cycle(next)=(K x P x Q) / (Cwec x Wwec x Kwec),
[0111] Therefore, the clock cycle required to complete an operator is
[0112] Cycle=if(Cycle>Cycle(next))? Cycle: Cycle(next);
[0113] The host is responsible for controlling each operator in the FPGA to be called through the Cycle round.
[0114] The model parameters of each operator in each layer are stored in binary bin files in order according to the dimension of nchw.
[0115] According to the edge AI acceleration processing device of the present invention, the edge computing network is segmented to obtain segmentation points, which includes:
[0116] Verify the on-chain nodes of the blockchain. Users calling edge acceleration can first pass the on-chain verification, which involves credit, so the on-chain nodes of the blockchain also need to be verified.
[0117] According to the edge AI acceleration processing device of the present invention, before uploading the feature data to the edge platform at the split point, it includes:
[0118] The network condition is judged, and in response to the network condition good rate being greater than the preset threshold, the characteristic data is uploaded to the edge platform at the split point. The network condition good rate refers to the communication degree, that is, if the network condition is good, the characteristic data is uploaded to the edge platform at the split point; if the network condition good rate is not greater than the preset threshold, it directly jumps to the step of credit improvement on the chain, and there is no need to perform steps such as uploading the characteristic data to the edge platform at the split point.
[0119] According to the edge AI acceleration processing device of the present invention, before uploading the feature data to the edge platform at the split point, it includes:
[0120] Adjust the split point according to the server load, and upload the feature data to the edge platform at the adjusted split point. Adjust the split point according to the server load to take load balancing into consideration.
[0121] According to the edge AI acceleration processing device of the present invention, before feeding back the calculation result to the mobile device, the method includes:
[0122] Based on the calculation results, the credit of the edge computing network is improved and put on the chain.
[0123] The credibility of positive and useful results will be enhanced, and highly credible information will be involved in multi-user decision-making. The data will be transmitted to the edge platform blockchain through edge 5G devices, and after analysis, it will be fed back to the user device for reasoning.
[0124] Figure 3 An example of a physical structure diagram of an electronic device is shown, and the electronic device may include: a processor (processor) 310, a communication interface (Communications Interface) 320, a memory (memory) 330 and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 can call the logic instructions in the memory 330 to execute the edge AI acceleration processing method, which includes:
[0125] S1. Build an edge computing network integrating blockchain;
[0126] S2. Based on the structure of the edge computing network, split the edge computing network to obtain split points;
[0127] S3, uploading the feature data to the edge platform at the split point;
[0128] S4. Based on the preset field programmable gate array artificial intelligence model conversion rules and tools, the feature data is processed and the calculation results are fed back to the mobile device.
[0129] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0130] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can execute the edge AI acceleration processing method provided by the above methods, the method comprising:
[0131] S1. Build an edge computing network integrating blockchain;
[0132] S2. Based on the structure of the edge computing network, split the edge computing network to obtain split points;
[0133] S3, uploading the feature data to the edge platform at the split point;
[0134] S4. Based on the preset field programmable gate array artificial intelligence model conversion rules and tools, the feature data is processed and the calculation results are fed back to the mobile device.
[0135] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the above-mentioned edge AI acceleration processing method, the method comprising:
[0136] S1. Build an edge computing network integrating blockchain;
[0137] S2. Based on the structure of the edge computing network, split the edge computing network to obtain split points;
[0138] S3, uploading the feature data to the edge platform at the split point;
[0139] S4. Based on the preset field programmable gate array artificial intelligence model conversion rules and tools, the feature data is processed and the calculation results are fed back to the mobile device.
[0140] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An edge AI acceleration processing method, characterized in that: include: Build an edge computing network that integrates blockchain; Based on the structure of the edge computing network, the edge computing network is divided to obtain division points; Uploading the feature data to the edge platform at the split point; Based on preset field programmable gate array artificial intelligence model conversion rules and tools, the feature data is processed and the calculation results are fed back to the mobile device; The artificial intelligence model conversion rules and tools based on the preset field programmable gate array process the feature data, including: The artificial intelligence model is layered by convolution. When an artificial intelligence model has N layers of convolution operations, the description of each operand in the generated .h header file is an array of discribe[num], num=N; After each layer of features is loaded into the cache, it is split into bricks and all are input into the calculation processing unit after a clock cycle; while the feature values are input into the calculation processing unit, the next layer of parameters are preloaded into the cache; The model parameters of each operator in each layer trained by the artificial intelligence model are stored in binary file format in order according to the channel dimension.
2. The edge AI acceleration processing method according to claim 1, characterized in that: The artificial intelligence model conversion rules and tools based on the preset field programmable gate array process the feature data, and also include: The brick technology is used to split the channel-dimensional features into vectors of the first vector and the second vector, and input them into multiple non-blocking parallel processing computing processing units. Each clock cycle takes the corresponding bricks according to the number of tiles, and reassembles them in the on-chip cache through the blocking channel to form a feature map.
3. The edge AI acceleration processing method according to claim 1, characterized in that: The step of dividing the edge computing network to obtain the dividing points includes: Verify the nodes on the blockchain.
4. The edge AI acceleration processing method according to claim 1, characterized in that: Before uploading the feature data to the edge platform at the split point, the method includes: The network condition is judged, and in response to a good rate of the network condition being greater than a preset threshold, the feature data is uploaded to the edge platform at the split point.
5. The edge AI acceleration processing method according to claim 1, characterized in that: Before uploading the feature data to the edge platform at the split point, the method includes: The split point is adjusted according to the server load, and the feature data is uploaded to the edge platform at the adjusted split point.
6. The edge AI acceleration processing method according to claim 1, characterized in that: Before feeding back the calculation result to the mobile device, the method includes: Based on the calculation results, the credit of the edge computing network is improved and put on the chain.
7. An edge AI acceleration processing device, characterized in that: include: Network building modules for building edge computing networks that integrate blockchain; A network segmentation module, used to segment the edge computing network based on the structure of the edge computing network to obtain segmentation points; A data transmission module, used to upload the feature data to the edge platform at the split point; A data processing module, used for processing the feature data based on preset field programmable gate array artificial intelligence model conversion rules and tools, and feeding back the calculation results to the mobile device; The data processing module is also used to layer the artificial intelligence model by convolution. When an artificial intelligence model has N layers of convolution operations, the description of each operand in the generated .h header file is an array of discribe[num], num=N; after each layer of features is loaded into the cache, it is split in the form of bricks, and after a clock cycle, all are input into the calculation processing unit; while the feature value is input into the calculation processing unit, the next layer of parameters is preloaded into the cache; The model parameters of each operator in each layer trained by the artificial intelligence model are stored in binary file format in sequence according to the channel dimension.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the edge AI acceleration processing method as described in any one of claims 1 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the edge AI acceleration processing method as described in any one of claims 1 to 6 are implemented.
