Computing resource allocation method and apparatus, and electronic device
The computing resource allocation method optimizes edge server selection strategies to balance energy efficiency and privacy protection, addressing inefficiencies in health monitoring systems by dynamically adjusting task allocation and reducing energy consumption and privacy risks.
Patent Information
- Application Number
- US19/743476
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2024-08-28
- Filing Date
- 2026-07-15
- Publication Date
- 2026-11-26
AI Technical Summary
Existing health monitoring systems in the Internet of Medical Things (IoMT) face challenges in efficiently allocating computing resources, neglecting standby time and energy consumption of user devices, privacy leakage risks, and medical urgency, which affect system performance and user experience.
A computing resource allocation method that determines edge server selection strategies based on communication and computing energy consumption, privacy leakage risk assessment, and utility functions to optimize energy efficiency and privacy protection, dynamically adjusting task allocation between local and edge server computing.
Reduces overall energy consumption, prolongs device standby time, and minimizes privacy leakage risks, enhancing system performance and user experience by balancing energy efficiency and privacy protection in health monitoring systems.
Smart Images

Figure US20260377244A1-D00000_ABST
Abstract
Description
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] The present disclosure is a Continuation application of PCT Application No. PCT / CN2025 / 091522 filed on Apr. 27, 2025, which claims the priority of the Chinese patent application filed on Aug. 28, 2024 before the CNIPA, China National Intellectual Property Administration with the application number of 202411189532.4 and the title of “COMPUTING RESOURCE ALLOCATION METHOD AND APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM”, which is incorporated herein in its entirety by reference.TECHNICAL FIELD
[0002] The present disclosure relates to the technical field of computing resource allocation, and more particularly, to a computing resource allocation method and apparatus, and an electronic device.BACKGROUND ART
[0003] Internet of Medical Things (IoMT) has become a transformative force in the healthcare field, which combines medical devices and application programs to create a highly personalized and efficient healthcare ecosystem. A health monitoring system is a key application of IoMT. In the health monitoring system, a wearable device on a patient continuously tracks biomedical data of this patient and transmits this data to a terminal device of this patient. The terminal device, which acts as a gateway, may forward relevant data to a medical service provider, enabling the medical service provider to continuously monitor a health status of this patient at the minimum cost. In addition, the health monitoring system can also extend a patient's range of motion and significantly improve the patient's quality of life.
[0004] Due to the limitation of communication resources and insufficient computing capacity of a device owned by the patient, existing health monitoring systems face major challenges, and the efficiency and responsiveness of the systems are limited to some extent. The introduction of mobile edge computing (MEC) and 6th generation wireless networks provides solutions to overcome these obstacles. The convergence of the mobile edge computing and the 6th generation wireless networks in an IoMT ecosystem may become the cornerstone of the next generation of medical technologies.
[0005] In the health monitoring system based on IoMT, the allocation of computing resources is a key issue, which significantly affects the overall performance of the system. The prior art proposes a module placement method using a classification and regression tree algorithm, which can effectively allocate computing tasks while optimizing authentication, confidentiality, integrity, availability, capacity, speed and cost, but ignores the standby time of a user's mobile device and the energy consumption of the device. The prior art further uses a Stackelberg Game as an incentive mechanism to influence a user's offload decision, so as to balance a relationship between minimizing an energy consumption of a mobile edge computing server and ensuring the quality of user experience, but ignores the requirements for a medical monitoring system. The prior art further proposes a cooperative bargaining game for optimizing the allocation of wireless channel resources and making a computational offload decision through a decentralized non-cooperative game to minimize the energy consumption of the whole system. Medical urgency, information timeliness, overall energy consumption of the system including a server and other aspects are considered in resource allocation, but the privacy leakage risk of users and the standby time of mobile devices are ignored. Therefore, how to balance the optimization of energy efficiency and strict privacy protection of user equipment in the allocation of computing resources has become an urgent problem to be solved in this art.SUMMARY OF THE INVENTION
[0006] The present disclosure aims to at least solve one of the problems existing in the prior art, and provide a computing resource allocation method and apparatus, and an electronic device.
[0007] In an aspect of the present disclosure, a computing resource allocation method is provided, which is applied to a health monitoring system, the health monitoring system including a plurality of edge servers, a plurality of terminal devices in communication connection with the edge servers respectively, and a plurality of wearable devices in communication connection with the terminal devices respectively; and
[0008] the computing resource allocation method including:
[0009] determining, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices;
[0010] respectively determining, based on the utility functions, the edge server selection strategy for each of the terminal devices corresponding to a case where the terminal device has a maximum utility;
[0011] determining a utility increment of each of the terminal devices under the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, relative to a current edge server selection strategy; and
[0012] updating the current edge server selection strategy for the terminal device whose utility increment is maximum to be the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, so as to allocate computing resources of the corresponding edge server to the terminal device.
[0013] Further, the determining, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices comprises: constructing the utility function according to the following formula:Uiex(ρi,ρ-i)=-Costiex(ρi,ρ-i);in which, ρi represents the edge server selection strategy corresponding to the ith terminal device; ρ−i represents the edge server selection strategy corresponding to other terminal devices other than the ith terminal device;Uiex represents the utility function corresponding to the ith terminal device;Costiex represents a cost function corresponding to the ith terminal device and is expressed as:Costiex(ρ)=γiSI(ρi>0)Si+I(ρi>0)Eiex(ρ)+I(ρi=0)Eicom,l(ρ);in which, ρ represents a set composed of the edge server selection strategies respectively corresponding to all terminal devices; Si represents the privacy leakage risk assessment index corresponding to the ith terminal device;γiS represents a coefficient of Si; I(⋅) represents an indicator function, wherein a function value of I(⋅) is 1 when an expression in parentheses is true, and a function value of I(⋅) is 0 when the expression in parenthesis is false;Eiex(ρ) represents the communication energy consumption between the ith terminal device and the corresponding edge server;Eicom,l represents total energy consumed by the ith terminal device to process a computing task; anddetermining the constraint condition of the utility function according to the following formula:ρi∈{0}∪K for i=1,2, . . . ,N; in which, N represents the number of the terminal devices; and K represents a set composed of all edge servers.Further, the utility increment of the ith terminal device under the edge server selection strategy corresponding to a case where the ith terminal device has a maximum utility, relative to the current edge server selection strategy is expressed as:Δi(t)=Uiex(ρi′,ρ-i)-Uiex(ρi,ρ-i);in which, Δi(t) represents the utility increment corresponding to the ith terminal device at time t;Uiex(ρi′,ρ-i) represents the utility function of the ith terminal device under conditions that the edge server selection strategy corresponding to a case where the ith terminal device has a maximum utility isρi′ while other terminal devices keep their edge server selection strategies unchanged; andUiex(ρi,ρ-i) represents the utility function of the ith terminal device under conditions that the edge server selection strategy corresponding to the ith terminal device is ρi, while other terminal devices keep their edge server selection strategies unchanged.Further, the privacy leakage risk assessment index Si corresponding to the ith terminal device is expressed as:Si=∑ j=1MI (gi,j=1) Si,j;in which, j represents a serial number of the wearable device in communication connection with the ith terminal device, where j=1, 2, . . . , M, and M represents a total number of wearable devices in communication connection with the ith terminal device; gi,j represents a computing location corresponding to the jth wearable device in communication connection with the ith terminal device, with a value of 0 indicating that the computing location is the local terminal device, and a value of 1 indicating that the computing location is selected along with the terminal device; Si,j represents a privacy leakage risk assessment index of a computing task ti,j corresponding to the jth wearable device in communication connection with the ith terminal device.Further, the communication energy consumptionEiex(ρ)between the ith terminal device and the corresponding edge server is expressed as:Eiex(ρ)=piTiex(ρ);in which, pi represents transmission power of the ith terminal device;Tiex represents a transmission delay corresponding to the ith terminal device and is expressed as:Tiex(ρ)=dieRi(ρ);in which,die represents a total task size uploaded by the ith terminal device to the corresponding edge server and is expressed as:die=∑ j=1MI (gi,j=1) di,j+∑ j=1MI (gi,j=1) di,jresult;in which, di,j represents a data size of the computing task ti,j;di,jresult represents a data size of a computing result for the computing task ti,j; andRi represents a transmission rate between the ith terminal device and the selected edge server and is expressed as:Ri(ρ)=∑k=1K I(k=ρi)×Blog2(1+pihi,k∑a∈𝒩∖{i}:ρa=ρipaha,k+σ2);in which, k represents a serial number of the edge server, where k=1, 2, . . . , K, and K represents a total number of the edge servers; hi,k represents a channel gain between the ith terminal device and the kth edge server; a represents a serial number of the terminal device, and G takes a value from 1 to N that is different from i; ρa represents the edge server selection strategy corresponding to the ath terminal device; pa represents the transmission power of the ath terminal device; ha,k represents a channel gain between the ith terminal device and the kth edge server; B represents a channel bandwidth; and σ2 represents background noise power. Further, the total energyEicom,lconsumed by the ith terminal device to process the computing task is expressed as:Eicom,l=picomfilFil;in which,picom represents the computing power of the ith terminal device;Fil represents a computing capacity of the ith terminal device;fil represents a number of CPU cycles required by the ith terminal device to perform the computing task locally on the terminal device and is expressed as:fil=∑j=1MI(ℊi,j=0)fi,j;in which, fi,j represents a number of CPU cycles required to process the computing task ti,j.Further, further comprising:for each of the terminal devices, determining whether a number of times the selected terminal device performs the computing task locally exceeds a preset threshold, and if so, setting the computing location corresponding to the wearable device with the highest security level in communication connection with the terminal device as the local terminal device.In another aspect of the present disclosure, a computing resource allocation apparatus, which is applied to a health monitoring system, the health monitoring system comprising a plurality of edge servers, a plurality of terminal devices in communication connection with the edge servers respectively, and a plurality of wearable devices in communication connection with the terminal devices respectively; and the computing resource allocation apparatus comprising:a construction module, configured to determine, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices; a first determination module, configured to respectively determine, based on the utility functions, the edge server selection strategy for each of the terminal devices corresponding to a case where the terminal device has a maximum utility;a second determination module, configured to respectively determine a utility increment of each of the terminal devices under the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, relative to a current edge server selection strategy; andan updating module, configured to update the current edge server selection strategy for the terminal device whose utility increment is maximum to be the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, so as to allocate computing resources of the corresponding edge server to the terminal device.In another aspect of the present disclosure, an electronic device, comprising: at least one processor; anda memory being in communication connection with the at least one processor, wherein the memory is configured to store instructions that can be executed by the at least one processor, the instructions, when being executed by the at least one processor, enabling the at least one processor to implement the computing resource allocation method according to claim 1.In another aspect of the present disclosure, a computer-readable storage medium is provided, which is configured to store a computer program therein, the computer program, when being executed by a processor, implementing the above-mentioned computing resource allocation method.Compared with the prior art, the present disclosure can automatically adjust the requirements of the terminal devices for edge server resources, reduce the overall energy consumption of the health monitoring system, and focus on reducing the energy consumption of the terminal devices as one of the main goals, thereby effectively prolonging the standby time of the terminal devices. For sensitive health and medical information of users, the privacy leakage risk is taken into account, thereby effectively reducing the privacy leakage risk of the users, and ensuring the security of user information. The task allocation between the local computing of the terminal devices and the edge servers can be dynamically adjusted, and the edge server selection strategies can be refined to each task so as to achieve the optimal balance between reducing energy consumption and protecting privacy, thereby improving the overall performance and user experience of the system, promoting a response speed of medical services, and increasing the user's trust and satisfaction with the health monitoring system.BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a schematic diagram of a communication connection relationship of a health monitoring system provided by an embodiment of the present disclosure;FIG. 2 is a flowchart of a computing resource allocation method provided by another embodiment of the present disclosure;FIG. 3 is a schematic diagram of a strategy selection result in Example 1 provided by another embodiment of the present disclosure;FIG. 4 is a schematic diagram of dynamic changes in utilities of terminal devices in Example 2 provided by another embodiment of the present disclosure;FIG. 5 is a schematic structural diagram of a computing resource allocation apparatus provided by another embodiment of the present disclosure; andFIG. 6 is a schematic structural diagram of an electronic device provided by another embodiment of the present disclosure.DETAILED DESCRIPTION OF THE INVENTIONIn order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, a further detailed description will be made to the embodiments of the present disclosure below with reference to the accompanying drawings. However, a person of ordinary skill in the art will appreciate that many technical details are set forth in the various embodiments of the present disclosure to provide a better understanding of the present disclosure for readers. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present disclosure can be implemented. The division of the following embodiments is for the convenience of description and shall not constitute any limitation on the specific implementations of the present disclosure. The embodiments can be combined and referenced with each other without contradiction.An embodiment of the present disclosure relates to a computing resource allocation method, which is applied to a health monitoring system. As shown in FIG. 1, the health monitoring system includes a plurality of edge servers, a plurality of terminal devices in communication connection with the edge servers respectively, and a plurality of wearable devices in communication connection with the terminal devices respectively. Each wearable device may be in communication connection with the corresponding terminal device through a wireless link, such that the wearable devices and the terminal devices form intra wireless body area networks (intra-WBANs). The plurality of terminal devices and the corresponding edge servers may also form extra wireless body area networks (extra-WBANs), such that the edge servers can send monitoring data of the wearable devices collected by the terminal devices to a medical service provider through a cloud server. The plurality of terminal devices may be in communication connection with the corresponding edge servers through a wireless link, each edge server may be in communication connection with the cloud server through a wired link, and the cloud server may be in communication connection with the medical service provider through a wired link.The wearable devices are configured to continuously monitor key health indexes of a user such as a heart rate, a blood pressure, blood glucose and other biomarkers. Each terminal device is configured to store information and processing data, and acts as a gateway. Each terminal device may decide whether to perform a computing task locally or offload the computing task to the corresponding edge server. That is to say, each terminal device may aggregate and process monitoring data collected by the user's wearable device, and send relevant medical reports or data required by the corresponding edge server to the edge server, which in turn sends the relevant medical reports or the monitoring data to the cloud server and the medical service provider, such that the medical service provider can continuously monitor biomedical data of the user at the minimum cost.Using high-speed and low-latency capabilities of 6th generation mobile networks, each terminal device can efficiently transmit the collected user health data to the nearby edge server. The edge server is strategically positioned to perform real-time data processing, which significantly reduces latency compared to traditional cloud-based health monitoring systems. Each edge server may also acquire health insights by using the processed data immediately, or send the data to the medical service provider for further analysis and taking actions. The health monitoring system provided by the present embodiment can not only quickly respond to medical service requirements of users, but also improve the overall response speed and accuracy of the health monitoring system, and enhance the responsiveness and accuracy of medical intervention.Resource allocation for the edge servers presents significant challenges. Therefore, the computing resource allocation method provided by the present embodiment recognizes the acute energy sensitivity of the terminal devices by focusing on minimizing energy usage at a terminal device level. In addition, biomedical data collected by the wearables devices raises significant privacy concerns and requires a strategy that skillfully integrates privacy risk management. Therefore, in the course of allocating resources to the edge servers, it is necessary to skillfully balance the energy efficiency optimization and strict privacy protection of the terminal devices.As shown in FIG. 2, the computing resource allocation method includes steps S210 to S240.In step S210, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices are determined.Specifically, information processed and transmitted by the health monitoring system is medical information in nature, raising significant concerns about user privacy. Data collected by the wearable devices provides deep insight into individual's health statuses. Only from the perspective of privacy security, users prefer to process tasks locally on the terminal devices rather than uploading the collected data to the edge servers. The local computing of the terminal devices allows the users to reduce the leakage risk of the data collected by the wearable devices while transmitting necessary medical reports directly to the medical service provider. Therefore, the present embodiment establishes a privacy leakage risk assessment index so as to systematically assess the possibility of privacy leakage during task transmission.According to IEEE Standard 802.15.6, the wearable devices will select security levels while transmitting messages. The security levels include three levels, namely Level 0 (unencrypted), Level 1 (authenticated but not encrypted), and Level 2 (both authenticated and encrypted). All tasks of the wearable devices may be classified into the above three security levels.An indicator function I(⋅) is defined, wherein a function value of is I(⋅) when an expression in parentheses is true, and a function value of I(⋅) is 0 when the expression in parenthesis is false. The privacy leakage risk assessment index of a computing task ti,j corresponding to the jth wearable device in communication connection with the ith terminal device is made to be Si,j and then, Si,j may be calculated according to the following formula:Si,j=∑s=0s=2I(si,j=s)αi,j,svi,j,where s=0, 1, 2 represents the security levels, αi,j,s∈[0,∞) represents a coefficient of the security level s, and vi,j represents an amount of information of the computing task ti,j. A value of αi,j,s increases as the value of s increases. j represents a serial number of the wearable device in communication connection with the ith terminal device, where j=1, 2, . . . , M, and M represents a total number of wearable devices in communication connection with the ith terminal device.In an extra wireless body area network, each terminal device can communicate with only one edge server at a time. If the edge server selection strategy corresponding to the ith terminal device is denoted as ρi, when the number of the terminal devices is N (N is a positive integer), a set ρ composed of the edge server selection strategies respectively corresponding to all terminal devices may be expressed as ρ={ρ1, ρ2, . . . , ρN}. The set ρ contains a strategic choice made by each terminal device in selecting the corresponding edge server for the purpose of communication. ρi=k represents that the ith terminal device selects the kth edge server for task offload. k represents a serial number of the edge server, where k=1, 2, . . . , K, K represents a total number of the edge servers, and K is a positive integer. t=0 represents that the ith terminal device tends to process a task locally. A transmission rate Ri between the ith terminal device and the selected edge server may be calculated according to the following formula:Ri(ρ)=∑k=1K I(k=ρi)×Blog2(1+pihi,k∑a∈𝒩∖{i}:ρa=ρipaha,k+σ2).pi represents transmission power of the ith terminal device. hi,k represents a channel gain between the ith terminal device and the kth edge server. a represents a serial number of the terminal device, and a takes a value from 1 to N that is different from i. ρa represents the edge service selection strategy corresponding to the ath terminal device. pa represents transmission power of the ath terminal device. ha,k represents a channel gain between the ith terminal device and the kth edge server. B represents a channel bandwidth. σ2 represents background noise power.In practical applications, low-power operation is crucial for the wearable devices, so both the smallest battery size and infrequent charging cycles need to be accommodated simultaneously in design. Low energy consumption is critical to ensure long-term operation and effectiveness of the wearable devices deployed in various medical monitoring scenarios. In the health monitoring system provided by the present embodiment, although the energy consumption of the wearable device for information collection and task generation remains unchanged, the transmission energy consumption generated in a case where the wearable device sends data to the terminal device will make the overall energy consumption of the wearable device variable. The energy consumption in the extra wireless body area network is mainly characterized by two key elements: the communication energy consumption between the terminal devices and the edge servers, and the computing energy consumption.A total task sizedieuploaded by the ith terminal device to the corresponding edge server may be calculated according to the following formula:die=∑j=1MI(ℊi,j=1)di,j+∑j=1MI(ℊi,j= 1)di,jresult.di,j represents a data size of the computing task ti,jdi,jresultrepresents a data size of a computing result for the computing task ti,j. gi,j is a binary variable which represents a computing location corresponding to the jth wearable device in communication connection with the ith terminal device, with a value of 0 indicating that the computing location is the local terminal device, and a value of 1 indicating that the computing location is selected along with the terminal device.The transmission delayTiexcorresponding to the ith terminal device may be calculated according to the following formula:Tiex(p)=dieRi(ρ).The communication energy consumptionEiex(ρ)between the ith terminal device and the corresponding edge server may be calculated according to the following formula:Eiex(ρ)=piTiex(ρ).In the health monitoring system provided by the present embodiment, the computing task may be processed by the terminal devices or the edge servers. After the computing task is processed, the resulting data may be transmitted to a cloud server and forwarded to the health service provider through the cloud server. This workflow ensures that the computing task which is critical to health monitoring and analysis can be performed efficiently, making full use of distributed computing resources available within the network.A number of CPU cycles required to process the computing task ti,j is denoted as fi,j, and then, a number of CPU cyclesfilrequired by the ith terminal device to perform the computing task locally on the terminal device may be calculated according to the following formula:fil→∑j=1MI(gi,j=0)fi,jfi,j represents a number of CPU cycles required for the computing task ti,j. The number of CPU cyclesfiethat the ith terminal device needs to offload the computing task to the corresponding edge server for processing may be calculated according to the following formula:fie=∑j=1MI(gi,j=1)fi,jThe computing capacity of the ith terminal device and the computing capacity of the kth edge server may be expressed byFil and Fke,respectively. Assuming that the edge server allocates an equal amount of computing resources to each terminal device, the available computing capacityFie(ρ)obtained by the ith terminal device from the edge server may be calculated according to the following formula:Fie(ρ)=∑ k=1KI(k=ρi)Fke∑ a=1NI(ρa=k),where a takes a value of 1, 2, . . . , N. The total energyEicom,lconsumed by the ith terminal device to process the computing task may be calculated according to the following formula:Eicom,l=picomfilFil. picomrepresents computing power of the ith terminal device.The total energyEicom,cconsumed by the edge server to process the computing task from the ith terminal device may be calculated according to the following formula:Eicom,l(ρ)=pecomfieFie(ρ). pecomrepresents computing power of the edge server.After collecting all relevant data, the terminal device faces a critical decision: whether to offload the task to the edge server or process the task locally on the terminal device. Most of the existing technologies focus on reducing the total energy consumption of the system, but the computing resource allocation method provided by the present embodiment shifts to reducing the operating expenses of the terminal devices and taking the privacy leakage risk into an account. There are two considerations for this purpose in the present embodiment: firstly, in view of the popularity of terminal devices carried by users, priority is given to the energy consumption of the terminal devices themselves over the concern for the energy demands of the edge servers; and secondly, health and medical data of the users inherently possess confidentiality and each task processes a large amount of personal information of the users, making processing tasks directly on the edge servers a less desirable option. In contrast, processing the tasks locally on the terminal devices and then transmitting relevant reports to the medical service provider can effectively enhance privacy protection of the users. Therefore, the present embodiment must focus on considering the privacy impact related to the users in the decision-making process about task processing.Since one terminal device corresponds to one user, the cost functionCostiexcorresponding to the ith terminal device may be expressed asCostiex(ρ)=γiSI(ρi>0)Si+I(ρi>0)Eiex(ρ)+I(ρi=0)Eicom,l(ρ).Si represents the privacy leakage risk assessment index corresponding to the ith terminal device and may be expressed asSi=∑ j=1MI(gi,j=1)Si,j. γiSrepresents a coefficient of Si.On the basis of the above content, exemplarily, step S210 includes: constructing a utility function according to the following formula:Uiex(ρi,ρ-i)=-Costiex(ρi,ρ-i). Uiexrepresents the utility function corresponding to the ith terminal device. ρ−i represents the edge service selection strategy corresponding to other terminal devices other than the ith terminal device.Exemplarily, step S210 further includes: determining the constraint condition of the utility function according to the following formula:ρi∈{0}∪K for i=1,2, . . . ,N. K represents a set composed of all edge servers.In step S220, based on the utility functions, the edge server selection strategy for each of the terminal devices corresponding to a case where the terminal device has a maximum utility is determined, respectively.Specifically, after the utility functionUiexcorresponding to the ith terminal device is obtained, the edge server selection strategy for the ith terminal device corresponding to a case where the ith terminal device has a maximum utility may be determined according toargmaxρiUiex(ρi,ρ-i)=-argminρiCostiex(ρi,ρ-i),thereby obtaining the edge server selection strategy for each terminal device correspondent to a case where the terminal device has a maximum utility.In step S230, a utility increment of each of the terminal devices under the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, relative to a current edge server selection strategy is determined, respectively. Specifically, in order to solve optimization challenges related to the allocation of edge serve resources, the computing resource allocation method provided by the present embodiment is actually a dynamic allocation algorithm for edge server resources. This algorithm establishes a baseline for system operations by first setting the utility function for each terminal device, assuming that all terminal devices initially perform all tasks locally. Then, this algorithm starts an iteration process until the system reaches a Nash equilibrium point. In the iteration process of the algorithm, each iteration includes one strategy assessment in which an incremental utility payoff for resource reallocation of a potential edge server is calculated and compared with that in the existing edge server selection strategy, and in this iteration, the terminal device that obtains the maximum utility payoff updates its edge server selection strategy accordingly. The algorithm will converge once the incremental utility payoff of the terminal device is stabilized at zero, i.e., the Nash equilibrium point is reached. Therefore, in step S230, the utility increment of each of the terminal devices under the edge server selection strategy corresponding to a case where the terminal device has a maximum utility relative to the current edge server selection strategy needs to be determined respectively, so as to determine the terminal device having the maximum utility increment.Exemplarily, the utility increment of the ith terminal device under the edge server selection strategy corresponding to a case where the ith terminal device has a maximum utility relative to the current edge server selection strategy is expressed as:Δi(t)=Uiex(ρi′,ρ-i)-Uiex(ρi,ρ-i).Δi(t) represents the utility increment corresponding to the ith terminal device at time t.ρi′represents the edge server selection strategy of the ith terminal device corresponding to a case where the ith terminal device has a maximum utility.Uiex(ρi′,ρ-i)represents the utility function of the ith terminal device under conditions that the edge server selection strategy corresponding to a case where the ith terminal device has a maximum utility isρi′,while other terminal devices keep their edge server selection strategies unchanged.Uiex(ρi,ρ-i)represents the utility function of the ith terminal device under conditions that the edge server selection strategy corresponding to the ith terminal device is ρi, while other terminal devices keep their edge server selection strategies unchanged.In step S240, the current edge server selection strategy for the terminal device whose utility increment is maximum is updated to be the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, so as to allocate computing resources of the corresponding edge server to the terminal device. Updating the current edge server selection strategy for the terminal device whose utility increment is maximum to be the edge server selection strategy corresponding to a case where the terminal device has a maximum utility can effectively increase a resource utilization rate of the edge server, thereby effectively improving the computing efficiency.Exemplarily, the computing resource allocation method further includes: for each terminal device, determining whether a number of times the selected terminal device performs the computing task locally exceeds a preset threshold, and if so, setting a computing location corresponding to the wearable device with the highest security level in communication connection with the terminal device as the local terminal device. Specifically, in order to optimize the local computing cost of the terminal devices while protecting user privacy, the computing resource allocation method provided by the present embodiment further includes a dynamic adjustment mechanism. When the number of times the terminal device performs the computing task locally exceeds the preset threshold, this dynamic adjustment mechanism may automatically modify a computing request of the terminal device for the corresponding edge server, and isolate the tasks with relatively high privacy leakage risks for local processing on the terminal device, which is manifested by setting the computing location corresponding to the wearable device with the highest security level in communication connection with the terminal device as the local terminal device and excluding this computing location from the decision-making process of determining whether edge computing is needed. Conversely, this dynamic adjustment mechanism encourages more tasks to be incorporated into the scope of potential outsourcing to the corresponding edge server when the terminal device continuously obtains computing resources of the edge server within a preset threshold. That is, this strategic algorithm makes a trade-off between privacy protection and computing efficiency to guide the system to the optimal operational balance.Compared with the prior art, the computing resource allocation method provided by the embodiment of the present disclosure can automatically adjust the requirements of the terminal devices for edge server resources, reduce the overall energy consumption of the health monitoring system, and focus on reducing the energy consumption of the terminal devices as one of the main goals, thereby effectively prolonging the standby time of the terminal devices. For sensitive health and medical information of users, the computing resource allocation method provided by the embodiment of the present disclosure takes the privacy leakage risk into account, effectively reduces the privacy leakage risk of the users, and ensures the security of user information. Furthermore, according to the computing resource allocation method provided by the embodiment of the present disclosure, the task allocation between the local computing of the terminal devices and the edge servers can be dynamically adjusted, and the edge server selection strategies can be refined to each task so as to achieve the optimal balance between reducing energy consumption and protecting privacy, thereby improving the overall performance and user experience of the system, promoting a response speed of medical services, and increasing the user's trust and satisfaction with the health monitoring system.In order to enable a person skilled in the art to better understand the above embodiment, a dynamic allocation algorithm for edge server resources involved in the computing resource allocation method is described below with a specific example.The dynamic allocation algorithm for edge server resources is as follows:Input: a set of N terminal devices, a set of wearable devices corresponding to each terminal device, and a set of edge servers.Output: a set of the edge service selection strategies for each terminal device.Initialization:1. Set an initial time slot t=0.2. For each terminal device i:Initialize the edge server selection strategy ρi to 0.Initialize a counter δi to 0.For the jth wearable device of each terminal device i, initiate a computing location gi,j to 1.Strategy update:3. For each time slot t:Initialize a candidate set Ω of the edge server selection strategies as an empty set.For each terminal device:Find the edge server selection strategyρi′ that can maximize the utility functionUiex of the terminal device i,ρi′←argmaxρi′Uiex(ρi′,ρ-i).Calculate the utility increment Δi(t) of strategy change,Δi(t)=Uiex(ρi′,ρ-i)-Uiex(ρi,ρ-i).Add(Δi(t),ρi′) to the candidate set Ω of the edge server selection strategies,Ω←Ω⋃{(Δi(t),ρi′)}.When Q is not empty:Find the terminal device n with the maximum utility increment Δi(t), n←argmaxn∈NΔi(t).Update the edge server selection strategy for the terminal device n,ρn(t+ 1)←ρn′.Remove(Δi(t),pi′) from the candidate set Ω of the edge server selection strategies,Remove (Δn(t),ρn′) from Ω.Task strategy update:4. For each time slot t:For each terminal device i:If the edge server selection strategy ρi for the terminal device i is 0:Add 1 to the counter δi.If the counter δi exceeds a preset threshold δthreshold, then:Find the wearable device n with the maximum privacy leakage risk assessment index Si,j:Set gi,n to 0.Otherwise, reset the counter δi to 0.5. Add 1 to the time slot t.The beneficial effects of the computing resource allocation method provided by the embodiment of the present disclosure are illustrated by way of examples below.Thirty terminal devices, each of which is equipped with one to ten wearable devices through a random selection process, are taken as an example. The task data generated by the wearable devices has a size ranging from 100 KB to 300 KB, with the specific data size being determined randomly. The CPU cycles required for task processing range from 10 megacycles to 100 megacycles. The health monitoring system is made to operate over a 5 MHz bandwidth, with standard transmission power of 0.1 W for data transmission. The edge servers are randomly distributed, with a radio coverage range of fifty meters. The channel gain is set ashi,j=li,j-3,where li,j represents a distance between the ith terminal device and the jth wearable device in communication connection with the ith terminal device, and 3 represents a path loss factor. The computing capabilities of the edge servers and the terminal devices are respectively configured at 30,000 MHz and 2,000 MHz. Both the terminal devices and the edge servers are allocated with a uniform transmission and computing power of 0.1 W. Both the medical criticality and the privacy leakage risk assessment index are set to a range of 0 to 3. A coefficientγiSof the privacy leakage risk assessment index Si corresponding to the ith terminal device takes a value of 0.012.Example 1: A simulation experiment with thirty terminal devices and five edge servers is conducted to observe dynamic changes of the edge server selection strategies for the terminal devices over time. Initially, local computing is selected for all terminal devices. FIG. 3 shows a strategy selection result in this experiment, which shows a clear trend towards equilibrium over time.Example 2: A simulation experiment with ten terminal devices and five edge servers is conducted to observe dynamic changes in the utilities of the terminal devices over time. FIG. 4 shows the dynamic changes in the utilities of the terminal devices in this experiment. The results show that the utilities of these ten terminal devices converge and stop changing within a finite number of iterations, and the utilities of all terminal devices increase over time.Another embodiment of the present disclosure relates to a computing resource allocation apparatus, which is applied to a health monitoring system, the health monitoring system including a plurality of edge servers, a plurality of terminal devices in communication connection with the edge servers respectively, and a plurality of wearable devices in communication connection with the terminal devices respectively.As shown in FIG. 5, the computing resource allocation apparatus includes a construction module 510, a first determination module 520, a second determination module 530, and an updating module 540.The construction module 510 is configured to determine, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices.The first determination module 520 is configured to respectively determine, based on the utility functions, the edge server selection strategy for each of the terminal devices corresponding to a case where the terminal device has a maximum utility.The second determination module 530 is configured to determine a utility increment of each of the terminal devices under the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, relative to a current edge server selection strategy.The updating module 540 is configured to update the current edge server selection strategy for the terminal device whose utility increment is maximum to be the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, so as to allocate computing resources of the corresponding edge server to the terminal device.Exemplarily, the updating module 540 is further configured to, for each terminal device, determine whether a number of times the selected terminal device performs a computing task locally exceeds a preset threshold, and if so, set a computing location corresponding to the wearable device with the highest security level in communication connection with the terminal device as the local terminal device.A specific implementation method of the computing resource allocation apparatus provided by the embodiment of the present disclosure may refer to the computing resource allocation method provided by the embodiment of the present disclosure, and will not be repeated here.Compared with the prior art, the computing resource allocation apparatus provided by the embodiment of the present disclosure can automatically adjust the requirements of the terminal devices for edge server resources, reduce the overall energy consumption of a health monitoring system, and focus on reducing the energy consumption of the terminal devices as one of the main goals, thereby effectively prolonging the standby time of the terminal devices. For sensitive health and medical information of users, the privacy leakage risk is taken into account, thereby effectively reducing the privacy leakage risk of the users, and ensuring the security of user information. The task allocation between local computing of the terminal devices and the edge servers can be dynamically adjusted, and the edge server selection strategies can be refined to each task so as to achieve the optimal balance between reducing energy consumption and protecting privacy, thereby improving the overall performance and user experience of the system, promoting a response speed of medical services, and increasing the user's trust and satisfaction with the health monitoring system.Another embodiment of the present disclosure relates to an electronic device. As shown in FIG. 6, the electronic device includes:at least one processor 601; anda memory 602 being in communication connection with the at least one processor 601, whereinthe memory 602 is configured to store instructions that can be executed by the at least one processor 601, the instructions, when being executed by the at least one processor 601, enabling the at least one processor 601 to implement the computing resource allocation method provided by the above embodiment.The memory and the processor are connected by means of a bus, which may include any number of interconnected buses and bridges. The bus connects various circuits of one or more processors and the memory together. The bus may also connect various other circuits together, such as peripheral devices, voltage regulators and power management circuits, which are well known in the art and, therefore, will not be described further herein. A bus interface provides an interface between the bus and a transceiver. The transceiver may be a single element or a plurality of elements, such as a plurality of receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor.The processor is responsible for managing the bus and general processing, and may also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory may be configured to store data used by the processor to perform operations.Another embodiment of the present disclosure relates to a computer-readable storage medium, which is configured to store a computer program therein, the computer program, when being executed by a processor, implementing the computing resource allocation method provided by the above embodiment.That is, a person skilled in the art may understand that all or part of the steps in the method of the above embodiment may be completed by a program to instruct relevant hardware. This program is stored in a storage medium, including a plurality of instructions to enable a device (which may be a single-chip microcomputer or a chip) or a processor to perform all or part of the steps in the method of each embodiment of the present disclosure. The aforementioned storage medium includes: a U disk, a portable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disc or other media that can store program codes therein.A person of ordinary skill in the art may understand that each of the above embodiments is a specific embodiment of the present disclosure, and in practical applications, various changes may be made to these embodiments in form and detail without deviating from the spirit and scope of the present disclosure.
Claims
1. A computing resource allocation method, which is applied to a health monitoring system, the health monitoring system comprising a plurality of edge servers, a plurality of terminal devices in communication connection with the edge servers respectively, and a plurality of wearable devices in communication connection with the terminal devices respectively; andthe computing resource allocation method comprising:determining, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices;respectively determining, based on the utility functions, the edge server selection strategy for each of the terminal devices corresponding to a case where the terminal device has a maximum utility;determining a utility increment of each of the terminal devices under the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, relative to a current edge server selection strategy; andupdating the current edge server selection strategy for the terminal device whose utility increment is maximum to be the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, so as to allocate computing resources of the corresponding edge server to the terminal device.
2. The computing resource allocation method according to claim 1, wherein the determining, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices comprises:constructing the utility function according to the following formula:Uiex(ρi,ρ-i)=-Costiex(ρi,ρ-i);in which, ρi represents the edge server selection strategy corresponding to the ith terminal device; ρ−i represents the edge server selection strategy corresponding to other terminal devices other than the ith terminal device;Uiex represents the utility function corresponding to the ith terminal device;Costiex represents a cost function corresponding to the ith terminal device and is expressed as:Costiex(ρ)=γiSI(ρi>0)Si+I(ρi>0)Eiex(ρ)+I(ρi=0)Eicom,l(ρ);in which, ρ represents a set composed of the edge server selection strategies respectively corresponding to all terminal devices; Si represents the privacy leakage risk assessment index corresponding to the ith terminal device;γiS, represents a coefficient of Si; I(⋅) represents an indicator function, wherein a function value of I(⋅) is 1 when an expression in parentheses is true, and a function value of I(⋅) is 0 when the expression in parenthesis is false;Eiex(ρ) represents the communication energy consumption between the ith terminal device and the corresponding edge server;Eicom,la represents total energy consumed by the ith terminal device to process a computing task; anddetermining the constraint condition of the utility function according to the following formula:ρi∈{0}∪K for i=1,2, . . . ,N; in which, N represents the number of the terminal devices; and K represents a set composed of all edge servers.
3. The computing resource allocation method according to claim 2, wherein the utility increment of the ith terminal device under the edge server selection strategy corresponding to a case where the ith terminal device has a maximum utility, relative to the current edge server selection strategy is expressed as:Δi(t)=Uiex(ρi′,ρ-i)-Uiex(ρi,ρ-i);in which, Δi(t) represents the utility increment corresponding to the ith terminal device at time t;Uiex(ρi′,ρ-i) represents the utility function of the ith terminal device under conditions that the edge server selection strategy corresponding to a case where the ith terminal device has a maximum utility isρi′, while other terminal devices keep their edge server selection strategies unchanged; andUiex(ρi′,ρ-i) represents the utility function of the ith terminal device under conditions that the edge server selection strategy corresponding to the ith terminal device is ρi, while other terminal devices keep their edge server selection strategies unchanged.
4. The computing resource allocation method according to claim 2, wherein the privacy leakage risk assessment index Si corresponding to the ith terminal device is expressed as:Si=∑ j=1MI (gi,j=1) Si,j;in which, j represents a serial number of the wearable device in communication connection with the ith terminal device, where j=1, 2, . . . , M, and M represents a total number of wearable devices in communication connection with the ith terminal device;represents a computing location corresponding to the jth wearable device in communication connection with the ith terminal device, with a value of 0 indicating that the computing location is the local terminal device, and a value of 1 indicating that the computing location is selected along with the terminal device; represents a privacy leakage risk assessment index of a computing task ti,j corresponding to the jth wearable device in communication connection with the ith terminal device.
5. The computing resource allocation method according to claim 4, wherein the communication energy consumptionEiex(ρ)between the ith terminal device and the corresponding edge server is expressed as:Eiex(ρ)=piTex(ρ);in which, pi represents transmission power of the ith terminal device;Texrepresents a transmission delay corresponding to the ith terminal device and is expressed as:Tex(ρ)=dieRi(ρ);in which,die represents a total task size uploaded by the ith terminal device to the corresponding edge server and is expressed as:die=∑ j=1MI (gi,j=1) di,j+∑ j=1MI (gi,j=1) di,jresult;in which, di,j represents a data size of the computing task ti,j;di,jresult represents a data size of a computing result for the computing task ti,j; andRi represents a transmission rate between the ith terminal device and the selected edge server and is expressed as:Ri(ρ)=∑k=1KI (k=ρi)×B log2 (1+pihi,k∑ a∈𝒩\{i}:ρa=ρipaha,k+σ2);in which, k represents a serial number of the edge server, where k=1, 2, . . . , K, and K represents a total number of the edge servers; hi,k represents a channel gain between the ith terminal device and the kth edge server; a represents a serial number of the terminal device, and a takes a value from 1 to N that is different from i; ρa represents the edge server selection strategy corresponding to the ath terminal device; pa represents the transmission power of the ath terminal device; ha,k represents a channel gain between the ith terminal device and the kth edge server; B represents a channel bandwidth; and σ2 represents background noise power.
6. The computing resource allocation method according to claim 4, wherein the total energyEicom,lconsumed by the ith terminal device to process the computing task is expressed as:Eicom,l=picomfiFil;in which,picom represents the computing power of the ith terminal device;Fil represents a computing capacity of the ith terminal device;fil represents a number of CPU cycles required by the ith terminal device to perform the computing task locally on the terminal device and is expressed as:fil=∑j=1MI (gi,j=0) fi,j;in which, fi,j represents a number of CPU cycles required to process the computing task ti,j.
7. The computing resource allocation method according to claim 1, further comprising: for each of the terminal devices, determining whether a number of times the selected terminal device performs the computing task locally exceeds a preset threshold, and if so, setting the computing location corresponding to the wearable device with the highest security level in communication connection with the terminal device as the local terminal device.
8. A computing resource allocation apparatus, which is applied to a health monitoring system, the health monitoring system comprising a plurality of edge servers, a plurality of terminal devices in communication connection with the edge servers respectively, and a plurality of wearable devices in communication connection with the terminal devices respectively; andthe computing resource allocation apparatus comprising:a construction module, configured to determine, according to communication energy consumption between the terminal devices and the edge servers, as well as computing energy consumption, a privacy leakage risk assessment index and a coefficient thereof corresponding to the terminal devices and based on edge server selection strategies, utility functions and constraint conditions thereof corresponding to the terminal devices;a first determination module, configured to respectively determine, based on the utility functions, the edge server selection strategy for each of the terminal devices corresponding to a case where the terminal device has a maximum utility;a second determination module, configured to respectively determine a utility increment of each of the terminal devices under the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, relative to a current edge server selection strategy; andan updating module, configured to update the current edge server selection strategy for the terminal device whose utility increment is maximum to be the edge server selection strategy corresponding to a case where the terminal device has a maximum utility, so as to allocate computing resources of the corresponding edge server to the terminal device.
9. An electronic device, comprising:at least one processor; anda memory being in communication connection with the at least one processor, wherein the memory is configured to store instructions that can be executed by the at least one processor, the instructions, when being executed by the at least one processor, enabling the at least one processor to implement the computing resource allocation method according to claim 1.
