Code number resource supplement method and device, medium and product

By obtaining business information and code number inventory, predicting code number increments and obtaining supplementary resources, the problem of low efficiency in the supplementary code number resource in the existing technology is solved, and the rational allocation and use of resources is achieved.

CN119545332AActive Publication Date: 2025-02-28CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411640604.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-02-28
Estimated Expiration
2044-11-15

AI Technical Summary

Technical Problem

The prior art is less efficient when adding code number resources, resulting in oversupply of regional resources with low usage frequency and insufficient regional resources with high usage frequency.

Method used

By obtaining business information and code number inventory, predicting the code number increment in the target time period based on the business information, and obtaining additional code number resources based on the code number increment and inventory.

Benefits of technology

Timely and accurate replenishment of code number resources has been achieved, solving the problem of low efficiency of replenishment of code number resources, and ensuring the reasonable allocation of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545332A_ABST
    Figure CN119545332A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a code number resource supplement method and device, a medium and a product, relates to the technical field of communication, and aims to solve the problem of low efficiency of universal technology code number resource supplement. The code number resource supplement method comprises the following steps: acquiring code number resource supplement information; the code number resource supplement information comprises service information and code number stock; predicting a code number increment in a target time period based on the service information; and acquiring supplemented code number resources based on the code number increment and the code number inventory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, medium and product for supplementing code number resources. Background Art

[0002] With the development of communication technology and the promotion of new services of operators, users' demand for numbers is increasing, and number resources need to be supplemented in a timely manner.

[0003] The general technology can only determine the area (also called prefecture-level city) that needs to supplement the number resources, and the determination of the number of supplementary number resources and the number of supplementary number resources depends on manual work. Therefore, the use of general technology to supplement number resources may result in unreasonable supplementary number resources. For example, the number of supplementary number resources in the area with low number usage frequency is the same as that in the area with high number usage frequency, resulting in excess number resources in the area with low number usage frequency and insufficient number resources in the area with high number usage frequency.

[0004] Therefore, the efficiency of supplementing general technical code number resources is low. Summary of the invention

[0005] The embodiments of the present disclosure provide a method, device, medium and product for supplementing code number resources to solve the problem of low efficiency of supplementing code number resources in general technology.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, a method for supplementing number resources is provided, including: obtaining supplementary information on number resources; the supplementary information on number resources includes: business information and number inventory; predicting the number increment within a target time period based on the business information; and obtaining supplemented number resources based on the number increment and number inventory.

[0008] Optionally, predicting the code number increment within the target time period based on business information includes: inputting the business information into a code number increment prediction model to obtain the code number increment within the target time period; the business information includes: at least one of the number of accounts opened, the number of accounts closed, user activity, business volume, and single-user profit margin.

[0009] Optionally, the code number increment prediction model is trained in the following manner: obtaining a training set; the training set includes: business information of multiple historical periods and actual code number increments corresponding to the business information; inputting the business information in the training set into the initial prediction model to determine the initial prediction result; based on the initial prediction result and the actual code number increment, determining the loss value of the initial prediction model, and if the loss value does not meet the preset conditions, adjusting the model parameters of the initial prediction model based on the loss value, and continuing to perform iterative training based on the training set until the model convergence conditions are met to obtain the code number increment prediction model.

[0010] Optionally, the business information in the training set is input into the initial prediction model to determine the initial prediction result, including: performing linear calculation on the business information in the training set to obtain a linear calculation result; the linear calculation result satisfies the following formula:

[0011]

[0012] Among them, z represents the linear calculation result, w i represents the weight of the i-th business information in the business information of multiple historical periods, x i represents the information parameter of the i-th business information, b represents the bias term, and n represents the total number of business information in the business information of multiple historical periods; based on the activation function, the linear calculation result is nonlinearly transformed to obtain nonlinear features; the nonlinear features are used to represent the initial prediction results.

[0013] Optionally, based on the initial prediction result and the actual code number increment, determining the loss value of the initial prediction model includes: the loss value satisfies the following formula:

[0014] score_diff ij =sigmoid(score_predict i -score_predict j );

[0015]

[0016] Among them, score_predict i Indicates the initial prediction result obtained by the initial prediction model for the business information of the i-th historical period, score_predict j Indicates the initial prediction result obtained by the initial prediction model for the business information of the jth historical period, score_real i Indicates the actual code number increment corresponding to the service information of the i-th historical period, score_real j It represents the actual code number increment corresponding to the business information of the j-th historical period, sign is the sign function, Loss is the loss value of the initial prediction model, and N is the total number of business information in the sample set.

[0017] Optionally, adjusting the model parameters of the initial prediction model based on the loss value includes: adjusting the model parameters of the initial prediction model based on the error back propagation algorithm and the loss value; the model parameters of the initial prediction model include model parameters of the output layer neurons and model parameters of the hidden layer neurons; the model parameters of the output layer neurons satisfy the following formula:

[0018]

[0019] Among them, E represents the loss value, w i represents the weight of the i-th business information, represents the partial derivative of the loss value with respect to the weight of the i-th business information, a represents the initial prediction result, z represents the linear calculation result, and f ′ (z) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term; the model parameters of the output layer neurons satisfy the following formula:

[0020]

[0021]

[0022] Among them, E represents the loss value, w i represents the weight of the i-th business information, Represents the partial derivative of the loss value with respect to the weight of the i-th business information, z j represents the business information of the next layer, f′(z i ) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term.

[0023] Optionally, based on the code number increment and the code number inventory, additional code number resources are obtained, including: determining the product of the code number increment and a preset coefficient; when the product is greater than the code number inventory, sending a request message to the code number resource storage device; the request message is used to request the additional code number resources; the number of additional code number resources is the difference between the product and the code number inventory; the request message also includes: the number segment of the additional code number resources; and receiving the additional code number resources sent by the code number resource storage device.

[0024] Optionally, the code number inventory includes the code number quantity that is unfrozen within the supplementary period, and does not include the code number quantity that is expected to be occupied within the supplementary period; the supplementary period is the time required to supplement the code number resources. Optionally, the code number resource supplementation method also includes: determining the number segment of the supplemented code number resources according to the number segment of the code number resources in the target area; the number segment of the supplemented code number resources is the priority supplementary number segment; the number segment of the supplemented code number resources is consistent with the number segment of the code number resources in the target area; the number segment of the actual supplemented code number resources is consistent with or inconsistent with the number segment of the supplemented code number resources; the code number resources in the target area include: unfrozen code number resources in the target area, idle code number resources in the target area, and occupied code number resources in the target area.

[0025] Optionally, the method for supplementing code number resources further includes: determining the number segment of the supplemented code number resources according to the service type of the code number resources and the number of the supplemented code number resources.

[0026] Optionally, the number segment of the supplemented code number resources is determined based on the service type of the code number resources and the number of the supplemented code number resources, including: when the difference between the number of code number resources belonging to the target number segment and the number of the supplemented code number resources is less than a preset difference, the number segment of the supplemented code number resources is determined to be the target number segment; the code number resource storage device includes the code number resources of the target number segment; the target number segment is consistent with the number segment of the code number resources corresponding to the service type, and / or the target number segment is consistent with the number segment of the code number resources unfrozen within the target time period.

[0027] In the second aspect, a code number resource supplement device is provided, which includes: a communication unit and a processing unit; the communication unit is used to obtain code number resource supplement information; the code number resource supplement information includes: business information and code number inventory; the processing unit is used to predict the code number increment within the target time period based on the business information; the processing unit is also used to obtain supplemented code number resources based on the code number increment and the code number inventory.

