Content recommendation and path selection method in D2D-assisted wireless cache network

By calculating the user request probability and constructing an optimization objective function in the D2D-assisted wireless cache network, the content recommendation, caching and path selection are optimized, which solves the problem of users having difficulty obtaining content at low cost, reduces network pressure and user costs, and improves system performance. .

CN115314948BActive Publication Date: 2024-10-25NANJING UNIV OF POSTS & TELECOMM
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210837199.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-15
Publication Date
2024-10-25
Estimated Expiration
2042-07-15

AI Technical Summary

Technical Problem

In the D2D-assisted wireless cache network, it is difficult for users to quickly find nodes that can obtain required content at low cost, and the small cache capacity of cellular networks and different user preferences lead to resource constraints and serious base station load problems.

Method used

By calculating the user's request probability for different content, we construct an optimization objective function with the minimum average cost as the goal, and combine recommendation, caching and path selection strategies to optimize the user's path to obtain content and reduce the user's average cost and network pressure.

Benefits of technology

It is possible to reduce the average user cost, reduce network pressure, improve system performance, and improve file acquisition efficiency and resource utilization under the condition of limited cache capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115314948B_ABST
    Figure CN115314948B_ABST
Patent Text Reader

Abstract

The present invention discloses a content recommendation and path selection method in a D2D-assisted wireless cache network. Under the condition that the user cache capacity is limited and the number of recommendations is limited, an optimization function is constructed with the minimum cost of user file acquisition as the optimization goal, and the ADMM algorithm is used to obtain the cache and path selection scheme of each user. Then, an annealing algorithm is used to obtain the recommendation scheme for each user, and then the cache and path selection scheme and the recommendation scheme are iteratively optimized to obtain the optimal solution of the recommendation scheme, cache scheme and path selection scheme, so as to minimize the average cost of the user. The present invention combines recommendation, cache and path selection, reduces the influence of different user preferences on the cache, and enables users to obtain content at a lower cost. The proposed recommendation, cache and path selection scheme can reduce the average cost of the user and alleviate network pressure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of D2D wireless communications, and in particular to a content recommendation and path selection method in a D2D-assisted wireless cache network. Background Art

[0002] The rapid development of smart devices and content-based services has led to a sharp increase in global mobile data traffic, which has put great pressure on the backhaul link and caused severe congestion in wireless transmission. Device-to-Device (D2D) technology, as one of the key technologies of the fifth generation of mobile communications, allows direct communication between adjacent devices in the communication network without the help of infrastructure such as core devices or central devices, thereby greatly reducing the data pressure on the core network of the communication system. Caching technology is to store the file content items (including videos, web pages, etc.) required by users in advance in the cache entity, so that the user's demand for content can be effectively realized, greatly reducing transmission delays and reducing energy loss caused by repeated transmissions. Combining D2D with caching is an effective way to cope with huge network traffic.

[0003] However, there are some problems in wireless caching networks that support D2D. For example, in heterogeneous networks, the cost of users obtaining content from different nodes is different. When neighboring users and base stations have cached the user's target content, it is difficult for users to quickly find out where to obtain the file at a lower cost. Therefore, it is necessary to design a path selection strategy in advance. When a user requests content, if multiple nodes cache the content, the user can know which node to obtain the file from through the path selection strategy. In addition, compared with wired networks, cellular networks usually have smaller cache capacity, and users have different preferences for different content. The gain brought to the network by caching part of the content in advance in the limited cache capacity depends on the degree of similarity of user preferences. If users have very different preferences for content, it is difficult to obtain significant gains even if the cache strategy is optimized. The introduction of a recommendation system can reshape the probability of users requesting different content to a certain extent, making the distribution of user preferences more uniform, but if the recommended content is not preferred by users, the cached content cannot be fully utilized, which will cause resource shortages and serious base station load problems. Existing joint recommendation and caching methods consider using recommendations to reshape the user's request probability for content, and then cache files on the base station side to reduce the number of times the backhaul link is used. However, even if the request probability is reshaped through recommendations, the content requested by users will still vary to a certain extent. Caching only some files on the base station side cannot meet the content requests of all users, and when the user is far away from the base station, it still takes a lot of cost to obtain the required content. Summary of the invention

