A code number resource supplementing method, device, medium and product

By acquiring business information and inventory levels, and using an incremental prediction model to optimize the replenishment of code number resources, the problem of unreasonable resource allocation in existing technologies has been solved, enabling timely and accurate replenishment of code number resources and improving replenishment efficiency.

CN119545332BActive Publication Date: 2025-12-16CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies are inefficient in supplementing code resources, resulting in an oversupply of resources in areas with low code usage frequency and an undersupply in areas with high usage frequency.

Method used

By acquiring business information and code number inventory, the code number increment prediction model is used to predict the code number increment within the target time period. Based on the code number increment and inventory, supplementary code number resources are obtained. Considering the consistency of business type and number segment, the supplementation process is optimized.

Benefits of technology

It enables timely and accurate replenishment of code resources, solves the problem of unreasonable resource allocation, and improves replenishment efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545332B_ABST
    Figure CN119545332B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a code number resource supplement method and device, a medium and a product, relating to the technical field of communication, to solve the problem of low efficiency of general technology code number resource supplement. The code number resource supplement method comprises: obtaining code number resource supplement information; the code number resource supplement information comprises: service information and code number inventory; predicting the code number increment in a target time period based on the service information; and obtaining the supplemented code number resource 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 technical field of communication, and in particular to a code number resource supplementing method and device, medium and product. BACKGROUND

[0002] With the development of communication technology and the promotion of new business of operators, the demand for code numbers of users is increasing, and code number resources need to be supplemented in time.

[0003] General technology can only determine the area (also referred to as city) that needs to supplement code number resources, and the number of code number resources to be supplemented and the supplemented code number resources depend on manual work. Therefore, when code number resources are supplemented by using general technology, the supplemented code number resources may not be reasonable, for example, the number of supplemented code number resources in a region with low code number usage frequency is the same as that in a region with high code number usage frequency, resulting in over-supply of code number resources in the region with low code number usage frequency and insufficient code number resources in the region with high code number usage frequency.

[0004] Therefore, the general technology has low efficiency in supplementing code number resources. SUMMARY

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

[0006] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0007] In a first aspect, a code number resource supplementing method is provided, including: obtaining code number resource supplementing information; the code number resource supplementing information including: service information and code number inventory; predicting a code number increment in a target time period based on the service information; and obtaining supplemented code number resources based on the code number increment and the code number inventory.

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

[0009] Optionally, the code number increment prediction model is obtained by the following method: obtaining a training set; the training set including: service information of a plurality of historical periods and actual code number increments corresponding to the service information; inputting the service information in the training set into an initial prediction model to determine an initial prediction result; determining a loss value of the initial prediction model based on the initial prediction result and the actual code number increment, and in the case that the loss value does not meet a preset condition, adjusting model parameters of the initial prediction model based on the loss value, and continuing to perform iterative training based on the training set until a model convergence condition is met, to obtain the code number increment prediction model.

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

[0011]

[0012] wherein z represents the linear calculation result, w i represents a weight of the i-th service information in the service information of the plurality of historical periods, x i represents an information parameter of the i-th service information, b represents a bias term, and n represents a total number of service information in the service information of the plurality of historical periods; the linear calculation result is nonlinearly transformed based on an activation function to obtain a nonlinear feature; and the nonlinear feature is used to represent the initial prediction result.

[0013] Optionally, a loss value of the initial prediction model is determined based on the initial prediction result and an actual code number increment, including: the loss value satisfies the following formula:

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

[0015]

[0016] wherein score_predict i represents the initial prediction result predicted by the initial prediction model for the i-th historical period of service information, score_predict j represents the initial prediction result predicted by the initial prediction model for the j-th historical period of service information, score_real i represents a corresponding actual code number increment of the i-th historical period of service information, score_real j represents a corresponding actual code number increment of the j-th historical period of service information, sign is a sign function, Loss is the loss value of the initial prediction model, and N is a total number of service information in the sample set.

[0017] Optionally, the model parameters of the initial prediction model are adjusted based on the loss value, including: the model parameters of the initial prediction model are adjusted based on an 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; and the model parameters of the output layer neurons satisfy the following formula:

[0018]

[0019] wherein E represents a loss value, w i represents a weight of the i-th service information, represents a partial derivative of the loss value with respect to the weight of the i-th service information, a represents an initial prediction result, z represents a linear calculation result, f ′ (z) represents a derivative of an activation function, x i represents an information parameter of the i-th service information, b represents a bias term, represents a 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] wherein E represents a loss value, w i represents a weight of the i-th service information, represents a partial derivative of the loss value with respect to the weight of the i-th service information, z j represents service information of a next layer, f'(z i ) represents a derivative of an activation function, x i represents an information parameter of the i-th service information, b represents a bias term, represents a 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, the supplemented code number resource is obtained, including: determining a product of the code number increment and a preset coefficient; in a case where the product is greater than the code number inventory, sending a request message to a code number resource storage device; the request message is used for requesting to obtain the supplemented code number resource; a quantity of the supplemented code number resource is a difference value between the product and the code number inventory; the request message further includes: a number segment of the supplemented code number resource; and receiving the supplemented code number resource sent by the code number resource storage device.

[0024] Optionally, the code number inventory includes a quantity of code numbers unfreezed in a supplement period, and does not include a quantity of code numbers expected to be occupied in the supplement period; the supplement period is a time required for supplementing the code number resource. Optionally, the code number resource supplement method further includes: determining a number segment of the supplemented code number resource according to a number segment of the code number resource in a target region; the number segment of the supplemented code number resource is a preferentially supplemented number segment; the number segment of the supplemented code number resource is consistent with the number segment of the code number resource in the target region; a number segment of an actually supplemented code number resource is consistent or inconsistent with the number segment of the supplemented code number resource; the code number resource in the target region includes: code number resource unfreezed in the target region, idle code number resource in the target region, and occupied code number resource in the target region.

[0025] Optionally, the code number resource supplementing method further comprises: determining a number segment of the supplemented code number resource according to a service type of the code number resource and a number of the supplemented code number resource.

