Flow quota determination method and device, equipment, storage medium and program product
Through the traffic quota determination method based on the factor decomposition model, multi-dimensional features are obtained and processed with one-hot encoding, which solves the problem of mismatch between traffic quota values and user needs in the existing technology, and achieves accurate traffic quota calculation and personalized services. System pressure and operating costs are reduced.
Patent Information
- Application Number
- CN202410523067.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the traffic quota value does not match user needs, resulting in frequent system interactions, increased system pressure, resource consumption, and poor usage perception.
A traffic quota determination method based on the factor decomposition model is adopted. By obtaining multi-dimensional traffic quota characteristics, including user resource characteristics, user characteristics and usage scenario characteristics, the stochastic gradient descent method is used to train the model, and the traffic quota value suitable for the user is calculated and based on the characteristics. Perform one-hot encoding processing and provide personalized traffic quota services.
It achieves matching of traffic quota values with users, reduces system message interaction and resource consumption, improves billing accuracy and timeliness of reminders, improves user experience and satisfaction, and reduces operating costs.
Smart Images

Figure CN118798518A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device, equipment, storage medium and program product for determining a traffic quota. Background Art
[0002] With the accelerating development of informatization, the demand for traffic services has grown rapidly. The goals of achieving traffic services have evolved from being usable in the beginning to various personalized needs such as fast traffic, accurate billing, timely reminders, and rich services, which have put forward higher requirements on system functions.
[0003] At present, traffic billing generally adopts online billing capabilities. Online billing is to achieve traffic authorization through instant messaging between users and the billing system. After obtaining the authorized area, users can quickly use the traffic in the authorized area. The current solution is that users apply for an authorized area once and obtain traffic with a fixed traffic quota value. However, for users with large traffic usage requirements, this solution will frequently trigger system interactions, generate a large number of message interactions, increase system pressure, and consume system resources. However, if the fixed traffic quota value is adjusted too large, for users with small traffic usage requirements, their usage will not match the authorization, and the user experience will be poor. Summary of the invention
[0004] The present invention provides a flow quota determination method, device, equipment, storage medium and program product, which are used to solve the defect that the flow quota value does not match the user in the prior art, and realize the determination of the flow quota value matching the user.
[0005] The present invention provides a method for determining a flow quota, comprising:
[0006] If a traffic quota request is received, obtaining a multi-dimensional traffic quota feature of the corresponding user according to the traffic quota request;
[0007] Input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model;
[0008] The corresponding traffic is sent to the user according to the traffic quota value.
[0009] According to a method for determining a traffic quota provided by the present invention, the training process of the traffic quota determination model includes:
[0010] Obtain multiple training samples;
[0011] Inputting the training samples into the factor decomposition model and performing iterative training by stochastic gradient descent method;
[0012] After detecting that the factor decomposition model meets the convergence condition, the iterative training is stopped, and the factor decomposition model at the end of the training is determined as the traffic quota determination model.
[0013] According to a method for determining a traffic quota provided by the present invention, after detecting that the factor decomposition model meets a convergence condition and before stopping iterative training, the method further includes:
[0014] Calculate the loss value during the iterative training process through the minimum square error function;
[0015] Determine whether the factor decomposition model meets a convergence condition according to the loss value.
[0016] According to a method for determining a traffic quota provided by the present invention, the multi-dimensional traffic quota characteristics include user resource characteristics, user characteristics and usage scenario characteristics;
[0017] Among them, the user resource characteristics include remaining resources and free traffic resources, the user characteristics include at least one of gender, age, Internet access type, and content preference, and the usage scenario characteristics include at least one of Internet access time preference and Internet access location preference.
[0018] According to a traffic quota determination method provided by the present invention, before inputting the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing, the method further includes:
[0019] Determining a feature type of each feature in the multi-dimensional traffic quota feature;
[0020] Based on the feature type, the category features and the set features in the multi-dimensional traffic quota features are one-hot encoded.
[0021] According to a method for determining a traffic quota provided by the present invention, after receiving a traffic quota request, the method further includes:
[0022] Detecting whether there is a first flow shared by the user in the shared space;
[0023] If not, the second traffic shared by other users is obtained from the shared space, and the second traffic is sent to the user.
[0024] According to a method for determining a traffic quota provided by the present invention, obtaining the second traffic shared by other users from the shared space and sending the second traffic to the user includes:
[0025] Obtaining the traffic type required by the user;
[0026] According to the traffic type, detecting whether there is a second traffic of the same traffic type in the shared space;
[0027] If so, sending the second traffic type of the same traffic type to the user;
[0028] If not, jump to the step of obtaining the multi-dimensional traffic quota characteristics of the corresponding user according to the traffic quota request.
[0029] The present invention also provides a flow quota determination device, comprising:
[0030] A first acquisition module is configured to, upon receiving a traffic quota request, acquire a multi-dimensional traffic quota feature of a corresponding user according to the traffic quota request;
[0031] An input module is configured to input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model;
[0032] The sending module is configured to send the corresponding traffic to the user according to the traffic quota value.
[0033] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned methods for determining a traffic quota is implemented.
[0034] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for determining a flow quota as described above is implemented.
[0035] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for determining a traffic quota as described above is implemented.
[0036] The present invention provides a traffic quota determination method, device, equipment, storage medium and program product. A traffic quota determination model is pre-trained based on a factor decomposition model. The factor decomposition model can take into account the implicit relationship between features. When it is necessary to determine the corresponding traffic quota value for a user, the user's multi-dimensional traffic quota features are input into the traffic quota determination model for processing, and then the traffic quota value corresponding to the user is obtained. When calculating the traffic quota value, the implicit relationship between the multi-dimensional traffic quota features is taken into account, and the traffic quota value suitable for the user can be obtained more accurately, thereby providing more accurate billing and timely reminder services, and improving the user's usage experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 It is a flow chart of the flow quota determination method provided by the present invention;
[0039] Figure 2 It is a structural schematic diagram of the flow quota determination device provided by the present invention;
[0040] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0042] Combine the following Figure 1 The flow quota determination method of the present invention is described.
[0043] Figure 1 FIG. 1 is a flow chart showing a method for determining a traffic quota according to an exemplary embodiment. Figure 1 As shown, in an exemplary embodiment, the method for determining a traffic quota includes steps 110 to 130, which are described in detail as follows:
[0044] Step 110: If a traffic quota request is received, obtain the multi-dimensional traffic quota characteristics of the corresponding user according to the traffic quota request.
[0045] In the embodiment of the present invention, if a traffic quota request is received, the multi-dimensional traffic quota characteristics of the corresponding user are obtained according to the traffic quota request.
[0046] Step 120, input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model.
[0047] In the embodiment of the present invention, the obtained multi-dimensional traffic quota features are input into a pre-trained traffic quota determination model for processing, thereby obtaining a corresponding traffic quota value.
[0048] Step 130: Send corresponding traffic to the user according to the traffic quota value.
[0049] In the embodiment of the present invention, the corresponding traffic is sent to the user according to the calculated traffic quota value.
[0050] In the embodiment of the present invention, a traffic quota determination model is pre-trained based on a factor decomposition model. The factor decomposition model can consider the implicit relationship between features. When it is necessary to determine the corresponding traffic quota value for a user, the user's multi-dimensional traffic quota features are input into the traffic quota determination model for processing, and then the traffic quota value corresponding to the user is obtained. When calculating the traffic quota value, the implicit relationship between the multi-dimensional traffic quota features is considered, and the traffic quota value suitable for the user can be obtained more accurately, thereby providing more accurate billing and timely reminder services, improving the user's experience of use, and providing more personalized and accurate services, thereby improving user satisfaction and loyalty, increasing user stickiness, thereby improving the market competitiveness of the enterprise, and attracting more users. At the same time, calculating the traffic quota value through the traffic quota model can reduce the system's message interaction and resource consumption, thereby reducing operating costs.
[0051] In an exemplary embodiment of the present invention, the multi-dimensional traffic quota features include user resource features, user features, and usage scenario features;
[0052] Among them, the user resource characteristics include remaining resources and free traffic resources, the user characteristics include at least one of gender, age, Internet access type, and content preference, and the usage scenario characteristics include at least one of Internet access time preference and Internet access location preference.
[0053] In the embodiment of the present invention, the user resource feature has two features that can be used for online billing authorization, namely free traffic resources and remaining resources. The free traffic resources are the free traffic of the user, and the remaining resources are the balance of the user.
[0054] User features characterize the user's daily Internet preferences and attribute information, including at least one of the user's gender, age, Internet access type (4G, 5G), content preferences (video, game, news, shopping), etc.
[0055] The usage scenario feature is the user's daily Internet usage scenario, including at least one of the Internet access time preference (24-hour period) and Internet access location preference (business district, community, village, town, remote location).
[0056] In the embodiment of the present invention, personalized traffic quota value calculation can be performed based on the characteristics corresponding to the user's business information, usage habits, usage characteristics, usage location scenarios, etc., so as to provide more accurate billing and timely reminder services and improve the user's usage experience.
[0057] In an exemplary embodiment of the present invention, before the multi-dimensional traffic quota feature is input into the pre-trained traffic quota determination model for processing in step 120, the method further includes the following steps, which are described in detail as follows:
[0058] Determining a feature type of each feature in the multi-dimensional traffic quota feature;
[0059] Based on the feature type, the category features and the set features in the multi-dimensional traffic quota features are one-hot encoded.
[0060] In the embodiment of the present invention, in order to adapt the factor decomposition model, the multidimensional traffic quota feature is preprocessed. The feature type of each feature in the multidimensional traffic quota feature is determined. Among the above 8 features, there are three feature types, namely, numerical features, category features, and collection features. Among them, the numerical features include: free traffic resources, balance, and age; the category features include: gender, Internet type, and content preference; the collection features include: Internet time preference and Internet location preference.
[0061] The category features and set features are one-hot encoded and then input into the traffic quota determination model.
[0062] Take the multi-dimensional traffic quota characteristics of user X as an example:
[0063] Among them, the numerical features are: free traffic resources (10240MB), remaining resources (100 yuan), age (35 years old);
[0064] The category features are: gender (male), Internet access type (5G), and content preference (video);
[0065] The aggregate features include: Internet access time preference (22:00) and Internet access location preference (community xxx).
[0066] The multi-dimensional traffic quota features after one-hot encoding are shown in Table 1 below:
[0067] Table 1
[0068]
[0069] In an exemplary embodiment of the present invention, the training process of the traffic quota determination model includes the following steps, which are described in detail as follows:
[0070] Obtain multiple training samples;
[0071] Inputting the training samples into the factor decomposition model and performing iterative training by stochastic gradient descent method;
[0072] After detecting that the factor decomposition model meets the convergence condition, the iterative training is stopped, and the factor decomposition model at the end of the training is determined as the traffic quota determination model.
[0073] In an embodiment of the present invention, multiple training samples are extracted based on the traffic details list of existing network users, the associated user information table and the customer information table, each training sample has a corresponding multi-dimensional traffic quota sample feature, and the features in the multi-dimensional traffic quota sample feature are consistent with the aforementioned multi-dimensional traffic quota features.
[0074] The training samples are input into the factorization model and iteratively trained by stochastic gradient descent. The equation of the factorization model is as follows:
[0075]
[0076] Among them, ω 0 ,ω i ,ω ij are model parameters, ω 0 is a fixed parameter, model weight value; ω i is the characteristic parameter; ω ij is the pairwise relationship feature x i x j The relationship parameter, n means there are n features, x i represents the i-th feature, and y is the model solution result, that is, the traffic quota value of online billing. i x j The relationship parameters are expressed in the form of vector inner product, and we can get:
[0077]
[0078] Among them, V i represents the latent vector of feature i, V j represents the latent vector of feature j, <.,.> represents the inner product of two vectors of length k, and the corresponding calculation formula is:
[0079]
[0080] The factor decomposition model takes into account the correlation information between two different features and uses cross terms to represent the combined features, thereby establishing a nonlinear relationship between features and results.
[0081] Since the factor decomposition model adds feature cross terms on the basis of linear regression, the coefficients of feature cross terms are not directly calculated when solving the model, so the inner product of the latent vector is used. <V i , V j > represents ω ij .
[0082] The factor decomposition module calculates each feature x during the solution process. i Introducing the hidden vector (V i1 , V i2 , …, V ik ),use The coefficient of the inner product result on the cross term ω ij To estimate, the corresponding formula is expressed as:
[0083] Therefore, the formula expression of the factor decomposition model can be optimized as follows:
[0084]
[0085] During the model training process, the optimal model training function is selected, and the optimization parameters are: θ * ={ω 0 ,w,V}, the model training process can be solved according to the stochastic gradient descent method. During the model training process, each n-dimensional training sample X is traversed and the corresponding result is calculated by the formula of the factor decomposition model. Update the parameters based on the results:
[0086]
[0087] Traverse each feature x in the training sample X i , and then update the parameters:
[0088]
[0089] Traverse feature x i The k-dimensional latent vector V f , and then update the parameters:
[0090]
[0091] After the training in the above steps, the model parameters ω are obtained 0 ,ω i 、V if, brought into the factor decomposition model, and then selected the verification sample for result verification. The loss function uses the minimum square error, adjusts the number of iterations, and selects the training result with the smallest loss value as ω 0 ,ω i 、V if The final actual parameter is used as the model solidification parameter. The final traffic quota determination model can be expressed as
[0092]
[0093] The trained traffic quota determination model can reach the minute level.
[0094] In an exemplary embodiment of the present invention, after detecting that the factor decomposition model satisfies the convergence condition and before stopping the iterative training, the method further includes the following steps, which are described as follows:
[0095] Calculate the loss value during the iterative training process through the minimum square error function;
[0096] Determine whether the factor decomposition model meets a convergence condition according to the loss value.
[0097] In the embodiment of the present invention, the loss value is calculated by the minimum bisection error function, and then it is determined whether the factor decomposition model meets the convergence condition according to the loss value.
[0098] In an exemplary embodiment of the present invention, after receiving the traffic quota request in step 110, the method further includes the following steps, which are described in detail as follows:
[0099] Detecting whether there is a first flow shared by the user in the shared space;
[0100] If not, the second traffic shared by other users is obtained from the shared space, and the second traffic is sent to the user.
[0101] In an embodiment of the present invention, a shared space for traffic is created on the BOSS system. When a traffic quota request from a user is received to recalculate the traffic quota, the BOSS system first checks whether there is any remaining first traffic shared by the current user in the shared space. If the first traffic shared by the current user does not exist in the shared space, the second traffic shared by other users is obtained from the shared space and the second traffic is sent to the user. If the first traffic shared by the current user exists in the shared space, the first traffic is directly sent to the user.
[0102] In an exemplary embodiment of the present invention, the step of obtaining the second traffic shared by other users from the shared space and sending the second traffic to the user includes the following steps, which are described in detail as follows:
[0103] Obtaining the traffic type required by the user;
[0104] According to the traffic type, detecting whether there is a second traffic of the same traffic type in the shared space;
[0105] If so, sending the second traffic type of the same traffic type to the user;
[0106] If not, jump to the step of obtaining the multi-dimensional traffic quota characteristics of the corresponding user according to the traffic quota request.
[0107] In an embodiment of the present invention, when it is determined that the first traffic shared by the current user does not exist in the shared space, based on the traffic type of the user's current required quota, a search is conducted in the shared space to determine whether there is a second traffic of the same traffic type shared by other users; the traffic types include directional traffic, national traffic, etc.
[0108] If there is a second flow of the same flow type in the shared space, the second flow is sent to the current user. Specifically, when sending the second flow, based on the amount of the first flow shared by the user, the second flow that does not exceed the shared amount can be sent to the user.
[0109] If there is no second traffic of the same traffic type in the shared space, jump to the step of obtaining the multi-dimensional traffic quota characteristics of the corresponding user according to the traffic quota request, using the trained traffic quota determination model to calculate the corresponding traffic quota value, and sending the corresponding traffic to the current user.
[0110] In the embodiment of the present invention, based on the above-mentioned shared space of traffic, users can exchange their remaining traffic that they no longer use for required traffic, thereby avoiding traffic waste and improving user experience.
[0111] The traffic quota determination method provided in the embodiment of the present invention can be applied to the online billing process. The online billing process mainly involves the interaction of modules such as SMF (Session Management Function), CHF (Charging Function), and BOSS, and specifically includes the following processes.
[0112] Request and start service transmission: SMF has successfully established a PDU (Protocol Data Unit) session, and the UE (User Experience) initiates the data service;
[0113] Charging Data Request [Initial, Quota Requested] message: SMF sends an initial charging data request to CHF to establish a charging session, apply for authorization of service use and request quota for the service RG;
[0114] Routing selection: CHF dynamically discovers and selects BOSS (telecommunication business operation support system) based on the SUPI (Subscription Permanent Identifier) / GPSI (Generic Public Subscription Identifier) carried in the request message according to local configuration or NRF (Network Repository Function);
[0115] Charging Data Request [Initial, Quota Requested] message: CHF forwards the request to BOSS;
[0116] Accounting, pricing, and reservation control: BOSS performs pricing and quota unit reservation processing;
[0117] Charging Data Response [Initial, Quota Granted] message: BOSS authorizes the reserved unit quota to SMF to support business use;
[0118] Enable CDR (Charging Data Recording) call record: CHF (trigger CDF) enables CDR;
[0119] Charging Data Response [Initial, Quota Granted] message: CHF forwards the response message to SMF;
[0120] Authorization quota monitoring: When data services start, SMF monitors the usage of authorization quota;
[0121] Content / service delivery: SMF continues to deliver content / services based on the authorized reserved units;
[0122] Quota management trigger: The trigger conditions associated with quota management are met and unit quota is reserved on demand.
[0123] Charging Data Request [Update, Quota Requested] message: SMF sends this request message to CHF to request re-authorization of more reserved unit quotas to allow the service to continue, and to report the quota unit usage;
[0124] Routing selection: CHF is based on the requested SUPI / GPSI, and the routing selection belongs to the provincial BOSS address;
[0125] Charging Data Request [Update, Quota Requested] message: CHF forwards the request to the user's BOSS;
[0126] Accounting, batch pricing, and reservation control: BOSS performs batch pricing and quota unit reservation processing;
[0127] Charging Data Response [Update, Quota Granted] message: BOSS authorizes the new quota of the reserved unit to SMF to enable the service to continue using;
[0128] CDR update / close: based on the policy, CHF (trigger CDF) updates the CDR, or closes the current CDR and opens a new one;
[0129] Charging Data Response [Update, Quota Granted] message: CHF forwards the request result to SMF;
[0130] Content / service delivery: SMF delivers content / service based on authorized quota;
[0131] Service release: SMF performs the required PDU session release action;
[0132] Charging Data Request [Termination] message: SMF sends this message to CHF, carrying the last quota usage related billing data of the service termination;
[0133] Routing selection: CHF is based on the requested SUPI / GPSI, and the routing selection belongs to the provincial BOSS address;
[0134] Charging Data Request [Termination] message: CHF forwards the request to BOSS;
[0135] Accounting and pricing: BOSS processes the usage when the business is terminated and deducts the usage amount from the account balance;
[0136] Charging Data Response [Termination] message: The provincial BOSS replies to the SMF to inform it of the request processing result;
[0137] Close CDR: CHF (trigger CDF) closes CDR generation service termination and finally reports usage unit billing data;
[0138] Charging Data Response [Termination] message: CHF forwards the response message to SMF.
[0139] In the Charging Data Response [Initial, Quota Granted] message and the Charging Data Response [Update, Quota Granted] message in the aforementioned process, the traffic quota value can be calculated and fed back based on the trained traffic quota determination model.
[0140] The flow quota determination device provided by the present invention is described below. The flow quota determination device described below and the flow quota determination method described above can be referred to each other. It should be noted that the device provided in the following embodiment and the method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, which will not be repeated here.
[0141] In an exemplary embodiment of the present invention, see Figure 2 , Figure 2 A flow quota determination device according to an exemplary embodiment includes:
[0142] The first acquisition module 210 is configured to, if a traffic quota request is received, acquire the multi-dimensional traffic quota characteristics of the corresponding user according to the traffic quota request;
[0143] The input module 220 is configured to input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model;
[0144] The sending module 230 is configured to send the corresponding traffic to the user according to the traffic quota value.
[0145] In an exemplary embodiment of the present invention, a flow quota determination device includes:
[0146] A second acquisition module is configured to acquire multiple training samples;
[0147] A training module, configured to input the training samples into the factor decomposition model and perform iterative training by stochastic gradient descent method;
[0148] The first determination module is configured to stop iterative training after detecting that the factor decomposition model meets the convergence condition, and determine the factor decomposition model at the end of training as the traffic quota determination model.
[0149] In an exemplary embodiment of the present invention, the flow quota determination device further includes:
[0150] A calculation module, configured to calculate a loss value during an iterative training process by using a minimum square error function;
[0151] The second determination module is configured to determine whether the factor decomposition model meets the convergence condition according to the loss value.
[0152] In an exemplary embodiment of the present invention, the multi-dimensional traffic quota features include user resource features, user features, and usage scenario features;
[0153] Among them, the user resource characteristics include remaining resources and free traffic resources, the user characteristics include at least one of gender, age, Internet access type, and content preference, and the usage scenario characteristics include at least one of Internet access time preference and Internet access location preference.
[0154] In an exemplary embodiment of the present invention, the flow quota determination device further includes:
[0155] A third determination module is configured to determine a feature type of each feature in the multi-dimensional traffic quota feature;
[0156] The encoding module is configured to perform one-hot encoding on the category features and the set features in the multi-dimensional traffic quota features based on the feature type.
[0157] In an exemplary embodiment of the present invention, the flow quota determination device further includes:
[0158] A detection module, configured to detect whether there is a first flow shared by the user in the shared space;
[0159] The third acquisition module is configured to acquire the second traffic shared by other users from the shared space if it does not exist, and send the second traffic to the user.
[0160] In an exemplary embodiment of the present invention, the third acquisition module includes:
[0161] An acquisition submodule, configured to acquire the traffic type required by the user;
[0162] a detection submodule, configured to detect whether there is a second flow of the same flow type in the shared space according to the flow type;
[0163] a sending submodule, configured to send the second traffic type of the same traffic type to the user if it exists;
[0164] The jump submodule is configured to jump to the step of obtaining the multi-dimensional traffic quota characteristics of the corresponding user according to the traffic quota request if it does not exist.
[0165] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the traffic quota determination method, which includes:
[0166] If a traffic quota request is received, obtaining a multi-dimensional traffic quota feature of the corresponding user according to the traffic quota request;
[0167] Input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model;
[0168] The corresponding traffic is sent to the user according to the traffic quota value.
[0169] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0170] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the traffic quota determination method provided by the above methods, the method comprising:
[0171] If a traffic quota request is received, obtaining a multi-dimensional traffic quota feature of the corresponding user according to the traffic quota request;
[0172] Input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model;
[0173] The corresponding traffic is sent to the user according to the traffic quota value.
[0174] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the traffic quota determination method provided by the above methods, the method comprising:
[0175] If a traffic quota request is received, obtaining a multi-dimensional traffic quota feature of the corresponding user according to the traffic quota request;
[0176] Input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model;
[0177] The corresponding traffic is sent to the user according to the traffic quota value.
[0178] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0179] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0180] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining a traffic quota, characterized in that: include: If a traffic quota request is received, obtaining a multi-dimensional traffic quota feature of the corresponding user according to the traffic quota request; Input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model; The corresponding traffic is sent to the user according to the traffic quota value.
2. The method for determining traffic quota according to claim 1, characterized in that: The training process of the traffic quota determination model includes: Obtain multiple training samples; Inputting the training samples into the factor decomposition model and performing iterative training by stochastic gradient descent method; After detecting that the factor decomposition model meets the convergence condition, the iterative training is stopped, and the factor decomposition model at the end of the training is determined as the traffic quota determination model.
3. The method for determining traffic quota according to claim 2, characterized in that: After detecting that the factor decomposition model satisfies the convergence condition and before stopping the iterative training, the method further includes: Calculate the loss value during the iterative training process through the minimum square error function; Determine whether the factor decomposition model meets a convergence condition according to the loss value.
4. The method for determining traffic quota according to claim 1, characterized in that: Before inputting the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing, the method further includes: Determining a feature type of each feature in the multi-dimensional traffic quota feature; Based on the feature type, the category features and the set features in the multi-dimensional traffic quota features are one-hot encoded.
5. The method for determining a flow quota according to any one of claims 1 to 4, characterized in that: After receiving the traffic quota request, the method further includes: Detecting whether there is a first flow shared by the user in the shared space; If not, the second traffic shared by other users is obtained from the shared space, and the second traffic is sent to the user.
6. The method for determining flow quota according to claim 5, characterized in that: The acquiring the second traffic shared by other users from the shared space and sending the second traffic to the user includes: Obtaining the traffic type required by the user; According to the traffic type, detecting whether there is a second traffic of the same traffic type in the shared space; If so, sending the second traffic type of the same traffic type to the user; If not, jump to the step of obtaining the multi-dimensional traffic quota characteristics of the corresponding user according to the traffic quota request.
7. A flow quota determination device, characterized in that: include: A first acquisition module is configured to, upon receiving a traffic quota request, acquire a multi-dimensional traffic quota feature of a corresponding user according to the traffic quota request; An input module is configured to input the multi-dimensional traffic quota feature into a pre-trained traffic quota determination model for processing to obtain a traffic quota value corresponding to the user; wherein the traffic quota determination model is trained based on a factor decomposition model; The sending module is configured to send the corresponding traffic to the user according to the traffic quota value.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the traffic quota determination method as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining a traffic quota as claimed in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for determining a traffic quota as claimed in any one of claims 1 to 6 is implemented.