[0004] The purpose of the present invention is to: in view of the defects of the above-mentioned prior art, the present invention provides a content recommendation and path selection method in a D2D-assisted wireless caching network, designs recommendation, caching and path selection strategies for the case of small cache capacity, reduces the average cost of users, guides users to obtain files from corresponding nodes, and reduces the pressure on the network.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The content recommendation and path selection method in a D2D-assisted wireless cache network includes the following steps:

[0007] S1. Calculate the request probability a of each user for different contents; including the following steps S1.1 to S1.3;

[0008] Step S1.1: The network recommends content R to the user based on the user's content preference, and calculates the probability of each user requesting the recommended content according to the following formula:

[0009]

[0010] in, represents the probability that the recommended content is accepted by user k; The probability of a user choosing any recommended content after accepting the recommended content. is the probability of user k’s initial request for content i;

[0011] Step S1.2: Calculate the probability of each user requesting unrecommended content according to the following formula:

[0012]

[0013] in, represents the probability that the recommended content is accepted by user k, is the probability of user k’s initial request for content i;

[0014] Step S1.3: Calculate the request probability a of each user for different contents according to the following formula:

[0015]

[0016] Among them, x k,i ∈{0,1} is the indicator variable of the recommended strategy. If x k,i If x is 1, it means content i is recommended to user k. k,i If it is 0, it means that content i is not recommended to user k;

[0017] S2. Based on the request probability, the content recommended by the network to the user, the cached content of the cache unit, the request issued by the user and the transmission path of the corresponding content, a first optimization objective function f1 with the goal of minimizing the average cost is constructed; the optimization objective function f1 with the goal of minimizing the average cost of the user issuing a content request to obtain the corresponding content is specifically:

[0018]

[0019]

[0020] Among them B k,j represents the cost for user k to obtain content i from cache unit j. When j = 0, the user obtains content from the backend server. j,i ∈{0,1} is the indicator variable of the cache strategy. If y j,i If y is 1, cache unit j caches content i in its own cache space. j,i If it is 0, cache unit j does not cache content i in its own cache space; L is the size of the content, C j represents the cache capacity of cache unit j; when the user's preference for the content is greater than When the user accepts the recommendation of the content; k,j,i ∈{0,1} is the indicator variable of the path selection strategy. k,j,i ∈{0,1} is 1, then user k obtains content i from cache unit j. If r k,j,i ∈{0,1} is 0, user k does not obtain content i from cache unit j. Formula (4a) is the objective function f1 of the optimization problem. Formula (4b) is the cache capacity limit of the user. Formula (4c) indicates that the number of contents recommended by the network to the user is R. Formula (4d) indicates that the contents recommended by the network to the user are the contents that the user is interested in. Formulas (4e) and (4f) indicate that a user can only request a file from one cache unit. Formula (4g) indicates that a cache unit can only provide cached files. Formulas (4h), (4i), and (4j) indicate that the indicator vectors of the recommendation strategy, cache strategy, and path selection strategy are all 0 or 1.

[0021] S3. According to the first optimization objective function f1, a second optimization objective function f2 is constructed that combines the cache content of the cache unit, the request sent by the user and the transmission path of the corresponding content; according to the following formula:

[0022]

[0023] And according to the first optimization objective function f1, a second optimization objective function f2 is constructed which combines the cache content of the cache unit, the request issued by the user and the transmission path of the corresponding content, wherein the constraints are st(4b), (4f),

[0024]

[0025] Among them, a kji is an auxiliary variable, indicating whether the content i in cache unit j is requested by user k; if a kji =1 means that cache unit j caches content i but user k does not request content i from cache unit j; if a kji =0 means that cache unit j does not cache content i or cache unit j caches content i and user k requests content i from cache unit j; j,i With r k,j,i is any number between 0 and 1, used to represent the weight value of the cache content of each cache unit and the weight value of the cache content transmission path;

[0026] S4. According to the first optimization objective function f1, a third optimization objective function f3 of the content recommended by the network to the user is constructed; specifically, according to the following formula:

[0027]

[0028] According to the first optimization objective function f1, construct a third optimization objective function f3 of the content recommended by the network to the user;

[0029] S5. According to the third optimization objective function f3, the request probability b of the target content corresponding to the request issued by each user is calculated; and based on the request probability b, the second optimization objective function f2 is calculated and solved to obtain the weight value of the cache content of each cache unit and the weight value of the cache content transmission path; the calculation and solution of the second objective function f2 includes the following steps S5.1 to S5.6;