[0026] Optionally, the determining of the number segment of the supplemented code number resource according to the service type of the code number resource and the number of the supplemented code number resource comprises: determining the number segment of the supplemented code number resource as a target number segment in a case that a difference between the number of the code number resource belonging to the target number segment and the number of the supplemented code number resource is less than a preset difference value; the code number resource storage device comprises the code number resource of the target number segment; the target number segment is consistent with a number segment of the code number resource corresponding to the service type, and / or the target number segment is consistent with a number segment of the code number resource unfreezed in a target time period.

[0027] In a second aspect, a code number resource supplementing apparatus is provided, which comprises: a communication unit and a processing unit; the communication unit is configured to acquire code number resource supplementing information; the code number resource supplementing information comprises: service information and a code number inventory; the processing unit is configured to predict a code number increment in a target time period based on the service information; and the processing unit is further configured to acquire supplemented code number resources based on the code number increment and the code number inventory.

[0028] Optionally, the processing unit is specifically configured to: input the service information into a code number increment prediction model to obtain the code number increment in the target time period; and the service information comprises at least one of the following: a number of accounts opened, a number of accounts closed, a user activity level, a service volume, and a single-user profit rate.

[0029] Optionally, the code number increment prediction model is obtained by training in the following manner: acquiring a training set; the training set comprises: service information of a plurality of historical periods and actual code number increments corresponding to the service information; inputting the service information in the training set into an initial prediction model to determine an initial prediction result; determining a loss value of the initial prediction model based on the initial prediction result and the actual code number increment, and in a case that the loss value does not satisfy a preset condition, adjusting model parameters of the initial prediction model based on the loss value, and continuing to iteratively train based on the training set until a model convergence condition is satisfied to obtain the code number increment prediction model.

[0030] Optionally, the inputting of the service information in the training set into the initial prediction model to determine the initial prediction result comprises: performing linear calculation on the service information in the training set to obtain a linear calculation result; and the linear calculation result satisfies the following formula:

[0031]

[0032] wherein z represents the linear calculation result, w i represents a weight of the i-th service information in the plurality of historical periods, x iinformation parameters of the i-th service information, b represents a bias term, and n represents a total number of service information in the plurality of historical period service information; performing nonlinear transformation on the linear calculation result based on an activation function to obtain a nonlinear feature; and using the nonlinear feature to represent the initial prediction result.

[0033] Optionally, based on the initial prediction result and the actual code number increment, a loss value of the initial prediction model is determined, including that the loss value satisfies the following formula:

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

[0035]

[0036] score_predict i represents an initial prediction result predicted by the initial prediction model for the i-th historical period service information, score_predict j represents an initial prediction result predicted by the initial prediction model for the j-th historical period service information, score_real i represents a corresponding actual code number increment of the i-th historical period service information, score_real j represents a corresponding actual code number increment of the j-th historical period service information, sign is a sign function, Loss is the loss value of the initial prediction model, and N is a total number of service information in the sample set.

[0037] Optionally, based on the loss value, a model parameter of the initial prediction model is adjusted, including that the model parameter of the initial prediction model is adjusted based on an error back propagation algorithm and the loss value; the model parameter of the initial prediction model includes a model parameter of an output layer neuron and a model parameter of a hidden layer neuron; and the model parameter of the output layer neuron satisfies the following formula:

[0038]

[0039] wherein E represents the loss value, w i represents a weight of the i-th service information, represents a partial derivative of the loss value with respect to the weight of the i-th service information, a represents the initial prediction result, z represents the linear calculation result, f'(z) represents a derivative of the activation function, x i represents an information parameter of the i-th service information, b represents a bias term, represents a partial derivative of the loss value with respect to the bias term; and the model parameter of the output layer neuron satisfies the following formula:

[0040]

[0041] wherein E represents a loss value, w i represents a weight of the i-th service information, represents a partial derivative of the loss value with respect to the weight of the i-th service information, z j represents service information of a next layer, f'(z i ) represents a derivative of an activation function, x i represents an information parameter of the i-th service information, b represents a bias term, represents a partial derivative of the loss value with respect to the bias term.

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

[0043] Optionally, the code number inventory includes a quantity of unfreezed code numbers in a supplement period, and does not include a quantity of code numbers expected to be occupied in the supplement period; the supplement period is a time required for supplementing the code number resources. Optionally, the processing unit is further configured to determine a number segment of the supplemented code number resources according to a number segment of the code number resources in a target region; the number segment of the supplemented code number resources is a preferentially 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 region; a number segment of actually supplemented code number resources is consistent or inconsistent with the number segment of the supplemented code number resources; the code number resources in the target region include: unfreezed code number resources in the target region, idle code number resources in the target region, and occupied code number resources in the target region.

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

[0045] Optionally, the processing unit is specifically configured to: in a case where a difference between a quantity of code number resources belonging to a target number segment and a quantity of the supplemented code number resources is less than a preset difference value, determine that the number segment of the supplemented code number resources is the target number segment; the code number resource storage device includes code number resources of the target number segment; the target number segment is consistent with a number segment of code number resources corresponding to the service type, and / or the target number segment is consistent with a number segment of unfreezed code number resources in a target time period.

[0046] In a third aspect, a code number resource supplementing device is provided, which includes a memory and a processor. The memory is configured to store computer-executable instructions, and the processor is connected to the memory through a bus. When the code number resource supplementing device is running, the processor executes the computer-executable instructions stored in the memory, so that the code number resource supplementing device performs the code number resource supplementing method in the first aspect.

[0047] The code number resource supplementing device can be an electronic device or a part of the electronic device, such as a chip system in the electronic device. The chip system is configured to support the electronic device to implement the functions involved in the first aspect and any possible implementation manner thereof, for example, obtaining and determining the data and / or information involved in the code number resource supplementing method. The chip system includes a chip and can also include other discrete devices or circuit structures.

[0048] In a fourth aspect, a computer-readable storage medium is provided, which includes computer-executable instructions. When the computer-executable instructions are running on a computer, the computer-executable instructions make the computer perform the code number resource supplementing method in the first aspect.

[0049] In a fifth aspect, a computer program product is also provided, which includes computer programs or instructions. When the computer instructions are running on the code number resource supplementing device, the computer instructions make the code number resource supplementing device perform the code number resource supplementing method in the first aspect.

[0050] It should be noted that the computer instructions can be stored on the computer-readable storage medium in whole or in part. The computer-readable storage medium can be packaged together with the processor of the code number resource supplementing device or packaged separately from the processor of the code number resource supplementing device, and the embodiments of the present application do not limit this.

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

