Application recommendation method and device and electronic equipment
By obtaining the user sample set and determining the weight coefficient, combined with the radial basis neural network model, the problem of inability to carry out personalized application recommendation in the existing technology is solved, accurate application recommendation for different users is achieved, and the accuracy of the recommendation is improved.
Patent Information
- Application Number
- CN202410636261.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technology cannot make personalized and accurate application software recommendations for different users and only considers the marketing needs of the platform itself.
By obtaining the user sample set, the weight coefficient of each attribute dimension is determined, and based on the distance between the target user and the user sample in each attribute dimension, a recommendation model based on the radial basis neural network is used to provide the target user with the target application platform. Recommended application software.
It achieves personalized and accurate application recommendations for each target user, taking into account the impact of different attribute dimensions and the classification labels of user samples, improving the accuracy of recommendations.
Smart Images

Figure CN118606776A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an application recommendation method, device and electronic equipment. Background Art
[0002] With the rapid development of Internet technology and the rapid popularization of smart terminals, various application software have emerged in an endless stream. In order to centrally display application software to users and meet their application download and installation needs, application platforms such as application stores or application markets that can recommend application software to users and provide application software download channels have emerged. For example, low-code platforms can provide developers with a visual application development environment, reduce or eliminate the demand for native code writing in application development, and provide a large number of low-code applications, allowing enterprises to access applications at the lowest cost and iterate quickly.
[0003] At present, various aggregation platforms have launched recommended application areas, but the recommended content only takes into account the platform’s own marketing needs and is unable to provide personalized and accurate recommendations for different users. Summary of the invention
[0004] The purpose of the present invention is to provide an application recommendation method, device and equipment, which solves the problem that the prior art cannot perform personalized and accurate recommendations for different users.
[0005] To achieve the above object, an embodiment of the present invention provides an application recommendation method, comprising:
[0006] Obtain a user sample set, wherein the user sample set includes N user samples, each of the user samples corresponds to d attribute dimensions and a classification label, and N is a positive integer;
[0007] Determine a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples;
[0008] Determine the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension;
[0009] A recommended target application is determined for a target user from the target application platform through a recommendation model corresponding to the target application platform.
[0010] Optionally, determining a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples includes:
[0011] Determine the first attribute dimension and classification label c iThe standard deviation of ; wherein the first attribute dimension is any one of the d attribute dimensions, i belongs to 1 to M, and i is an integer;
[0012] Determine the classification label c i The corresponding number of first user samples;
[0013] Determine the classification label c j The corresponding second user sample number; i is different from j, j is from 1 to M, and j is an integer;
[0014] A weight coefficient corresponding to the first attribute dimension is determined according to the standard deviation, the first user sample number, and the second user sample number.
[0015] Optionally, determining a weight coefficient corresponding to the first attribute dimension according to the standard deviation, the first user sample number, and the second user sample number includes:
[0016] Determine the sum of the first user sample number and the second user sample number to obtain a first value;
[0017] Obtaining a second value according to a ratio of the second user sample number to the first value;
[0018] The third value is obtained by summing the second values obtained by traversing i and j and taking all integers from 1 to M, wherein i and j are different;
[0019] The standard deviations obtained by traversing i and taking all integers from 1 to M are summed to obtain a fourth value;
[0020] A weight coefficient corresponding to the first attribute dimension is determined according to the inverse of the product of the third value and the fourth value.
[0021] Optionally, determining the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension includes:
[0022] According to the d weight coefficients corresponding to the d attribute dimensions, a weight coefficient matrix is formed;
[0023] Constructing a first matrix according to d differences between the target user and the rth user sample in d attribute dimensions;
[0024] Determine, from the user sample set, K user samples closest to the target user according to the weight coefficient matrix, the first matrix, and the transformed rank matrix of the first matrix; K is less than N, and K is a positive integer;
[0025] The application platform to which most of the K user samples belong is used as the target application platform corresponding to the target user.
[0026] Optionally, the recommendation model corresponding to the target application platform is constructed based on a radial basis neural network model;
[0027] The training process of the recommendation model includes:
[0028] Utilizing the optimized particle swarm optimization algorithm, the target parameters in the radial basis function neural network are optimized to obtain the optimized radial basis function neural network model; wherein the target parameters include at least one of the following: the center of the radial basis function, the radial basis function expansion constant, and the weight between the hidden layer and the output layer;
[0029] The consumption data of user samples in the target application platform is used to train the optimized radial basis neural network model to obtain the recommendation model.
[0030] Optionally, the above application recommendation method further includes:
[0031] In the optimized particle swarm optimization algorithm, the speed and position of the particles are updated according to the exponentially decreasing inertia weight and acceleration factor;
[0032] The exponentially decreasing inertia weight is determined according to the initial inertia weight, the inertia weight when the iteration reaches the maximum number of times, the maximum number of iterations and the current number of iterations;
[0033] The acceleration factor is determined according to the following formula:
[0034]
[0035]
[0036] in, and is the acceleration factor corresponding to the tth iteration number, c1 and c2 are initial values, c 1T and c 2T is the termination value, t max is the maximum number of iterations, and t is the current number of iterations.
[0037] In some optional embodiments, the exponentially decreasing inertia weight w(t) is determined according to the following formula:
[0038]
[0039] Among them, w max is the initial inertia weight, w min is the inertia weight when the iteration reaches the maximum number, t maxis the maximum number of iterations, t is the current number of iterations, Exp is the exponential function with the natural constant e as the base, and c is the control parameter.
[0040] Optionally, the target application platform is a low-code application platform.
[0041] To achieve the above object, an embodiment of the present invention provides an application recommendation device, comprising:
[0042] An acquisition module is used to acquire a user sample set, wherein the user sample set includes N user samples, each of which corresponds to d attribute dimensions and a classification label, and N is a positive integer;
[0043] A first determination module, configured to determine a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples;
[0044] A second determination module is used to determine the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension;
[0045] The third determination module is used to determine a recommended target application for a target user from the target application platform through a recommendation model corresponding to the target application platform.
[0046] To achieve the above object, an embodiment of the present invention provides an electronic device, including a processor and a transceiver, wherein:
[0047] The processor is used to obtain a user sample set, which includes N user samples, each of which corresponds to d attribute dimensions and a classification label, and N is a positive integer; according to the d attribute dimensions and the classification labels corresponding to the N user samples, a weight coefficient corresponding to each attribute dimension is determined; according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension, a target application platform corresponding to the target user is determined; and through a recommendation model corresponding to the target application platform, a recommended target application is determined for the target user from the target application platform.
[0048] To achieve the above objective, an embodiment of the present invention provides a readable storage medium having a program or instruction stored thereon, and the program or instruction, when executed by a processor, implements the steps in the above-mentioned application recommendation method.
[0049] To achieve the above objective, an embodiment of the present invention provides a computer program product, including computer instructions, which implement the above application recommendation method when executed by a processor.
[0050] The beneficial effects of the above technical solution of the present invention are as follows:
[0051] The method of the embodiment of the present invention obtains a user sample set, wherein the user sample set includes N user samples, each of which corresponds to d attribute dimensions and a classification label, and N is a positive integer; according to the d attribute dimensions and the classification labels corresponding to the N user samples, a weight coefficient corresponding to each attribute dimension is determined; according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension, a target application platform corresponding to the target user is determined; through the recommendation model corresponding to the target application platform, a recommended target application is determined for the target user from the target application platform. In this way, personalized and accurate application recommendations can be implemented for each target user by considering the influence of different attribute dimensions and the classification labels corresponding to the user samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A flowchart of a method for applying a recommendation according to an embodiment of the present invention;
[0053] Figure 2 A structural block diagram of an application recommendation device according to an embodiment of the present invention;
[0054] Figure 3 is a structural diagram of an electronic device according to an embodiment of the present invention;
[0055] Figure 4 FIG. 4 is a structural diagram of an electronic device according to another embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0057] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0058] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0059] Additionally, the terms "system" and "network" are often used interchangeably herein.
[0060] In the embodiments provided in the present application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0061] like Figure 1 As shown, an application recommendation method according to an embodiment of the present invention includes the following steps:
[0062] Step 101: Obtain a user sample set, wherein the user sample set includes N user samples, each of the user samples corresponds to d attribute dimensions and a classification label, and N is a positive integer.
[0063] The classification label is used to characterize the category of the application platform purchased by the user sample.
[0064] Optionally, the user sample is an enterprise user sample, and the d attribute dimensions of the enterprise are d basic information attributes of the enterprise users, such as may include but are not limited to: enterprise employees, enterprise type, registered capital, total enterprise assets, enterprise revenue, year of establishment, industry to which the enterprise belongs, province to which the enterprise belongs, degree of enterprise informatization, and enterprise R&D capabilities.
[0065] Step 102: Determine a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples.
[0066] Step 103: Determine the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension.
[0067] Optionally, the target application platform is a low-code application platform.
[0068] Optionally, the target user is a target enterprise user.
[0069] In specific implementation, based on the real data of the enterprise on the public cloud platform, d attribute dimensions of the enterprise users are obtained, and the d attribute dimensions of the enterprise are normalized to obtain the normalized data corresponding to each attribute dimension; according to the normalized data corresponding to each attribute dimension, the distance between the target enterprise user and each enterprise sample in each attribute dimension is calculated; further, the distance in each attribute dimension is multiplied by the corresponding weight coefficient, which can improve the calculation accuracy of the distance between the target enterprise and the sample enterprise in each attribute dimension.
[0070] Step 104: Determine a recommended target application for a target user from the target application platform through a recommendation model corresponding to the target application platform.
[0071] Optionally, the target application is a low-code application.
[0072] Among them, the recommendation model corresponding to the target application platform is built based on the radial basis neural network model; the recommendation model corresponding to the target application platform is trained using the consumption data of user samples in the target application platform.
[0073] In the above embodiment, the weight coefficient corresponding to each attribute dimension can be determined according to the d attribute dimensions and the classification labels corresponding to the N user samples; the target application platform corresponding to the target user can be determined according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension; and the recommended target application can be determined for the target user from the target application platform through the recommendation model corresponding to the target application platform. In this way, by considering the influence of different attribute dimensions and the classification labels corresponding to the user samples, personalized and accurate application recommendations can be achieved for each target user.
[0074] In some optional embodiments, determining a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples includes:
[0075] Determine the first attribute dimension and classification label c i The standard deviation of ; wherein the first attribute dimension is any one of the d attribute dimensions, i belongs to 1 to M, and i is an integer;
[0076] Determine the classification label c i The corresponding number of first user samples;
[0077] Determine the classification label c j The corresponding second user sample number; i is different from j, j is from 1 to M, and j is an integer;
[0078] A weight coefficient corresponding to the first attribute dimension is determined according to the standard deviation, the first user sample number, and the second user sample number.
[0079] In the specific implementation, each attribute dimension and each classification label are normalized to obtain the corresponding normalized data respectively; the classification labels are traversed to calculate the normalized data corresponding to the first attribute dimension and the classification label c i The standard deviation between the corresponding normalized data, i belongs to 1 to M; traverse the classification labels and obtain the classification label c in the user sample set i The corresponding first user sample number and classification label c j The corresponding number of second user samples, classification label c i and classification label c j different; finally, according to the standard deviation, the number of first user samples and the number of second user samples, the weight coefficient corresponding to the first attribute dimension is determined.
[0080] In the above embodiment, the first attribute dimension and the classification label c i The standard deviation can reflect the aggregation of the same type, and the coupling of different types can be determined through the first user sample number and the second user sample number, thereby ensuring the calculation accuracy of the weight coefficient.
[0081] In some optional embodiments, determining the weight coefficient corresponding to the first attribute dimension according to the standard deviation, the first user sample number, and the second user sample number includes:
[0082] Determine the sum of the first user sample number and the second user sample number to obtain a first value;
[0083] Obtaining a second value according to a ratio of the second user sample number to the first value;
[0084] The third value is obtained by summing the second values obtained by traversing i and j and taking all integers from 1 to M, wherein i and j are different;
[0085] The standard deviations obtained by traversing i and taking all integers from 1 to M are summed to obtain a fourth value;
[0086] A weight coefficient corresponding to the first attribute dimension is determined according to the inverse of the product of the third value and the fourth value.
[0087] Optionally, the specific implementation may be based on the formula: Determining a weight coefficient corresponding to the first attribute dimension;
[0088] Among them, W a is the weight coefficient corresponding to the first attribute dimension a, σ ai The first attribute dimension a and the classification label c i The standard deviation, R i is the classification label c i The corresponding number of first user samples, R j is the classification label c j The corresponding second user sample number, the first value = R i +R j ,
[0089] It should be pointed out that the calculation method of the above weight value is mainly set by considering the distribution of the classification labels to which the attribute dimension belongs. The standard deviation σ in the formula ai Can represent the same type of aggregation, The ratio of can represent the coupling of heterogeneous species and ensure the calculation accuracy of the weight coefficient.
[0090] In some optional embodiments, determining the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension includes:
[0091] According to the d weight coefficients corresponding to the d attribute dimensions, a weight coefficient matrix is formed;
[0092] Constructing a first matrix according to d differences between the target user and the rth user sample in d attribute dimensions;
[0093] Determine, from the user sample set, K user samples closest to the target user according to the weight coefficient matrix, the first matrix, and the transformed rank matrix of the first matrix; K is less than N, and K is a positive integer;
[0094] The application platform to which most of the K user samples belong is used as the target application platform corresponding to the target user.
[0095] Optionally, the distance calculation formula between the target user and the sample user is:
[0096]
[0097] Among them, X t For target users; X r is the rth user sample in the user sample set, r is from 1 to N, N is the total number of enterprise user samples in the user sample set, and r is an integer; W is the weight coefficient matrix composed of d attribute dimensions; (X t -X r ) represents a first matrix consisting of d differences between the target user and the r-th user sample in d attribute dimensions; (X t -X r ) T represents the transpose of the first matrix; ° is the mathematical symbol of Hadamard product.
[0098] For example, the fake target user includes three attribute dimensions: d1, d2 and d3, then:
[0099] Weight coefficient matrix W = [W d1 W d2 W d3 ]; among them, W d1 Represents the weight value corresponding to the attribute dimension d1, W d2 Represents the weight value corresponding to the attribute dimension d2, W d3 Indicates the weight value corresponding to the attribute dimension d3;
[0100] The first matrix = [(X t_d1 -X r_d1)(X t_d2 -X r_d2 )(X t_d3 -X r_d3 )]; where X t_d1 represents the normalized value corresponding to the attribute dimension d1 of the target user, X r_d1 represents the normalized value corresponding to the attribute dimension d1 of the rth user sample, X t_d2 represents the normalized value corresponding to the attribute dimension d2 of the target user, X r_d2 represents the normalized value corresponding to the attribute dimension d2 of the rth user sample, X t_d3 represents the normalized value corresponding to the attribute dimension d3 of the target user, X r_d3 Represents the normalized value corresponding to the attribute dimension d3 of the rth user sample;
[0101]
[0102] Calculate the product of the first matrix and the transpose of the first matrix to obtain the second matrix = [(X t_d1 -X r_d1 ) 2 (X t_d2 -X r_d2 ) 2 (X t_d3 -X r_d3 ) 2 ];
[0103] Determine the Hadamard product of the second matrix and the weight coefficient matrix W as: [W d1 W d2 W d3 ]°[(X t_d1 -X r_d1 ) 2 (X t_d2 -X r_d2 ) 2 (X t_d3 -X r_d3 ) 2 ]=[W d1 ×(X t_d1 -X r_d1 ) 2 W d2 ×(X t_d2 -X r_d2 ) 2 W d3 ×(X t_d3 -X r_d3 ) 2 ];
[0104] Finally, by taking the square root of the Hadamard product of the second matrix and the weight coefficient matrix W, a matrix consisting of the distance values between the target user and the user samples in the three attribute dimensions can be obtained.
[0105] Optionally, when screening K neighboring user samples from the user sample set, the sum of the distance values between the target user and the sample users in d attribute dimensions can be used as the distance between the target user and the user sample, and the neighboring K user samples can be screened from the user sample set based on the distance; or, the distance between the target user and the user sample in each dimension can be compared one by one, and finally the neighboring K user samples can be screened from the user sample set.
[0106] It should be pointed out that when traditional recommendation algorithms classify and predict multidimensional data, they regard each dimension involved in the classification as equally important. However, different attribute dimensions may have different effects on the results, such as enterprise scale, enterprise digitalization progress, and enterprise R&D capabilities, which will greatly affect the enterprise's choice of application platform type. In the above embodiment, corresponding weights are assigned based on the degree of influence of different attribute dimensions of the enterprise on the results, so that the target application platform finally determined is more accurate.
[0107] In some embodiments, the recommendation model corresponding to the target application platform is constructed based on a radial basis neural network model; the training process of the recommendation model includes:
[0108] Utilizing the optimized particle swarm optimization algorithm, the target parameters in the radial basis function neural network are optimized to obtain the optimized radial basis function neural network model; wherein the target parameters include at least one of the following: the center of the radial basis function, the radial basis function expansion constant, and the weight between the hidden layer and the output layer;
[0109] The consumption data of user samples in the target application platform is used to train the optimized radial basis neural network model to obtain the recommendation model.
[0110] Among them, the consumption data of user samples in the target application platform can reflect the user's application purchasing behavior characteristics, including but not limited to: the number of purchased applications, purchased application scenarios, cancellation frequency, package change frequency, etc.
[0111] It should be pointed out that the radial basis neural network is a three-layer static forward neural network consisting of an input layer, a hidden layer, and an output layer. It has strong learning ability, fast convergence speed, and strong nonlinear fitting ability. Among them, the factors that affect the performance of the radial basis neural network mainly include the number of neurons and the main parameters: the center of the radial basis function, the radial basis function expansion constant, and the weights between the hidden layer and the output layer.
[0112] It should be noted that the particle swarm algorithm is a commonly used parameter optimization algorithm. The particles are given an initial random position and velocity. The particles update their positions and velocities through iteration until the global optimal solution is obtained after the iteration.
[0113] In the above embodiment, the optimized particle swarm optimization (PSO) algorithm is used to optimize the radial basis function center, radial basis function expansion constant, and weights between the hidden layer and the output layer of the RBF, which can improve the generalization ability, prediction accuracy and prediction speed of the RBF. Moreover, the consumption data of user samples in the target application platform is used to train the optimized radial basis neural network model, which can improve the accuracy of the recommendation model and make the recommended applications more suitable for the target users. In addition, the present application first determines the target application platform based on the K-nearest neighbor algorithm, and then determines the low-code application to be recommended from the target application platform based on the recommendation model, thereby improving the efficiency of application recommendation.
[0114] In some embodiments, the application recommendation method further includes:
[0115] In the optimized particle swarm optimization algorithm, the speed and position of the particles are updated according to the exponentially decreasing inertia weight and acceleration factor;
[0116] The exponentially decreasing inertia weight is determined according to the initial inertia weight, the inertia weight when the iteration reaches the maximum number of times, the maximum number of iterations and the current number of iterations;
[0117] The acceleration factor is determined according to the following formula:
[0118] c1 t =c1-(c1-c 1T )(1-t / t max );
[0119] c2 t =c2-(c2-c 2T )(1-t / t max );
[0120] Among them, c1 t and c2 t is the acceleration factor corresponding to the tth iteration number, c1 and c2 are initial values, c 1T and c 2T is the termination value, t max is the maximum number of iterations, and t is the current number of iterations.
[0121] It should be pointed out that with the increase of the number of iterations, the inertia weight decreases linearly, so that the algorithm focuses on global optimization at the beginning and subsequently focuses on precise optimization in local areas, thus balancing the global and local search capabilities of the PSO algorithm.
[0122] It should be noted that as the number of iterations increases, c1 decreases linearly and c2 increases linearly. At the beginning of the iteration, each particle pays attention to its own historical information to ensure diversity. 1T C 2T Small, then particles pay more attention to group information to achieve rapid convergence.
[0123] In the above embodiment, based on the exponentially decreasing inertia weight and acceleration factor, the speed and position of the particle are updated, which can balance the global search capability and local search capability of the particle swarm algorithm and improve the convergence speed and calculation accuracy of the algorithm.
[0124] In some embodiments, the exponentially decreasing inertia weight w(t) is determined according to the following formula:
[0125]
[0126] Among them, w max is the initial inertia weight, w min is the inertia weight when the iteration reaches the maximum number, t max is the maximum number of iterations, t is the current number of iterations, Exp is the exponential function with the natural constant e as the base, and c is the control parameter.
[0127] The control parameter c can be determined according to the specific model, and in this application, it can be [6, 8].
[0128] In specific implementation, the optimized PSO algorithm mainly includes the following steps:
[0129] Step 1: Initialize the settings, set the number of particles in the particle swarm to N, the search space to D, and the initialization parameters c1, c2, r1, r2, v max , and set the maximum number of iterations to t max , let the current iteration number t=0.
[0130] Among them, c1 and c2 are the initial acceleration factors, r1 and r2 are two random values in the interval [0, 1], and v max is the maximum velocity of the particle.
[0131] Step 2: Update gbest and pbest; where gbest is the global optimal position of the particle swarm, and pbest is the individual optimal position of each particle.
[0132] Step 3: Update the velocity and position of the example based on the exponentially decreasing inertia weight factor and the optimized acceleration factor.
[0133] Step 4: Determine whether the updated speed and position meet the termination conditions. If so, return; otherwise, jump to step 2.
[0134] The answer shows that when applying the above solution to low-code application recommendations, it has at least the following advantages:
[0135] 1. Due to the different basic attributes of enterprises, such as enterprise scale and digitalization progress, they are the major factors affecting the demand of enterprises for low-code platforms and low-code applications. Enterprises are divided according to their basic information. In order to distinguish the importance of different dimensions of basic information, the improved algorithm will assign corresponding weight coefficients based on the different degrees of influence of multiple dimensions on the results, making the classification results more accurate.
[0136] 2. After selecting a suitable low-code platform for the enterprise, a recommendation model for low-code applications is built based on the enterprise's consumption data. In order to improve the recommendation accuracy of the recommendation model, the optimized PSO algorithm is used to optimize the key parameters in the recommendation model. The optimized recommendation model can make more targeted low-code application recommendations.
[0137] like Figure 2 As shown, an application recommendation device 200 according to an embodiment of the present invention includes:
[0138] An acquisition module 201 is used to acquire a user sample set, wherein the user sample set includes N user samples, each of which corresponds to d attribute dimensions and a classification label, and N is a positive integer;
[0139] A first determination module 202, configured to determine a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples;
[0140] The second determination module 203 is used to determine the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension;
[0141] The third determination module 204 is used to determine a recommended target application for a target user from the target application platform by using a recommendation model corresponding to the target application platform.
[0142] Optionally, the first determining module 202 includes:
[0143] The first determination submodule is used to determine the first attribute dimension and the classification label c iThe standard deviation of ; wherein the first attribute dimension is any one of the d attribute dimensions, i belongs to 1 to M, and i is an integer;
[0144] The second determination submodule is used to determine the classification label c i The corresponding number of first user samples;
[0145] The third determination submodule is used to determine the classification label c j The corresponding second user sample number; i is different from j, j is from 1 to M, and j is an integer;
[0146] The fourth determination submodule is used to determine the weight coefficient corresponding to the first attribute dimension according to the standard deviation, the first user sample number and the second user sample number.
[0147] Optionally, the fourth determining submodule includes:
[0148] A first determining unit, configured to determine a sum of the first user sample number and the second user sample number to obtain a first value;
[0149] a second determining unit, configured to obtain a second value according to a ratio of the second user sample number to the first value;
[0150] A third determining unit is used to sum the second values obtained by traversing i and j and taking all integers from 1 to M to obtain a third value; wherein i and j are different;
[0151] A fourth determining unit, configured to sum the standard deviations obtained by traversing all integers from 1 to M to obtain a fourth value;
[0152] The fifth determining unit is used to determine the weight coefficient corresponding to the first attribute dimension according to the inverse of the product of the third value and the fourth value.
[0153] Optionally, the second determining module 203 includes:
[0154] A fifth determination submodule, configured to construct a weight coefficient matrix according to the d weight coefficients corresponding to the d attribute dimensions;
[0155] A sixth determination submodule, configured to construct a first matrix according to d corresponding differences between the target user and the rth user sample in d attribute dimensions;
[0156] A seventh determination submodule is used to determine K user samples closest to the target user from the user sample set according to the weight coefficient matrix, the first matrix and the transformed rank matrix of the first matrix; K is less than N and is a positive integer;
[0157] The eighth determination submodule is used to use the application platform to which most of the K user samples belong as the target application platform corresponding to the target user.
[0158] Optionally, the recommendation model corresponding to the target application platform is constructed based on a radial basis neural network model;
[0159] The application recommendation device further includes: a model training module, which is used to:
[0160] Utilizing the optimized particle swarm optimization algorithm, the target parameters in the radial basis function neural network are optimized to obtain the optimized radial basis function neural network model; wherein the target parameters include at least one of the following: the center of the radial basis function, the radial basis function expansion constant, and the weight between the hidden layer and the output layer;
[0161] The consumption data of user samples in the target application platform is used to train the optimized radial basis neural network model to obtain the recommendation model.
[0162] Optionally, the application recommendation device further includes:
[0163] A fourth processing module, used for updating the speed and position of particles in the optimized particle swarm optimization algorithm according to the exponentially decreasing inertia weight and acceleration factor;
[0164] The exponentially decreasing inertia weight is determined according to the initial inertia weight, the inertia weight when the iteration reaches the maximum number of times, the maximum number of iterations and the current number of iterations;
[0165] The acceleration factor is determined according to the following formula:
[0166]
[0167]
[0168] in, and is the acceleration factor corresponding to the tth iteration number, c1 and c2 are initial values, c 1T and c 2T is the termination value, t max is the maximum number of iterations, and t is the current number of iterations.
[0169] Optionally, the exponentially decreasing inertia weight w(t) is determined according to the following formula:
[0170]
[0171] Among them, w max is the initial inertia weight, w minis the inertia weight when the iteration reaches the maximum number, t max is the maximum number of iterations, t is the current number of iterations, Exp is the exponential function with the natural constant e as the base, and c is the control parameter.
[0172] Optionally, the target application platform is a low-code application platform.
[0173] The application recommendation device provided in the embodiment of the present application can implement each process implemented in the application recommendation method embodiment, and will not be described again here to avoid repetition.
[0174] like Figure 3 As shown, an electronic device 300 according to an embodiment of the present invention includes a processor 310 and a transceiver 320, wherein:
[0175] The processor 310 is used to obtain a user sample set, which includes N user samples, each of which corresponds to d attribute dimensions and a classification label, and N is a positive integer; determine a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples; determine a target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension; and determine a recommended target application for the target user from the target application platform through a recommendation model corresponding to the target application platform.
[0176] Optionally, the processor 310 is specifically configured to: determine the first attribute dimension and the classification label c i The standard deviation of the first attribute dimension is any one of the d attribute dimensions, i belongs to 1 to M, and i is an integer; determine the classification label c i The corresponding first user sample number; Determine the classification label c j The corresponding second user sample number; i is different from j, j is from 1 to M, and j is an integer; according to the standard deviation, the first user sample number and the second user sample number, the weight coefficient corresponding to the first attribute dimension is determined. Optionally, the processor 310 is specifically used to: determine the sum of the first user sample number and the second user sample number to obtain a first value; obtain a second value according to the ratio of the second user sample number to the first value; sum the second values obtained by traversing i and j to all integers from 1 to M to obtain a third value; wherein i is different from j; sum the standard deviations obtained by traversing i to all integers from 1 to M to obtain a fourth value; determine the weight coefficient corresponding to the first attribute dimension according to the inverse of the product of the third value and the fourth value.
[0177] Optionally, the processor 310 is specifically used to: construct a weight coefficient matrix according to the d weight coefficients corresponding to d attribute dimensions; construct a first matrix according to the d differences between the target user and the rth user sample in the d attribute dimensions; determine the K user samples closest to the target user from the user sample set according to the weight coefficient matrix, the first matrix and the trans-rank matrix of the first matrix; K is less than N, and K is a positive integer; and use the application platform to which most of the K user samples belong as the target application platform corresponding to the target user.
[0179] Optionally, the recommendation model corresponding to the target application platform is constructed based on a radial basis neural network model; the processor 310 is further configured to:
[0180] Utilizing the optimized particle swarm optimization algorithm, the target parameters in the radial basis neural network are optimized to obtain the optimized radial basis neural network model; wherein the target parameters include at least one of the following: the center of the radial basis function, the radial basis function expansion constant, and the weight between the hidden layer and the output layer;
[0181] The consumption data of user samples in the target application platform is used to train the optimized radial basis neural network model to obtain the recommendation model.
[0182] Optionally, the processor 310 is further configured to:
[0183] In the optimized particle swarm optimization algorithm, the speed and position of the particles are updated according to the exponentially decreasing inertia weight and acceleration factor;
[0184] The exponentially decreasing inertia weight is determined according to the initial inertia weight, the inertia weight when the iteration reaches the maximum number of times, the maximum number of iterations and the current number of iterations;
[0185] The acceleration factor is determined according to the following formula:
[0186]
[0187]
[0188] in, and is the acceleration factor corresponding to the tth iteration number, c1 and c2 are initial values, c 1T and c 2T is the termination value, t max is the maximum number of iterations, and t is the current number of iterations.
[0189] Optionally, the exponentially decreasing inertia weight w(t) is determined according to the following formula:
[0190]
[0191] Among them, w max is the initial inertia weight, w min is the inertia weight when the iteration reaches the maximum number, t max is the maximum number of iterations, t is the current number of iterations, Exp is the exponential function with the natural constant e as the base, and c is the control parameter.
[0192] The electronic device of this embodiment obtains a user sample set, wherein the user sample set includes N user samples, each of which corresponds to d attribute dimensions and a classification label, and N is a positive integer; determines a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples; determines a target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension; and determines a recommended target application for the target user from the target application platform through a recommendation model corresponding to the target application platform. In this way, personalized and accurate application recommendations can be made for each target user.
[0193] An electronic device according to another embodiment of the present invention, such as Figure 4 As shown, it includes a transceiver 410, a processor 400, a memory 420, and a program or instruction stored in the memory 420 and executable on the processor 400; when the processor 400 executes the program or instruction, the above-mentioned application recommendation method is implemented.
[0194] The transceiver 410 is used to receive and send data under the control of the processor 400 .
[0195] Among them, Figure 4 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 400 and memory represented by memory 420. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 410 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 400 is responsible for managing the bus architecture and general processing, and the memory 420 may store data used by the processor 400 when performing operations.
[0196] A computer-readable storage medium according to an embodiment of the present invention stores a program or instruction thereon, and when the program or instruction is executed by a processor, the steps in the application recommendation method described above are implemented, and the same technical effect can be achieved. To avoid repetition, it is not described here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0197] A computer program product according to an embodiment of the present invention includes computer instructions, and when the computer instructions are executed by a processor, the application recommendation method described above is implemented.
[0198] It should be further explained that the terminals described in this specification include but are not limited to smart phones, tablet computers, etc., and many of the functional components described are called modules in order to more particularly emphasize the independence of their implementation methods.
[0199] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.
[0200] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.
[0201] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.
[0202] The above exemplary embodiments are described with reference to the accompanying drawings, and many different forms and embodiments are feasible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be constructed as a limitation of the exemplary embodiments proposed herein. More specifically, these exemplary embodiments are provided so that the present invention will be perfect and complete, and the scope of the present invention will be conveyed to those who are familiar with the technology. In these figures, the component sizes and relative sizes may be exaggerated for clarity. The terms used here are only based on the purpose of describing specific exemplary embodiments and are not intended to be limiting. As used herein, unless the text clearly indicates otherwise, the singular forms "one", "an" and "the" are intended to include these multiple forms. It will be further understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the features, integers, steps, operations, components and / or components, but do not exclude the presence or increase of one or more other features, integers, steps, operations, components, components and / or their groups. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
[0203] The above is a preferred 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. An application recommendation method, characterized in that: include: Obtain a user sample set, wherein the user sample set includes N user samples, each of the user samples corresponds to d attribute dimensions and a classification label, and N is a positive integer; Determine a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples; Determine the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension; A recommended target application is determined for a target user from the target application platform through a recommendation model corresponding to the target application platform.
2. The application recommendation method according to claim 1, characterized in that: The determining, according to the d attribute dimensions and the classification labels corresponding to the N user samples, a weight coefficient corresponding to each attribute dimension includes: Determine the first attribute dimension and classification label c i The standard deviation of ; wherein the first attribute dimension is any one of the d attribute dimensions, i belongs to 1 to M, and i is an integer; Determine the classification label c i The corresponding number of first user samples; Determine the classification label c j The corresponding second user sample number; i is different from j, j is from 1 to M, and j is an integer; A weight coefficient corresponding to the first attribute dimension is determined according to the standard deviation, the first user sample number, and the second user sample number.
3. The application recommendation method according to claim 2, characterized in that: The determining, according to the standard deviation, the first user sample number, and the second user sample number, a weight coefficient corresponding to the first attribute dimension includes: Determine the sum of the first user sample number and the second user sample number to obtain a first value; Obtaining a second value according to a ratio of the second user sample number to the first value; The third value is obtained by summing the second values obtained by traversing i and j and taking all integers from 1 to M, wherein i and j are different; The standard deviations obtained by traversing i and taking all integers from 1 to M are summed to obtain a fourth value; A weight coefficient corresponding to the first attribute dimension is determined according to the inverse of the product of the third value and the fourth value.
4. The application recommendation method according to claim 1, characterized in that: The determining the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension includes: According to the d weight coefficients corresponding to the d attribute dimensions, a weight coefficient matrix is formed; Constructing a first matrix according to d differences between the target user and the rth user sample in d attribute dimensions; Determine, from the user sample set, K user samples closest to the target user according to the weight coefficient matrix, the first matrix, and the transformed rank matrix of the first matrix; K is less than N, and K is a positive integer; The application platform to which most of the K user samples belong is used as the target application platform corresponding to the target user.
5. The application recommendation method according to claim 1, characterized in that: The recommendation model corresponding to the target application platform is constructed based on a radial basis neural network model; The training process of the recommendation model includes: Utilizing the optimized particle swarm optimization algorithm, the target parameters in the radial basis function neural network are optimized to obtain the optimized radial basis function neural network model; wherein the target parameters include at least one of the following: the center of the radial basis function, the radial basis function expansion constant, and the weight between the hidden layer and the output layer; The consumption data of user samples in the target application platform is used to train the optimized radial basis neural network model to obtain the recommendation model.
6. The application recommendation method according to claim 5, characterized in that: The method further comprises: In the optimized particle swarm optimization algorithm, the speed and position of the particles are updated according to the exponentially decreasing inertia weight and acceleration factor; The exponentially decreasing inertia weight is determined according to the initial inertia weight, the inertia weight when the iteration reaches the maximum number of times, the maximum number of iterations and the current number of iterations; The acceleration factor is determined according to an initial value of the acceleration factor, a terminal value of the acceleration factor, a maximum number of iterations, and a current number of iterations.
7. The application recommendation method according to claim 6, characterized in that: The exponentially decreasing inertia weight w(t) is determined according to the following formula: w(t)=w min +(w max -w min )×exp(-ct / t max ); Among them, w max is the initial inertia weight, w min is the inertia weight when the iteration reaches the maximum number of times, t max is the maximum number of iterations, t is the current number of iterations, Exp is the exponential function with the natural constant e as the base, and c is the control parameter.
8. The application recommendation method according to claim 1, characterized in that: The target application platform is a low-code application platform.
9. An application recommendation device, characterized in that: include: An acquisition module is used to acquire a user sample set, wherein the user sample set includes N user samples, each of which corresponds to d attribute dimensions and a classification label, and N is a positive integer; A first determination module, configured to determine a weight coefficient corresponding to each attribute dimension according to the d attribute dimensions and the classification labels corresponding to the N user samples; A second determination module is used to determine the target application platform corresponding to the target user according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension; The third determination module is used to determine a recommended target application for a target user from the target application platform through a recommendation model corresponding to the target application platform.
10. An electronic device, characterized in that: include: transceivers and processors; The processor is used to obtain a user sample set, the user sample set includes N user samples, each of the user samples corresponds to d attribute dimensions and a classification label, and N is a positive integer; according to the d attribute dimensions and the classification labels corresponding to the N user samples, a weight coefficient corresponding to each attribute dimension is determined; according to the weight coefficient and the distance between the target user and the user sample in each attribute dimension, a target application platform corresponding to the target user is determined; A recommended target application is determined for a target user from the target application platform through a recommendation model corresponding to the target application platform.
11. An electronic device, comprising: A transceiver, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; wherein the processor implements the application recommendation method as described in any one of claims 1 to 8 when executing the program or instruction.
12. A readable storage medium having a program or instruction stored thereon, characterized in that: When the program or instruction is executed by a processor, the steps in the application recommendation method according to any one of claims 1 to 8 are implemented.
13. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the application recommendation method according to any one of claims 1 to 8.