[0030] Step S5.1: Obtain the optimization objective function f2:

[0031]

[0032]

[0033] where λ kji is the Lagrange dual multiplier, ρ is the penalty parameter;

[0034] Step S5.2: According to the iterative update algorithm of ADMM, the update strategy in the tth iteration is as follows:

[0035] right and By solving subproblem A1,

[0036]

[0037] Step S5.3: and By solving subproblem A2,

[0038]

[0039] Step S5.4: By solving subproblem A3,

[0040]

[0041] Step S5.5: By:

[0042] Equation update; where λ kji is the Lagrange dual multiplier, updated by the subgradient method, ρ is the penalty parameter, used to update the step size; A1, A2 and A3 are convex optimization problems, solved using standard convex optimization tools;

[0043] Step S5.6: loop through steps S5.2 to S5.5, when Stop the iteration when ∈ is less than 10 -6 A positive number;

[0044] S6, based on the cache content weight values ​​of each cache unit, the weight values ​​of the cache content transmission paths, and the content recommended to the user by the network, calculate the average cost C(k) of each user to obtain all the content when these contents are recommended, and solve the third optimization objective function f3 to obtain the recommended content with the minimum average cost for each user; specifically including the following steps S6.1 to S6.4;

[0045] Step S6.1: Based on the cached content of each user and the optimal value of the cached content transmission path, the content recommended by the network to the user is as follows:

[0046]

[0047] Calculate the average cost C(k) of each user to obtain all the content when they are recommended these contents;

[0048] Step S6.2: The network selects R-1 items of content from the R items of content previously recommended to the user, and recommends the R-1 items of content together with any item of content that has not been recommended in the network to the user, and calculates the average cost C'(k) of each user to obtain all the content when these contents are recommended;

[0049] Step S6.3: Determine whether C'(k) is less than C(k). If so, recommend the unrecommended content at the average cost C'(k) to the user and cache it in the user cache unit; otherwise, execute step S6.4;

[0050] Step S6.4: According to the following formula:

[0051]

[0052] Calculate the probability that the unrecommended content is recommended to the user and cached in the user cache unit at the average cost C'(k), and return to execute step S6.2 to step S6.3; at the preset number of loops t max When , the iteration is stopped, and the recommended content with the minimum average cost of each user's content cache and the cache content path is obtained; among them, B c is the Boltzmann constant, Yes max The minimum average cost of user k’s content cache and the cached content path in the next cycle;

[0053] S7, returning to step S5 to step S6, until the preset number of cycles is reached, and the cache content with the lowest final average cost for each user is obtained;

[0054] S8. For the weight value corresponding to the cache content with the minimum average user cost, convert the weight value into a binary number to obtain the cache content of the target cache unit and the transmission path between the user and the cache content of the target cache unit.

[0055] Furthermore, in the aforementioned step S8, obtaining the user's final cached content and the cache path of the content includes the following steps S8.1 to S8.2:

[0056] Step S8.1: Based on the cache content weight of the cache unit and the weight of the cache content transmission path; the cache content weights of each cache unit are arranged from large to small, and the cache content is cached to the cache unit in the order of the weight from large to small;

[0057] Step S8.2: The user obtains the transmission path between the cache units of the target cache content according to the content cached by the cache unit.

[0058] Compared with the prior art, the present invention has the following significant advantages: jointly optimizing recommendation, caching and path selection strategies to obtain the best recommendation, caching and path selection strategies, reducing the impact of different user preferences on the cache, caching files at both the user end and the base station, designing the path selection strategy in advance, and being able to more quickly select the appropriate cache node to obtain files for different file requests. The method has high computational efficiency, reduces the pressure on the system, reduces the impact of different user preferences on the cache, and enables users to obtain content at a lower cost. The proposed recommendation, caching and path selection schemes can reduce the average cost of users and alleviate network pressure. DETAILED DESCRIPTION

[0059] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.

[0060] Various aspects of the invention are described herein with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the invention are not limited to those described in the accompanying drawings. It should be understood that the invention is implemented by any of the various concepts and embodiments described above, as well as the concepts and embodiments described in detail below, because the concepts and embodiments disclosed in the invention are not limited to any implementation. In addition, some aspects disclosed in the invention may be used alone or in any appropriate combination with other aspects disclosed in the invention.