[0052] In the embodiments of the present application, the names of the code number resource supplementing device do not limit the devices or functional modules themselves, and these devices or functional modules can appear in other names in actual implementation. For example, the receiving unit can also be referred to as a receiving module, a receiver, etc. As long as the functions of each device or functional module are similar to those in the present application, they belong to the scope of the claims of the present application and equivalent technologies thereof.

[0053] The technical solutions provided in the present application at least have the following beneficial effects:

[0054] Based on any of the above aspects, the embodiment of the present application provides a code number resource supplementing method, first, code number resource supplementing information is acquired, wherein the code number resource supplementing information comprises service information and code number inventory, then, code number increment in a target time period is predicted based on the service information, and then, supplemented code number resource is acquired based on the code number increment and the code number inventory.

[0055] As known from the above, when acquiring the supplemented code number resource, the present application not only considers the service information, but also considers the code number inventory. And the code number increment in the target time period is predicted based on the service information. Then, the supplemented code number resource is acquired based on the code number increment and the code number inventory, so that the code number resource can be supplemented in time and accurately, and the problem of low code number resource supplementing efficiency in the prior art is solved.

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

[0057] Figure 1 A structural schematic diagram of a code number resource supplementing system provided by the embodiment of the present application is provided;

[0058] Figure 2 A hardware structural schematic diagram of a communication device provided by the embodiment of the present application is provided;

[0059] Figure 3 A flowchart of a code number resource supplementing method provided by the embodiment of the present application is provided;

[0060] Figure 4 A flowchart of another code number resource supplementing method provided by the embodiment of the present application is provided;

[0061] Figure 5 A flowchart of another code number resource supplementing method provided by the embodiment of the present application is provided;

[0062] Figure 6 A flowchart of another code number resource supplementing method provided by the embodiment of the present application is provided;

[0063] Figure 7 A flowchart of another code number resource supplementing method provided by the embodiment of the present application is provided;

[0064] Figure 8 A flowchart of another code number resource supplementing method provided by the embodiment of the present application is provided;

[0065] Figure 9 A flowchart of another code number resource supplementing method provided by the embodiment of the present application is provided;

[0066] Figure 10 A flowchart of another code number resource supplementing method provided by an embodiment of the present application is shown in FIG. 2.

[0067] Figure 11 A structure diagram of a code number resource supplementing device provided by an embodiment of the present application is shown in FIG. 3. DETAILED DESCRIPTION

[0068] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0069] It should be noted that in the embodiments of the present application, the words such as "exemplary" or "for example" are used to represent an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "exemplary" or "for example" are intended to present the relevant concept in a specific manner.

[0070] In order to clearly describe the technical solutions in the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same or similar items or items with basically the same function and role. Those skilled in the art can understand that the words "first", "second" and the like are not intended to limit the quantity and execution order.

[0071] Before the code number resource supplementing method provided by the present application is described in detail, the application scenarios and implementation environments involved in the present application are briefly introduced.

[0072] First, the application scenarios involved in the present application are briefly introduced.

[0073] As described in the background, with the development of communication technology and the promotion of new services of operators, the demand for code numbers of users is increasing, and code number resources need to be supplemented in time.

[0074] The general technology can only determine the area (also referred to as city) that needs to supplement code number resources, and the number of code number resources to be supplemented and the supplemented code number resources depend on manual work. Therefore, when the general technology is used to supplement code number resources, the supplemented code number resources may not be reasonable, for example, the number of code number resources supplemented in an area with low code number usage frequency is the same as the number of code number resources supplemented in an area with high code number usage frequency, resulting in code number resource surplus in the area with low code number usage frequency and code number resource deficiency in the area with high code number usage frequency.

[0075] Therefore, the general technology code number resource supplementing efficiency is low.

[0076] To solve the above problems, the embodiment of the application provides a code number resource supplementing method.

[0077] It can be seen from the above that, in the code number resource supplementing method, the business information and the code number inventory are considered, the code number increment in a target time period is predicted based on the business information, and then the supplemented code number resource is obtained based on the code number increment and the code number inventory.

[0078] The implementation environment of the code number resource supplementing method can be a code number resource supplementing system provided by the embodiment of the application.

[0079] Figure 1 A structure schematic diagram of a code number resource supplementing system provided by the embodiment of the application is shown. Figure 1 As shown in the figure, the code number resource supplementing system comprises a code number resource supplementing device 101, a code number resource storage device (also referred to as a code number resource pool) 102 and a data storage device 103.

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

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

[0082] The data storage device 103 is configured to store the business information (including the number of accounts, the number of accounts canceled, the user activity, the service volume, and the single user profit rate) and the code number inventory (including the idle code number resource in each region and the code number resource unfrozen in the target time period).

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

[0084] Optionally, the code resource supplementation device 101 and the code resource storage device 102 can be two independently configured devices, or they can be integrated into the same device. When the code resource supplementation device 101 and the code resource storage device 102 are integrated into the same device, the code resource storage device 102 can be a storage module (e.g., a database) of the code resource supplementation device 101.

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

[0086] Optionally, the code resource supplementation device 101 and the data storage device 103 can be two independently configured devices, or they can be integrated into the same device. When the code resource supplementation device 101 and the data storage device 103 are integrated into the same device, the data storage device 103 can be a storage module (e.g., a database) of the code resource supplementation device 101.

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

[0088] For ease of understanding, this application will be described using the example of the code resource supplementation device 101, the code resource storage device 102, and the data storage device 103 operating independently.

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

[0090] Figure 2 The diagram shown is a hardware structure schematic of a communication device provided in an embodiment of this 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 are connected via the bus 24.

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

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

[0093] The memory 22 can 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 magnetic 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 that can be accessed by a computer, but is not limited thereto.

[0094] In a possible implementation, the memory 22 can exist independently of the processor 21, and the memory 22 can be connected to the processor 21 through the bus 24, for storing instructions or program code. When the processor 21 invokes and executes the instructions or program code stored in the memory 22, the code number resource supplement method provided in the embodiments described below can be implemented.

[0095] In the embodiments of the present application, the software program stored in the memory 22 of the communication device is different, and therefore the functions implemented by the communication device are different. The functions performed by each device will be described in conjunction with the flowcharts below.

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

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