[0028] Optionally, the processing unit is specifically used to: input business information into the code number increment prediction model to obtain the code number increment within the target time period; the business information includes: at least one of the number of accounts opened, the number of accounts closed, user activity, business volume, and single-user profit margin.

[0029] Optionally, the code number increment prediction model is trained in the following manner: obtaining a training set; the training set includes: business information of multiple historical periods and actual code number increments corresponding to the business information; inputting the business information in the training set into the initial prediction model to determine the initial prediction result; based on the initial prediction result and the actual code number increment, determining the loss value of the initial prediction model, and if the loss value does not meet the preset conditions, adjusting the model parameters of the initial prediction model based on the loss value, and continuing to perform iterative training based on the training set until the model convergence conditions are met to obtain the code number increment prediction model.

[0030] Optionally, the business information in the training set is input into the initial prediction model to determine the initial prediction result, including: performing linear calculation on the business information in the training set to obtain a linear calculation result; the linear calculation result satisfies the following formula:

[0031]

[0032] Among them, z represents the linear calculation result, w i represents the weight of the i-th business information in the business information of multiple historical periods, x irepresents the information parameter of the i-th business information, b represents the bias term, and n represents the total number of business information in the business information of multiple historical periods; based on the activation function, the linear calculation result is nonlinearly transformed to obtain nonlinear features; the nonlinear features are used to represent the initial prediction results.

[0033] Optionally, based on the initial prediction result and the actual code number increment, determining the loss value of the initial prediction model includes: the loss value satisfies the following formula:

[0034] score_diff ij =sigmoid(score_predict i -score_predict j );

[0035]

[0036] Among them, score_predict i Indicates the initial prediction result obtained by the initial prediction model for the business information of the i-th historical period, score_predict j It indicates the initial prediction result obtained by the initial prediction model for the business information of the jth historical period, score_real i Indicates the actual code number increment corresponding to the service information of the i-th historical period, score_real j It represents the actual code number increment corresponding to the business information of the j-th historical period, sign is the sign function, Loss is the loss value of the initial prediction model, and N is the total number of business information in the sample set.

[0037] Optionally, adjusting the model parameters of the initial prediction model based on the loss value includes: adjusting the model parameters of the initial prediction model based on the error back propagation algorithm and the loss value; the model parameters of the initial prediction model include model parameters of the output layer neurons and model parameters of the hidden layer neurons; the model parameters of the output layer neurons satisfy the following formula:

[0038]

[0039] Among them, E represents the loss value, w i represents the weight of the i-th business information, represents the partial derivative of the loss value with respect to the weight of the i-th business information, a represents the initial prediction result, z represents the linear calculation result, f′(z) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term; the model parameters of the output layer neurons satisfy the following formula:

[0040]

[0041] Among them, E represents the loss value, w i represents the weight of the i-th business information, Represents the partial derivative of the loss value with respect to the weight of the i-th business information, z j represents the business information of the next layer, f′(z i ) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term.

[0042] Optionally, the processing unit is specifically used to: determine the product of the code number increment and a preset coefficient; when the product is greater than the code number inventory, send a request message to the code number resource storage device; the request message is used to request to obtain the supplementary code number resources; the number of supplementary code number resources is the difference between the product and the code number inventory; the request message also includes: the number segment of the supplementary code number resources; and receive the supplementary code number resources sent by the code number resource storage device.

[0043] Optionally, the code number inventory includes the code number quantity that is unfrozen within the supplementary period, and does not include the code number quantity that is expected to be occupied within the supplementary period; the supplementary period is the time required to supplement the code number resources. Optionally, the processing unit is further used to determine the number segment of the supplemented code number resources based on the number segment of the code number resources in the target area; the number segment of the supplemented code number resources is the priority supplementary number segment; the number segment of the supplemented code number resources is consistent with the number segment of the code number resources in the target area; the number segment of the actual supplemented code number resources is consistent with or inconsistent with the number segment of the supplemented code number resources; the code number resources in the target area include: unfrozen code number resources in the target area, idle code number resources in the target area, and occupied code number resources in the target area.

[0044] Optionally, the processing unit is further used to determine the number segment of the supplementary code number resources according to the service type of the code number resources and the number of the supplementary code number resources.

[0045] Optionally, the processing unit is specifically used to: when the difference between the number of code resources belonging to the target number segment and the number of supplemented code resources is less than a preset difference, determine the number segment of the supplemented code resources as the target number segment; the code resource storage device includes the code resources of the target number segment; the target number segment is consistent with the number segment of the code resources corresponding to the service type, and / or the target number segment is consistent with the number segment of the code resources unfrozen within the target time period.

[0046] In a third aspect, a code number resource supplement device is provided, comprising a memory and a processor; the memory is used to store computer execution instructions, and the processor and the memory are connected via a bus; when the code number resource supplement device is running, the processor executes the computer execution instructions stored in the memory, so that the code number resource supplement device executes the code number resource supplement method of the first aspect.

[0047] The number resource supplement device may be an electronic device, or a part of an electronic device, such as a chip system in an electronic device. The chip system is used to support the electronic device to implement the functions involved in the first aspect and any possible implementation thereof, for example, to obtain and determine the data and / or information involved in the above-mentioned number resource supplement method. The chip system includes a chip, and may also include other discrete devices or circuit structures.

[0048] In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising computer execution instructions, and when the computer execution instructions are executed on a computer, the computer executes the code number resource supplementation method described in the first aspect.

[0049] In a fifth aspect, a computer program product is also provided, which includes a computer program or instructions. When the computer instructions are executed on a number resource supplementation device, the number resource supplementation device executes the number resource supplementation method as described in the first aspect above.

[0050] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the number resource supplement device, or may be packaged separately from the processor of the number resource supplement device, which is not limited in the present embodiment.

[0051] The description of the second, third, fourth and fifth aspects of the present application can refer to the detailed description of the first aspect.

[0052] In the embodiments of the present application, the name of the above-mentioned number resource supplement device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. For example, the receiving unit may also be called a receiving module, a receiver, etc. As long as the functions of each device or functional module are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.

[0053] The technical solution provided by this application brings at least the following beneficial effects:

[0054] Based on any of the above aspects, an embodiment of the present application provides a method for supplementing code number resources. First, code number resource supplement information is obtained, wherein the code number resource supplement information includes: business information and code number inventory. Then, the code number increment within the target time period is predicted based on the business information. Next, based on the code number increment and the code number inventory, the supplemented code number resources are obtained.

[0055] As can be seen from the above, when acquiring the supplementary code number resources, the present application not only considers the business information, but also the code number inventory. In addition, the code number increment within the target time period is predicted based on the business information. Then, based on the code number increment and the code number inventory, the supplementary code number resources are acquired. Therefore, the code number resources can be supplemented in a timely and accurate manner, solving the problem of low efficiency of code number resource supplementation in general technology.

[0056] The beneficial effects of the first, second, third, fourth and fifth aspects of the present application can all be referred to the analysis of the above beneficial effects, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A schematic diagram of the structure of a number resource supplement system provided in an embodiment of the present application;

[0058] Figure 2 A schematic diagram of a hardware structure of a communication device provided in an embodiment of the present application;

[0059] Figure 3 A flowchart of a method for supplementing number resources provided in an embodiment of the present application;

