A face recognition method based on cloud-edge-device collaboration
By dividing the face recognition model into logical layers and utilizing edge servers and cloud storage for collaborative computing, the challenges of the face recognition system in terms of computing resources and privacy security are solved, and efficient, low-latency and secure recognition results are achieved.
Patent Information
- Application Number
- CN202210765415.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-07-01
AI Technical Summary
Existing face recognition systems have challenges in terms of computing resources and privacy security. Cloud inference is affected by network conditions. The computing power of end devices is limited and it is difficult to ensure data security. In addition, the existing end-edge-cloud collaboration method has high computational complexity and excessive edge computing load. Heavy.
By dividing the face recognition model into logical layers, building a computational graph model, optimizing the segmentation points to minimize the calculation time, and using edge servers and cloud storage to collaboratively perform calculations, ensuring data privacy and real-time performance.
It reduces computational complexity and energy consumption, improves the efficiency and latency performance of face recognition, and ensures data privacy and service stability.
Smart Images

Figure CN115114663B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of edge computing, cloud computing and face recognition technology, and in particular to a face recognition method based on cloud-edge-end collaboration. Background Art
[0002] At present, face recognition systems mainly use deep neural network models to infer face recognition results. Compared with traditional methods, although this method has improved recognition accuracy, the corresponding amount of calculation has increased, the number of intermediate result values generated by the calculation has increased, and the neural network needs to be trained based on a large amount of sample data. The training, convergence and application of neural networks also have higher requirements for computing and storage resources.
[0003] The cloud has powerful computing capabilities and abundant storage resources. It usually serves as a computing center to provide computing support and as a data center to store massive data. However, cloud reasoning is affected by the network connection conditions. When the quality of the communication channel deteriorates, delay-sensitive face recognition applications on mobile devices will not be guaranteed. Directly transmitting raw data to the cloud for reasoning also faces information leakage and privacy security issues, especially for face recognition, a technology used for identity recognition.
[0004] Edge computing is a computing paradigm that provides computing resources closer to the end. Compared with cloud reasoning, edge reasoning can reduce the dependence of model reasoning on the quality of communication links, and has the advantages of lower latency and higher reliability. However, it is still difficult to securely utilize the data generated by end devices.
[0005] In order to ensure the security of data, end-to-end inference can be used. However, face recognition tasks require a lot of calculations and high energy consumption. The computing power of the end device is limited by the device power and hardware level, and the computing power is limited, so it cannot independently provide services for computationally intensive face recognition applications.
[0006] To address the above challenges, the computing paradigm of device-edge-cloud collaboration has become an important solution in the industry, but it has the following problems:
[0007] 1) The end device only has the image acquisition function, and direct data transmission has privacy and security issues;
[0008] 2) To achieve low-latency model collaborative execution, the current method for solving the optimal model split point has high computational complexity;
[0009] 3) The cloud often only plays the role of a data center, and the core computing is done at the edge, resulting in excessive computing load at the edge. Summary of the invention
[0010] The present invention provides a face recognition method based on cloud-edge-end collaboration to address the defects of the above-mentioned prior art and solve the privacy leakage problem caused by the transmission of face data by the end device of face collection. Registering face data through cloud storage can provide more sufficient storage space and safer protection. By using the edge server as an intermediate computing resource between the end device and cloud storage, the face model inference delay caused by the deterioration of communication conditions can be effectively alleviated, thereby ensuring the real-time operation, privacy and service stability of the face recognition task.
[0011] The present invention provides a face recognition method based on cloud-edge-end collaboration, comprising the following steps:
[0012] Divide the face recognition model into several logical layers, obtain the computing delay of each logical layer on the terminal device and the amount of data output by each logical layer;
[0013] Constructing a computational graph model of the face recognition model, wherein the computational graph model uses the logic layer as the vertex of the computational graph model and constructs edges between the vertices according to the amount of data output by the logic layer;
[0014] Obtain the current network bandwidth from the terminal device, calculate the computation time of the computation graph model to complete a single computation process according to the computation delay of each logical layer, the amount of output data, and the network bandwidth, and obtain the optimal segmentation point of the face recognition model with minimization of the computation time as the optimization goal;
[0015] Adjust the face recognition model according to the segmentation point, calculate all logic layers before the segmentation point, and synchronize the data generated by the segmentation point and the calculation logic layer to the edge;
[0016] According to the segmentation point and the amount of data generated by the computing logic layer, the face recognition model after the segmentation point is calculated by the edge, the data generated by the current face recognition model calculation and the segmentation point are sent to the cloud, the calculation of the face recognition model is completed through the cloud, and the recognition result is output.
[0017] According to a face recognition method based on cloud-edge-end collaboration provided by the present invention, when dividing the face recognition model, the layer with a jump structure of the parallel computing layer is used as a logical layer according to the network structure of the face recognition model.
[0018] According to a face recognition method based on cloud-edge-end collaboration provided by the present invention, test image data is used on the end device to calculate the logical layers of the first several layers in the face recognition model, and the calculation delay of each logical layer on the end device and the amount of data output by each logical layer are obtained.
[0019] According to a face recognition method based on cloud-edge-end collaboration provided by the present invention, the calculation time of the calculation graph model to complete a single calculation process is calculated based on the calculation delay of each logical layer, the output data volume and the network bandwidth, including:
[0020] Get the current network bandwidth B from the end device; the computation graph model has n layers, and get the computation delay E of the i-th logical layer i , the amount of data D output by the i-th logical layer i and network bandwidth B to obtain data transmission delay;
[0021] Get the calculation time T of the calculation graph model to complete a single calculation process total :
[0022]
[0023] Preferably, since the energy and output power of the terminal device depend on the hardware level of the terminal device, it is necessary to consider the maximum output power of the terminal device as the maximum power R of the terminal device running the face recognition model in the process of obtaining the optimal segmentation point of the face recognition model with the minimization of the calculation time as the optimization goal. max As a constraint, obtain the computing energy consumption C of the i-th logical layer 1,i and data transmission energy consumption P i , the constraints are:
[0024] C 1,i + i =k*cpusize*(f) 2 +ps*T up ≤R max ;
[0025] T up =D i / R,R=B*log2(1+ps*h n 2 / N0);
[0026] Where k is a constant related to the hardware architecture, N0 is the channel noise, hn is the corresponding Rayleigh fading channel coefficient, cpusize is the number of cycles required for the CPU to calculate the i-th logical layer, ps is the data transmission power, T up The data transmission time.
[0027] According to a face recognition method based on cloud-edge-end collaboration provided by the present invention, according to the segmentation point and the amount of data generated by the computing logic layer, the edge calculates the face recognition model after the segmentation point and obtains the real-time network communication bandwidth;
[0028] When the network communication bandwidth is greater than or equal to the bandwidth threshold, the data generated by the current face recognition model calculation and the segmentation point are sent to the cloud.
[0029] According to a face recognition method based on cloud-edge-end collaboration provided by the present invention, the cloud performs calculations according to the calculation data received from the edge and the segmentation points according to the face recognition model, matches the acquired image data with the face registration library, and outputs the recognition results.
[0030] On the other hand, the present invention also provides a face recognition system based on cloud-edge-end collaboration, including a partitioning module, a computational graph model building module, a segmentation point solving module, and a collaborative computing module, wherein:
[0031] The division module is used to divide the face recognition model into several logical layers, obtain the calculation delay of each logical layer on the terminal device and the amount of data output by each logical layer;
[0032] The computational graph model construction module is used to construct the computational graph model of the face recognition model, wherein the computational graph model uses the logic layer as the vertex of the computational graph model and constructs the edges between the vertices according to the amount of data output by the logic layer;
[0033] The split point solving module is used to obtain the current network bandwidth from the terminal device, calculate the calculation time of the calculation graph model to complete a single calculation process according to the calculation delay of each logical layer, the amount of output data and the network bandwidth, and obtain the split point of the logical layer when the calculation time is the minimum value as the optimal split point;
[0034] The collaborative calculation module is used to adjust the face recognition model according to the optimal segmentation point, calculate all logic layers before the optimal segmentation point, and synchronize the data generated by the optimal segmentation point and the calculation logic layer to the edge;
[0035] The data generated by the calculation and the optimal segmentation point are sent to the cloud, the calculation of the face recognition model is completed through the cloud, and the recognition result is output.
[0036] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the face recognition method based on cloud-edge-end collaboration as described in any of the above are implemented.
[0037] The present invention provides a face recognition method based on cloud-edge-end collaboration. By dividing any face recognition model, a computational graph model is constructed. The computational time for the computational graph model to complete a single computational process is calculated according to the computational delay of each logical layer in the computational graph model, the amount of output data, and the network bandwidth. The optimal segmentation point of the face recognition model is obtained with the minimization of the computational time as the optimization goal. Under the premise of ensuring data privacy and security, the computational complexity is reduced. The face recognition model is segmented based on the segmentation point. Through cloud-edge-end collaboration, the computing resources and storage resources of the terminal device, edge server, and cloud can be effectively utilized. The low data transmission delay of the edge server and the powerful computing power of cloud computing are utilized to realize the operation of the face recognition model. The cloud server calculates the entire model, the terminal device calculates the model before segmentation, and the edge server calculates the model after segmentation. Part of the face recognition model runs in parallel on each computing node. The model is cut based on the computing power of each computing node, so as to maximize the efficiency of face recognition and reduce the requirements for network communication quality, energy consumption, and hardware equipment level. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] 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.
[0039] Figure 1 It is a flowchart of the face recognition method based on cloud-edge-end collaboration provided by the present invention;
[0040] Figure 2 It is a structural diagram of the face recognition system based on cloud-edge-end collaboration provided by the present invention. DETAILED DESCRIPTION
[0041] 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.
[0042] The terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.
[0043] like Figure 1 As shown, in one embodiment, the present invention provides a face recognition method based on cloud-edge-end collaboration, which specifically includes the following steps:
[0044] S1 divides the face recognition model into several logical layers, obtains the computing delay of each logical layer on the terminal device and the amount of data output by each logical layer;
[0045] Among them, the amount of output data affects the data transmission time between the edge server and the end device;
[0046] Constructing a computational graph model of the face recognition model, wherein the computational graph model uses the logic layer as the vertex of the computational graph model and constructs edges between the vertices according to the amount of data output by the logic layer;
[0047] S2 obtains the current network bandwidth from the terminal device, calculates the computation time of the computation graph model to complete a single computation process according to the computation delay of each logical layer, the amount of output data, and the network bandwidth, and obtains the optimal segmentation point of the face recognition model with minimization of the computation time as the optimization goal;
[0048] S3 adjusts the face recognition model according to the segmentation point, calculates all logic layers before the segmentation point, and synchronizes the data generated by the segmentation point and the calculation logic layer to the edge;
[0049] According to the segmentation point and the amount of data generated by the computing logic layer, the edge calculates the face recognition model after the segmentation point, sends the data generated by the current face recognition model calculation and the segmentation point to the cloud, completes the calculation of the face recognition model through the cloud, and outputs the recognition result;
[0050] Among them, a single calculation process (single inference process) refers to a process in which image data is input into an image recognition model and the image recognition model outputs calculation data.
[0051] It should be noted that common face recognition models are usually trained based on neural network models, such as convolutional neural networks, which are formed by superimposing multiple layers of neural network layers. Since terminal devices usually do not have hardware advantages and are limited in computing power, power output power, and storage space, it is very difficult to directly identify the collected image data through the neural network model through the terminal device. The face recognition model is segmented according to the computing delay of the terminal device, the amount of data generated by the calculation, and the network bandwidth, so that the terminal device only needs to perform operations on the logic layer before the segmentation point, that is, only a certain number of continuous logic layers starting from the first layer need to be calculated, which reduces the computing pressure on the terminal device.
[0052] Specifically, in step S1, it further includes:
[0053] When dividing the face recognition model, according to the network structure of the face recognition model, the layer with the jump structure of the parallel computing layer is regarded as a logical layer; wherein, based on the structural characteristics of the face recognition model, the minimum division unit of the face recognition model structure is defined, and it is used as the model cutting point to calculate the finest granularity that the face recognition model can be divided in the modeling process;
[0054] According to a face recognition method based on cloud-edge-end collaboration provided by the present invention, the test image data is used on the end device to calculate the first several logical layers in the face recognition model, and the calculation delay of each logical layer on the end device and the amount of data output by each logical layer are obtained;
[0055] Optionally, select the first 1 / 3 logical layer of the face recognition model, use the collected image data to input the first 1 / 3 logical layer of the model on the terminal device, obtain the calculation time of each logical layer, and obtain the amount of data output by each logical layer; construct a computational graph model with the logical layer as the node of the computational graph and the data transmission amount as the edge of the computational graph;
[0056] Further, in step S2, the upper limit of resources that the terminal device can provide for the face recognition model is determined based on the hardware conditions and performance of the terminal device, and the upper limit of resources that the terminal device hardware can provide is used as a constraint condition, and the calculation time of the calculation graph model to complete a single calculation process is minimized as the optimization goal, and the optimal segmentation point is calculated, specifically including:
[0057] The calculation time of the calculation graph model to complete a single calculation process is calculated based on the calculation delay of each logical layer, the amount of output data, and the network bandwidth, including:
[0058] Get the current network bandwidth B from the end device; the computation graph model has n layers, and get the computation delay E of the i-th logical layer i , the amount of data D output by the i-th logical layer iand network bandwidth B to obtain data transmission delay;
[0059] Get the calculation time T of the calculation graph model to complete a single calculation process total :
[0060]
[0061] Preferably, since the energy and output power of the terminal device depend on the hardware level of the terminal device, it is necessary to consider the maximum output power of the terminal device as the maximum power R of the terminal device running the face recognition model in the process of obtaining the optimal segmentation point of the face recognition model with the minimization of the calculation time as the optimization goal. max As a constraint, obtain the computing energy consumption C of the i-th logical layer 1,i and data transmission energy consumption P i , the constraints are:
[0062] C 1,i +P i =k*cpusize*(f) 2 +ps*T up ≤R max ;
[0063] T up =D i / R, R = B*log2(1+ps*h n 2 / N0);
[0064] Where k is a constant related to the hardware architecture, N0 is the channel noise, and h n is the corresponding Rayleigh fading channel coefficient, cpusize is the number of cycles required for the CPU to calculate the i-th logical layer, ps is the data transmission power, T up is the data transmission time, f is the CPU frequency;
[0065] Through the above constraints and optimization goals, the hardware conditions of the terminal device and the current network status are fully considered to calculate the optimal segmentation point of the face recognition model;
[0066] Further, step S3 includes:
[0067] Adjust the face recognition model according to the segmentation point, calculate all logic layers before the segmentation point, and synchronize the data generated by the segmentation point and the calculation logic layer to the edge;
[0068] According to the segmentation point and the amount of data generated by the computing logic layer, the edge calculates the face recognition model after the segmentation point, sends the data generated by the current face recognition model calculation and the segmentation point to the cloud, completes the calculation of the face recognition model through the cloud, and outputs the recognition result;
[0069] Specifically, according to the real-time network communication conditions, the network bandwidth is monitored in real time, and the optimal segmentation point corresponding to the calculation time of the optimization target is solved based on the above steps. The segmentation strategy is implemented based on the optimal segmentation point to adjust the face recognition model. The end device calculates the face recognition model before the segmentation point, executes all logical layers before the segmentation point, uploads the data generated by the calculation to the edge, and synchronizes the segmentation point to the edge server;
[0070] Furthermore, the edge server receives the split point information of the end device, and the end device calculates the results of all logical layers before the split point; it detects the network status in real time and obtains the real-time network bandwidth. When the communication bandwidth reaches the preset bandwidth threshold, the data transmission pressure of the edge server is relatively small, and it is considered that the data transmission delay is the lowest at this time. The logical layer after the split point is executed for calculation, and the calculation data and the split point information are transmitted to the cloud;
[0071] Further, step S3 includes:
[0072] The cloud receives data calculated by the end device and the edge server, and recognizes the image data on the face recognition model based on the end device data and the edge server data. The cloud is equipped with a face registration library, and the final face recognition result is obtained based on the mapping relationship between face images and identities in the face registration library;
[0073] The present invention solves the privacy leakage problem caused by the transmission of facial data by facial acquisition devices through the above method. Registering facial data through cloud storage can provide more sufficient storage space and safer protection. By using the edge server as an intermediate computing resource between the terminal device and the cloud, the facial model recognition calculation delay caused by the deterioration of communication conditions can be effectively alleviated, thereby ensuring the real-time, privacy and service stability of the facial recognition task.
[0074] According to a face recognition method based on cloud-edge-end collaboration provided by the present invention, the cloud performs calculations according to the calculation data received from the edge and the segmentation points according to the face recognition model, matches the acquired image data with the face registration library, and outputs the recognition results.
[0075] On the other hand, Figure 2 As shown, the present invention also provides a face recognition system based on cloud-edge-end collaboration. The face recognition system described below and the face recognition method described above can refer to each other, specifically including a partitioning module, a computational graph model construction module, a segmentation point solving module and a collaborative computing module, wherein:
[0076] The division module is used to divide the face recognition model into several logical layers, obtain the calculation delay of each logical layer on the terminal device and the amount of data output by each logical layer;
[0077] The computational graph model construction module is used to construct the computational graph model of the face recognition model, wherein the computational graph model uses the logic layer as the vertex of the computational graph model and constructs the edges between the vertices according to the amount of data output by the logic layer;
[0078] The split point solving module is used to obtain the current network bandwidth from the terminal device, calculate the calculation time of the calculation graph model to complete a single calculation process according to the calculation delay of each logical layer, the amount of output data and the network bandwidth, and obtain the split point of the logical layer when the calculation time is the minimum value as the optimal split point;
[0079] The collaborative calculation module is used to adjust the face recognition model according to the optimal segmentation point, calculate all logic layers before the optimal segmentation point, and synchronize the data generated by the optimal segmentation point and the calculation logic layer to the edge;
[0080] The data generated by the calculation and the optimal segmentation point are sent to the cloud, the calculation of the face recognition model is completed through the cloud, and the recognition result is output.
[0081] The implementation principles of the system and method are the same and will not be repeated here.
[0082] The technical solution of the present invention, 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, which is stored in a storage medium and includes several instructions for enabling 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, etc., various media that can store program codes.
[0083] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the face recognition method based on cloud-edge collaboration provided by the above methods. The steps of the method are as described in the above embodiments and will not be repeated here.
[0084] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the face recognition method based on cloud-edge collaboration provided by the above methods. The steps of the method are as described in the above embodiments and will not be repeated here.
[0085] 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.
[0086] 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.
[0087] 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. A face recognition method based on cloud-edge-device collaboration, characterized in that: include: Divide the face recognition model into several logical layers, obtain the computing delay of each logical layer on the terminal device and the amount of data output by each logical layer; Constructing a computational graph model of the face recognition model, wherein the computational graph model uses the logic layer as the vertex of the computational graph model and constructs edges between the vertices according to the amount of data output by the logic layer; The current network bandwidth is obtained from the terminal device, and the calculation time of the calculation graph model to complete a single calculation process is calculated according to the calculation delay of each logical layer, the amount of output data, and the network bandwidth. The optimal segmentation point of the face recognition model is obtained with the minimization of the calculation time as the optimization goal; wherein, the maximum power of the end device running the face recognition model is used R max As a constraint, get the calculation i Computational energy consumption of the logic layer C 1,i and data transmission energy consumption P i , the constraints are: ; ; Where k is a constant related to the hardware architecture, is the channel noise, is the corresponding Rayleigh fading channel coefficient, The number of cycles required for the CPU to calculate the i-th logical layer, is the data transmission power, is the data transmission time, f is the CPU frequency; Adjust the face recognition model according to the optimal segmentation point, calculate all logic layers before the optimal segmentation point on the end device, and synchronize the optimal segmentation point and the data generated by the calculation logic layer to the edge; According to the optimal segmentation point and the amount of data generated by the calculation logic layer, the edge calculates all the logical layers after the optimal segmentation point, sends the data generated by the calculation of all the logical layers after the optimal segmentation point and the optimal segmentation point to the cloud, completes the calculation of the face recognition model through the cloud, and outputs the recognition result.
2. According to claim 1, a face recognition method based on cloud-edge-end collaboration is characterized in that: When dividing the face recognition model, according to the network structure of the face recognition model, the layer with a jump structure of the parallel computing layer is regarded as a logical layer.
3. According to the face recognition method based on cloud-edge-end collaboration of claim 1, it is characterized in that: The test image data is used on the terminal device to calculate the first several logical layers in the face recognition model, and the calculation delay of each logical layer in the first several logical layers on the terminal device and the amount of data output by each logical layer are obtained.
4. According to claim 3, a face recognition method based on cloud-edge-end collaboration is characterized in that: The calculation time of the calculation graph model to complete a single calculation process is calculated according to the calculation delay of each logical layer, the amount of output data, and the network bandwidth, including: Get the current network bandwidth from the end device B ; Computational graph model n layer, get the i Computational latency of the logic layer E i , through the i The amount of data output by the layer logic layer D i and network bandwidth B Get data transmission delay; Get the calculation time of the calculation graph model to complete a single calculation process T total : 。 5. The face recognition method based on cloud-edge-device collaboration according to claim 1 is characterized in that: According to the segmentation point and the amount of data generated by the computing logic layer, the face recognition model after the segmentation point is calculated by the edge, and the real-time network communication bandwidth is obtained; When the network communication bandwidth is greater than or equal to the bandwidth threshold, the data generated by the current face recognition model calculation and the segmentation point are sent to the cloud.
6. The face recognition method based on cloud-edge-device collaboration according to claim 5 is characterized in that: The cloud performs calculations according to the face recognition model based on the calculation data received from the edge and the segmentation points, matches the acquired image data with the face registration library, and outputs the recognition result.
7. A face recognition system based on cloud-edge-device collaboration, characterized in that: include: A partitioning module is used to divide the face recognition model into several logical layers, obtain the computing delay of each logical layer on the terminal device and the amount of data output by each logical layer; A computational graph model construction module, used to construct a computational graph model of the face recognition model, wherein the computational graph model uses the logic layer as the vertex of the computational graph model and constructs edges between the vertices according to the amount of data output by the logic layer; The split point solution module is used to obtain the current network bandwidth from the terminal device, calculate the calculation time of the calculation graph model to complete a single calculation process according to the calculation delay of each logical layer, the amount of data output and the network bandwidth, and obtain the split point of the logical layer when the calculation time is the minimum as the optimal split point; wherein, the maximum power of the terminal device running the face recognition model is used R max As a constraint, get the calculation i Computational energy consumption of the logic layer C 1,i and data transmission energy consumption P i , the constraints are: ; ; Where k is a constant related to the hardware architecture, is the channel noise, is the corresponding Rayleigh fading channel coefficient, The number of cycles required for the CPU to calculate the i-th logical layer, is the data transmission power, is the data transmission time, f is the CPU frequency; A collaborative computing module, used to adjust the face recognition model according to the optimal segmentation point, calculate all logic layers before the optimal segmentation point, and synchronize the data generated by the optimal segmentation point and the computing logic layer to the edge; According to the optimal segmentation point and the amount of data generated by the calculation logic layer, the edge calculates all the logical layers after the optimal segmentation point, sends the data generated by the calculation of all the logical layers after the optimal segmentation point and the optimal segmentation point to the cloud, completes the calculation of the face recognition model through the cloud, and outputs the recognition result.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the face recognition method based on cloud-edge-end collaboration as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Deep learning model training acceleration method based on end-to-edge cloud cooperation
CN111242282A
Robot task division-oriented end, side and cloud collaborative computing device
CN112287609A
Edge cloud collaborative optimization method based on deep reinforcement learning
CN113067873A
Neural network edge-cloud cooperative computing segmentation deployment method
CN114528987A
Cloud edge-end cooperative computing method based on adaptive deep neural network
CN114564312A