[0061] The present invention designs a content recommendation and path selection method in a D2D-assisted wireless cache network using cache technology, taking into account the limited user cache capacity and the limited recommendation quantity and quality, and optimizes the recommendation, cache and path selection strategies with the minimum average cost for users to obtain files as the optimization goal. The problem is decomposed into two sub-problems: the recommendation problem and the joint optimization problem of the cache path. Under the condition of a fixed recommendation strategy, the ADMM algorithm is used to obtain the cache strategy of the cache node and the path selection strategy of the user; then, under the condition of a fixed cache and path selection strategy, the annealing algorithm is used to obtain the content recommended to each user. The two algorithms are iterated in a loop to minimize the average user cost.

[0062] like Figure 1 As shown, step S1, first calculates the request probability a of each user for different contents; specifically includes steps S1.1 to step S1.3:

[0063] Step S1.1: The network recommends content R to the user based on the user's content preference, according to the following formula:

[0064]

[0065] Calculate the probability of each user requesting the recommended content, where represents the probability that the recommended content is accepted by user k; The probability of a user choosing any recommended content after accepting the recommended content. is the probability of user k’s initial request for content i;

[0066] Step S1.2: According to the following formula:

[0067]

[0068] Calculate the probability of each user requesting content that is not recommended; where, represents the probability that the recommended content is accepted by user k, is the probability of user k’s initial request for content i;

[0069] Step S1.3: According to the following formula:

[0070]

[0071] Calculate the probability a of each user requesting different content; where x k,i ∈{0,1} is the indicator variable of the recommended strategy. If x k,i If x is 1, it means content i is recommended to user k. k,i A value of 0 means that content i is not recommended to user k.

[0072] Step S2: Based on the request probability, the content recommended by the network to the user, the cache content of the cache unit, the request issued by the user and the transmission path of the corresponding content, a first optimization objective function f1 with the minimum average cost as the goal is constructed; specifically as follows:

[0073]

[0074]

[0075] Among them B k,j represents the cost for user k to obtain content i from cache unit j. When j = 0, the user obtains content from the backend server. j,i ∈{0,1} is the indicator variable of the cache strategy. If y j,i If y is 1, cache unit j caches content i in its own cache space. j,i If it is 0, cache unit j does not cache content i in its own cache space; L is the size of the content, C j represents the cache capacity of cache unit j; when the user's preference for the content is greater than When the user accepts the recommendation of the content; k,j,i ∈{0,1} is the indicator variable of the path selection strategy. k,j,i ∈{0,1} is 1, then user k obtains content i from cache unit j. If r k,j,i ∈{0,1} is 0, then user k does not obtain content i from cache unit j. Formula (4a) is the objective function f1 of the optimization problem. Formula (4b) is the cache capacity limit of the user. Formula (4c) indicates that the number of contents recommended by the network to the user is R. Formula (4d) indicates that the contents recommended by the network to the user are the contents that the user is interested in. Formulas (4e) and (4f) indicate that a user can only request a file from a cache unit. Formula (4g) indicates that a cache unit can only provide files that have been cached. Formulas (4h), (4i), and (4j) indicate that the indicator vectors of the recommendation strategy, cache strategy, and path selection strategy are all 0 or 1.

[0076] Step S3: Based on the first optimization objective function f1, a second optimization objective function f2 is constructed that combines the cache content of the cache unit, the request sent by the user and the transmission path of the corresponding content; specifically, as follows:

[0077]

[0078] Construct an optimization objective function f2 that combines the cache content of the cache unit, the content request issued by the user and the transmission path of the corresponding content, where the constraints are st(4b), (4f),

[0079]

[0080]

[0081] Among them, a kji is an auxiliary variable, indicating whether the content i in cache unit j is requested by user k; if a kji =1 means that cache unit j caches content i but user k does not request content i from cache unit j; if a kji =0 means that cache unit j does not cache content i or cache unit j caches content i and user k requests content i from cache unit j; j,i With r k,j,i It is an arbitrary number between 0 and 1, and is used to represent the weight value of the cache content of each cache unit and the weight value of the cache content transmission path.

[0082] Step S4: construct a third optimization objective function f3 of the content recommended by the network to the user according to the first optimization objective function f1; specifically, according to the following formula:

[0083]

[0084] The constraints are st(4c), (4d), (4h).

[0085] The third optimization objective function f3 is constructed to recommend content to users according to each user's preference for the content.

[0086] S5. According to the third optimization objective function f3, the request probability b of the target content corresponding to the request issued by each user is calculated; and based on the request probability b, the second optimization objective function f2 is calculated and solved to obtain the weight value of the cache content of each cache unit and the weight value of the cache content transmission path;

[0087] Step S5.1: Obtain the optimization objective function f2:

[0088]

[0089] Among them, λkji is the Lagrange dual multiplier, ρ is the penalty parameter;

[0090] Step S5.2: According to the iterative update algorithm of ADMM, the update strategy in the tth iteration is as follows:

[0091] right and By solving subproblem A1,

[0092]

[0093] Step S5.3: and By solving subproblem A2,

[0094]

[0095] Step S5.4: and By solving subproblem A3,

[0096]

[0097] Step S5.5: and By:

[0098] Equation update; where λ kji is the Lagrange dual multiplier, updated by the subgradient method, ρ is the penalty parameter, used to update the step size; A1, A2 and A3 are convex optimization problems, solved using standard convex optimization tools;

[0099] Step S5.6: loop through steps S5.2 to S5.5, when Stop the iteration when ∈ is less than 10 -6 A positive number.

[0100] Step S6: Based on the cache content weight values ​​of each cache unit, the weight values ​​of the cache content transmission paths, and the content recommended to the user by the network, calculate the average cost C(k) of each user to obtain all the content when these contents are recommended, and solve the third optimization objective function f3 to obtain the recommended content with the minimum average cost for each user; specifically including steps S6.1 to 6.4

[0101] Step S6.1: Based on the cached content of each user and the optimal value of the cached content transmission path, the content recommended by the network to the user is as follows:

[0102]

[0103] Calculate the average cost C(k) of each user to obtain all the content when they are recommended these contents;

[0104] Step S6.2: The network selects R-1 items of content from the R items of content previously recommended to the user, and recommends the R-1 items of content to the user together with any item of content that has not been recommended in the network, and calculates the average cost C'(k) of each user to obtain all the content when these contents are recommended.

[0105] Step S6.3: Determine whether C'(k) is less than C(k). If so, recommend the unrecommended content at the average cost C'(k) to the user and cache it in the user cache unit; otherwise, execute step S6.4;

[0106] Step S6.4: According to the following formula:

[0107]

[0108] Calculate the probability that the unrecommended content is recommended to the user and cached in the user cache unit at the average cost C'(k), and return to execute step S6.2 to step S6.3; at the preset number of loops t max When , the iteration is stopped, and the recommended content with the minimum average cost of each user's content cache and the cache content path is obtained; among them, B c is the Boltzmann constant, Yes max The minimum average cost of user k’s content cache and the cached content path in the next cycle;

[0109] Step S7, returning to execute step S5 to step S6 until the preset number of cycles is reached, and obtaining the cache content with the minimum final average cost for each user;

[0110] Step S8, for the weight value corresponding to the cache content with the minimum average user cost, convert the weight value into a binary number, obtain the cache content of the target cache unit, and the transmission path between the user and the cache unit of the target cache content, including the following steps S8.1 to S8.2:

[0111] Step S8.1: Based on the cache content weight of the cache unit and the weight of the cache content transmission path; the cache content weights of each cache unit are arranged from large to small, and the cache content is cached to the cache unit in the order of the weight from large to small; that is, for each cache node j, the y obtained in the second optimization objective function f2 is j,i Arrange from large to small and put them into the cache space of node j in turn until the cache space is full. For each user k, who already knows the cache information of surrounding users and base stations, he requests the desired file from the cache node with the lowest cost.

[0112] Step S8.2: The user obtains the transmission path between the cache units of the target cache content according to the content cached by the cache unit.

[0113] By the attached Figure 2 and attached Figure 3 It can be seen that the user's acceptance of the recommendation When the user cache capacity is 1, 2, 3, and the base station cache capacity is 5, the method converges after three iterations. When the user cache capacity is 4, it converges after two iterations. When the number of iterations is 4, it can converge after four iterations. The method of the present invention converges quickly, which proves that the joint optimization method has high computational efficiency and reduces the computational burden of the system. Figure 2 and attached Figure 3 , it can be seen that the attached Figure 2 The convergence is faster and the average cost is smaller, which means that the average cost can be further reduced when users are more receptive to the recommended content.