[0060] Figure 4 A flowchart of another method for supplementing number resources provided in an embodiment of the present application;

[0061] Figure 5 A flowchart of another method for supplementing number resources provided in an embodiment of the present application;

[0062] Figure 6 A flowchart of another method for supplementing number resources provided in an embodiment of the present application;

[0063] Figure 7 A flowchart of another method for supplementing number resources provided in an embodiment of the present application;

[0064] Figure 8 A flowchart of another method for supplementing number resources provided in an embodiment of the present application;

[0065] Fig. 9 A flowchart of another method for supplementing number resources provided in an embodiment of the present application;

[0066] Fig.10 A flowchart of another method for supplementing number resources provided in an embodiment of the present application;

[0067] Fig.11 A schematic diagram of the structure of a device for supplementing number resources provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0070] In order to facilitate a clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and order of execution.

[0071] Before introducing in detail the code resource supplement method provided by the present application, a brief introduction is first given to the application scenarios and implementation environment involved in the present application.

[0072] First, a brief introduction to the application scenarios involved in this application is given.

[0073] As described in the background art, with the development of communication technology and the promotion of new services of operators, users' demand for code numbers continues to increase, and code number resources need to be supplemented in a timely manner.

[0074] The general technology can only determine the area (also called prefecture-level city) that needs to supplement the number resources, and the determination of the number of supplementary number resources and the number of supplementary number resources depends on manual work. Therefore, the use of general technology to supplement number resources may result in unreasonable supplementary number resources. For example, the number of supplementary number resources in the area with low number usage frequency is the same as that in the area with high number usage frequency, resulting in excess number resources in the area with low number usage frequency and insufficient number resources in the area with high number usage frequency.

[0075] Therefore, the efficiency of supplementing general technical code number resources is low.

[0076] In response to the above problems, an embodiment of the present application provides a method for supplementing code number resources. First, code number resource supplement information is obtained, wherein the code number resource supplement information includes: business information and code number inventory. Then, the code number increment within the target time period is predicted based on the business information. Next, based on the code number increment and the code number inventory, the supplemented code number resources are obtained.

[0077] As can be seen from the above, when acquiring the supplementary code number resources, the present application not only considers the business information, but also the code number inventory. In addition, the code number increment within the target time period is predicted based on the business information. Then, based on the code number increment and the code number inventory, the supplementary code number resources are acquired. Therefore, the code number resources can be supplemented in a timely and accurate manner, solving the problem of low efficiency of code number resource supplementation in general technology.

[0078] The implementation environment of the above-mentioned code number resource supplementation method can be the code number resource supplementation system provided in the embodiment of the present application.

[0079] Figure 1 FIG. 1 shows a schematic diagram of the structure of a number resource supplement system provided by an embodiment of the present application. Figure 1 As shown, the number resource supplementation system includes: a number resource supplementation device 101, a number resource storage device (also called a number resource pool) 102 and a data storage device 103.

[0080] The number resource supplementing device 101 and the number resource storage device 102 are in communication connection with each other, and the number resource supplementing device 101 and the data storage device 103 are in communication connection with each other.

[0081] The code number resource storage device 102 is used to provide code number resources to the code number resource supplementing device 101 .

[0082] The data storage device 103 is used to store business information (including: number of accounts opened, number of accounts closed, user activity, business volume, single-user profit margin) and code number inventory (including: idle code number resources in each area and code number resources unfrozen within the target time period).

[0083] In an embodiment of the present application, the data storage device 103 is used to provide the code number resource supplement device 101 with information for determining the code number increment (for example, business information, code number inventory), so that the code number resource supplement device 101 determines the code number increment according to the data sent by the data storage device 103, and obtains the supplemented code number resources from the code number resource storage device 102.

[0084] Optionally, the number resource supplement device 101 and the number resource storage device 102 may be two devices independently set up, or may be integrated into the same device. When the number resource supplement device 101 and the number resource storage device 102 are integrated into the same device, the number resource storage device 102 may be a storage module (such as a database, etc.) of the number resource supplement device 101.

[0085] It is easy to understand that when the number resource supplement device 101 and the number resource storage device 102 are integrated into the same device, the communication mode between the number resource supplement device 101 and the number resource storage device 102 is the communication between the internal modules of the device. In this case, the communication process between the two is the same as the communication process between the number resource supplement device 101 and the number resource storage device 102 when they are independent of each other.

[0086] Optionally, the number resource supplement device 101 and the data storage device 103 may be two devices independently set up, or may be integrated into the same device. When the number resource supplement device 101 and the data storage device 103 are integrated into the same device, the data storage device 103 may be a storage module (such as a database, etc.) of the number resource supplement device 101.

[0087] It is easy to understand that when the number resource supplement device 101 and the data storage device 103 are integrated into the same device, the communication mode between the number resource supplement device 101 and the data storage device 103 is the communication between the internal modules of the device. In this case, the communication process between the two is the same as the communication process between the number resource supplement device 101 and the data storage device 103 when they are independent of each other.

[0088] For ease of understanding, the present application is described by taking the example that the number resource supplementing device 101, the number resource storage device 102 and the data storage device 103 are independent of each other.

[0089] The number resource supplementation device in the number resource supplementation system includes: Figure 2 The following are the components included. Figure 2 Taking the communication device shown as an example, the hardware structure of the code resource supplement equipment is introduced.

[0090] Figure 2 , which is a schematic diagram of a hardware structure of a communication device provided in an embodiment of the present application. The communication device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22, and the communication interface 23 can be connected via a bus 24.

[0091] The processor 21 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 21 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0092] As an embodiment, the processor 21 may include one or more CPUs, such as Figure 2 CPU0 and CPU1 are shown in the figure.

[0093] The memory 22 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0094] In a possible implementation, the memory 22 may exist independently of the processor 21, and the memory 22 may be connected to the processor 21 via a bus 24 to store instructions or program codes. When the processor 21 calls and executes the instructions or program codes stored in the memory 22, the code number resource supplement method provided in the following embodiments of the present application can be implemented.

[0095] In the embodiment of the present application, for the communication device, the software programs stored in the memory 22 are different, so the functions implemented by the communication device are different. The functions performed by each device will be described in conjunction with the following flowchart.

[0096] In another possible implementation, the memory 22 may also be integrated with the processor 21 .

[0097] The communication interface 23 is used for the communication device to connect with other devices through a communication network, and the communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.

[0098] The bus 24 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0099] It should be pointed out that Figure 2 The structure shown in the figure does not constitute a limitation on the communication device, except Figure 2 In addition to the components shown, the communication device may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0100] The method for supplementing code number resources provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0101] The code number resource supplement method provided in the embodiment of the present application is applied to Figure 1 The number resource supplementation device in the number resource supplementation system shown in FIG. Figure 3 As shown, the code number resource supplement method provided in the embodiment of the present application includes:

[0102] S301. A code number resource supplementation device obtains code number resource supplementation information.

[0103] The supplementary information of number resources includes: business information and number inventory.

[0104] Business information refers to the operator's operational data.

[0105] The business information includes at least one of the following: number of accounts opened, number of accounts closed, user activity, business volume, and single-user profit margin.

[0106] The number of accounts opened refers to the number of new codes opened within a certain period of time.

[0107] The number of account cancellations refers to the number of numbers cancelled within a certain period of time.

[0108] User activity is used to reflect the frequency of user usage and depth of participation in the service.

