Cloud product recommendation method and device and related equipment
By combining cloud product usage scenarios and subscription information, similar users are screened out from multiple users, which solves the problem of low cloud product recommendation accuracy in the existing technology and achieves more accurate user matching and recommendation effects.
Patent Information
- Application Number
- CN202410994852.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-15
AI Technical Summary
The existing technology has poor accuracy when recommending cloud products because it fails to effectively consider the user's cloud product usage scenario information, resulting in inaccurate determination of similar users.
By determining the usage scenario information of each user based on the cloud product usage information of multiple users, and combining the subscription information, users with a high degree of matching with the target users are selected from multiple users to make cloud product recommendations.
It improves the accuracy of cloud product recommendations and ensures the accuracy of recommendation results by comprehensively considering usage scenarios and subscription information.
Smart Images

Figure CN118779536A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of artificial intelligence technology, and in particular to a cloud product recommendation method, device and related equipment. Background Art
[0002] With the continuous development of artificial intelligence technology, the application scope of artificial intelligence in people's lives is becoming more and more extensive. At present, artificial intelligence technology can be used to recommend cloud products to users. In the related technology, artificial intelligence technology recommends cloud products mainly by relying on the user group's content preference records to find similar users. However, for cloud product users, even if some users have the same order records for the same cloud product, these users may not necessarily be called similar users. It can be seen that the accuracy of current cloud product recommendations is poor. Summary of the invention
[0003] The embodiments of the present invention provide a cloud product recommendation method, apparatus and related devices to solve the problem of poor accuracy in current cloud product recommendation.
[0004] To solve the above problems, the present invention is achieved as follows:
[0005] In a first aspect, an embodiment of the present invention provides a cloud product recommendation method, comprising:
[0006] Determine usage scenario information of the cloud product corresponding to each user based on usage information of the cloud product by multiple users;
[0007] Determining, from the plurality of users, a second user whose matching degree with the first user is greater than a preset value, according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user;
[0008] Recommending a cloud product to the first user based on the subscription information of the cloud product corresponding to the second user.
[0009] In a second aspect, an embodiment of the present invention provides a cloud product recommendation device, including:
[0010] A first determination module is used to determine usage scenario information of the cloud product corresponding to each user based on usage information of the cloud product by multiple users;
[0011] A second determination module is used to determine, from the multiple users, a second user whose matching degree with the first user is greater than a preset value according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user;
[0012] The recommendation module is used to recommend a cloud product to the first user according to the subscription information of the cloud product corresponding to the second user.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in the method described in the first aspect above.
[0014] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein the program, when executed by a processor, implements the steps in the method described in the first aspect.
[0015] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the method described in the first aspect above.
[0016] In an embodiment of the present invention, a second user matching the first user can be determined through usage scenario information of the cloud product corresponding to the first user and subscription information of the cloud product corresponding to the first user, and then the cloud product can be recommended to the first user based on the subscription information of the cloud product corresponding to the second user. In this way, when determining the second user, the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user are comprehensively considered, thereby improving the accuracy of the determination result of the second user, and further improving the accuracy of the result of recommending the cloud product to the first user. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0018] Figure 1 is a flow chart of a cloud product recommendation method provided by an embodiment of the present invention;
[0019] Figure 2 It is one of the example diagrams provided by the embodiment of the present invention;
[0020] Figure 3 This is the second example diagram provided by the embodiment of the present invention;
[0021] Figure 4 This is the third example diagram provided by the embodiment of the present invention;
[0022] Figure 5 is a schematic diagram of the structure of a cloud product recommendation device provided by an embodiment of the present invention;
[0023] Figure 6It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, which represents 7 situations including single A, single B, single C, and A and B all exist, B and C all exist, A and C all exist, and A, B and C all exist.
[0026] In related technologies, recommendation algorithms usually rely on user groups’ records of content preferences to find similar users. However, for cloud product users, even if some users have the same subscription records for the same cloud product, these users may not necessarily be called similar users. This is because cloud products have a particularity compared to other products or content: the same cloud product can have different application scenarios, and application scenarios are usually difficult to obtain directly.
[0027] Taking the cloud product as cloud host as an example, some users use cloud host for website hosting, some users use cloud host for application deployment, and some users use cloud host for database management. These users are obviously not similar. If users who use cloud host for website hosting and users who use cloud host for application deployment are identified as similar users, and cloud products are recommended to users who use cloud host for application deployment based on the usage of cloud products by users who use cloud host for website hosting, it will obviously lead to lower accuracy of recommendation, that is, the recommendation effect for cloud products will be poor.
[0028] In order to solve the above problems, the core idea provided by the embodiments of the present invention is to incorporate the application scenario information of the user after subscribing to the cloud product into the process of determining similar users. Taking the cloud product as a cloud host as an example, if the application scenario information of the cloud host is different, then the corresponding central processing unit (CPU) utilization, memory utilization, network card input / output (I / O), and disk utilization trends are also different. Therefore, different application scenario information can be distinguished from the resource usage trends of the cloud product. For details, please refer to the following embodiments:
[0029] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a cloud product recommendation method provided by an embodiment of the present invention. Figure 1 As shown, the cloud product recommendation method may include the following steps:
[0030] Step 101: Determine usage scenario information of a cloud product corresponding to each user based on usage information of the cloud product by multiple users.
[0031] Among them, the usage information of cloud products can also be referred to as the usage information of cloud products. For example, when the cloud product is a cloud host, the usage information of the cloud product can refer to the resource usage information of the cloud product (such as the CPU utilization of the cloud host), the read and write rate of the cloud host's disk, the utilization rate of the cloud host's bandwidth, etc.
[0032] For example, referring to Table 1, the usage information of cloud products may refer to the CPU utilization of cloud hosts, and cloud products may refer to cloud hosts. Table 1 includes n cloud hosts, and CPU utilization may refer to the usage rate within a day. The collection frequency is once every half an hour, so each cloud host has 48 data.
[0033] Table 1
[0034] product resource 1 2 3 …… 47 48 ...Host 1 CPU 10% 12% 18% …… 18% 37% Cloud Host 2 CPU 1% 4% 16% …… 6% 30% …… …… …… …… …… …… …… …… Cloud Host CPU 65% 46% 78% …… 87% 49%
[0035] The CPU utilization of each of the above cloud hosts can be regarded as a high-dimensional space point. By classifying the CPU utilization of the above n cloud hosts, the usage scenario information of the cloud products can be obtained. The classification can be converted into a clustering problem of these n points, that is, the usage scenario information of different cloud products can be determined by clustering the n points.
[0036] It should be noted that the specific type of cloud products is not limited here. Optionally, the cloud product can be a cloud host or a cloud container, etc.
[0037] Among them, the resource usage information of the cloud product can be the resource usage information of the cloud product from the first moment to the current moment, or the resource usage information of the cloud product can also be the resource usage information between the first moment and the second moment. The current moment is between the first moment and the second moment, that is, the first moment is a historical moment, and the second moment is a future moment. The resource usage information corresponding to the time length between the first moment and the current moment is the historical usage information, and the resource usage information corresponding to the time length between the current moment and the future moment is the predicted future usage information.
[0038] When the resource usage information of the cloud product may also be the resource usage information between the first moment and the second moment, the resource usage information of the cloud product may be referred to as resource usage trend data, which is essentially time series data.
[0039] Among them, the specific method of determining the usage scenario information of the cloud product corresponding to each user based on the usage information of multiple users on the cloud product is not limited here. Optionally, the usage information of multiple users on the cloud product can be matched with the sample information, and the usage scenario information corresponding to the sample information with the highest matching degree with the usage information can be determined as the usage scenario information of the user.
[0040] Optionally, the user's usage scenario information may be obtained through clustering method, and details may be referred to in the following description.
[0041] Step 102: Determine, from the multiple users, a second user whose matching degree with the first user is greater than a preset value, based on the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user.
[0042] The subscription information of the cloud product corresponding to the first user may be referred to as the historical subscription information of the first user to the cloud product.
[0043] The second user can be called a similar user of the first user, that is, the second user can be understood as a user who has similar subscription preferences as the first user, that is, the second user's subscription preference for cloud products is similar to the first user's subscription preference for cloud products, and thus the cloud product can be pushed to the first user based on the second user's subscription information for the cloud product. In this way, the accuracy of the results of the cloud product pushed to the first user can be guaranteed to be high.
[0044] Step 103: Recommend a cloud product to the first user based on the subscription information of the cloud product corresponding to the second user.
[0045] The subscription information of the cloud product corresponding to the second user may be referred to as the historical subscription information of the second user to the cloud product.
[0046] In addition, since the present embodiment uses the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user to determine the second user, and recommends the cloud product to the first user based on the subscription information of the cloud product corresponding to the second user, the algorithm corresponding to the present embodiment can be called a collaborative filtering recommendation algorithm, and since the present embodiment comprehensively considers the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user when searching for the second user similar to the first user, the determination result of the second user is more accurate, and thus the result of the cloud product finally recommended to the first user is also more accurate.
[0047] In the embodiment of the present invention, through steps 101 to 103, a second user matching the first user can be determined through the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, and then the cloud product can be recommended to the first user based on the subscription information of the cloud product corresponding to the second user. In this way, when determining the second user, the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user are comprehensively considered, thereby improving the accuracy of the determination result of the second user, and further improving the accuracy of the result of recommending the cloud product to the first user.
[0048] For example, assuming that the preferences of the target user (i.e., the first user) and its similar user (i.e., the second user) are similar, the subscription combination of similar users (i.e., the subscription information of the cloud product corresponding to the second user) can be used to predict the preference of the target user (i.e., the subscription information of the cloud product corresponding to the first user). The calculation formula is as follows:
[0049]
[0050] in, represents the preference value of user u (i.e., the first user) ordering product p for scenario i, S is the set of similar users of user u (i.e., the set of second users), w uv is the similarity between user u and user v (i.e., the second user), is a dummy variable with a value of 0 or 1, which is 1 when user v orders product p for scenario i and 0 otherwise.
[0051] Then through (i.e., the set of second users) calculates the average value to obtain the user's preference value for a certain product (cloud product), and the calculation formula is as follows:
[0052]
[0053] Among them, R up represents the preference value of user u for product p, and n is the number of application scenarios of product p.
[0054] Finally, give R up Set a threshold R t , when R up Greater than R up When product p is recommended to user u, the accuracy of the recommendation result of the cloud product for the first user can be improved.
[0055] As an optional implementation manner, determining the usage scenario information of the cloud product corresponding to each user according to the usage information of the cloud product by multiple users includes:
[0056] Clustering the usage information of the cloud product by the multiple users based on a clustering algorithm to obtain scenario clustering information;
[0057] Determine usage scenario information of the cloud product corresponding to each user according to the scenario clustering information.
[0058] The specific type of clustering algorithm is not limited here. Optionally, the clustering algorithm may adopt a k-means clustering algorithm (k-means clustering algorithm, K-Means).
[0059] The K-Means clustering algorithm can include the following steps:
[0060] a. First, randomly select K points (i.e., points corresponding to the usage information of multiple users for cloud products) from the sample (i.e., all the usage information included in the database) as cluster centers;
[0061] b. Calculate the distances between other samples in the sample and the K cluster centers, and use these samples as the categories of the cluster center closest to them;
[0062] c. Calculate the average value of each category for the samples classified above and find the new cluster center;
[0063] d. Repeat steps b and c until convergence (the cluster center no longer changes or the specified number of iterations is reached), and the clustering process ends.
[0064] The above steps contain two key points: first, the determination of the K value, and second, the measurement of the distance.
[0065] For the determination of K value, please refer to the following statement:
[0066] Before clustering, it is necessary to specify in advance the number of clusters to be clustered, K. In this implementation, K values are selected from 1 to 5 for clustering in sequence, and finally the K value with the best clustering effect is selected.
[0067] It should be noted that according to the principle of "small difference within the cluster and large difference between clusters" in clustering, the Silhouette Coefficient can be used to detect the clustering effect.
[0068] The formula for the Silhouette Coefficient S(i) is as follows:
[0069]
[0070] Among them, a(i) represents the cohesion of sample point i (i.e., the usage information of a certain user for cloud products), and the calculation method is as follows:
[0071]
[0072] Among them, j (i.e., the usage information of another user for cloud products) represents other sample points within the same cluster as sample i, and distance represents the distance between i and j. Therefore, the smaller a(i) is, the tighter the class is.
[0073] In addition, the calculation method of b(i) is similar to that of a(i), except that it is necessary to traverse other clusters to obtain multiple values, and the minimum value is selected as the final result, while max represents taking the maximum value between a(i) and b(i), and n represents the number of j and i.
[0074] When a(i) < b(i), that is, the distance within the class is less than the distance between classes, the clustering result is more compact. The value of S(i) will approach 1, and the better the clustering effect.
[0075] On the contrary, when a(i) > b(i), the distance within the class is greater than the distance between classes, indicating that the clustering result is very loose. The value of S(i) will approach -1, and the worse the clustering effect.
[0076] The above is the calculation method of the Silhouette Coefficient for a single sample point i. The mean value of the Silhouette Coefficients of all sample points can be used to evaluate the overall clustering effect.
[0077] In the embodiment of the present invention, by clustering the usage information of multiple users for cloud products and determining the usage scenario information of the cloud products corresponding to each user according to the scenario clustering information obtained from the clustering process, in this way, since the usage information of multiple users for cloud products is integrated, the accuracy of the finally determined usage scenario information can be relatively high.
[0078] It should be noted that the K-Means clustering algorithm is a clustering algorithm based on distance measurement, and the distance represents the similarity between two objects. In this embodiment, the clustering object is resource usage trend data (that is, the usage information of cloud products includes historical usage information of cloud products and predicted usage information of cloud products), which is essentially time series data. Usually, the similarity of two time series can be compared by directly calculating the distance point by point. However, when the lengths of the two sequences are not equal, the existing K-Means clustering algorithm becomes inapplicable, so the sequence needs to be extended or compressed to compare whether the two sequences are similar.
[0079] As an optional implementation manner, clustering the usage information of the cloud product by the multiple users based on a clustering algorithm to obtain scene clustering information includes:
[0080] Based on a dynamic time warping (DTW) algorithm, a distance value between usage information of the cloud product by any two of the multiple users is calculated;
[0081] When the distance value is greater than a preset distance value, the usage information of the cloud product by the arbitrary two users is respectively determined as belonging to scene clustering information of different categories;
[0082] When the distance value is less than or equal to the preset distance value, the usage information of the cloud product by any two users is determined to belong to the scene clustering information of the same category.
[0083] In the implementation manner of the present invention, based on the DTW algorithm, the distance value between the usage information of cloud products of any two users among multiple users is calculated, and the scene clustering information is determined according to the distance value, thereby further increasing the diversity and flexibility of the scene clustering information calculation method.
[0084] Among them, the DTW algorithm constructs the correspondence between two sequence elements of different lengths according to the principle of the shortest distance and evaluates the similarity of the two sequences. When constructing the correspondence between two sequence elements, the sequence needs to be extended or compressed.
[0085] like Figure 2 As shown in the figure, the solid line and the dotted line are two time series, but they are not aligned on the time axis. For example, at the 20th time point, point a of the solid line waveform corresponds to point b' of the dotted line waveform. The related technology of calculating similarity by comparing the distance between point a and point b' is not applicable. Because it is obvious that the solid line point a corresponds to the dotted line point b.
[0086] As an optional implementation manner, the calculating the distance value between the usage information of the cloud product of any two users among the multiple users based on the dynamic time warping DTW algorithm includes:
[0087] Calculate, based on the first formula corresponding to the DTW algorithm, a distance value between usage information of the cloud product by any two of the multiple users;
[0088] The first formula is:
[0089] Where A is the usage information of the cloud product by one of the two users, B is the usage information of the cloud product by the other of the two users, and w k is the distance between the usage information of the cloud product of one of the two arbitrary users at the kth moment and the usage information of the cloud product of the other of the two arbitrary users at the kth moment, where k is the number of the moment.
[0090] In the implementation manner of the present invention, the distance value between the usage information of the cloud product by any two users among multiple users is calculated by the first formula, so that the calculation efficiency of the distance value between the usage information of the cloud product by any two users among multiple users can be improved.
[0091] The following is an example of a distance example to illustrate this implementation mode:
[0092] Two time series A (i.e., the usage information is time series information) and B (i.e., the usage information is time series information), A = a1, a2, ... a n , B=b1,b2,…b n . Construct a (n, m) matrix, where the (i, j)th cell records two points (a i , b j ), d(a i , b j )=|a i -b j |, such as Figure 3 As shown in Figure 1, a tortuous path W is composed of several interconnected matrix units. This path describes a mapping between A and B. Let the kth unit be defined as w k =(i, j) k ,but:
[0093] w=w1,w2,w3,…,w K , max(n, m)<=K<=n+m-1;
[0094] This winding path satisfies the following conditions:
[0095] Boundary conditions: w1 = (1, 1), and w k =(n,m);
[0096] Continuity: Let w k =(a, b), w k-1 =(a′, b′), then aa′<=1, bb′<=1;
[0097] Monotonicity: Let w k =(a, b), w k-1 =(a′, b′), then aa′>=0, bb′>=0;
[0098] Among the multiple paths that meet the above conditions, the shortest path with the least cost is:
[0099]
[0100] The above K and w k The definition of can refer to the definition of the above calculation formula, and will not be repeated here.
[0101] The calculation process of DTW distance is a dynamic programming process. First, the matrix is initialized with Euclidean distance, and then the following recursive formula is used to solve it:
[0102] r(i,j)=d(i,j)+min(r(i-1,j-1), r(i-1,j), r(i,j-1));
[0103] Among them, min is the minimum value, and r is also used to represent the distance;
[0104] Based on the distance calculated by the DTW algorithm, the K-Means clustering algorithm can be used to cluster the time series data, thereby distinguishing the different usage scenario information of cloud products, thereby improving the accuracy of the determination results of the usage scenario information.
[0105] As an optional implementation manner, determining, from the multiple users, a second user whose matching degree with the first user is greater than a preset value according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, includes:
[0106] Inputting the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user into a second formula, and calculating the second user;
[0107] The second formula is:
[0108] Among them, W uvis the matching degree between the first user and the second user, N(u) includes the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, N(v) includes the usage scenario information of the cloud product corresponding to the second user and the subscription information of the cloud product corresponding to the second user, and ‖ can be used to represent the OR operation in Boolean operation.
[0109] In the implementation manner of the present invention, the second user is calculated using the second formula, so that the accuracy of the result of the second user can be enhanced, and the efficiency of calculating the second user can be improved.
[0110] For example, given user u and user v, let N(u) be the set of combinations ordered by user u, and let N(v) be the set of combinations ordered by user v. Then the similarity between users u and v can be calculated using the cosine similarity formula (i.e., the second formula above).
[0111] For example: User A ordered {a,b,d}, and User B ordered {a,c}, then
[0112] It should be noted that even if two users have ordered the same combination, it does not necessarily mean that their interests are similar. In the above example, both user A and user B have ordered combination a, but if combination a is a popular combination and almost all users have ordered combination a, then the influence of combination a should be weakened.
[0113] As an optional implementation manner, determining, from the multiple users, a second user whose matching degree with the first user is greater than a preset value according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, includes:
[0114] Inputting the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user into a third formula to calculate the second user;
[0115] The third formula is:
[0116] Among them, W uv is the matching degree between the first user and the second user, N(u) includes the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, N(v) includes the usage scenario information of the cloud product corresponding to the second user and the subscription information of the cloud product corresponding to the second user, and N(i) is the same part of the subscription information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the second user.
[0117] In the implementation manner of the present invention, the second user is obtained by calculation using the third formula, thereby increasing the diversity and flexibility of the second user calculation method.
[0118] It should be noted that the inverse of the numerator in the third formula penalizes the impact of the popular combinations in the list ordered by user u and user v on their similarity. N(i) is the set of users who ordered combination i. The more popular combination i is, the larger N(i) is, and the greater the penalty is.
[0119] Calculate the similarity w uv Then, set a similarity threshold w t , when w uv >w t , user u and user v are similar users.
[0120] As an optional implementation manner, before determining the usage scenario information of the cloud product corresponding to each user according to the usage information of the cloud product by multiple users, the method further includes:
[0121] Obtain sample information on the use of cloud products by multiple users;
[0122] Performing target processing on the usage sample information to obtain usage information of the cloud product by the multiple users;
[0123] The target processing includes at least one of the following: missing value processing, duplicate item processing, and data outlier processing.
[0124] In the implementation manner of the present invention, by performing targeted processing on the usage sample information to obtain the usage information of multiple users on the cloud product, the quality of the usage sample information can be enhanced, thereby improving the accuracy of the ultimately obtained usage information of multiple users on the cloud product.
[0125] Among them, missing value processing can be understood as follows: missing data refers to the situation where data is incomplete due to some reasons during the process of data collection, transmission and processing. Therefore, missing value processing can use the uniform distribution filling method to fill the missing values evenly. For example, assuming that the cloud resource utilization data from May 2 to May 4 is missing, the data on May 1 is 10%, and the sales data on May 5 is 22%, then the missing values from May 2 to May 4 are filled with 13%, 16%, and 19% respectively.
[0126] The duplicate item processing can be understood as follows: duplicate data can be directly deleted.
[0127] Among them, data outlier processing can be understood as follows: outliers (i.e. data outliers), also known as abnormal values, refer to values in a data set that are significantly deviated from other samples in the data set. For example: see Figure 4, this implementation can use the box plot to identify outliers, and outliers are defined as values less than Q1-1.5IQR (lower edge) or greater than Q3+1.5IQR (upper edge), where Q1 is the lower quartile, Q3 is the upper quartile, IQR is the interquartile range, and the calculation formula is IQR=Q3-Q1. In this way, after outliers are detected, they can be deleted, and then the corresponding data can be processed according to the missing value processing.
[0128] See also Figure 5 , Figure 5 is a structural diagram of a cloud product recommendation device provided by an embodiment of the present invention, such as Figure 5 As shown, the cloud product recommendation device 500 includes:
[0129] The first determination module 501 is used to determine the usage scenario information of the cloud product corresponding to each user according to the usage information of the cloud product by multiple users;
[0130] A second determining module 502 is configured to determine, from the plurality of users, a second user whose matching degree with the first user is greater than a preset value, based on the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user;
[0131] The recommendation module 503 is configured to recommend a cloud product to the first user according to the subscription information of the cloud product corresponding to the second user.
[0132] As an optional implementation manner, the first determining module 501 includes:
[0133] A clustering processing submodule, configured to perform clustering processing on the usage information of the cloud product by the multiple users based on a clustering algorithm to obtain scene clustering information;
[0134] The first determination submodule is used to determine the usage scenario information of the cloud product corresponding to each user according to the scenario clustering information.
[0135] As an optional implementation, the clustering processing submodule includes:
[0136] A calculation unit, configured to calculate a distance value between usage information of the cloud product by any two users among the plurality of users based on a DTW algorithm;
[0137] A first determining unit, configured to determine, when the distance value is greater than a preset distance value, usage information of the cloud product by any two users as belonging to scene clustering information of different categories;
[0138] The second determining unit is used to determine the usage information of the cloud product by any two users as belonging to the scene clustering information of the same category when the distance value is less than or equal to a preset distance value.
[0139] As an optional implementation manner, the computing unit is further configured to:
[0140] Calculate, based on the first formula corresponding to the DTW algorithm, a distance value between usage information of the cloud product by any two of the multiple users;
[0141] The first formula is:
[0142] Where A is the usage information of the cloud product by one of the two users, B is the usage information of the cloud product by the other of the two users, and w k is the distance between the usage information of the cloud product of one of the two arbitrary users at the kth moment and the usage information of the cloud product of the other of the two arbitrary users at the kth moment, where k is the number of the moment.
[0143] As an optional implementation manner, the second determining module 502 is further configured to:
[0144] Inputting the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user into a second formula, and calculating the second user;
[0145] The second formula is:
[0146] Among them, W uv is the matching degree between the first user and the second user, N(u) includes the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, and N(v) includes the usage scenario information of the cloud product corresponding to the second user and the subscription information of the cloud product corresponding to the second user.
[0147] As an optional implementation manner, the second determining module 502 is further configured to:
[0148] Inputting the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user into a third formula to calculate the second user;
[0149] The third formula is:
[0150] Among them, W uvis the matching degree between the first user and the second user, N(u) includes the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, N(v) includes the usage scenario information of the cloud product corresponding to the second user and the subscription information of the cloud product corresponding to the second user, and N(i) is the same part of the subscription information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the second user.
[0151] As an optional implementation, the cloud product recommendation device 500 further includes:
[0152] An acquisition module is used to obtain sample information of cloud product usage by multiple users;
[0153] a target processing module, configured to perform target processing on the usage sample information to obtain usage information of the cloud product by the multiple users;
[0154] The target processing includes at least one of the following: missing value processing, duplicate item processing, and data outlier processing.
[0155] The cloud product recommendation device 500 can realize the embodiment of the present invention Figure 1 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0156] The embodiment of the present invention also provides an electronic device. Figure 6 , the electronic device may include a processor 601, a memory 602, and a program 6021 stored in the memory 602 and executable on the processor 601. When the program 6021 is executed by the processor 601, Figure 1 Any steps in the corresponding method embodiments and achieving the same beneficial effects will not be repeated here.
[0157] A person skilled in the art can understand that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware related to program instructions, and the program can be stored in a readable medium. The embodiment of the present invention also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 1 Any steps in the corresponding method embodiments can achieve the same technical effect and will not be repeated here to avoid repetition.
[0158] The storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0159] The embodiment of the present invention also provides a computer program product, including computer instructions, which can achieve the above-mentioned Figure 1 Any steps in the corresponding method embodiments can achieve the same technical effect and will not be described again here to avoid repetition.
[0160] The above is a preferred implementation of the embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A cloud product recommendation method, characterized in that: include: Determine usage scenario information of the cloud product corresponding to each user based on usage information of the cloud product by multiple users; Determining, from the plurality of users, a second user whose matching degree with the first user is greater than a preset value, according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user; Recommending a cloud product to the first user based on the subscription information of the cloud product corresponding to the second user.
2. The method according to claim 1, characterized in that The determining, based on the usage information of the cloud products by multiple users, the usage scenario information of the cloud products corresponding to each user includes: Clustering the usage information of the cloud product by the multiple users based on a clustering algorithm to obtain scenario clustering information; Determine usage scenario information of the cloud product corresponding to each user according to the scenario clustering information.
3. The method according to claim 2, characterized in that The clustering process based on the clustering algorithm is performed on the usage information of the multiple users on the cloud product to obtain the scene clustering information, including: Calculate the distance between the usage information of the cloud product by any two users among the multiple users based on the dynamic time warping (DTW) algorithm; When the distance value is greater than a preset distance value, the usage information of the cloud product by the arbitrary two users is respectively determined as belonging to scene clustering information of different categories; When the distance value is less than or equal to the preset distance value, the usage information of the cloud product by any two users is determined to belong to the scene clustering information of the same category.
4. The method according to claim 3, characterized in that The calculating the distance value between the usage information of the cloud product by any two users among the multiple users based on the dynamic time warping (DTW) algorithm includes: Calculate, based on the first formula corresponding to the DTW algorithm, a distance value between usage information of the cloud product by any two of the multiple users; The first formula is: Where A is the usage information of the cloud product by one of the two users, B is the usage information of the cloud product by the other of the two users, and w k is the distance between the usage information of the cloud product of one of the two arbitrary users at the kth moment and the usage information of the cloud product of the other of the two arbitrary users at the kth moment, where k is the number of the moment.
5. The method according to any one of claims 1 to 4, characterized in that The determining, from the plurality of users, a second user whose matching degree with the first user is greater than a preset value according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, comprises: Inputting the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user into a second formula, and calculating the second user; The second formula is: Among them, W uv is the matching degree between the first user and the second user, N(u) includes the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, and N(v) includes the usage scenario information of the cloud product corresponding to the second user and the subscription information of the cloud product corresponding to the second user.
6. The method according to any one of claims 1 to 4, characterized in that The determining, from the plurality of users, a second user whose matching degree with the first user is greater than a preset value according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, comprises: Inputting the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user into a third formula to calculate the second user; The third formula is: Among them, W uv is the matching degree between the first user and the second user, N(u) includes the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user, N(v) includes the usage scenario information of the cloud product corresponding to the second user and the subscription information of the cloud product corresponding to the second user, and N(i) is the same part of the subscription information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the second user.
7. The method according to any one of claims 1 to 4, characterized in that Before determining the usage scenario information of the cloud product corresponding to each user according to the usage information of the cloud product by multiple users, the method further includes: Obtain sample information on the use of cloud products by multiple users; Performing target processing on the usage sample information to obtain usage information of the cloud product by the multiple users; The target processing includes at least one of the following: missing value processing, duplicate item processing, and data outlier processing.
8. A cloud product recommendation device, characterized in that: include: A first determination module is used to determine usage scenario information of the cloud product corresponding to each user based on usage information of the cloud product by multiple users; A second determination module is used to determine, from the multiple users, a second user whose matching degree with the first user is greater than a preset value according to the usage scenario information of the cloud product corresponding to the first user and the subscription information of the cloud product corresponding to the first user; The recommendation module is used to recommend a cloud product to the first user according to the subscription information of the cloud product corresponding to the second user.
9. An electronic device, comprising: A memory, a processor, and a program stored in the memory and executable on the processor; wherein the processor is used to read the program in the memory to implement the steps in the cloud product recommendation method as described in any one of claims 1 to 7.
10. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps of the cloud product recommendation method according to any one of claims 1 to 7 are implemented.
11. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the cloud product recommendation method as described in any one of claims 1 to 7.
Citation Information
Cited By
Cloud host recommendation method and device, electronic equipment and program product
CN121456224A