[0114] By the attached Figure 4 and attached Figure 5 It can be seen that when the user cache capacity is less than the system recommendation number 4, the average cost decreases very quickly, and as the cache capacity increases, the average cost decreases; and when the cache capacity exceeds the system recommendation number, the average cost decreases slowly. This is because when the cache capacity is large enough, considering the user's acceptance of the recommendation, the cache unit can cache the files recommended by the system to the user to reduce the cost. The baseline 1 method in the figure recommends the content that they are most interested in to users. Users cache the content that they are most interested in, and the base station caches the most popular content among the users served; the baseline 2 method recommends the content that they are most interested in to users, and the cache nodes randomly cache the content. It can be seen that when the cache capacity is small, the average cost incurred by users using the cache solution of the present invention is significantly lower than that of other solutions. When users have different preferences, the joint recommendation cache method of the present invention effectively improves the performance of the network system.

[0115] Although the present invention has been described above with preferred embodiments, it is not intended to limit the present invention. A person skilled in the art of the present invention may make various modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the definition of the claims.

Claims

1. A content recommendation and path selection method in a D2D-assisted wireless cache network, characterized in that: The method comprises the following steps: S1, calculating the request probability a of each user for different contents; and the method comprises the following steps S1.1 to S1.3; Step S1.1: The network recommends content R to the user based on the user's content preference, and calculates the probability of each user requesting the recommended content according to the following formula: in, represents the probability that the recommended content is accepted by user k; The probability of a user choosing any recommended content after accepting the recommended content. is the probability of user k’s initial request for content i; Step S1.2: Calculate the probability of each user requesting unrecommended content according to the following formula: in, represents the probability that the recommended content is accepted by user k, is the probability of user k’s initial request for content i; Step S1.3: Calculate the request probability a of each user for different contents according to the following formula: Among them, x k,i ∈{0,1} is the indicator variable of the recommended strategy. If x k,i If x is 1, it means content i is recommended to user k. k,i If it is 0, it means that content i is not recommended to user k; S2. Based on the request probability, the content recommended by the network to the user, the cached content of the cache unit, the request issued by the user and the transmission path of the corresponding content, a first optimization objective function f1 with the goal of minimizing the average cost is constructed; the optimization objective function f1 with the goal of minimizing the average cost of the user issuing a content request to obtain the corresponding content is specifically: The constraint condition is st Among them B k,j represents the cost for user k to obtain content i from cache unit j. When j = 0, the user obtains content from the backend server. j,i ∈{0,1} is the indicator variable of the cache strategy. If y j,i If y is 1, cache unit j caches content i in its own cache space. j,i If it is 0, cache unit j does not cache content i in its own cache space; L is the size of the content, C j represents the cache capacity of cache unit j; when the user's preference for the content is greater than When the user accepts the recommendation of the content; k,j,i ∈{0,1} is the indicator variable of the path selection strategy. k,j,i ∈{0,1} is 1, then user k obtains content i from cache unit j. If r k,j,i ∈{0,1} is 0, then user k does not obtain content i from cache unit j. Formula (4a) is the objective function f1 of the optimization problem. Formula (4b) is the cache capacity limit of the user. Formula (4c) indicates that the number of contents recommended by the network to the user is R. Formula (4d) indicates that the contents recommended by the network to the user are the contents that the user is interested in. Formulas (4e) and (4f) indicate that a user can only request a file from a cache unit. Formula (4g) indicates that a cache unit can only provide files that have been cached. Formulas (4h), (4i), and (4j) indicate that the indicator vectors of the recommendation strategy, cache strategy, and path selection strategy are all 0 or 1. S3. According to the first optimization objective function f1, a second optimization objective function f2 is constructed that combines the cache content of the cache unit, the request sent by the user and the transmission path of the corresponding content; according to the following formula: And according to the first optimization objective function f1, a second optimization objective function f2 is constructed which combines the cache content of the cache unit, the request issued by the user and the transmission path of the corresponding content, wherein the constraints are st(4b), (4f), Among them, a kji is an auxiliary variable, indicating whether the content i in cache unit j is requested by user k; if a kji =1 means that cache unit j caches content i but user k does not request content i from cache unit j; if a kji =0 means that cache unit j does not cache content i or cache unit j caches content i and user k requests content i from cache unit j; j,i With r k,j,i is any number between 0 and 1, used to represent the weight value of the cache content of each cache unit and the weight value of the cache content transmission path; S4. According to the first optimization objective function f1, a third optimization objective function f3 of the content recommended by the network to the user is constructed; specifically, according to the following formula: The constraints are st(4c), (4d), (4h). According to the first optimization objective function f1, construct a third optimization objective function f3 of the content recommended by the network to the user; S5. According to the third optimization objective function f3, the request probability b of the target content corresponding to the request issued by each user is calculated; and based on the request probability b, the second optimization objective function f2 is calculated and solved to obtain the weight value of the cache content of each cache unit and the weight value of the cache content transmission path; the calculation and solution of the second objective function f2 includes the following steps S5.1 to S5.6; Step S5.1: Obtain the optimization objective function f2: The augmented Lagrangian equation is: where λ kji is the Lagrange dual multiplier, ρ is the penalty parameter; Step S5.2: According to the iterative update algorithm of ADMM, the update strategy in the tth iteration is as follows: and By solving subproblem A1, Step S5.3: and By solving subproblem A2, Step S5.4: and By solving subproblem A3, Step S5.5: and By: Equation update; where λ kji is the Lagrange dual multiplier, updated by the subgradient method, ρ is the penalty parameter, used to update the step size; A1, A2 and A3 are convex optimization problems, solved using standard convex optimization tools; Step S5.6: loop through steps S5.2 to S5.5, when Stop the iteration when ∈ is less than 10 -6 A positive number; S6, based on the cache content weight values ​​of each cache unit, the weight values ​​of the cache content transmission paths, and the content recommended to the user by the network, calculate the average cost C(k) of each user to obtain all the content when these contents are recommended, and solve the third optimization objective function f3 to obtain the recommended content with the minimum average cost for each user; specifically including the following steps S6.1 to S6.4; Step S6.1: Based on the cached content of each user and the optimal value of the cached content transmission path, the content recommended by the network to the user is as follows: Calculate the average cost C(k) of each user to obtain all the content when they are recommended these contents; Step S6.2: The network selects R-1 items of content from the R items of content previously recommended to the user, and recommends the R-1 items of content together with any item of content that has not been recommended in the network to the user, and calculates the average cost C'(k) of each user to obtain all the content when these contents are recommended; Step S6.3: Determine whether C'(k) is less than C(k). If so, recommend the unrecommended content at the average cost C'(k) to the user and cache it in the user cache unit; otherwise, execute step S6.4; Step S6.4: According to the following formula: Calculate the probability that the unrecommended content is recommended to the user and cached in the user cache unit at the average cost C'(k), and return to execute step S6.2 to step S6.3; at the preset number of loops t max When , the iteration is stopped, and the recommended content with the minimum average cost of each user's content cache and the cache content path is obtained; among them, B c is the Boltzmann constant, Yes max The minimum average cost of user k’s content cache and the cached content path in the next cycle; S7, returning to step S5 to step S6, until the preset number of cycles is reached, and the cache content with the lowest final average cost for each user is obtained; S8. For the weight value corresponding to the cache content with the minimum average user cost, convert the weight value into a binary number to obtain the cache content of the target cache unit and the transmission path between the user and the cache content of the target cache unit.

2. The content recommendation and path selection method in a D2D-assisted wireless cache network according to claim 1, characterized in that: In step S8, obtaining the user's final cached content and the cache path of the content includes the following steps S8.1 to S8.2: Step S8.1: Based on the cache content weight of the cache unit and the weight of the cache content transmission path; the cache content weights of each cache unit are arranged from large to small, and the cache content is cached to the cache unit in the order of the weight from large to small; Step S8.2: The user obtains the transmission path between the cache units of the target cache content according to the content cached by the cache unit.

Citation Information

Patent Citations

  • Optimal cache configuration method for files in content center network

    CN106998353A

  • Wireless caching method based on Monte Carlo Tree Search auxiliary

    CN108810139A

  • Cache strategy method in D2D network based on deep reinforcement learning

    CN109639760A