[0109] Optionally, if a user has a long monthly call duration and uses a large amount of data traffic, then this user is highly active.

[0110] Business volume refers to the number and scale of communication services completed within a certain period of time.

[0111] Optionally, the business volume includes: call minutes, text messages, and total data traffic.

[0112] The single-user profit margin refers to the net profit obtained from a single user.

[0113] The code number inventory includes the code numbers that are unfrozen during the replenishment period, and does not include the code numbers that are expected to be occupied during the replenishment period.

[0114] The supplementation period is the time required to supplement the number resources. In one achievable manner, the number resource supplementation device needs to predict the number increment within the target time period based on the service information, and determine whether the number resources need to be supplemented according to the number inventory. If the number resources need to be supplemented, the supplemented number resources are obtained. Therefore, the number resource supplementation device needs to obtain the service information and the number inventory.

[0115] S302: The code number resource supplement device predicts the code number increment within the target time period based on the service information.

[0116] In one achievable method, the code number resource supplement device can predict the code number increment within the target time period based on business information, so that the code number resource supplement device determines whether the code number resources need to be supplemented based on the code number increment and the code number inventory, and obtains the supplemented code number resources if the code number resources need to be supplemented.

[0117] Optionally, the target time period is a time period T of the supplementary code number.

[0118] Optionally, the time for supplementing the code number resources is a supplementation period t.

[0119] Exemplarily, the time period for supplementing the code number may be set to one month, and the supplementation period may be set to one week.

[0120] Exemplarily, the number resource supplement device may predict the number increment for the next month based on the service information in the third week of each month.

[0121] S303: The code number resource supplement device obtains supplemented code number resources based on the code number increment and the code number inventory.

[0122] In one practicable manner, the code number resource supplement device can determine whether the code number resources need to be supplemented according to the code number increment and the code number inventory, and obtain the supplemented code number resources if the code number resources need to be supplemented.

[0123] In some embodiments, in combination Figure 3 ,like Figure 4 As shown, in S302, the code number resource supplementation device predicts the code number increment within the target time period based on the service information, specifically including:

[0124] S401. The code number resource supplement device inputs service information into a code number increment prediction model to obtain a code number increment within a target time period.

[0125] The business information includes at least one of the following: number of accounts opened, number of accounts closed, user activity, business volume, and single-user profit margin.

[0126] In one achievable method, the code number resource device can predict the code number increment based on the code number increment prediction model, so that the code number resource supplementation device determines whether the code number resources need to be supplemented based on the code number increment and the code number inventory, and obtains the supplemented code number resources if the code number resources need to be supplemented.

[0127] Optionally, the code number resource supplement device may input service information into a code number increment prediction model to predict the code number increment within a target time period.

[0128] Optionally, the number resource supplement device may obtain service information of multiple historical periods (including: the number of account openings and the number of account closings), and determine an average value M of the service information of multiple historical periods as the number increment.

[0129] Optionally, the period may be set to the duration required for supplementary number resources, for example, the time period from submitting an application for supplementary number resources to supplementary number resources.

[0130] In some embodiments, the code number increment prediction model can be constructed by an electronic device, such as Figure 5 As shown, the code number increment prediction model is trained in the following way:

[0131] S501. The electronic device obtains a training set.

[0132] The training set includes: service information of multiple historical periods and actual code number increments corresponding to the service information.

[0133] In one achievable manner, the code number increment prediction model can be constructed by an electronic device. The electronic device needs to train an initial prediction model based on a training set, and continuously adjust the model parameters of the initial prediction model according to the initial prediction results and the training set data to obtain the code number increment prediction model. Therefore, the electronic device needs to obtain a training set including service information of multiple historical periods and actual code number increments corresponding to the service information.

[0134] S502: The electronic device inputs the business information in the training set into the initial prediction model to determine the initial prediction result.

[0135] In one achievable method, the electronic device can input the business information in the training set into the initial prediction model and determine the initial prediction result, so that the electronic device can adjust the model parameters of the initial prediction model based on the initial prediction result and the actual code number increment in the training set to obtain the code number increment prediction model.

[0136] S503. The electronic device determines the loss value of the initial prediction model based on the initial prediction result and the actual code number increment, and adjusts the model parameters of the initial prediction model based on the loss value when the loss value does not meet the preset conditions, and continues to perform iterative training based on the training set until the model convergence conditions are met to obtain the code number increment prediction model.

[0137] In one practicable manner, the electronic device adjusts the model parameters of the initial prediction model based on the initial prediction result and the actual code number increment to obtain the code number increment prediction model.

[0138] Optionally, the electronic device may construct a code number increment prediction model based on a neural network.

[0139] Optionally, a neural network is a computational model that mimics the connections and information processing methods between neurons in a biological brain.

[0140] Optionally, a neural network consists of a large number of interconnected nodes (also called neurons), which are arranged in a certain hierarchy (input layer, hidden layer, output layer). Information is transmitted and processed through the connections between neurons. Each neuron receives input signals from other neurons and calculates the input through an activation function to generate output signals to be passed to subsequent neurons.

[0141] Optionally, the electronic device may construct a loss function based on multiple loss values.

[0142] Optionally, the loss function includes at least one of a mean square error function, a mean absolute error function, a cross entropy loss function, a binary cross entropy loss function, a hinge loss function, a log-likelihood loss function, and a Kullback-Leibler (KL) divergence function.

[0143] In some embodiments, in combination Figure 5 ,like Figure 6 As shown, in S502, the electronic device inputs the business information in the training set into the initial prediction model to determine the initial prediction result, which specifically includes:

[0144] S601. The electronic device performs linear calculation on the business information in the training set to obtain a linear calculation result.

[0145] The linear calculation results satisfy the following formula:

[0146]

[0147] Among them, z represents the linear calculation result, w i represents the weight of the i-th business information in the business information of multiple historical periods, x i represents the information parameter of the i-th business information, b represents the bias item, and n represents the total number of business information in the business information of multiple historical periods.

[0148] The bias term is a constant parameter in a neural network.

[0149] Optionally, the bias term can make the neural network fit the data better and increase the flexibility of the code number increment prediction model. The bias term can make the code number increment prediction model adapt to data with different distributions and solve the problem of data offset in the code number increment prediction model. The bias term can enhance the diversity of the code number increment prediction model.

[0150] S602: The electronic device performs a nonlinear transformation on the linear calculation result based on the activation function to obtain a nonlinear feature.

[0151] Non-linear features are used to represent the initial prediction results.

[0152] Optionally, non-linear features do not follow a straight line relationship.

[0153] Optionally, the nonlinear feature has multi-valued properties, that is, for the same input value, there may be different output values.

[0154] Optionally, nonlinear features have complexity and uncertainty.

[0155] Optionally, an activation function is a nonlinear function that is applied to the output of a neuron to determine whether the neuron is activated and how strongly it is activated.

[0156] Optionally, the activation function may be a Sigmoid function, a Tanh function, or a Rectified Linear Unit (ReLU) function.

[0157] Optionally, the sigmoid function satisfies the following formula:

[0158]

[0159] Among them, e is a natural constant, approximately equal to 2.71828.

[0160] Optionally, the Tanh function satisfies the following formula:

[0161]

[0162] Among them, e is a natural constant, approximately equal to 2.71828.

[0163] Optionally, the ReLU function satisfies the following formula:

[0164] f(x)=max(0,x);

[0165] Among them, max is the maximum value.