[0098] ​The bus 24 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, Figure 2 In the drawings, only one thick line is used to represent the bus, but this does not mean that there is only one bus or only one type of bus.

[0099] It should be noted that, Figure 2 The structure shown in the drawings does not constitute a limitation on the communication device, except Figure 2 The communication device can include more or fewer components than shown, or combine certain components, or different component arrangements, in addition to the components shown.

[0100] The code number resource supplementing method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0101] The code number resource supplementing method provided by the embodiments of the present application is applied to Figure 1 The code number resource supplementing device in the code number resource supplementing system shown as in the drawings, such as Figure 3 The code number resource supplementing method provided by the embodiments of the present application includes:

[0102] S301, the code number resource supplementing device acquires code number resource supplementing information.

[0103] The code number resource supplementing information includes service information and code number inventory.

[0104] The service information refers to the operation data of the operator.

[0105] The service information includes at least one of the number of accounts, the number of account cancellations, user activity, service volume, and single-user profit rate.

[0106] The number of accounts refers to the number of newly opened code numbers within a certain period of time.

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

[0108] The user activity is used to reflect the frequency and depth of user use of the service.

[0109] Optionally, if a certain user has a long monthly call duration and uses a large amount of data traffic, the user activity is high.

[0110] The service volume is the number and scale of completed communication services within a certain period of time.

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

[0112] Profit margin per user refers to the net profit earned from a single user.

[0113] The inventory of serial numbers includes the number of serial numbers unfrozen during the replenishment period, but excludes the number of serial numbers expected to be occupied during the replenishment period.

[0114] The replenishment period refers to the time required to replenish code resources. In one possible implementation, the code resource replenishment device needs to predict the code increment within a target time period based on business information, and determine whether code resource replenishment is necessary based on the code inventory. If replenishment is needed, the device acquires the required code resources. Therefore, the code resource replenishment device needs to obtain both business information and code inventory.

[0115] S302, the code resource supplementation equipment predicts the code increment within a target time period based on business information.

[0116] In one feasible approach, the code resource replenishment device can predict the code increment within a target time period based on business information, so that the code resource replenishment device can determine whether code resources need to be replenished based on the code increment and code inventory, and obtain the replenished code resources if code resources need to be replenished.

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

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

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

[0120] For example, a code resource supplementation device can predict the code increment for the following month based on business information in the third week of each month.

[0121] S303, the code resource replenishment device obtains replenished code resources based on the code increment and code inventory.

[0122] In one feasible approach, the code resource replenishment device can determine whether code resources need to be replenished based on the code increment and code inventory, and if replenishment is required, acquire the replenished code resources.

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

[0124] S401, the code number resource supplementing device inputs the service information into the code number increment prediction model to obtain the code number increment in the target time period.

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

[0126] In an implementable manner, 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 supplementing device determines whether the code number resource needs to be supplemented based on the code number increment and the code number inventory, and acquires the supplemented code number resource in the case that the code number resource needs to be supplemented.

[0127] Optionally, the code number resource supplementing device can input the service information into the code number increment prediction model to predict the code number increment in the target time period.

[0128] Optionally, the code number resource supplementing device can acquire the service information (including the number of new accounts and the number of closed accounts) of multiple historical periods, and determine the average value M of the service information of the multiple historical periods as the code number increment.

[0129] Optionally, the period can be set as the time length required for supplementing the code number resource, for example, the time period from submitting an application for supplementing the code number resource to supplementing the code number resource.

[0130] In some embodiments, the code number increment prediction model can be constructed by an electronic device, for example, a computer. Figure 5 As shown in the figure, the code number increment prediction model is trained in the following manner:

[0131] S501, the electronic device acquires a training set.

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

[0133] In an implementable 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 the training set, and constantly adjust the model parameters of the initial prediction model according to the initial prediction result and the training set data, to obtain the code number increment prediction model. Therefore, the electronic device needs to acquire the training set including the service information of multiple historical periods and the actual code number increment corresponding to the service information.

[0134] S502, the electronic device inputs the service information in the training set into the initial prediction model to determine an initial prediction result.

[0135] In one feasible approach, the electronic device can input service information from the training set into the initial prediction model and determine the initial prediction result. Based on the initial prediction result and the actual code increment in the training set, the electronic device can adjust the model parameters of the initial prediction model to obtain the code 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 increment. If 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 condition is met, thus obtaining the code increment prediction model.

[0137] In one feasible approach, the electronic device adjusts the model parameters of the initial prediction model based on the initial prediction results and the actual code increment to obtain the code increment prediction model.

[0138] Optionally, electronic devices can build a code increment prediction model based on neural networks.

[0139] Alternatively, 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), arranged in a hierarchical structure (input layer, hidden layer, output layer). Information is transmitted and processed through the connections between neurons. Each neuron receives input signals from other neurons, performs calculations on the input using an activation function, and generates an output signal that is then passed to subsequent neurons.

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

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

[0143] In some embodiments, combined with Figure 5 ,like Figure 6 As shown, in S502, the electronic device inputs the service information from the training set into the initial prediction model to determine the initial prediction result, specifically including:

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

[0145] The linear calculation result satisfies the following formula:

[0146]

[0147] wherein z represents a linear calculation result, w i represents a weight of the i-th service information in the service information of the plurality of historical periods, x i represents an information parameter of the i-th service information, b represents a bias term, and n represents a total number of service information in the service information of the plurality of historical periods.

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

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

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

[0151] The nonlinear feature is used to represent an initial prediction result.

[0152] Optionally, the nonlinear feature does not follow a linear relationship.

[0153] Optionally, the nonlinear feature has a multi-value property, that is, for the same input value, there can be different output values.

[0154] Optionally, the nonlinear feature has complexity and uncertainty.

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

[0156] Optionally, the activation function can be a sigmoid function, a hyperbolic tangent (Tanh) function, or a rectified linear unit (ReLU) function.

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

[0158]

[0159] wherein e is a natural constant, and is approximately equal to 2.71828.

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

[0161]

[0162] Where e is the natural constant, approximately equal to 2.71828.

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

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

