Edge cache placement optimization method and system based on user preference perception
Through the edge cache optimization method based on user preference perception, deep learning and genetic algorithm are used to predict and cluster user preferences, which solves the problem of limited edge server cache resources and unreflected user preferences, and improves cache hit rate and efficiency.
Patent Information
- Application Number
- CN202410754379.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-08
AI Technical Summary
In the existing technology, the cache resources of edge servers are limited, resulting in popular content being stored repeatedly on multiple edge nodes, which reduces the efficiency of the cache system, and the existing cache strategy cannot effectively reflect the user's specific preferences and activity levels, resulting in cache hit rates. Low.
A user preference prediction mechanism based on a bidirectional long short-term memory network is used, combined with deep learning and genetic algorithms, to perform user preference perception and clustering, design personalized caching strategies, and optimize cache content placement to maximize cache hit rates.
It improves caching efficiency and content access speed, effectively meets the needs of different active users for different content, and reduces the overall content access delay of the system.
Smart Images

Figure CN118748643A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile edge cache technology, and in particular to an edge cache placement optimization method and system based on user preference perception. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] In the prior art, due to the limited cache resources of the edge server, when the edge node makes a cache decision independently, it is easy to cause the repeated storage of popular content on multiple edge nodes, thereby reducing the efficiency of the entire cache system. In addition, for the existing active caching strategies, most of them consider caching popular content in advance by predicting the popularity of the content. However, the popularity of the content usually reflects the average interest of multiple users in the content, and cannot reflect the specific preferences of a single user, so it is impossible to significantly improve the cache hit rate of the system. In real application scenarios, different users have different preferences for different content. Users usually request content according to their individual preferences. The higher the preference for specific content, the greater the request probability. In addition, the number of requests generated by each user is different. Less than 20% of users generate 80% of the multimedia traffic, which shows that the activity of users is heterogeneous. The existing methods do not fully consider the heterogeneity of user preferences and activity, which may cause the cache strategy to be unable to effectively meet the needs of different active users for different content, reducing the cache efficiency. Summary of the invention
[0004] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides an edge cache placement optimization method and system based on user preference perception, taking into account the uneven distribution of users, the heterogeneity of user preferences and user activity in large-scale mobile edge networks, and designs a user preference prediction mechanism based on a bidirectional long short-term memory network to capture dynamic user preference behavior.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A first aspect of the present invention provides an edge cache placement optimization method based on user preference perception.
[0007] A method for optimizing edge cache placement based on user preference perception, comprising:
[0008] Determine the overall access latency of user requested content based on the mobile edge network;
[0009] Obtain the user's historical request records, use a deep learning network to predict the number of content requests from users in the next time slot, and combine the activity levels of heterogeneous users to obtain the probability distribution of user content preferences;
[0010] Based on the probability distribution of user content preferences, users are clustered according to preference similarity, highly related users are grouped into the same cluster, and a cache strategy is designed for each cluster;
[0011] The cache placement problem is transformed into a delay reduction maximization problem. The overall delay reduction is maximized under the constraints of cache capacity and delay threshold. The genetic algorithm is used to optimize the delay reduction maximization problem and the best individual is iterated as the global optimal cache placement strategy.
[0012] According to the global optimal cache placement strategy, cache content placement is performed, and cache content is dynamically adjusted according to user requests to maximize the cache hit rate.
[0013] Furthermore, the overall access delay of the user requested content is expressed by the following formula:
[0014]
[0015] in, Indicates the overall access latency of the content requested by the user; is a binary variable, when it is 1, it means that the content is cached at server i; let K be the set of clusters, |φ k (u)| is the number of base stations contained in cluster k∈K; ξ j,u represents the transmission delay between edge servers; s,u Indicates the maximum content access delay; Indicates whether any base station server has the content cached.
[0016] Furthermore, the process of obtaining historical user request records, using a deep learning network to predict the number of content requests by users in the next time period, and combining the activity levels of heterogeneous users to obtain the probability distribution of user preferences for content includes: obtaining historical user request records, using a deep learning network to predict the number of content requests by users in the next time slot; considering the number of content requests by users in the next time slot as user preferences; considering the ratio of the total number of content requests by the user in a time slot to the total number of content requests by all users in the time slot as user activity; and determining the probability distribution of user preferences for content based on user activity and user preferences.
[0017] Furthermore, the process of clustering users according to preference similarity based on the probability distribution of user content preferences and grouping highly correlated users into the same cluster includes: representing the probability distribution of user content preferences with a vector, where each element in the vector represents the probability distribution of a user requesting different content within a time slot; calculating the preference similarity between different users using cosine similarity; defining neighborhood radius and density threshold parameters, and determining whether a cluster is formed by calculating the similarity between users until all users are grouped into clusters; and dynamically adjusting parameters and using the silhouette coefficient to find the best clustering quality to group users with highly correlated content preferences into the same cluster.
[0018] Furthermore, the cache placement problem is converted into a delay reduction maximization problem, and the process of maximizing the overall delay reduction under the constraints of cache capacity and delay threshold is expressed by the following formula:
[0019]
[0020] Among them, Γ u The overall access latency for user u to obtain content, is the baseline latency for fetching content from the cloud server. Constraint C1 limits the cache capacity of each edge server, and constraint C2 limits is a binary variable, and constraint C3 ensures that the maximum allowed access delay of each content does not exceed a specific delay threshold ρ f .
[0021] Furthermore, the process of using a genetic algorithm to optimize and reduce the delay maximization problem and iterating the best individual as the global optimal cache placement strategy includes: each chromosome represents a cache strategy, which is encoded using a binary string of length F×N; initializing genetic parameters, including the number of iterations, crossover rate, mutation rate and population size, and randomly generating an initial population to ensure that each individual meets the cache capacity and delay threshold constraints; calculating the fitness value of each individual according to the delay formula, and using a roulette method to select individuals with higher fitness as parents; selecting multiple crossover points according to the crossover rate, and the parent chromosomes exchange gene segments at the crossover points to generate offspring individuals, and performing random mutations to maintain population diversity; repeating selection, crossover and mutation operations until the maximum number of iterations is reached or the fitness change is less than a threshold; the individual with the largest fitness value in the population is regarded as the global optimal cache placement strategy.
[0022] Furthermore, the delay formula is:
[0023]
[0024] Where f represents the fitness value, and Γ represents the overall access delay of users to obtain content within a unit time slot.
[0025] A second aspect of the present invention provides an edge cache placement optimization system based on user preference perception.
[0026] An edge cache placement optimization system based on user preference perception, comprising:
[0027] A delay determination module, configured to: determine the overall access delay of the user requested content based on the mobile edge network;
[0028] The prediction module is configured to: obtain the user's historical request records, use a deep learning network to predict the number of content requests by users in the next time slot, and combine the activity levels of heterogeneous users to obtain the probability distribution of users' content preferences;
[0029] A clustering module, which is configured to: cluster users according to preference similarity based on the probability distribution of user content preferences, group highly related users into the same cluster, and design a cache strategy for each cluster;
[0030] The optimization module is configured to: transform the cache placement problem into a delay reduction maximization problem, maximize the overall delay reduction under the constraints of cache capacity and delay threshold, use a genetic algorithm to optimize the delay reduction maximization problem, and iterate the best individual as the global optimal cache placement strategy;
[0031] The execution module is configured to: execute the placement of cache content according to the global optimal cache placement strategy, and dynamically adjust the cache content according to user requests to maximize the cache hit rate.
[0032] A third aspect of the present invention provides a computer-readable storage medium.
[0033] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the edge cache placement optimization method based on user preference perception as described in the first aspect above.
[0034] A fourth aspect of the present invention provides a computer device.
[0035] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the edge cache placement optimization method based on user preference perception as described in the first aspect above are implemented.
[0036] Compared with the prior art, the present invention has the following beneficial effects:
[0037] In order to solve the problem of cache content redundancy caused by independent cache decisions, the present invention designs a density-based spatial clustering algorithm, which clusters users based on the known probability distribution of user content preferences, can discover the request patterns of different users, evaluate the relationship between users, adaptively cluster highly correlated users into the same cluster, and design an effective collaborative cache content placement strategy based on this, aiming to improve cache efficiency and content access speed. In addition, in order to improve the cache hit rate, the present invention formulates the cache placement problem as a problem of maximizing the reduced total system delay, and designs a genetic algorithm based on this to achieve the optimal cache content placement of the system.
[0038] In order to solve the problem of low cache hit rate caused by the inability of existing caching strategies to reflect individual specific content preferences, the present invention designs a collaborative caching strategy based on user preference perception and user adaptive clustering based on content preferences in a mobile edge network. This strategy takes into account the specific preferences and different activity levels of users, effectively meets the needs of users with different activity levels for different content, improves the overall caching efficiency of the system, and reduces the overall content access delay of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0040] Figure 1 It is a schematic diagram of the system model architecture of the present invention;
[0041] Figure 2 It is a schematic diagram of the work flow of the cache placement method of the present invention;
[0042] Figure 3 It is a comparison diagram of cache hit rate and delay acceleration ratio and cache size of the present invention;
[0043] Figure 4 It is a comparison chart of the cache hit rate and delay acceleration ratio and the number of content requests of the present invention. DETAILED DESCRIPTION
[0044] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0045] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0046] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0047] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the methods and systems according to various embodiments of the present disclosure. It should be noted that each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code may include one or more executable instructions for implementing the logical functions specified in each embodiment. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the flowchart and / or block diagram, and the combination of boxes in the flowchart and / or block diagram can be implemented using a dedicated hardware-based system that performs a specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0048] Embodiment 1
[0049] like Figure 2 As shown, this embodiment provides an edge cache placement optimization method based on user preference perception. This embodiment uses the method applied to a server as an example. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network servers, cloud communications, middleware services, domain name services, security services CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application. In this embodiment, the method includes the following steps:
[0050] Step 1: Build a system network model and analyze the average access delay of user request content in the system.
[0051] Step 2: Based on the user's historical request records, a deep reinforcement learning method is used to predict the number of content requests by users in the next period. Combined with the activity level of heterogeneous users, the probability distribution of users' content preferences is obtained.
[0052] Step 3: Based on the user preference probability distribution obtained in step 1, the density-based spatial clustering application algorithm (DBSCAN) is used to cluster users according to preference similarity, and highly related users are grouped into the same cluster. An effective caching strategy is designed for each cluster.
[0053] Step 4: Model the cache placement problem as a problem of maximizing the system's reduced content access delay under the constraints of the base station cache capacity and the system delay threshold. Use a genetic algorithm to optimize the problem and iterate the best individual as the global optimal cache placement strategy.
[0054] Step 5: Based on the optimized cache strategy, cache content placement is performed and cache content is dynamically adjusted according to user requests to maximize cache hit rate and reduce content access latency.
[0055] Specifically, the step 1 specifically includes: Figure 1 As shown in Figure 1, consider a mobile edge network where mobile users are clustered near base stations in their service areas according to their preferences. All base station servers are connected to each other and to cloud servers via backhaul links. Let N = {1,…,n,…,N} represent the set of MECs, U = {1,…,u,…,U} represent the set of mobile users in the network, and F = {1,…,f,…,F} represent the set of content. Let K be the set of clusters, |φ k (u)| is the number of base stations contained in cluster k∈K. Each MEC n∈N has a limited cache Si called local storage for content caching, and each content f has a maximum allowed access delay threshold ρ f When a user sends a content request to MEC, if the content requested by the user is cached in its local cache content list, it will be sent to the user immediately, and the delay is 0 at this time; if the content is not cached locally, the content will be obtained from the nearest base station containing the requested content in the cluster and sent to the user. At this time, the access delay is the transmission delay between edge servers, denoted as ξ j,u ; If the requested content is not available in any base station, it is obtained from the cloud server. The maximum content access delay is ξ s,u In this system, the overall access delay for user u to obtain content f is expressed as follows:
[0056]
[0057] in, is a binary variable, which is 1 if the content is cached at server i. Indicates whether any base station server has the content cached.
[0058] Specifically, the step 2 specifically includes:
[0059] Step 2-1: The probability that user u requests content f in time slot t is regarded as user preference, as shown in the following formula:
[0060]
[0061] In addition, the ratio of the total number of content requests by users in time slot t to the total number of content requests by all users in the time slot is regarded as user activity, as shown in the formula:
[0062]
[0063] Combining the above two equations, the overall probability of user u requesting content f in time slot t can be expressed as:
[0064]
[0065] Step 2-2: Take the user's historical request information as input and map it into a high-dimensional vector through the embedding layer to capture the characteristics of different content categories. Next, we input the embedded vector into the deep reinforcement learning model, which uses a deep neural network structure to output the predicted number of requests for each content by each user in the next time slot by learning the predicted action value function. During the model training process, a reward function is defined to optimize the match between the predicted number of requests and the actual number of requests. After training, the deep reinforcement learning model can output the predicted number of requests for each content by each user in the next time slot, and calculate the content preference probability of each user according to the formula in step 2-1.
[0066] More specifically, based on the user's historical request records, the state is defined as the user's request history over the past period of time, where each state includes the number of requests for each content type by the user. The action at time slot t is defined as predicting the number of requests for each content in the next time slot. This is a continuous action space, expressed as the prediction of the number of requests for each content type. The reward function is designed to encourage the model to accurately predict the number of user requests. A deep Q network is used to approximate the action value function. The input layer receives the state vector, and the middle layer uses a recurrent neural network structure to capture the temporal dependency of the sequence. The output layer outputs the Q value of each action, that is, the value of the predicted number of requests for each content type. In order to stabilize the training, the experience replay technique is used to store the model's interactive experience in the replay memory, and these experiences are randomly extracted for update during training. The target network is used to generate the target Q value to increase the stability of the training. The parameters of the target network are copied from the main network regularly, but are not updated frequently. During the training process, a batch of state-action-reward samples are first randomly extracted from the replay memory. Then, the target Q value is calculated, and the network parameters are updated by minimizing the loss function. The loss function is defined as:
[0067]
[0068] Among them, Q θ (s,a) is the predicted Q value of the deep Q network for state s and action a, y is the actual number of user requests, and θ is the network parameter. Once trained, the deep Q network can receive new state inputs and output the predicted number of requests for each content type in the next time slot. This can be used to calculate the probability distribution of user preferences.
[0069] Specifically, the step 3 specifically includes:
[0070] Step 3-1: Use the user preference probability distribution vector to represent each user's preference. Each element in the vector represents the probability distribution of the user requesting different content at time slot t.
[0071] Step 3-2: Use cosine similarity to calculate the preference similarity between different users.
[0072] Step 3-3: Set the neighborhood radius ε and density threshold minpts to determine when the similarity between users reaches a certain threshold and divide them into a cluster.
[0073] Step 3-4: The process of the adaptive clustering algorithm is as follows:
[0074] S1 initializes the user's unvisited mark and randomly selects an unvisited user as the starting point.
[0075] S2 calculates the number of similar users in the neighborhood of the starting point user. If it exceeds minpts, it is divided into a new cluster and other similar users in the neighborhood that meet the conditions are added to the cluster.
[0076] S3 repeats the above steps until all users have been visited, and a user cluster set is obtained.
[0077] S4 uses the silhouette coefficient to evaluate clustering quality by adjusting ε and minpts until the optimal clustering parameters are found. This allows users with highly correlated content preferences to be grouped into the same cluster, and an effective cache placement strategy can be designed accordingly.
[0078] S5 result output: Finally, multiple user clusters are obtained. Users in each cluster have similar preferences, which provides support for subsequent caching decisions.
[0079] Specifically, the step 4 specifically includes:
[0080] Step 4-1: After considering user preferences and activity, the overall access delay of users in this system to obtain content within a unit time slot can be expressed as:
[0081]
[0082] The cache placement problem is formulated as an optimization problem of maximizing latency reduction, maximizing the overall latency reduction under the constraints of cache capacity and latency threshold. u The total delay in fetching content for user u, is the baseline latency for obtaining content from the cloud server. Constraint C1 limits the cache capacity of each edge server, and constraint C2 is a binary variable, and constraint C3 ensures that the maximum allowed access delay of each content does not exceed a specific delay threshold.
[0083]
[0084] Step 4-2: For this optimization problem, the execution process of the designed genetic algorithm is as follows:
[0085] S1 Individual encoding: Use a binary string to represent the cache strategy of each individual, expressed as X = {x 1 ,x 2 ,…,x n ,…,x N},in The length is the number of contents multiplied by the number of base stations, and each bit indicates whether a content-base station pair is cached. Each chromosome represents a cache strategy, which is encoded using a binary string of length F×N.
[0086] S2 initialization parameters: set the number of iterations μ, crossover rate c, mutation rate m, and genetic population of M chromosomes, and randomly generate the initial population.
[0087] S3 fitness calculation: user preference, cache status and transmission delay are taken into account. The fitness function is an indicator used to evaluate the quality of individuals in the genetic algorithm. The optimization problem proposed in step 4-1 is used as the objective function. The following formula is used to calculate the fitness value of each individual based on the objective function. The higher the fitness, the lower the delay.
[0088]
[0089] S4 Select individuals: After evaluating the population, the algorithm uses the roulette wheel method to select individuals with higher fitness values as parents. The roulette wheel method is a selection method based on the fitness ratio of individuals. Individuals with higher fitness have a greater probability of being selected. The probability of selecting each individual is shown in the following formula.
[0090]
[0091] S5 Crossover and mutation: Perform crossover and mutation operations to generate new individuals. Multiple crossover points are selected according to the crossover rate. Parent chromosomes exchange gene segments at the crossover points to generate offspring individuals, and random mutations are performed to maintain population diversity.
[0092] S6 iteration: Repeat selection, crossover, and mutation until the maximum number of iterations is reached or the fitness change is less than a specific threshold.
[0093] S7 outputs the optimal solution: selects the individual with the highest fitness as the optimal cache content placement strategy.
[0094] The present invention obtains user preference information based on continuous user historical requests, and uses a density-based clustering algorithm to cluster users based on the calculated user preference probability distribution, thereby avoiding the problem of low cache utilization caused by cache strategies that rely solely on content popularity prediction, as well as cache redundancy problems that may be caused by independent cache decisions. The cache placement strategy designed by the present invention was compared with four baseline strategies (Content Popularity Predict, User Preference Predict, Random, and Optimal), which are a cache strategy that only considers content popularity, an independent cache strategy that only considers user preference perception, a random content cache strategy, and an optimal cache strategy. Figure 3 , Figure 4As shown, the experimental results show that the strategy improves the cache hit rate by about 6.23%-12.7% and the speedup ratio by about 3.12%-5.05%, respectively. It is better than the above baseline solution in terms of system delay speedup ratio and cache hit rate.
[0095] Embodiment 2
[0096] This embodiment provides an edge cache placement optimization system based on user preference perception.
[0097] An edge cache placement optimization system based on user preference perception, comprising:
[0098] A delay determination module, configured to: determine the overall access delay of the user requested content based on the mobile edge network;
[0099] The prediction module is configured to: obtain the user's historical request records, use a deep learning network to predict the number of content requests by users in the next time slot, and combine the activity levels of heterogeneous users to obtain the probability distribution of users' content preferences;
[0100] A clustering module, which is configured to: cluster users according to preference similarity based on the probability distribution of user content preferences, group highly related users into the same cluster, and design a cache strategy for each cluster;
[0101] The optimization module is configured to: transform the cache placement problem into a delay reduction maximization problem, maximize the overall delay reduction under the constraints of cache capacity and delay threshold, use a genetic algorithm to optimize the delay reduction maximization problem, and iterate the best individual as the global optimal cache placement strategy;
[0102] The execution module is configured to: execute the placement of cache content according to the global optimal cache placement strategy, and dynamically adjust the cache content according to user requests to maximize the cache hit rate.
[0103] It should be noted that the above-mentioned delay determination module, prediction module, clustering module, optimization module and execution module correspond to steps 1 to 5 in Embodiment 1, and the examples and application scenarios implemented by the above-mentioned modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Embodiment 1. It should be noted that the above-mentioned modules as part of the system can be executed in a computer system such as a set of computer executable instructions.
[0104] Embodiment 3
[0105] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the edge cache placement optimization method based on user preference perception as described in the first embodiment above are implemented.
[0106] Embodiment 4
[0107] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the edge cache placement optimization method based on user preference perception as described in the first embodiment are implemented.
[0108] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0109] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0110] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0112] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0113] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for optimizing edge cache placement based on user preference perception, characterized in that: include: Determine the overall access latency of user requested content based on the mobile edge network; Obtain the user's historical request records, use a deep learning network to predict the number of content requests from users in the next time slot, and combine the activity levels of heterogeneous users to obtain the probability distribution of user content preferences; Based on the probability distribution of user content preferences, users are clustered according to preference similarity, highly related users are grouped into the same cluster, and a cache strategy is designed for each cluster; The cache placement problem is transformed into a delay reduction maximization problem. The overall delay reduction is maximized under the constraints of cache capacity and delay threshold. The genetic algorithm is used to optimize the delay reduction maximization problem and the best individual is iterated as the global optimal cache placement strategy. According to the global optimal cache placement strategy, cache content placement is performed, and cache content is dynamically adjusted according to user requests to maximize the cache hit rate.
2. The edge cache placement optimization method based on user preference perception according to claim 1 is characterized in that: The overall access delay of the user requested content is expressed by the following formula: in, Indicates the overall access latency of the content requested by the user; is a binary variable, when it is 1, it means that the content is cached at server i; let K be the set of clusters, |φ k (u)| is the number of base stations contained in cluster k∈K; ξ j,u represents the transmission delay between edge servers; s,u Indicates the maximum content access delay; Indicates whether any base station server has the content cached.
3. The edge cache placement optimization method based on user preference perception according to claim 1 is characterized in that: The process of obtaining historical user request records, using a deep learning network to predict the number of user requests for content in the next time period, and combining the activity levels of heterogeneous users to obtain the probability distribution of user preferences for content includes: obtaining historical user request records, using a deep learning network to predict the number of user requests for content in the next time slot; considering the number of user requests for content in the next time slot as user preference; considering the ratio of the total number of content requests by the user in a time slot to the total number of content requests by all users in the time slot as user activity; and determining the probability distribution of user preferences for content based on user activity and user preference.
4. The edge cache placement optimization method based on user preference perception according to claim 1, characterized in that: The process of clustering users according to preference similarity based on the probability distribution of user content preferences and grouping highly related users into the same cluster includes: representing the probability distribution of user content preferences with a vector, where each element in the vector represents the probability distribution of a user requesting different content within a time slot; calculating the preference similarity between different users using cosine similarity; defining neighborhood radius and density threshold parameters, and determining whether a cluster is formed by calculating the similarity between users until all users are grouped into clusters; and dynamically adjusting parameters and using the silhouette coefficient to find the best clustering quality to group users with highly related content preferences into the same cluster.
5. The edge cache placement optimization method based on user preference perception according to claim 1, characterized in that: The cache placement problem is transformed into a delay reduction maximization problem. The process of maximizing the overall reduced delay under the constraints of cache capacity and delay threshold is expressed by the following formula: Among them, Γ u The overall access latency for user u to obtain content, is the baseline latency for fetching content from the cloud server. Constraint C1 limits the cache capacity of each edge server, and constraint C2 is a binary variable, and constraint C3 ensures that the maximum allowed access delay of each content does not exceed a specific delay threshold ρ f .
6. The edge cache placement optimization method based on user preference perception according to claim 1, characterized in that: The process of using a genetic algorithm to optimize and reduce the delay maximization problem and iterating the best individual as the global optimal cache placement strategy includes: each chromosome represents a cache strategy and is encoded using a binary string of length F×N; initializing genetic parameters, including the number of iterations, crossover rate, mutation rate and population size, and randomly generating an initial population to ensure that each individual meets the cache capacity and delay threshold constraints; calculating the fitness value of each individual according to the delay formula, and using a roulette method to select individuals with higher fitness as parents; selecting multiple crossover points according to the crossover rate, and the parent chromosomes exchange gene segments at the crossover points to generate offspring individuals, and performing random mutations to maintain population diversity; repeating selection, crossover and mutation operations until the maximum number of iterations is reached or the fitness change is less than a threshold; the individual with the largest fitness value in the population is regarded as the global optimal cache placement strategy.
7. The edge cache placement optimization method based on user preference perception according to claim 6 is characterized in that: The time delay formula is: Where f represents the fitness value, and Γ represents the overall access delay of users to obtain content within a unit time slot.
8. An edge cache placement optimization system based on user preference perception, characterized in that: include: A delay determination module, configured to: determine the overall access delay of the user requested content based on the mobile edge network; The prediction module is configured to: obtain the user's historical request records, use a deep learning network to predict the number of content requests by users in the next time slot, and combine the activity levels of heterogeneous users to obtain the probability distribution of users' content preferences; A clustering module, which is configured to: cluster users according to preference similarity based on the probability distribution of user content preferences, group highly related users into the same cluster, and design a cache strategy for each cluster; The optimization module is configured to: transform the cache placement problem into a delay reduction maximization problem, maximize the overall delay reduction under the constraints of cache capacity and delay threshold, use a genetic algorithm to optimize the delay reduction maximization problem, and iterate the best individual as the global optimal cache placement strategy; The execution module is configured to: execute the placement of cache content according to the global optimal cache placement strategy, and dynamically adjust the cache content according to user requests to maximize the cache hit rate.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the edge cache placement optimization method based on user preference perception as described in any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the edge cache placement optimization method based on user preference perception are implemented as described in any one of claims 1-7.
Citation Information
Cited By
Cloud-side collaborative content caching and user association method and system
CN119402909A