[0166] In some embodiments, in S503, the electronic device determines the loss value of the initial prediction model based on the initial prediction result and the actual code number increment, specifically including:

[0167] The loss value satisfies the following formula:

[0168] score_diff ij =sigmoid(score_predict i -score_predict j );

[0169]

[0170] Among them, score_predict i Indicates the initial prediction result obtained by the initial prediction model for the business information of the i-th historical period, score_predict j It indicates the initial prediction result obtained by the initial prediction model for the business information of the jth historical period, score_real i Indicates the actual code number increment corresponding to the service information of the i-th historical period, score_real j It represents the actual code number increment corresponding to the business information of the j-th historical period, sign is the sign function, Loss is the loss value of the initial prediction model, and N is the total number of business information in the sample set.

[0171] In some embodiments, in combination Figure 6 ,like Figure 7 As shown, in S503, the electronic device adjusts the model parameters of the initial prediction model based on the loss value, specifically including:

[0172] S701. The electronic device adjusts the model parameters of the initial prediction model based on the error back propagation algorithm (Backpropagation) and the loss value.

[0173] The model parameters of the initial prediction model include model parameters of the output layer neurons and model parameters of the hidden layer neurons.

[0174] The model parameters of the output layer neurons satisfy the following formula:

[0175]

[0176] Among them, E represents the loss value, w i represents the weight of the i-th business information, represents the partial derivative of the loss value with respect to the weight of the i-th business information, a represents the initial prediction result, z represents the linear calculation result, f′(z) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term.

[0177] The model parameters of the output layer neurons satisfy the following formula:

[0178]

[0179] Among them, E represents the loss value, w i represents the weight of the i-th business information, Represents the partial derivative of the loss value with respect to the weight of the i-th business information, z j represents the business information of the next layer, f′(z i ) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term.

[0180] The error back propagation algorithm is an algorithm for training neural networks.

[0181] Optionally, after the neural network performs forward propagation calculation output, the output result is compared with the expected target value to obtain the loss value. Then, the loss value will start from the output layer and propagate backward through the network layer by layer in the opposite direction of the forward propagation, and adjust the connection weights between neurons in each layer according to certain rules to reduce the loss value and improve the performance and prediction accuracy of the network.

[0182] In some embodiments, in combination Figure 4 ,like Figure 8 As shown, in S303, the code number resource supplementation device obtains supplemented code number resources based on the code number increment and the code number inventory, specifically including:

[0183] S801. A code number resource supplementing device determines a product of a code number increment and a preset coefficient.

[0184] In one feasible method, supplementary code number resources also need to consider business information such as business volume. Therefore, the product of the code number increment and the preset coefficient can be determined first. The code number resource supplementary equipment needs to judge whether additional code number resources are needed based on the product and the code number inventory, so as to obtain the additional code number resources when additional code number resources are needed.

[0185] Exemplarily, the code number resource supplementing device may multiply the code number increment M by a preset coefficient δ (also referred to as an incrementable coefficient), and determine a product δM of the code number increment and the preset coefficient.

[0186] Optionally, the preset coefficient is closely related to business information such as business volume and user activity, and the preset coefficient can be set in advance based on the business information.

[0187] S802: When the product is greater than the code number inventory, the code number resource supplement device sends a request message to the code number resource storage device.

[0188] The request message is used to request to obtain the supplementary code number resources.

[0189] The request message also includes: the number segment of the supplementary code number resource.

[0190] The quantity of additional code number resources is the difference between the product and the code number inventory.

[0191] The code number inventory includes the code numbers that are unfrozen during the replenishment period, and does not include the code numbers that are expected to be occupied during the replenishment period.

[0192] The supplementation period is the time required to supplement the code number resources.

[0193] Specifically, the number of additional code resources satisfies the following formula:

[0194] A = δM-(BC)-D;

[0195] Among them, A is used to indicate the number of supplementary code resources, δM is used to indicate the code increment, B is used to indicate the actual code inventory (also known as the number of idle code), C is used to indicate the number of code that is expected to be occupied during the supplementary cycle, and D is used to indicate the number of code that is unfrozen during the supplementary cycle.

[0196] For example, when the code number increment is 10,000, the actual code number inventory is 2,500, the estimated number of code numbers to be occupied during the supplementary period is 1,500, and the number of code numbers unfrozen during the supplementary period is 1,000, the code number resource supplementation device determines that the number of supplemented code number resources is equal to 10,000-(2,500-1,500)-1,000, that is, the code number resource supplementation device determines that the number of supplemented code number resources is 8,000.

[0197] As another example, when the code number increment is 15,000, the actual code number inventory is 10,000, the estimated number of code numbers to be occupied during the supplementary period is 3,000, and the number of code numbers unfrozen during the supplementary period is 2,000, the code number resource supplementation equipment determines that the number of supplemented code number resources is equal to 15,000-(10,000-3,000)-2,000, that is, the code number resource supplementation equipment determines that the number of supplemented code number resources is 6,000.

[0198] In one achievable manner, when the product is greater than the code number inventory, code number resources need to be supplemented, and the code number resource supplementation device needs to obtain supplemented code number resources. When the product is less than or equal to the code number inventory, code number resources do not need to be supplemented.

[0199] Optionally, the request information also includes: code segment information of the target area and code segment information of the code to be unfrozen.

[0200] S803: The code number resource supplementing device receives the supplemented code number resources sent by the code number resource storage device.

[0201] Optional, combined Figure 1 When the product is greater than the code number inventory, the code number resource supplement device can obtain the supplemented code number resources from the code number resource storage device.

[0202] In one possible implementation, first, the code resource supplementation device may send a request message to the code resource storage device. Then, the code resource storage device sends the supplemented code resource to the code resource supplementation device in response to the request message sent by the code resource supplementation device. Correspondingly, the code resource supplementation device may receive the supplemented code resource sent by the code resource storage device.

[0203] Optionally, the code number resource storage device may directly deliver the supplementary code number resources to the target area.

[0204] In some embodiments, in combination Figure 8 ,like Fig. 9 As shown, the code number resource supplement method also includes:

[0205] S901. A code number resource supplementing device determines a number segment of supplemented code number resources according to a number segment of code number resources in a target area.

[0206] The number segment of the supplemented code number resources is the priority supplemented number segment.

[0207] The number segment of the supplemented code number resources is consistent with the number segment of the code number resources in the target area.

[0208] The number segment of the code number resource actually supplemented is consistent with or inconsistent with the number segment of the code number resource supplemented.

[0209] The code number resources in the target area include: unfreezed code number resources in the target area, idle code number resources in the target area, and occupied code number resources in the target area.

[0210] In one achievable method, the code number resource supplementing device can determine the number segment of the supplemented code number resources based on the number segment of the code number resources in the target area, wherein the code number resources in the target area include unfrozen code number resources in the target area, idle code number resources in the target area, and occupied code number resources in the target area, thereby ensuring that the code number resources in the target area after the supplemented code number resources are relatively continuous.

[0211] Exemplarily, the number segments of the code resources in the target area include the following number segments: 12345610000 to 12345619999, 12345650000 to 12345659999, 12345673000 to 12345673999, 12345676000 to 12345676999, 12345678000 to 12345678999. The code resource supplementation device may determine that the number segments of the supplemented code resources are the above number segments.

[0212] Optionally, the code number resource storage device may respond to the request information sent by the code number resource supplementing device, and the code number resource storage device may determine the supplemented code number resources from the above number segments.