[0165] Where 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 `score_predict` represents the initial prediction result obtained by the initial prediction model for the business information of the i-th historical period. j This represents the initial prediction result obtained by the initial prediction model for the business information of the j-th historical period, score_real i The score_real represents the actual code number increment corresponding to the business information in the i-th historical period. j Let represent the actual code increment corresponding to the business information in the j-th historical period, sign be the sign function, Loss be the loss value of the initial prediction model, and N be the total number of business information items in the sample set.

[0171] In some embodiments, combined with 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 equipment adjusts the model parameters of the initial prediction model based on the backpropagation algorithm and loss value.

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

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

[0175]

[0176] Where E represents the loss value, w i This represents the weight of the i-th business information item. Let represent the partial derivative of the loss value with respect to the weight of the i-th business information, a represent the initial prediction result, z represent the linear calculation result, f′(z) represent the derivative of the activation function, and x represent the partial derivative of the loss value with respect to the weight of the i-th business information. i This represents the information parameter for the i-th business information, and b represents the bias term. This 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] Where E represents the loss value, w i This represents the weight of the i-th business information item. z represents the partial derivative of the loss value with respect to the weight of the i-th business information. j This represents the business information of the next layer, f′(z i ) represents the derivative of the activation function, x i This represents the information parameter for the i-th business information, and b represents the bias term. This represents the partial derivative of the loss value with respect to the bias term.

[0180] Backpropagation is an algorithm used to train neural networks.

[0181] Optionally, after the neural network performs forward propagation to calculate the output, the output result is compared with the expected target value to obtain the loss value. Then, starting from the output layer, the loss value is propagated backward through the network layer by layer in the opposite direction to forward propagation, and the connection weights between neurons in each layer are adjusted according to certain rules to reduce the loss value and improve the network's performance and prediction accuracy.

[0182] In some embodiments, combined with Figure 4 ,like Figure 8 As shown in S303, the code resource replenishment device obtains replenished code resources based on the code increment and code inventory, specifically including:

[0183] S801, The code resource supplementation device determines the product of the code increment and the preset coefficient.

[0184] In an implementable manner, the supplementary code number resource also needs to consider the service information such as the service volume, and therefore, the product of the code number increment and the preset coefficient can be determined first, and the code number resource supplementing device needs to determine whether the code number resource needs to be supplemented based on the product and the code number inventory, so as to obtain the supplemented code number resource in the case that the code number resource needs to be supplemented.

[0185] For example, the code number resource supplementing device can multiply the code number increment M by the preset coefficient δ (which can also be referred to as an increaseable coefficient), and determine the product δM of the code number increment and the preset coefficient.

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

[0187] S802, the code number resource supplementing device sends a request message to the code number resource storage device in the case that the product is greater than the code number inventory.

[0188] The request message is used to request to obtain the supplemented code number resource.

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

[0190] The number of the supplemented code number resource is the difference between the product and the code number inventory.

[0191] The code number inventory includes the number of unfreezed code numbers in the supplementing period, and does not include the number of code numbers expected to be occupied in the supplementing period.

[0192] The supplementing period is the time required for supplementing the code number resource.

[0193] Specifically, the number of the supplemented code number resource satisfies the following formula:

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

[0195] A is used to represent the number of the supplemented code number resource, δM is used to represent the code number increment, B is used to represent the actual code number inventory (which can also be referred to as the idle code number), C is used to represent the number of code numbers expected to be occupied in the supplementing period, and D is used to represent the number of unfreezed code numbers in the supplementing period.

[0196] For example, in the case that the code number increment is 10000, the actual code number inventory is 2500, the number of code numbers expected to be occupied in the supplementing period is 1500, and the number of unfreezed code numbers in the supplementing period is 1000, the code number resource supplementing device determines that the number of the supplemented code number resource is equal to 10000-(2500-1500)-1000, that is, the code number resource supplementing device determines that the number of the supplemented code number resource is 8000.

[0197] In another example, when the code number increment is 15000, the actual code number stock is 10000, the code number to be occupied in the supplement period is 3000, and the code number to be unfrozen in the supplement period is 2000, the code number resource supplement device determines the number of the supplemented code number resources as 15000-(10000-3000)-2000, i.e., the number of the supplemented code number resources is 6000.

[0198] In an implementable manner, when the product is greater than the code number stock, the code number resource needs to be supplemented, and the code number resource supplement device needs to obtain the supplemented code number resource. When the product is less than or equal to the code number stock, the code number resource does not need to be supplemented.

[0199] Optionally, the request information further includes code number segment information of the target region and code number segment information of the code number to be unfrozen.

[0200] S803, the code number resource supplement device receives the supplemented code number resource sent by the code number resource storage device.

[0201] Optionally, in combination with Figure 1 When the product is greater than the code number stock, the code number resource supplement device can obtain the supplemented code number resource from the code number resource storage device.

[0202] In an implementable manner, first, the code number resource supplement device can send request information to the code number resource storage device. Then, the code number resource storage device sends the supplemented code number resource to the code number resource supplement device in response to the request information sent by the code number resource supplement device. Correspondingly, the code number resource supplement device can receive the supplemented code number resource sent by the code number resource storage device.

[0203] Optionally, the code number resource storage device can directly put the supplemented code number resource into the target region.

[0204] In some embodiments, in combination with Figure 8 As shown in the code number resource supplement method, the code number resource supplement method further includes: Figure 9

[0205] S901, the code number resource supplement device determines the code number segment of the supplemented code number resource according to the code number segment of the code number resource in the target region.

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

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

[0208] The actual supplemented code number segment is consistent with or inconsistent with the supplemented code number segment. ​

[0209] The code number resources in the target area include: code number resources not unfrozen in the target area, code number resources free in the target area, and code number resources occupied in the target area.

[0210] In an implementable manner, the code number resource supplementing device can determine the number segment of the supplemented code number resources according to the number segment of the code number resources in the target area, wherein the code number resources in the target area include code number resources not unfrozen in the target area, code number resources free in the target area, and code number resources occupied in the target area, so as to ensure that the code number resources in the target area after supplementing are relatively continuous.

[0211] For example, the number segment of the code number resources in the target area involves the following number segments: 12345610000 to 12345619999, 12345650000 to 12345659999, 12345673000 to 12345673999, 12345676000 to 12345676999, and 12345678000 to 12345678999. The code number resource supplementing device can determine the number segment of the supplemented code number resources as the above number segments.

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

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