[0213] Optionally, the number segment of the supplemented code number resources is a priority supplemented number segment.

[0214] Optionally, the number resource supplementation device may send the number segment of the supplemented number resource to the number resource storage device. The number resource storage device may determine the supplemented number resource according to the number segment of the supplemented number resource (also referred to as the priority supplemented number segment). The number resource storage device may send the supplemented number resource to the number resource supplementation device.

[0215] Optionally, the number segment of the actually supplemented code number resources may be consistent with the priority supplemented number segment (ie, the number segment of the supplemented code number resources determined by the code number resource supplementing device), or may be inconsistent with the priority supplemented number segment.

[0216] The code number resources actually supplemented are the code number resources sent by the code number resource storage device to the code number resource supplementing device.

[0217] In some embodiments, the priority supplementary number segment includes: a number segment of code resources within the target area.

[0218] The code number resources in the target area include: unfreezed code number resources in the target area, idle code number resources in the target area, and occupied code number resources in the target area.

[0219] In some embodiments, the priority of the number segments of idle code resources in the target area is higher than the priority of the number segments of unfrozen code resources in the target area, and the priority of the number segments of unfrozen code resources in the target area is higher than the priority of occupied code resources in the target area.

[0220] Exemplarily, when the number of supplementary code resources is 1,000, and in the code resource storage device, the number of code resources that are consistent with the unfrozen code resource segments in the target area is 200, the number of code resources that are consistent with the idle code resource segments in the target area is 700, and the number of code resources that are consistent with the occupied code resource segments in the target area is 500, the code resource storage device can determine that the supplementary code resources include: 700 code resources that are consistent with the idle code resource segments in the target area, 200 code resources that are consistent with the unfrozen code resource segments in the target area, and 100 code resources that are consistent with the occupied code resource segments in the target area.

[0221] As another example, when the number of supplemented code number resources is 5000, and in the code number resource storage device, the number of code number resources that are consistent with the unfrozen code number resource segments in the target area is 3000, the number of code number resources that are consistent with the idle code number resource segments in the target area is 1000, and the number of code number resources that are consistent with the occupied code number resource segments in the target area is 2000, the code number resource storage device can determine that the supplemented code number resources include: 3000 code number resources that are consistent with the idle code number resource segments in the target area, 1000 code number resources that are consistent with the unfrozen code number resource segments in the target area, and 1000 code number resources that are consistent with the occupied code number resource segments in the target area.

[0222] Optionally, in the code resource storage device, the number of code resources for priority supplementary number segments is less than the number of supplemented code resources, and the code resource storage device sends the code resources for priority supplementary number segments and the code resources of adjacent number segments of the priority supplementary number segments in the code resource storage device to the code resource supplementing device.

[0223] Exemplarily, when the priority supplementary number segment is 12345670000 to 12345679999, and the number of supplemented code resources is 1500, and all the code resources of the priority supplementary number segment exist in the code resource storage device, the code resource storage device can send 1500 code resources with a number segment of 12345670000 to 12345671499 to the code resource supplement device.

[0224] As another example, when the priority supplementary number segment is 12345678000-12345678999, and the number of supplemented code number resources is 1500, and all the code number resources of the priority supplementary number segment exist in the code number resource storage device, the code number resource storage device can send 1000 code number resources with a number segment of 12345678000 to 12345678999 and 500 code number resources with a number segment of 12345677500 to 1234567799 to the code number resource supplement device.

[0225] In some embodiments, in combination Figure 8 ,like Fig.10 As shown, the code number resource supplement method also includes:

[0226] S1001. The code number resource supplementing device determines the number segment of the supplemented code number resources according to the service type of the code number resources and the number of the supplemented code number resources.

[0227] In one achievable method, the code number resource supplementation device can determine the number segment of the supplemented code number resources based on the service type of the code number resources and the number of the supplemented code number resources, so as to ensure that the number segment of the supplemented code number resources is consistent with the number segment of the code number resources corresponding to the service type, and the code numbers of the supplemented code number resources are relatively continuous, and the code number resources in the data storage device are relatively continuous, so as to avoid the code number resources becoming increasingly dispersed as a large number of businesses are launched.

[0228] In some implementations, the number resource supplementation device determines the number segment of the supplemented number resource according to the service type of the number resource and the number of the supplemented number resource, specifically including:

[0229] When the difference between the number of code number resources belonging to the target number segment and the number of supplemented code number resources is less than a preset difference, the code number resource supplementing device determines the number segment of the supplemented code number resources as the target number segment.

[0230] The target number segment is consistent with the number segment of the code resources corresponding to the service type, and / or the target number segment is consistent with the number segment of the code resources unfrozen within the target time period.

[0231] The code number resource storage device includes the code number resources of the target number segment.

[0232] Optionally, there is a correspondence between the service type and the number segment of the number resource. One service type corresponds to the number of a number segment, or two or more service types correspond to the number of a number segment.

[0233] Optionally, the code resource supplementing device may determine a target number segment based on the number segment of the code resource corresponding to the service type, and the target number segment is consistent with the number segment of the code resource corresponding to the service type.

[0234] Exemplarily, the number segment of the code resources corresponding to the service type is 12345670000 to 12378679999, then the target number segment is determined to be 12345670000 to 12345679999.

[0235] Optionally, the code number resource supplementing device may determine the target number segment according to the number segment of the code number resources unfrozen within the target time period, and the target number segment is consistent with the number segment of the code number resources unfrozen within the target time period.

[0236] Exemplarily, the code numbers of the code number resources unfrozen within the target time period are scattered in the number segment 12345678000 to 12378678999, and the target number segment is determined to be 12345678000 to 12345678999.

[0237] Optionally, the code resource supplementing device may also determine a target number segment based on the number segment of the occupied code resources, and the target number segment is consistent with the number segment of the occupied code resources.

[0238] Exemplarily, the code numbers of the occupied code number resources are scattered in the number segment of 12345678900 to 12378678999, and the target number segment is determined to be 12345678900 to 12345678999.

[0239] Optionally, the target number segment can be one number segment or multiple number segments.

[0240] Optionally, the code number resource storage device preferentially configures the code numbers in the target number segment to ensure that the code number segments of the same service are consistent.

[0241] Optionally, the code number resource storage device may determine the supplementary code number resources according to the target number segment and the quantity of the supplementary code number resources.

[0242] Optionally, in the code resource storage device, the number of code resources of the target number segment is less than the number of supplemented code resources. The code resource storage device sends the code resources of the target number segment and the code resources of the adjacent number segments of the target number segment in the code resource storage device to the code resource supplementing device, so that the supplemented code resources are continuous.

[0243] Exemplarily, when the target number segment is 12345670000 to 12345679999, and the number of supplemented code number resources is 1500, and all the code number resources of the target number segment exist in the code number resource storage device, the code number resource storage device can send 1500 code number resources with a number segment of 12345670000 to 12345671499 to the code number resource supplement device.

[0244] As another example, when the target number segment is 12345678000-12345678999, and the number of supplemented code number resources is 1500, and all the code number resources of the target number segment exist in the code number resource storage device, the code number resource storage device can send 1000 code number resources with a number segment of 12345678000 to 12345678999 and 500 code number resources with a number segment of 12345677500 to 1234567799 to the code number resource supplement device.

[0245] Optionally, in the code resource storage device, the number of code resources of the target number segment is less than the number of supplemented code resources. The code resource storage device sends the code resources of the target number segment and relatively scattered code resources in the code resource storage device to the code resource supplement device, so that the code resources in the code resource storage device are continuous and neat.

[0246] Exemplarily, when the target number segment is 12345670000 to 12345679999, and the number of supplemented code number resources is 1500, and the code number resource storage device only contains 1300 code number resources in the target number segment, and the code number resource storage device also contains 200 code number resources in other number segments and with discontinuous code numbers, the code number resource storage device sends 1300 code number resources in the target number segment and the other 200 code number resources to the code number resource supplementation device.

[0247] Optionally, the number segment of the supplemented code number resources is a priority supplemented number segment.

[0248] In some embodiments, the priority supplementary number segments include: number segments of code resources corresponding to the service type, number segments of code resources unfrozen within the target time period, and number segments of code resources within the target area.

[0249] In some embodiments, the priority of the number segments of the code resources in the target area is higher than the number segments of the code resources corresponding to the service type, and the priority of the number segments of the code resources corresponding to the service type is higher than the number segments of the code resources unfrozen within the target time period.

[0250] Exemplarily, when there are no overlapping number segments among the number segments of the code resources in the target area, the number segments of the code resources corresponding to the service types, and the number segments of the code resources unfrozen within the target time period, and the number of the supplemented code resources is 1,000, and in the code resource storage device, the number of code resources that are consistent with the number segments of the code resources in the target area is 200, the number of code resources that are consistent with the number segments of the code resources corresponding to the service types is 700, and the number of code resources that are consistent with the number segments of the code resources unfrozen within the target time period is 500, the code resource storage device can determine that the supplemented code resources include: 200 code resources that are consistent with the number segments of the code resources in the target area, 700 code resources that are consistent with the number segments of the code resources corresponding to the service types, and 100 code resources that are consistent with the number segments of the code resources unfrozen within the target time period.

[0251] Exemplarily, there are no overlapping number segments among the number segments of the code resources in the target area, the number segments of the code resources corresponding to the service types, and the number segments of the code resources unfrozen within the target time period, and the number of the supplemented code resources is 5,000. In the case where, in the code resource storage device, the number of code resources that are consistent with the number segments of the code resources in the target area is 4,000, the number of code resources that are consistent with the number segments of the code resources corresponding to the service types is 2,000, and the number of code resources that are consistent with the number segments of the code resources unfrozen within the target time period is 2,000, the code resource storage device can determine that the supplemented code resources include: 4,000 code resources that are consistent with the number segments of the code resources in the target area and 1,000 code resources that are consistent with the number segments of the code resources corresponding to the service types.

[0252] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0253] The embodiment of the present application can divide the functional modules of the number resource supplement device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0254] Fig.11 FIG. 1 shows a schematic diagram of the structure of a device for supplementing number resources provided by an embodiment of the present application. Fig.11 As shown, the code resource supplement device includes: a communication unit 1101 and a processing unit 1102;

[0255] Communication unit 1101 is used to obtain supplementary information on code number resources; the supplementary information on code number resources includes: business information and code number inventory; the processing unit is used to predict the code number increment within the target time period based on the business information; the processing unit is also used to obtain supplementary code number resources based on the code number increment and the code number inventory.

[0256] Optionally, the processing unit 1102 is specifically used to: input business information into the code number increment prediction model to obtain the code number increment within the target time period; the business information includes: at least one of the number of accounts opened, the number of accounts closed, user activity, business volume, and single-user profit margin.

[0257] Optionally, the code number increment prediction model is trained in the following manner: obtaining a training set; the training set includes: business information of multiple historical periods and actual code number increments corresponding to the business information; inputting the business information in the training set into the initial prediction model to determine the initial prediction result; based on the initial prediction result and the actual code number increment, determining the loss value of the initial prediction model, and if the loss value does not meet the preset conditions, adjusting the model parameters of the initial prediction model based on the loss value, and continuing to perform iterative training based on the training set until the model convergence conditions are met to obtain the code number increment prediction model.

[0258] Optionally, the business information in the training set is input into the initial prediction model to determine the initial prediction result, including: performing linear calculation on the business information in the training set to obtain a linear calculation result; the linear calculation result satisfies the following formula:

[0259]

[0260] Among them, z represents the linear calculation result, w i represents the weight of the i-th business information in the business information of multiple historical periods, x irepresents the information parameter of the i-th business information, b represents the bias term, and n represents the total number of business information in the business information of multiple historical periods; based on the activation function, the linear calculation result is nonlinearly transformed to obtain nonlinear features; the nonlinear features are used to represent the initial prediction results.

[0261] Optionally, based on the initial prediction result and the actual code number increment, determining the loss value of the initial prediction model includes: the loss value satisfies the following formula:

[0262] score_diff ij =sigmoid(score_predict i -score_predict j );

[0263]

[0264] Among them, score_predict i Indicates the initial prediction result obtained by the initial prediction model for the business information of the i-th historical period, score_predict j It indicates the initial prediction result obtained by the initial prediction model for the business information of the jth historical period, score_real i Indicates the actual code number increment corresponding to the service information of the i-th historical period, score_real j It represents the actual code number increment corresponding to the business information of the j-th historical period, sign is the sign function, Loss is the loss value of the initial prediction model, and N is the total number of business information in the sample set.

[0265] Optionally, adjusting the model parameters of the initial prediction model based on the loss value includes: adjusting the model parameters of the initial prediction model based on the error back propagation algorithm and the loss value; the model parameters of the initial prediction model include model parameters of the output layer neurons and model parameters of the hidden layer neurons; the model parameters of the output layer neurons satisfy the following formula:

[0266]

[0267] Among them, E represents the loss value, w i represents the weight of the i-th business information, represents the partial derivative of the loss value with respect to the weight of the i-th business information, a represents the initial prediction result, z represents the linear calculation result, f′(z) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term; the model parameters of the output layer neurons satisfy the following formula:

[0268]

[0269] Among them, E represents the loss value, w i represents the weight of the i-th business information, Represents the partial derivative of the loss value with respect to the weight of the i-th business information, z j represents the business information of the next layer, f′(z i ) represents the derivative of the activation function, x i represents the information parameter of the i-th business information, b represents the bias term, Represents the partial derivative of the loss value with respect to the bias term.

[0270] Optionally, the processing unit 1102 is specifically used to: determine the product of the code number increment and a preset coefficient; when the product is greater than the code number inventory, send a request message to the code number resource storage device; the request message is used to request to obtain additional code number resources; the number of additional code number resources is the difference between the product and the code number inventory; the request message also includes: the number segment of the additional code number resources; and receive the additional code number resources sent by the code number resource storage device.

[0271] Optionally, the code number inventory includes the code number quantity unfrozen during the supplementary period, and does not include the code number quantity expected to be occupied during the supplementary period; the supplementary period is the time required to supplement the code number resources.

[0272] Optionally, processing unit 1102 is further used to determine the number segment of the supplementary code number resources based on the number segment of the code number resources in the target area; the number segment of the supplementary code number resources is the priority supplementary number segment; the number segment of the supplementary code number resources is consistent with the number segment of the code number resources in the target area; the number segment of the actual supplementary code number resources is consistent with or inconsistent with the number segment of the supplementary code number resources; the code number resources in the target area include: unfrozen code number resources in the target area, idle code number resources in the target area and occupied code number resources in the target area.