[0214] Optionally, the code number resource supplementing device can send the number segment of the supplemented code number resources to the code number resource storage device. The code number resource storage device can determine the supplemented code number resources according to the number segment of the supplemented code number resources (which can also be referred to as a priority supplement number segment). The code number resource storage device can send the supplemented code number resources to the code number resource supplementing device.

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

[0216] The actually supplemented code number resources 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 supplement number segment includes the number segment of the code number resources in the target area.

[0218] The code number resources in the target area include: code number resources not unfrozen in the target area, code number resources free in the target area, and code number resources occupied in the target area.

[0219] In some embodiments, the priority of the number segment of the idle code number resource in the target area is higher than the priority of the unfreezed code number resource in the target area, and the priority of the unfreezed code number resource in the target area is higher than the priority of the occupied code number resource in the target area.

[0220] For example, when the number of the supplemented code number resource is 1000, and in the code number resource storage device, the number of the code number resource consistent with the number segment of the unfreezed code number resource in the target area is 200, the number of the code number resource consistent with the number segment of the idle code number resource in the target area is 700, and the number of the code number resource consistent with the number segment of the occupied code number resource in the target area is 500, the code number resource storage device can determine that the supplemented code number resource includes 700 code number resources consistent with the number segment of the idle code number resource in the target area, 200 code number resources consistent with the number segment of the unfreezed code number resource in the target area, and 100 code number resources consistent with the number segment of the occupied code number resource in the target area.

[0221] For another example, when the number of the supplemented code number resource is 5000, and in the code number resource storage device, the number of the code number resource consistent with the number segment of the unfreezed code number resource in the target area is 3000, the number of the code number resource consistent with the number segment of the idle code number resource in the target area is 1000, and the number of the code number resource consistent with the number segment of the occupied code number resource in the target area is 2000, the code number resource storage device can determine that the supplemented code number resource includes 3000 code number resources consistent with the number segment of the idle code number resource in the target area, 1000 code number resources consistent with the number segment of the unfreezed code number resource in the target area, and 1000 code number resources consistent with the number segment of the occupied code number resource in the target area.

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

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

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

[0225] In some embodiments, in combination with Figure 8 As shown in the code number resource supplement method further comprises: Figure 10

[0226] S1001, the code number resource supplement 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 an implementable manner, the code number resource supplement device can determine 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, 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, avoiding that the code number resources are more and more dispersed as a large number of services are carried out.

[0228] In some embodiments, the code number resource supplement 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, specifically including:

[0229] In the case that the difference between the number of the code number resources belonging to the target number segment and the number of the supplemented code number resources is less than the preset difference value, the code number resource supplement 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 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 in the target time period.

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

[0232] Optionally, the service type and the number segment of the code number resources have a corresponding relationship. One number segment of code number corresponds to one service type, or two or more service types correspond to one number segment of code number.

[0233] Optionally, the code number resource supplement device can determine the target number segment according to the number segment of the code number resources corresponding to the service type, and the target number segment is consistent with the number segment of the code number resources corresponding to the service type. ​

[0234] For example, the code number resource corresponding to the business type is in the number segment of 12345670000 to 12378679999, and the target number segment is determined as 12345670000 to 12345679999.

[0235] Optionally, the code number resource supplementing device can determine the target number segment according to the number segment of the code number resource unfreezed in the target time segment, and the target number segment is consistent with the number segment of the code number resource unfreezed in the target time segment.

[0236] For example, the code numbers of the code number resource unfreezed in the target time segment are scattered in the number segment of 12345678000 to 12378678999, and the target number segment is determined as 12345678000 to 12345678999.

[0237] Optionally, the code number resource supplementing device can also determine the target number segment according to the number segment of the occupied code number resource, and the target number segment is consistent with the number segment of the occupied code number resource.

[0238] For example, the code numbers of the occupied code number resource are scattered in the number segment of 12345678900 to 12378678999, and the target number segment is determined as 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 number segments of the same business are consistent.

[0241] Optionally, the code number resource storage device can determine the supplemented code number resource according to the target number segment and the number of the supplemented code number resource.

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

[0243] For example, in the case that the target number segment is 12345670000 to 12345679999, the number of the supplemented code number resource is 1500, and all the code number resources in the target number segment exist in the code number resource storage device, the code number resource storage device can send 1500 code number resources in the number segment of 12345670000 to 12345671499 to the code number resource supplementing device.

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

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

[0246] In an example, the target number segment is 12345670000-12345679999, the number of code number resources to be supplemented is 1500, and only 1300 code number resources of the target number segment exist in the code number resource storage device. In this case, the code number resource storage device sends the 1300 code number resources of the target number segment and 200 code number resources of other number segments to the code number resource supplement device.

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

[0248] In some embodiments, the priority supplement number segment includes the number segment of the code number resources corresponding to a service type, the number segment of the code number resources unfrozen in a target time period, and the number segment of the code number resources in a target area.

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

[0250] Exemplarily, in the case that the number segments of the code number resources in the target area, the number segments of the code number resources corresponding to the service type, and the number segments of the code number resources unfrozen in the target time period do not have overlapping number segments, the number of the code numbers of the supplemented code number resources is 1000, and the number of the code number resources consistent with the number segments of the code number resources in the target area in the code number resource storage device is 200, the number of the code number resources consistent with the number segments of the code number resources corresponding to the service type is 700, and the number of the code number resources consistent with the number segments of the code number resources unfrozen in the target time period is 500, the code number resource storage device can determine that the supplemented code number resources include: 200 code number resources consistent with the number segments of the code number resources in the target area, 700 code number resources consistent with the number segments of the code number resources corresponding to the service type, and 100 code number resources consistent with the number segments of the code number resources unfrozen in the target time period.

[0251] Exemplarily, in the case that the number segments of the code number resources in the target area, the number segments of the code number resources corresponding to the service type, and the number segments of the code number resources unfrozen in the target time period do not have overlapping number segments, the number of the code numbers of the supplemented code number resources is 5000, and the number of the code number resources consistent with the number segments of the code number resources in the target area in the code number resource storage device is 4000, the number of the code number resources consistent with the number segments of the code number resources corresponding to the service type is 2000, and the number of the code number resources consistent with the number segments of the code number resources unfrozen in the target time period is 2000, the code number resource storage device can determine that the supplemented code number resources include: 4000 code number resources consistent with the number segments of the code number resources in the target area and 1000 code number resources consistent with the number segments of the code number resources corresponding to the service type.