[0273] Optionally, the processing unit 1102 is further configured to determine a number segment of the supplementary code number resources according to a service type of the code number resources and a quantity of the supplementary code number resources.

[0274] Optionally, the processing unit 1102 is specifically used to: when the difference between the number of code resources belonging to the target number segment and the number of supplemented code resources is less than a preset difference, determine that the number segment of the supplemented code resources is the target number segment; the code resource storage device includes the code resources of the target number segment; the target number segment is consistent with the number segment of the code resources corresponding to the service type, and / or the target number segment is consistent with the number segment of the code resources unfrozen within the target time period.

[0275] An embodiment of the present application further provides a computer-readable storage medium, which includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer executes the code number resource supplementation method provided in the above embodiment.

[0276] The embodiment of the present application also provides a computer program, which can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the code number resource supplementation method provided in the above embodiment.

[0277] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.

[0278] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0279] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0280] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the general technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a disk, or an optical disk.

[0281] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for supplementing code number resources, characterized in that: include: Obtain additional information on code number resources; The code number resource supplementary information includes: service information and code number inventory; Predicting the code number increment within a target time period based on the service information; Based on the code number increment and the code number inventory, additional code number resources are acquired.

2. The method according to claim 1, characterized in that: The predicting the code number increment within the target time period based on the service information includes: The business information is input into a code number increment prediction model to obtain the code number increment within the target time period; the business information includes: at least one of the number of accounts opened, the number of accounts closed, user activity, business volume, and single-user profit margin.

3. The method according to claim 2, characterized in that The code number increment prediction model is trained in the following way: Acquire a training set; the training set includes: service information of multiple historical periods and actual code number increments corresponding to the service information; Inputting the business information in the training set into the initial prediction model to determine the initial prediction result; Based on the initial prediction result and the actual code number increment, the loss value of the initial prediction model is determined, and when the loss value does not meet the preset conditions, the model parameters of the initial prediction model are adjusted based on the loss value, and iterative training is continued based on the training set until the model convergence conditions are met to obtain the code number increment prediction model.

4. The method according to claim 3, characterized in that: The step of inputting the business information in the training set into the initial prediction model to determine the initial prediction result includes: Perform linear calculation on the business information in the training set to obtain a linear calculation result; the linear calculation result satisfies the following formula: Wherein, z represents the linear calculation result, w i represents the weight of the i-th business information in the business information of the multiple historical periods, x i represents the information parameter of the i-th business information, b represents a bias item, and n represents the total number of business information in the business information of the multiple historical periods; The linear calculation result is nonlinearly transformed based on an activation function to obtain a nonlinear feature; the nonlinear feature is used to represent the initial prediction result.

5. The method according to claim 4, characterized in that The determining the loss value of the initial prediction model based on the initial prediction result and the actual code number increment includes: The loss value satisfies the following formula: score_diff ij =sigmoid(score_predict i -score_predict j ); Among them, score_predict i represents the initial prediction result obtained by the initial prediction model for predicting the business information of the i-th historical period, score_predict j represents the initial prediction result obtained by the initial prediction model for predicting the business information of the jth historical period, score_real i Indicates the actual code number increment corresponding to the service information of the i-th historical period, score_real j represents the actual code number increment corresponding to the business information of the j-th historical period, sign is the sign function, Loss is the loss value of the initial prediction model, and N is the total number of business information in the sample set.

6. The method according to claim 5, characterized in that The adjusting the model parameters of the initial prediction model based on the loss value includes: Adjusting the model parameters of the initial prediction model based on the error back propagation algorithm and the loss value; the model parameters of the initial prediction model include model parameters of output layer neurons and model parameters of hidden layer neurons; The model parameters of the output layer neurons satisfy the following formula: Among them, E represents the loss value, w i represents the weight of the i-th business information, represents the partial derivative of the loss value with respect to the weight of the i-th business information, a represents the initial prediction result, z represents the linear calculation result, f′(z) represents the derivative of the activation function, x i represents the information parameter of the i-th service information, b represents the bias item, represents the partial derivative of the loss value with respect to the bias term; The model parameters of the output layer neurons satisfy the following formula: Where E represents the loss value, w i represents the weight of the i-th business information, represents the partial derivative of the loss value with respect to the weight of the i-th business information, z j represents the business information of the next layer, f′(z i ) represents the derivative of the activation function, x i represents the information parameter of the i-th service information, b represents the bias item, represents the partial derivative of the loss value with respect to the bias term.

7. The method according to claim 1, characterized in that The acquiring of the supplementary code number resources based on the code number increment and the code number inventory includes: Determining the product of the code number increment and a preset coefficient; In the case where the product is greater than the code number inventory, a request message is sent to the code number resource storage device; the request message is used to request to obtain the supplementary code number resources; the quantity of the supplementary code number resources is the difference between the product and the code number inventory; the request message also includes: the number segment of the supplementary code number resources; Receive the supplemented code number resource sent by the code number resource storage device.

8. The method according to claim 7, characterized in that The code number inventory includes the code number quantity unfrozen within the supplementary period, and does not include the code number quantity expected to be occupied within the supplementary period; the supplementary period is the time required for supplementary code number resources.

9. The method according to claim 7, characterized in that: The method further comprises: The number segment of the supplemented code number resources is determined according to the number segment of the code number resources in the target area; the number segment of the supplemented code number resources is the priority supplemented number segment; the number segment of the supplemented code number resources is consistent with the number segment of the code number resources in the target area; the number segment of the actual supplemented code number resources is consistent with or inconsistent with the number segment of the supplemented code number resources; the code number resources in the target area include: unfrozen code number resources in the target area, idle code number resources in the target area and occupied code number resources in the target area.

10. The method according to claim 7, characterized in that The method further comprises: The number segment of the supplemented number resources is determined according to the service type of the number resources and the quantity of the supplemented number resources.

11. The method according to claim 10, characterized in that The determining the number segment of the supplemented number resource according to the service type of the number resource and the quantity of the supplemented number resource comprises: When the difference between the number of code resources belonging to the target number segment and the number of the supplemented code resources is less than a preset difference, the number segment of the supplemented code resources is determined to be the target number segment; the code resource storage device includes the code resources of the target number segment; the target number segment is consistent with the number segment of the code resources corresponding to the service type, and / or the target number segment is consistent with the number segment of the code resources unfrozen within the target time period.

12. A device for supplementing number resources, characterized in that: The code resource supplement device comprises: a communication unit and a processing unit; The communication unit is used to obtain the code number resource supplementary information; the code number resource supplementary information includes: service information and code number inventory; The processing unit is used to predict the code number increment within the target time period based on the service information; The processing unit is further used to obtain additional code number resources based on the code number increment and the code number inventory.

13. A code number resource supplement device, characterized in that: It comprises a memory and a processor; the memory is used to store computer-executable instructions, and the processor is connected to the memory through a bus; when the device is running, the processor executes the computer-executable instructions stored in the memory, so that the device executes the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes computer-executable instructions. When the computer-executable instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product comprises: a computer program or instructions, and when the computer program or instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • MSISDN code number resource allocation method, apparatus, and home location register

    CN104125555A

  • ESIM resource management platform and management method

    CN110996339A

  • Method, device and equipment for scheduling prepayment flow code number

    CN112235474A

  • Code number downloading method and system, terminal equipment and computer readable storage medium

    CN113784336A

  • Method and device for determining terminal access point, electronic equipment and storage medium

    CN114423007A