[0252] The above mainly introduces the scheme provided by the embodiments of the application from the perspective of the method. In order to implement the above functions, it contains the hardware structure and / or software module 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 the examples described in the embodiments disclosed in the present text, the application can be realized in the form of hardware or the combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driven hardware depends on the specific application and design constraint conditions of the technical scheme. The professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the application.

[0253] The embodiments of the present application can divide the functional modules of the code number resource supplementing device according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing module. The integrated module can be realized in the form of hardware or in the form of a software functional module. Optionally, the division of the modules in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division mode can be used.

[0254] Figure 11 A structure diagram of a code number resource supplementing device provided by an embodiment of the present application is shown. As shown in Figure 11 The code number resource supplementing device includes a communication unit 1101 and a processing unit 1102.

[0255] The communication unit 1101 is configured to obtain code number resource supplementing information. The code number resource supplementing information includes service information and a code number inventory. The processing unit is configured to predict a code number increment in a target time period based on the service information. The processing unit is further configured to obtain supplemented code number resources based on the code number increment and the code number inventory.

[0256] Optionally, the processing unit 1102 is specifically configured to input the service information into a code number increment prediction model to obtain the code number increment in the target time period. The service information includes at least one of the following: a number of accounts opened, a number of accounts closed, a user activity level, a service volume, and a single user profit rate.

[0257] Optionally, the code number increment prediction model is obtained by the following method: obtaining a training set. The training set includes service information of a plurality of historical periods and actual code number increments corresponding to the service information. Inputting the service information in the training set into an initial prediction model to determine an initial prediction result. Based on the initial prediction result and the actual code number increment, a loss value of the initial prediction model is determined, and in the case that the loss value does not satisfy a preset condition, the model parameters of the initial prediction model are adjusted based on the loss value, and the iterative training based on the training set is continued until a model convergence condition is satisfied, and the code number increment prediction model is obtained.

[0258] Optionally, inputting the service information in the training set into the initial prediction model to determine the initial prediction result includes: performing linear calculation on the service information in the training set to obtain a linear calculation result. The linear calculation result satisfies the following formula:

[0259]

[0260] wherein z represents the linear calculation result, w i represents a weight of the i th service information in the plurality of historical periods of service information, x iinformation parameters of the i-th service information, b represents a bias term, and n represents a total number of service information in the plurality of historical period service information; performing nonlinear transformation on the linear calculation result based on an activation function to obtain a nonlinear feature; and using the nonlinear feature to represent the initial prediction result.

[0261] Optionally, based on the initial prediction result and the actual code number increment, a loss value of the initial prediction model is determined, including that the loss value satisfies the following formula:

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

[0263]

[0264] score_predict i represents an initial prediction result predicted by the initial prediction model for the i-th historical period service information, score_predict j represents an initial prediction result predicted by the initial prediction model for the j-th historical period service information, score_real i represents a corresponding actual code number increment of the i-th historical period service information, score_real j represents a corresponding actual code number increment of the j-th historical period service information, sign is a sign function, Loss is the loss value of the initial prediction model, and N is a total number of service information in the sample set.

[0265] Optionally, based on the loss value, a model parameter of the initial prediction model is adjusted, including that the model parameter of the initial prediction model is adjusted based on an error back propagation algorithm and the loss value; the model parameter of the initial prediction model includes a model parameter of an output layer neuron and a model parameter of a hidden layer neuron; and the model parameter of the output layer neuron satisfies the following formula:

[0266]

[0267] score_predict i represents a weight of the i-th service information, represents a partial derivative of the loss value with respect to the weight of the i-th service information, a represents the initial prediction result, z represents the linear calculation result, f'(z) represents a derivative of the activation function, x i represents an information parameter of the i-th service information, b represents a bias term, represents a partial derivative of the loss value with respect to the bias term; and the model parameter of the output layer neuron satisfies the following formula:

[0268]

[0269] wherein E represents a loss value, w i represents a weight of the i-th service information, represents a partial derivative of the loss value with respect to the weight of the i-th service information, z j represents service information of a next layer, f'(z i represents a derivative of an activation function, x i represents an information parameter of the i-th service information, b represents a bias term, represents a partial derivative of the loss value with respect to the bias term.

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

[0271] Optionally, the code number inventory includes a quantity of unfreezed code numbers in a supplement period, and does not include a quantity of code numbers expected to be occupied in the supplement period; and the supplement period is a time required for supplementing the code number resources.

[0272] Optionally, the processing unit 1102 is further configured to: determine the number segment of the supplemented code number resources according to the number segment of the code number resources in the target region; the number segment of the supplemented code number resources is a priority supplement 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 region; 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; and the code number resources in the target region include: unfreezed code number resources in the target region, idle code number resources in the target region, and occupied code number resources in the target region.

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

[0274] Optionally, the processing unit 1102 is specifically configured to: in a case where a difference between the quantity of the code number resources belonging to the target number segment and the quantity of the supplemented code number resources is less than a preset difference value, determine that the number segment of the supplemented code number resources is 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 a number segment of the code number resources corresponding to the service type, and / or the target number segment is consistent with a number segment of unfreezed code number resources in a target time period.

[0275] The embodiment of the present application further provides a computer readable storage medium, which comprises computer execution instructions, and when the computer execution instructions run on a computer, the computer execution instructions make the computer execute the code number resource supplement method provided by the above embodiment.

[0276] The embodiment of the present application further provides a computer program, which can be directly loaded into a memory and contains software codes, and the computer program can realize the code number resource supplement method provided by the above embodiment after being loaded and executed by a computer.

[0277] Those skilled in the art can understand that the functions described in the above one or more examples can be realized by hardware, software, firmware or any combination thereof. When realized by software, the functions can be stored in a computer readable medium or transmitted as one or more instructions or codes on a computer readable medium. The computer readable medium includes a computer readable storage medium and a communication medium, wherein the communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0278] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

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

[0280] In addition, each of the functional units in the embodiments of the present application can be integrated in one processing unit, or each unit can exist alone physically, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or software function units. When the integrated unit is implemented in the form of software function units and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present application essentially, or the part that contributes to the prior art, or all or a part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a number of instructions to make a device (which can be a single chip, chip, etc.) or a processor execute all or a part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, and various other storage media that can store program codes.

[0281] The above describes only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for supplementing code resources, characterized in that, include: Obtain supplementary information on code number resources; The code number resource supplement information includes: business information and code number inventory; The business information is input into the code number increment prediction model to obtain the code number increment within the target time period; Based on the code number increment and the code number inventory, obtain the supplementary code number resources; The code number increment prediction model is trained in the following way: Obtain a training set; the training set includes: business information from multiple historical periods and the actual code number increments corresponding to the business information; The business information from the training set is input 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. If 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 condition is met, thus obtaining the code number increment prediction model. The loss value of the code number increment prediction model satisfies the following formula: Among them, score_predict i The initial prediction result, score_predict, represents the prediction result obtained by the initial prediction model for the business information of the i-th historical period. j The initial prediction result obtained by the initial prediction model for the business information of the j-th historical period is represented by score_real. i The score_real represents the actual code number increment corresponding to the service information of the i-th historical period. j The actual code increment corresponding to the service information in the j-th historical period is represented by sign, sign is the sign function, loss is the loss value of the initial prediction model, and N is the total number of service information items in the training set.

2. The method according to claim 1, characterized in that, The business information includes at least one of the following: number of accounts opened, number of accounts closed, user activity, business volume, and profit margin per user.

3. The method according to claim 1, characterized in that, The step of inputting the business information from the training set into the initial prediction model to determine the initial prediction result includes: Linear calculations are performed on the business information in the training set to obtain linear calculation results; the linear calculation results satisfy the following formula: Where z represents the result of the linear calculation, w i x represents the weight of the i-th business information among the business information of the multiple historical periods. i The information parameter represents the i-th business information, b represents the bias term, 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 the activation function to obtain nonlinear features; the nonlinear features are used to represent the initial prediction result.

4. The method according to claim 1, characterized in that, The step of adjusting the model parameters of the initial prediction model based on the loss value includes: The model parameters of the initial prediction model are adjusted based on the backpropagation algorithm and the loss value; the model parameters of the initial prediction model include the model parameters of the output layer neurons and the model parameters of the hidden layer neurons. The model parameters of the output layer neurons satisfy the following formula: Where E represents the loss value, w i This represents the weight of the i-th business information item. Let denot , where 'a' represents the partial derivative of the loss value with respect to the weight of the i-th business information, , where 'z' represents the initial prediction result, and , where 'z' represents the linear calculation result. Let x represent the derivative of the activation function. i This represents the information parameter of the i-th business information, where b represents the bias term. This 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 This represents the weight of the i-th business information. z represents the partial derivative of the loss value with respect to the weight of the i-th business information. j This indicates the business information of the next layer. Let x represent the derivative of the activation function. i b represents the information parameter of the i-th business information, and b represents the bias term. This represents the partial derivative of the loss value with respect to the bias term.

5. The method according to claim 1, characterized in that, The step of obtaining supplementary code number resources based on the code number increment and the code number inventory includes: Determine the product of the code increment and the preset coefficient; If 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 the acquisition of 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 supplementary code resources sent by the code resource storage device.

6. The method according to claim 5, characterized in that, The code inventory includes the number of codes unfrozen during the replenishment period, but does not include the number of codes expected to be occupied during the replenishment period; the replenishment period is the time required to replenish code resources.

7. The method according to claim 5, characterized in that, The method further includes: The number segment of the supplementary number resource is determined based on the number segment of the number resource in the target area; the number segment of the supplementary number resource is a priority supplementary number segment; the number segment of the supplementary number resource is consistent with the number segment of the number resource in the target area; the number segment of the actually supplemented number resource may be consistent with or inconsistent with the number segment of the supplementary number resource; the number resources in the target area include: unfrozen number resources in the target area, idle number resources in the target area, and occupied number resources in the target area.

8. The method according to claim 5, characterized in that, The method further includes: The number segment of the supplementary number resources is determined based on the service type of the number resources and the quantity of the supplementary number resources.

9. The method according to claim 8, characterized in that, The step of determining the number segment of the supplementary number resources based on the service type of the number resources and the quantity of the supplementary number resources includes: If 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, the number segment of the supplemented code resources is determined to be the target number segment; the code resource storage device includes code resources of the target number segment; the target number segment is consistent with the number segment of code resources corresponding to the service type, and / or, the target number segment is consistent with the number segment of code resources unfrozen within the target time period.

10. A code resource supplementation device, characterized in that, The code resource supplementation device includes: a communication unit and a processing unit; The communication unit is used to acquire code number resource supplement information; the code number resource supplement information includes: service information and code number inventory. The processing unit is used to input the business information into the code number increment prediction model to obtain the code number increment within the target time period. The processing unit is also used to obtain supplementary code number resources based on the code number increment and the code number inventory. The code number increment prediction model is trained in the following way: Obtain a training set; the training set includes: business information from multiple historical periods and the actual code number increments corresponding to the business information; The business information from the training set is input 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. If 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 condition is met, thus obtaining the code number increment prediction model. The loss value of the code number increment prediction model satisfies the following formula: Among them, score_predict i The initial prediction result, score_predict, represents the prediction result obtained by the initial prediction model for the business information of the i-th historical period. j The initial prediction result obtained by the initial prediction model for the business information of the j-th historical period is represented by score_real. i The score_real represents the actual code number increment corresponding to the service information of the i-th historical period. j The actual code increment corresponding to the service information in the j-th historical period is represented by sign, sign is the sign function, loss is the loss value of the initial prediction model, and N is the total number of service information items in the training set.

11. A code resource supplementation device, characterized in that, The device includes a memory and a processor; the memory stores computer execution instructions, and the processor is connected to the memory via a bus; when the device is running, the processor executes the computer execution instructions stored in the memory, causing the device to perform the method as described in any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer-executable instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-9.

13. A computer program product, characterized in that, The computer program product includes: a computer program or instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-9.

Citation Information

Patent Citations

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

    CN104125555A

  • ESIM resource management platform and management method

    CN110996339A