Flow prediction method, device, equipment, medium and program product
By using the preset target prediction model and error value correction technology, the problem of inaccurate base station cell traffic prediction in the existing technology is solved, and accurate prediction of base station cell traffic usage and resource optimization are achieved.
Patent Information
- Application Number
- CN202410488024.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-04-22
AI Technical Summary
Existing traffic prediction models cannot accurately predict the traffic usage of base station cells, resulting in the inability to avoid resource waste while ensuring user experience quality.
By using the preset target prediction model, the traffic usage of the target community is predicted, the prediction error value of the traffic indicator is obtained, and corrections are made based on these error values to improve the prediction accuracy.
It achieves accurate prediction of base station cell traffic usage, ensuring user experience quality while avoiding resource waste.
Smart Images

Figure CN118828632A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a method, device, equipment, medium and program product for traffic prediction. Background Art
[0002] As the carrier of mobile communication and network services, base stations undertake important functions such as communication connection with user terminals, signal transmission, and signal processing. Network equipment providers can use traffic prediction models to predict the traffic usage of base station cells in the future, thereby understanding the traffic trends of base station cells and dynamically expanding or reducing the capacity of base station cell communication equipment, ensuring the user experience quality while avoiding resource waste.
[0003] Existing traffic prediction models often only predict a single indicator when predicting traffic usage in base station cells, which cannot reflect traffic trends well and have little reference value for expanding or reducing the capacity of base station cell communication equipment. In addition, the model has certain prediction errors and the prediction results are not accurate enough, making it impossible to accurately expand or reduce the capacity of base station cell communication equipment based on traffic predictions and traffic trends, and unable to avoid wasting resources while ensuring the user experience quality.
[0004] Therefore, the problem with the prior art is that the existing traffic prediction model cannot accurately predict the traffic usage of the base station cell, and cannot avoid the waste of resources while ensuring the user experience quality. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, device, medium and program product for traffic prediction, which solve the problem that the existing traffic prediction model cannot accurately predict the traffic usage of base station cells and cannot avoid waste of resources while ensuring the user experience quality.
[0006] In a first aspect, an embodiment of the present application provides a method for traffic prediction, including:
[0007] Using a preset target prediction model, predicting the traffic usage of the target cell in a first preset time period, and obtaining a first prediction value of a target traffic index in the first preset time period, wherein there are multiple target traffic indexes;
[0008] In the correspondence between the preset flow index and the prediction error value, a target prediction error value corresponding to the target flow index is obtained, wherein the prediction error value is an error value of the flow index predicted by the target prediction model;
[0009] A first target prediction value of the target flow index within a first preset time period is determined according to the first prediction value and the target prediction error value.
[0010] In a possible implementation of the first aspect, the target traffic indicator includes at least two of a mobile network traffic value, a resource utilization rate, and a number of user connections.
[0011] In a possible implementation of the first aspect, before using a preset target prediction model to predict traffic usage within a first preset time period to obtain a first predicted value of a target traffic index within the first preset time period, the method further includes:
[0012] Obtaining a real value of a target flow index in a first historical period and a real value in a second target preset period, wherein there are multiple first historical periods, and multiple first historical periods constitute a first target historical period;
[0013] Using a preset initial prediction model, based on the real value in the first historical period, predict the traffic usage of the target cell in a second preset period, and obtain a second prediction value of the target traffic index in the second preset period, wherein there are multiple second preset periods, and the multiple second preset periods constitute a second target preset period;
[0014] Adding the second predicted values of the target flow index in a plurality of second preset time periods to obtain a third predicted value of the target flow index in the second target preset time period;
[0015] According to the actual value of the target flow index within the second target preset time period and the third predicted value, the initial prediction model is corrected to obtain the target prediction model.
[0016] In a possible implementation of the first aspect, a true value of the target flow index in the first historical period and a true value of the target flow index in the second target preset period are both greater than or equal to 0 and less than or equal to 1; the method further includes:
[0017] A first target prediction value of the target flow index within the first preset time period is denormalized to obtain a second target prediction value of the target flow index within the first preset time period.
[0018] In a possible implementation of the first aspect, there are M first historical time periods, where M is a positive integer; before obtaining a true value of the target flow index in the first historical time period and a true value of the second target preset time period, the method further includes:
[0019] Obtaining N real values of the target traffic index in the second target historical period, wherein the second target historical period includes N first historical periods, N is a positive integer, and N is less than M;
[0020] Based on the preset expansion rules, the real value of the target traffic index in the M first historical periods is generated.
[0021] In a possible implementation of the first aspect, before obtaining N real values of the target traffic indicator in the second target historical period, the method further includes:
[0022] Obtain N original values of the target traffic indicator in the second target historical period;
[0023] Perform anomaly detection on the original value according to a preset anomaly detection rule to obtain a target detection result, wherein the target detection result includes an anomaly of the original value;
[0024] When the target detection result is that the original value is abnormal, the abnormal original value is replaced with a normal value according to the preset interpolation rule to obtain N real values of the target flow index in the second target historical period.
[0025] In a possible implementation of the first aspect, there are multiple anomaly detection rules; performing anomaly detection on the original value according to the preset anomaly detection rule to obtain a target detection result includes:
[0026] Perform anomaly detection on the original value according to multiple anomaly detection rules to obtain multiple sub-detection results;
[0027] The number of target sub-detection results is compared with a preset number to obtain a target detection result, wherein the target sub-detection result is a sub-detection result with an abnormal original value.
[0028] Based on the same inventive concept, in a second aspect, an embodiment of the present application further provides a flow prediction device, including:
[0029] A prediction module, used to predict the traffic usage of the target cell within a first preset time period using a preset target prediction model, and obtain a first prediction value of a target traffic index within the first preset time period, wherein there are multiple target traffic indexes;
[0030] An acquisition module, used to acquire a target prediction error value corresponding to a target flow index in a correspondence relationship between a preset flow index and a prediction error value, wherein the prediction error value is an error value of the flow index predicted by a target prediction model;
[0031] The determination module is used to determine a first target prediction value of a target flow index within a first preset time period according to the first prediction value and the target prediction error value.
[0032] Based on the same inventive concept, in the third aspect, an embodiment of the present application also provides a device for traffic prediction, which includes a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the traffic prediction method in the first aspect, or any possible implementation method in the first aspect.
[0033] Based on the same inventive concept, in the fourth aspect, an embodiment of the present application also provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for traffic prediction in the first aspect, or any possible implementation method in the first aspect, is implemented.
[0034] Based on the same inventive concept, in the fifth aspect, an embodiment of the present application also provides a computer program product. When the instructions in the computer program product are executed by the processor of the device, the device is able to execute the traffic prediction method in the first aspect, or any possible implementation method of the first aspect.
[0035] The traffic prediction method, device, equipment, medium and program product of the embodiments of the present application, the method uses a preset target prediction model to predict the traffic usage of the target cell within a first preset time period, thereby obtaining a first prediction value of the target traffic index within the first preset time period, wherein there are multiple target traffic indicators, and then in the correspondence between the preset traffic indicator and the prediction error value, the target prediction error value corresponding to the target traffic indicator can be obtained, wherein the prediction error value is the error value of the traffic indicator predicted by the target prediction model, and then according to the first prediction value of the target traffic indicator and the corresponding target prediction error value, the first target prediction value of the target traffic indicator within the first preset time period can be determined, which is equivalent to compensating for the error of the target traffic indicator, thereby improving the prediction accuracy of the model for each target traffic indicator, and can accurately predict the traffic usage of the base station cell, so that the network equipment provider can accurately grasp the traffic trend of the base station cell, and can accurately expand and shrink the communication equipment of the base station cell, thereby ensuring the user experience quality while avoiding waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0037] Figure 1 This is a flow chart of a method for traffic prediction provided by an embodiment of the present application;
[0038] Figure 2 This is another flow chart of the method for traffic prediction provided by the embodiment of the present application;
[0039] Figure 3 It is a flow chart of expanding a sample data set in the method for traffic prediction provided in an embodiment of the present application;
[0040] Figure 4This is a flow chart of preprocessing a sample data set in the method for traffic prediction provided in an embodiment of the present application;
[0041] Figure 5 It is a schematic diagram of the training process of the target prediction model in the method for traffic prediction provided in an embodiment of the present application;
[0042] Figure 6 This is a flow chart of detecting abnormal values in the method for traffic prediction provided in an embodiment of the present application;
[0043] Figure 7 It is a structural schematic diagram of a flow prediction device provided in an embodiment of the present application;
[0044] Figure 8 It is a structural diagram of a traffic prediction device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0046] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0047] It is obvious to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit or scope of the present application. Therefore, the present application is intended to cover modifications and changes of the present application that fall within the scope of the corresponding claims (technical solutions for protection) and their equivalents. It should be noted that the implementation methods provided in the embodiments of the present application can be combined with each other without contradiction.
[0048] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:
[0049] As described in the background technology, as a carrier of mobile communications and network services, base stations undertake important functions such as communication connection with user terminals, signal transmission, and signal processing. Network equipment providers can use traffic prediction models to predict the traffic usage of base station cells in the future, thereby understanding the traffic trends of base station cells and dynamically expanding or reducing the capacity of base station cell communication equipment, ensuring the user experience quality while avoiding resource waste.
[0050] When predicting the traffic usage of base station cells, existing traffic prediction models often only predict a single indicator, cannot screen out multiple features closely related to traffic, cannot reflect the essential changing laws of network traffic, cannot reflect traffic trends well, and have little reference value for expanding or shrinking the communication equipment of base station cells. In addition, the model has a certain prediction error, and the prediction results are not accurate enough, so it is impossible to accurately expand or shrink the communication equipment of base station cells according to traffic predictions and traffic trends, and it is impossible to avoid wasting resources while ensuring the user's quality of experience. Therefore, the existing traffic prediction model cannot accurately predict the traffic usage of base station cells, and cannot avoid wasting resources while ensuring the user's quality of experience.
[0051] Based on this, the embodiments of the present application provide a method, device, equipment, medium and program product for traffic prediction, which can solve the problem that the existing traffic prediction model cannot accurately predict the traffic usage of base station cells and cannot avoid waste of resources while ensuring the user experience quality.
[0052] The flow prediction method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0053] Figure 1 is a flow chart of a method for traffic prediction provided by an embodiment of the present application. Figure 1 As shown, the method may include steps S110 to S130.
[0054] First, step S110 is introduced.
[0055] S110, using a preset target prediction model, predicting the traffic usage of the target cell within a first preset time period, and obtaining a first prediction value of a target traffic index within the first preset time period, wherein there are multiple target traffic indexes.
[0056] The target prediction model refers to a prediction model that is trained in advance and can be used to predict the traffic usage of the target cell within a first preset time period.
[0057] The target cell refers to the residential community covered by the base station.
[0058] The first preset time period refers to a period of time in the future, for example, it may be 1 week, 2 weeks, 1 month, etc. in the future. The length of the first preset time period can be set according to user needs.
[0059] The first prediction value refers to the prediction value of the target traffic indicator in the first preset time period. If there are multiple target traffic indicators, each target traffic indicator corresponds to a first prediction value. For example, the target traffic indicator is the mobile network traffic value, and the first prediction value of the mobile network traffic value in the first preset time period is 10G. For another example, the target traffic indicator is the resource utilization rate, and the first prediction value of the resource utilization rate in the first preset time period is 70%.
[0060] Specifically, step S110 can be understood as using the trained preset target prediction model to predict the traffic usage of the target cell covered by the target base station within the first preset time period, and obtain the traffic usage of the target cell within the first preset time period, that is, to obtain the first predicted value of each target traffic indicator within the first preset time period.
[0061] In some embodiments, the target traffic indicator includes at least two of a mobile network traffic value, a resource utilization rate, and a number of user connections.
[0062] The mobile network traffic value refers to the mobile network traffic value of the target cell.
[0063] Resource utilization refers to the ratio of resources actually used by users to the total flow of available resources.
[0064] The number of user connections refers to the number of users connected to the base station in the target cell.
[0065] Specifically, the target traffic index may include at least two of the mobile network traffic value, resource utilization rate, and the number of user connections. Moreover, the inventor has found through research that the resource utilization rate and the number of user connections are both features closely related to traffic, which can reflect the essential change law of network traffic, can well reflect the traffic trend, and have a high reference value for the expansion or reduction of base station cell communication equipment. Therefore, when predicting the traffic usage of the target cell within the first preset time period, multiple indicators, such as the mobile network traffic value, resource utilization rate, and the number of user connections, can be predicted. According to the multiple indicators, the traffic trend of the target cell can be better grasped, and the base station cell communication equipment can be accurately expanded or reduced.
[0066] Next, step S120 is described.
[0067] S120, obtaining a target prediction error value corresponding to the target flow index in a preset correspondence relationship between the flow index and the prediction error value, wherein the prediction error value is an error value of the flow index predicted by the target prediction model.
[0068] The prediction error value refers to the prediction error value of the trained target prediction model when predicting each target flow index. The prediction error value of the target prediction model is different when predicting different target flow indexes, so a corresponding relationship between the flow index and the prediction error value is generated.
[0069] Specifically, step S120 can be understood as obtaining a target prediction error value corresponding to a target flow index in the correspondence between a preset flow index and a prediction error value of a flow index predicted by a target prediction model, wherein each target flow index corresponds to a target prediction error value.
[0070] Next, step S130 is described.
[0071] S130: Determine a first target prediction value of a target flow index within a first preset time period according to the first prediction value and the target prediction error value.
[0072] Among them, the first prediction value and the target prediction error value are the prediction value and prediction error value corresponding to the same target flow index. In other words, the target flow index_1 corresponds to (first prediction value_1, target prediction error_1), the target flow index_2 corresponds to (first prediction_2, target prediction error_2), the target flow index_3 corresponds to (first prediction_3, target prediction error_3), and so on.
[0073] The inventors have discovered that since the target prediction model has different prediction error values when predicting different target flow indicators, that is, different flow indicators have different prediction accuracy, the prediction value corresponding to each target flow indicator can be combined with the error value respectively, thereby compensating for the error of each target flow indicator and improving the prediction accuracy of each target flow indicator.
[0074] The first target prediction value refers to the final prediction value after the prediction value corresponding to the target flow index is combined with the error value. Each target flow index corresponds to a final first target prediction value.
[0075] Specifically, step S130 can be understood as, according to the first prediction value and the target prediction error value corresponding to the target flow index, that is, the prediction value and the prediction error value corresponding to the same target flow index, the first target prediction value of the target flow index in the first preset period can be determined. For example, the target flow index is the mobile network flow value, the first prediction value of the mobile network flow value in the first preset period is 200G, and the prediction error value of the target prediction model when predicting the mobile network flow value is -2% (that is, the first prediction value is too low), then the final prediction value of the mobile network flow value can be determined to be 200×(1+2%)=204G, that is, the first target prediction value of the mobile network flow value in the first preset period is 204G. For another example, the target flow index is the resource utilization rate, the first prediction value of the resource utilization rate in the first preset period is 65%, and the prediction error value of the target prediction model when predicting the resource utilization rate is +3% (that is, the first prediction value is too high), then the final prediction value of the resource utilization rate can be determined to be 65%×(1-3%)=63%, that is, the first target prediction value of the resource utilization rate in the first preset period is 63%.
[0076] According to the traffic prediction method provided in the embodiment of the present application, by utilizing a preset target prediction model, the traffic usage of the target cell within the first preset time period can be predicted, thereby obtaining a first prediction value of the target traffic index within the first preset time period, and then in the correspondence between the preset traffic index and the prediction error value, the target prediction error value corresponding to the target traffic index can be obtained, wherein the prediction error value is the error value of the traffic index predicted by the target prediction model, and then according to the first prediction value of the target traffic index and the corresponding target prediction error value, the first target prediction value of the target traffic index within the first preset time period can be determined, which is equivalent to compensating and correcting the error of the target traffic index, thereby improving the prediction accuracy of each target traffic index of the model, and being able to accurately predict the traffic usage of the base station cell, so that the network equipment provider can accurately grasp the traffic trend of the base station cell and can accurately expand and shrink the communication equipment of the base station cell, thereby avoiding waste of resources while ensuring the user experience quality.
[0077] The above introduces the specific implementation method of using the pre-trained target prediction model in steps S110 to S130 to determine the first target prediction value of the target traffic indicator within the first preset time period. Next, the specific training process of the target prediction model before using the target prediction model in step S110 is introduced.
[0078] In some embodiments, Figure 2 As shown, in step S110, before predicting the traffic usage in the first preset time period using the preset target prediction model and obtaining the first predicted value of the target traffic index in the first preset time period, the method further includes:
[0079] S141, obtaining a real value of a target flow index in a first historical period and a real value in a second target preset period, wherein there are multiple first historical periods, and the multiple first historical periods constitute a first target historical period;
[0080] S142, using a preset initial prediction model, based on the real value in the first historical period, predicting the traffic usage of the target cell in a second preset period, and obtaining a second prediction value of the target traffic index in the second preset period, wherein there are multiple second preset periods, and the multiple second preset periods constitute a second target preset period;
[0081] S143, adding the second prediction values of the target flow index in a plurality of second preset time periods to obtain a third prediction value of the target flow index in the second target preset time period;
[0082] S144, according to the actual value of the target flow index within the second target preset time period and the third predicted value, the initial prediction model is modified to obtain a target prediction model.
[0083] Among them, the first target historical period can include multiple consecutive first historical periods, and the duration of the first historical period can be set according to demand. For example, the first target historical period consists of 10 first historical periods, then "first target historical period = first historical period_1 + first historical period_2 + first historical period_3 + ... + first historical period_10". For example, the first target historical period is from January to November 2033, and the duration of each first historical period is 1 month, then the first target historical period = January + February + ... + November.
[0084] The real value of the target flow indicator in the first historical period means that the target flow indicator corresponds to a real value in each first historical period, which is a known value and reflects the actual historical usage of the target flow indicator.
[0085] For example, the first target historical period is from January to November 2033, the duration of each first historical period is 1 month, the target traffic indicator is the traffic value of the mobile network, and the actual values of the target traffic indicator of the target cell in multiple first historical periods are: 300G actually used in January 2033, 203G actually used in February 2033, 120G actually used in March 2033,..., 55G actually used in November 2033.
[0086] The second target preset period may include multiple consecutive second preset periods, and the duration of the second preset period may be set as required. For example, the second target preset period consists of 10 second preset periods, then "second target preset period = second preset period_1 + second preset period_2 + second preset period_3 + ... + second preset period_10". For example, the second target preset period is from February to December 2033, and the duration of each second preset period is 1 month, then the second target preset period = February + March + ... + December.
[0087] The true value within the second target preset period refers to the historical actual value of the target traffic indicator within the second target preset period. It is a known total value and is used as the result label for supervised training of the initial prediction model. It is used to correct the parameters of the initial prediction model to obtain more accurate prediction results.
[0088] For example, the second target preset time period is from February to December 2033, and the duration of each second preset time period is 1 month. The initial prediction model is used to predict the target traffic index of each second preset time period based on the true value of the first historical time period, and multiple prediction values (i.e., multiple second prediction values) are obtained, namely: 150G is expected to be used in February 2033, 100G is expected to be used in March 2033,..., 50G is expected to be used in December 2033. The multiple second prediction values are added together to obtain a total prediction value of the second target preset time period from February to December 2033 of 150+100+...+50=900G, which is the total prediction value from February to December 2033 obtained by the initial prediction model based on the true values in multiple first historical time periods from January to November 2033. At this time, the "true value in the second target preset time period" is 820G, thereby calculating the error between 900G and 820G and correcting the parameters of the initial prediction model. The corrected initial prediction model is predicted based on the "real value in the first historical period" (predicting multiple short periods (i.e., the second preset period) to obtain multiple sub-prediction values (i.e., the second prediction value)), and the obtained prediction value (the prediction value here is obtained by accumulating multiple sub-prediction values, i.e., the third prediction value) is compared with the "real value in the second target preset period", and the obtained error can be used to correct the initial model. After correction, you can continue to perform multiple rounds of "prediction and correction" according to the above method until the prediction error value of each target traffic indicator is less than the preset threshold, and the prediction model is considered to meet the requirements, that is, the target prediction model is obtained and can be put into use.
[0089] Specifically, steps S141 to S144 can be understood as obtaining multiple true values of the target traffic index in multiple first historical time periods, which are used to predict the second predicted value of the target traffic index in multiple second preset time periods, and at the same time obtaining the total true value in the second target preset time period, which is used to compare with the total predicted value (i.e., the third predicted value) in the second target preset time period to calculate the error, and then using the preset initial prediction model, based on the true value in the first historical time period, predict the traffic usage of the target cell in the second preset time period, and obtain multiple second predicted values of the target traffic index in multiple second preset time periods, and then add the multiple second predicted values to obtain the third predicted value of the target traffic index in the second target preset time period, so that the true value and the third predicted value of the target traffic index in the second target preset time period can be compared, and the prediction error of the initial prediction model can be calculated to correct the initial prediction model until the prediction error is less than the preset threshold to obtain the target prediction model. In an embodiment of the present application, by using the initial model to predict the index values of multiple consecutive "short time periods" and then adding them together, the total index value of a "long time period" can be predicted, and then the predicted total index value is compared with the actual value in the "long time period". After the error is obtained, the original model is corrected, and this process is repeated until the prediction error is less than the preset threshold. The target prediction model thus trained has higher prediction accuracy.
[0090] The above introduces the specific implementation method of steps S110 to S130 using a pre-trained target prediction model to determine the first target prediction value of the target traffic indicator within the first preset time period. It also introduces the specific training process of steps S141 to S144 for training the initial prediction model to obtain the target prediction model before using the target prediction model in step S110. Next, it introduces the preprocessing process of the sample data for training before starting to train the initial prediction model in step S141.
[0091] The preprocessing process of sample data can include detecting anomalies in sample data and replacing them with normal values, expanding sample data, and normalizing sample data. Next, the process of normalizing sample data is introduced, which can be used to assist model training and speed up the training speed and accuracy of the model.
[0092] In some embodiments, the real value of the target flow index in the first historical period and the real value of the target flow index in the second target preset period are both greater than or equal to 0 and less than or equal to 1; the method further includes:
[0093] A first target prediction value of the target flow index within the first preset time period is denormalized to obtain a second target prediction value of the target flow index within the first preset time period.
[0094] Among them, the true value of the target flow index in the first historical period and the true value of the second target preset period are both greater than or equal to 0 and less than or equal to 1, which means that after the true value of the target flow index in the first historical period and the true value of the second target preset period are normalized, the true value of the target flow index in the first historical period and the true value of the second target preset period are both in the value range of [0, 1].
[0095] Specifically, the first target prediction value of the target traffic index within the first preset time period is denormalized to obtain the second target prediction value of the target traffic index within the first preset time period. For example, when predicting the traffic index according to the trained target prediction model, the first target prediction value obtained is also in the value interval [0, 1]. At this time, it can be denormalized. For example, the target traffic index is the number of user connections, and the first target prediction value corresponding to the number of user connections is 0.3. After denormalization, it is 300 people. The normalized value is used for model training, which is faster and more effective. After obtaining the prediction value, denormalization is performed, which is more intuitive.
[0096] The above introduces the model-assisted training method of normalization and denormalization. Next, we will introduce the process of expanding sample data before normalization.
[0097] In some embodiments, Figure 3 As shown, there are M first historical periods, where M is a positive integer; before obtaining the real value of the target flow index in the first historical period and the real value in the second target preset period in step S141, the method further includes:
[0098] S151, obtaining N real values of the target flow index in a second target historical period, wherein the second target historical period includes N first historical periods, N is a positive integer, and N is less than M;
[0099] S152, based on the preset expansion rule, generating the real value of the target traffic index in the M first historical time periods.
[0100] Among them, the second target historical period is the historical period before the expansion. The N real values within the second target historical period are the actual usage values of users in the target cell. Directly using them as sample data for model training is not sufficient to support the model training process. Therefore, it needs to be expanded according to the preset expansion rules.
[0101] Specifically, steps S151 and S152 can be understood as first obtaining N real values of the target traffic indicator corresponding to the N first historical periods in the second target historical period, and then based on the preset expansion rules, generating the real value of the target traffic indicator in the M first historical periods, and M>N. There are N real values before expansion: the second target historical period = N first historical periods, and there are M real values after expansion: the first target historical period = M first historical periods, M>N, that is, N first historical periods are expanded to obtain M first historical periods, and from N real values to M real values, so that the real value of the target traffic indicator in the M first historical periods can be generated. A large amount of sample data has been added, which can support multiple training processes of the model and is conducive to improving the accuracy of model training.
[0102] The above introduces the process of expanding sample data in steps S151 and S152 and the process of normalizing after expansion. Next, the process of detecting anomalies in sample data and replacing them with normal values before expanding the sample data in step S151 is introduced.
[0103] In some embodiments, Figure 4 As shown, before obtaining N real values of the target flow index in the second target historical period in step S151, the method further includes:
[0104] S161, obtaining N original values of the target flow index in the second target historical period;
[0105] S162, performing anomaly detection on the original value according to a preset anomaly detection rule to obtain a target detection result, wherein the target detection result includes an anomaly of the original value;
[0106] S163, when the target detection result is that the original value is abnormal, the abnormal original value is replaced with a normal value according to a preset interpolation rule to obtain N real values of the target flow index within the second target historical period.
[0107] Among them, the original value refers to the original data corresponding to the target traffic indicator in the second target historical period of the target cell directly collected from the operator server. The original data often has problems such as missing data points, abnormal data points, and non-standard data format.
[0108] Specifically, steps S161 to S163 can be understood as, before expanding the sample data, first obtaining N original values of the target traffic indicator in the second target historical period, and then performing anomaly detection on the original values according to preset anomaly detection rules to obtain target detection results, wherein the target detection results include original value anomalies and original value no anomalies, and then when the target detection result is that the original value is abnormal, the abnormal original value can be replaced with a normal value according to the preset interpolation rule to obtain N real values of the target traffic indicator in the second target historical period, thereby solving the problem of abnormal data points in the original data collected directly from the operator server.
[0109] In some embodiments, there are multiple anomaly detection rules; step S162 performs anomaly detection on the original value according to the preset anomaly detection rule to obtain a target detection result, including:
[0110] Perform anomaly detection on the original value according to multiple anomaly detection rules to obtain multiple sub-detection results;
[0111] The number of target sub-detection results is compared with a preset number to obtain a target detection result, wherein the target sub-detection result is a sub-detection result with an abnormal original value.
[0112] The sub-detection result refers to a detection result that can be obtained by performing anomaly detection on the original value according to multiple anomaly detection rules, which can be called a sub-detection result.
[0113] The target sub-test result refers to the sub-test result whose test result is "the original value is an abnormal value".
[0114] The preset number means that when the number of target sub-detection results corresponding to the original value exceeds the preset number, the original value is determined to be an abnormal value. For example, there are 3 types of abnormality detection rules, the preset number is 2, and the sub-detection results obtained by detecting the original value_1 are: the original value is abnormal, the original value is not abnormal, and the original value is abnormal. Therefore, there are 2 results of "original value abnormality" ≤ the preset number, so the original value_1 can be determined to be an abnormal value, which is equivalent to using the voting method to judge the abnormality of the original value.
[0115] Specifically, step S162 performs anomaly detection on the original value according to the preset anomaly detection rule to obtain the specific process of the target detection result, which may include: performing anomaly detection on the original value according to multiple anomaly detection rules to obtain multiple sub-detection results, the number of sub-detection results is the same as the number of anomaly detection rules, then counting the number of target sub-detection results of "the original value is an abnormal value", and comparing the number of target sub-detection results with the preset number, when the number of target sub-detection results is greater than or equal to the preset number, the target detection result is obtained as "the original value is abnormal", and when the number of target sub-detection results is less than the preset number, the target detection result is obtained as "the original value is not abnormal". For example, there are 3 methods for detecting abnormal values, which correspond to 3 results. When 2 or more detection results are abnormal, it means that the original value is an abnormal value. The voting method is used to determine the final target detection result, which can more accurately determine whether the original value is abnormal, thereby ensuring the authenticity and accuracy of the sample data.
[0116] In one example, the preprocessing process of the sample data may include the process of detecting anomalies on the sample data and replacing them with normal values, expanding the sample data, and normalizing the sample data: after obtaining the original value of the sample data, determine whether it is a blank value or an outlier, such as using a voting algorithm to detect an outlier, and then if the original value is an outlier or a blank value, replace the outlier or blank value with a normal value, such as using an interpolation algorithm to replace the outlier with a normal value, and then expand the sample data, the time period expanded, for example, there are N time periods before expansion, and there are M time periods after expansion, M>N, and then normalize the sample data so that the sample data∈[0,1], which is conducive to the subsequent training of the original prediction model according to the previously obtained sample data to obtain the target prediction model. The higher the number and accuracy of the sample data, the higher the prediction accuracy of the trained target prediction model. Therefore, through the preprocessing process of detecting anomalies on the sample data and replacing them with normal values, expanding the sample data, and normalizing the sample data, the speed and accuracy of model training can be greatly improved.
[0117] In one example, if Figure 5 As shown, the training and use process of the target prediction model may specifically include steps S10 to S80.
[0118] S10, obtaining original sample data.
[0119] N original values of the target flow index in the second target historical period are obtained, where the second target historical period is composed of N first historical periods, and each first historical period corresponds to an original value of the target flow index.
[0120] For example, the cell traffic data and related information statistics of a certain base station cell collected from the operator are shown in Table 1.
[0121] Table 1
[0122]
[0123] In Table 1 , the explicit feature “mobile network traffic value” and the implicit features “resource utilization PRB” and “number of user connections RRC” are closely related to the traffic trend and can therefore be used as target traffic indicators. Therefore, the N original values of “mobile network traffic value, resource utilization PRB, and number of user connections RRC” in the second target historical period can be obtained through Table 1 .
[0124] S20, outlier identification.
[0125] Determine whether the original value is a missing value, that is, there is no field data in the field, and then use the preset interpolation algorithm to fill in the normal value. If the original value is not a missing value, you can continue to determine whether the original value is an abnormal value, that is, perform an abnormality detection on the original value according to the preset abnormality detection rule. If the target detection result is that the original value is an abnormal value, replace the abnormal original value with a normal value according to the preset interpolation rule, so that you can get the N real values of the target traffic indicator in the second target historical period.
[0126] In one example, the voting rule is used to identify outliers, and the blank points and outlier points are replaced with normal values by cubic spline data interpolation. Figure 6 As shown, year-on-year detection, short-term month-on-month detection, and density-based detection can be used to detect abnormal data points. Since these three methods have their own advantages and disadvantages in detecting abnormal points, a voting rule can be used for detection. The voting rule can balance the processing results of the three abnormal point detection methods mentioned above, that is, if and only if two or more abnormal point detection methods determine that the point is abnormal, then the point is determined to be an abnormal point. Data interpolation: In order to achieve the prediction effect, it is necessary to maintain the continuity of the data, so after detecting the existing blank value points and abnormal points, these points can be processed by data interpolation. For example, the cubic spline interpolation method can be used to obtain the value of the filling point that is infinitely close to the existing data points around and maintains the smoothness of the line segment through a segmented polynomial. The community mobile data traffic information directly collected from the operator's server, that is, the problem of missing data points and abnormal data points in Table 1, is solved.
[0127] In another example, after solving the problems of missing data points and abnormal data points in Table 1, data standardization can be performed to convert the data set into a standard data format suitable for model training and map the data to the [0,1] interval. For example, the min-max method is used for normalization, and the conversion formula is:
[0128]
[0129] Among them, xi is the value before normalization, x max is the maximum value in the data, x min is the minimum value in the data, and yi is the normalized value. Through data normalization, the problem of missing data points and abnormal data points in Table 1 can be solved while solving the problem of irregular data format.
[0130] S30, augmenting the sample data set.
[0131] N first historical periods are expanded to obtain M first historical periods, and N real values are expanded to M real values, so that the real value of the target traffic indicator in the M first historical periods can be generated. A large amount of sample data is added, which can support multiple training processes of the model and is conducive to improving the accuracy of model training.
[0132] For example, we can use the generative adversarial network to augment the sample data set. During the training process, the data is reconstructed into an image with a dimension of H×W for input. The specific steps are:
[0133] 1) Initialize the parameters of the generator and discriminator networks;
[0134] 2) The generator uses a normal random distribution of noise vectors to generate base station traffic data. The generator is fixed and the discriminator is trained to distinguish true from false as much as possible;
[0135] 3) After cyclically training the discriminator, train the generator so that the discriminator cannot distinguish true from false, that is, when the discrimination probability is 0.5, stop training and obtain the augmented base station traffic data, that is, obtain M true values corresponding to the M first historical periods.
[0136] S40, M first historical periods.
[0137] After augmenting the sample data set, M true values corresponding to the M first historical periods can be obtained.
[0138] S50, using the initial prediction model to predict the target flow index in the second preset time period respectively to obtain a second prediction value. For example, predict the target flow index in the second preset time period_1 to obtain a second prediction value_1, predict the target flow index in the second preset time period_2 to obtain a second prediction value_2, and so on, and then predict the target flow index in the second preset time period_M to obtain a second prediction value_M.
[0139] In one example, the base station traffic data that has been preprocessed and augmented (M real values corresponding to M first historical time periods) is selected for empirical mode decomposition, and the IMF components Ci(t)={Ci(t1), Ci(t2)…Ci(tm)} of several base station traffic data sequences are decomposed, wherein Ci(tm) represents the component value corresponding to the nth time on the decomposed i-th IMF component sequence Ci(t), that is, the M real values {Ci(t1), Ci(t2)…Ci(tm)} corresponding to the M first historical time periods of the explicit feature “mobile network traffic value C” are obtained;
[0140] Then, the number of user connections RRC and resource utilization PRC at the corresponding time that are closely related to the traffic are selected as input features. It is assumed that the M real value sequences corresponding to the number of RRC connections in the M first historical periods are Ri(t) = {Ri(t1), Ri(t2)…Ri(tm)}, and the M real value sequences corresponding to the PRC utilization in the M first historical periods are Pi(t) = {Pi(t1), Pi(t2)…Pi(tm)};
[0141] Feature screening is performed through the Pearson coefficient. The specific formula is as follows:
[0142]
[0143] in, and is the mean value of the sample;
[0144] Then, the input features are combined with the traffic decomposition sequence, and the three together form the input sequence of LSTM: LSTMi(t) = {(Ci(t1), Ri(t1), Pi(t1)), (Ci(t2), Ri(t2), Pi(t2)), ..., (Ci(tm), Ri(tm), Pi(tm))}, that is, the "mobile network traffic value, number of user connections RRC, resource utilization PRC" corresponding to the first first historical period is (Ci(t1), Ri(t1), Pi(t1)), the "mobile network traffic value, number of user connections RRC, resource utilization PRC" corresponding to the first first historical period is (Ci(t2), Ri(t2), Pi(t2)), ..., the "mobile network traffic value, number of user connections RRC, resource utilization PRC" corresponding to the Mth first historical period is (Ci(tm), Ri(tm), Pi(tm));
[0145] Then, according to LSTMi(t)={(Ci(t1),Ri(t1),Pi(t1)),(Ci(t2),Ri(t2),Pi(t2)),…,(Ci(tm),Ri(tm),Pi(tm))}, the second prediction values within multiple second preset time periods are predicted: according to the characteristics of the LSTMi(t) input sequence, the network structure includes an input layer, an LSTM layer, a fully connected layer and a regression layer in sequence; on the basis of the network structure, the Adam algorithm is used to iteratively learn the input sequence, and the input sequence is input into each LSTM network for training, a Drop layer is added in the middle to prevent overfitting problems, and a Relu function is used as an activation function to prevent gradient diffusion problems, thereby obtaining the prediction values of each LSTM network, that is, obtaining the second prediction values within multiple second preset time periods. Among them, there are M second preset time periods and first historical time periods. From the time sequence point of view, the end time of each second preset time period is Δt more than the end time of the corresponding first historical time period. The smaller Δt is, the more accurate the prediction is, and the larger Δt is, the less accurate the prediction result is. Δt can be set according to needs. For example, Δt can be 1 hour, 6 hours, 12 hours, 1 day, etc.
[0146] S60, determining a third predicted value of the target flow index.
[0147] The second prediction values of the target flow index in multiple second preset time periods are added together to obtain a third prediction value of the target flow index in the second target preset time period.
[0148] For example, the EMD-PPCS algorithm is used to decompose and reconstruct the augmented base station traffic data set, and to screen out the collaborative variables closely related to the traffic sequence, such as multiple target traffic indicators such as mobile network traffic value, resource utilization, and number of user connections. The LSTM network is constructed based on the second prediction value formed by the decomposition, reconstruction and screening of the above EMD-PPCS algorithm, and the third prediction value of the LSTM network is accumulated.
[0149] S70, calculating an error value according to the true value.
[0150] The actual value of the target flow index within the second target preset time period and the third predicted value are compared, and the prediction error of the initial prediction model is calculated to correct the initial prediction model.
[0151] In one example, SVR is used to perform regression prediction on the prediction error value of the LSTM network, and the parameters of the SVR are optimized through the PSO algorithm to obtain a corrected prediction error value et<preset threshold.
[0152] Specifically, when using SVR to perform regression prediction on the prediction error value, the steps of optimizing the parameters of SVR by PSO algorithm are as follows, that is, when the prediction error value is large, the steps of optimizing the parameters of the prediction model are as follows:
[0153] Initialize the particle swarm (C, gamma), determine its initial value and range of variation, determine the population size, and the maximum evolutionary generation. The individual extreme value at the current moment is recorded as P best , the global extreme value is denoted as g best ;
[0154] Training samples, using mean square error to calculate the sample's fitness value fitness(i), take the particle with the best fitness value as the initial global extreme value, the specific formula of fitness(i) is as follows:
[0155]
[0156] Among them, y is the estimated value of the new sample;
[0157] Perform evolutionary calculation on the particle speed and update the particle speed and position;
[0158] Continue to train SVR, calculate the fitness value of the sample, and update the particle's P according to the fitness value best and g best , if the current fitness of a particle is better than P best , then P best is replaced by the current position;
[0159] The updated P best With g best Compare and update g if it is better best , otherwise keep;
[0160] Determine whether the algorithm termination condition is met. If the maximum number of iterations is reached or the solution does not change, stop the iteration and output the optimal solution, that is, the corrected prediction error value et < the preset threshold, and the algorithm ends. Otherwise, continue to repeat the training and execute steps S50 to S80 in a loop.
[0161] S80, target prediction model.
[0162] Steps S50 to S80 are executed repeatedly until the prediction error is less than a preset threshold, thereby obtaining a target prediction model.
[0163] In one example, when using the target prediction model to predict the traffic usage of the target cell within the first preset time period, the LSTM network, that is, the first prediction value of the target traffic index within the first preset time period by the target prediction model is added to the prediction error value et corrected by the PSO optimized SVR to obtain the prediction result of the final combined model, that is, the first target prediction value yr=yp+et. Finally, the prediction result yr can be denormalized to obtain the final prediction value, that is, the second target prediction value. The target prediction model can be used to predict the traffic usage of the target cell within the first preset time period, thereby obtaining a first prediction value of the target traffic indicator within the first preset time period, and then in the correspondence between the preset traffic indicator and the prediction error value, the target prediction error value corresponding to the target traffic indicator can be obtained. Next, based on the first prediction value of the target traffic indicator and the corresponding target prediction error value, the first target prediction value of the target traffic indicator within the first preset time period can be determined, which is equivalent to compensating for the error of the target traffic indicator, thereby improving the prediction accuracy of each target traffic indicator of the model, and being able to accurately predict the traffic usage of the base station cell, so that the network equipment provider can accurately grasp the traffic trend of the base station cell and can accurately expand and shrink the communication equipment of the base station cell, thereby ensuring the user experience quality while avoiding waste of resources.
[0164] In the embodiment of the present application, a base station traffic prediction method based on the EMD-PCCS and LSTM-SVR models is used to collect traffic data (mobile network traffic value) and corresponding base station data information (number of user connections, resource usage, etc.), and perform data preprocessing (blank point, abnormal value point detection and filling normal value) to form a base station traffic data set; a generative adversarial network is used to perform data augmentation on the base station traffic data set; the EMD-PCCS algorithm is used to decompose and reconstruct the base station traffic data set, and features closely related to traffic (target traffic indicators: mobile network traffic value, number of user connections, resource usage, etc.) are screened out as the input sequence of the LSTM network; for the EMD- The PCCS algorithm decomposes, reconstructs and filters the input sequence to construct the LSTM network, and obtains the predicted value of the LSTM network (the second predicted value of each target traffic index in multiple second preset time periods); the predicted value output above is processed by difference with the original traffic data to obtain the prediction error term; the prediction error term is input into the SVR model for regression prediction, and the PSO algorithm is used to optimize the parameters of the SVR model at the same time to obtain a set of new corrected error terms, until the error term is less than the preset threshold, and the trained target prediction model is obtained and put into use; the predicted value predicted by the target prediction model is added to the corrected error term to obtain the final prediction result, that is, the first target prediction value. Through multiple data preprocessing methods, multiple models cyclically train prediction models, and cyclically use the initial prediction model during cyclic training to predict the values of multiple target traffic indicators in multiple second preset time periods, it is possible to solve the problem that the traditional linear time series method is difficult to effectively capture the complex nonlinear factors in the actual base station traffic sequence, and the problem that the base station traffic prediction results are not ideal when using only a single model.
[0165] Based on the same inventive concept, the embodiment of the present application also provides a flow prediction device, such as Figure 7 As shown, the device 700 may include a prediction module 710, an acquisition module 720 and a determination module 730:
[0166] The prediction module 710 is used to predict the traffic usage of the target cell in the first preset time period by using a preset target prediction model, and obtain a first prediction value of the target traffic index in the first preset time period, wherein there are multiple target traffic indexes;
[0167] The acquisition module 720 is used to acquire a target prediction error value corresponding to the target flow index in the correspondence relationship between the preset flow index and the prediction error value, wherein the prediction error value is an error value of the flow index predicted by the target prediction model;
[0168] The determination module 730 is used to determine a first target prediction value of the target flow index within a first preset time period according to the first prediction value and the target prediction error value.
[0169] According to the traffic prediction device provided in the embodiment of the present application, the device uses a preset target prediction model to predict the traffic usage of the target cell within the first preset time period, thereby obtaining a first prediction value of the target traffic indicator within the first preset time period, and then in the correspondence between the preset traffic indicator and the prediction error value, the target prediction error value corresponding to the target traffic indicator can be obtained, wherein the prediction error value is the error value of the traffic indicator predicted by the target prediction model, and then according to the first prediction value of the target traffic indicator and the corresponding target prediction error value, the first target prediction value of the target traffic indicator within the first preset time period can be determined, which is equivalent to compensating for the error of the target traffic indicator, thereby improving the prediction accuracy of each target traffic indicator of the model, and can accurately predict the traffic usage of the base station cell, so that the network equipment provider can accurately grasp the traffic trend of the base station cell and can accurately expand and shrink the communication equipment of the base station cell, thereby avoiding waste of resources while ensuring the user experience quality.
[0170] In some embodiments, the target traffic indicator includes at least two of a mobile network traffic value, a resource utilization rate, and a number of user connections.
[0171] In some embodiments, before the prediction module is used to predict the traffic usage in the first preset time period using a preset target prediction model to obtain a first predicted value of the target traffic index in the first preset time period, the device further includes a calculation module and a correction module:
[0172] The acquisition module is further used to acquire the real value of the target flow index in the first historical period and the real value in the second target preset period, wherein there are multiple first historical periods, and the multiple first historical periods constitute the first target historical period;
[0173] The prediction module is further used to use a preset initial prediction model to predict the traffic usage of the target cell in a second preset period based on the real value in the first historical period, and obtain a second prediction value of the target traffic index in the second preset period, wherein there are multiple second preset periods, and the multiple second preset periods constitute a second target preset period;
[0174] A calculation module, used for adding the second prediction values of the target flow index in a plurality of second preset time periods to obtain a third prediction value of the target flow index in a second target preset time period;
[0175] The correction module is used to correct the initial prediction model according to the actual value of the target flow index within the second target preset time period and the third predicted value to obtain the target prediction model.
[0176] In some embodiments, the real value of the target flow index in the first historical period and the real value in the second target preset period are both greater than or equal to 0 and less than or equal to 1; the device also includes a normalization module:
[0177] The normalization module is used to perform a denormalization process on a first target prediction value of a target flow index within a first preset time period to obtain a second target prediction value of the target flow index within the first preset time period.
[0178] In some embodiments, there are M first historical periods, where M is a positive integer; before the acquisition module is used to acquire the real value of the target flow index in the first historical period and the real value of the second target preset period, the device further includes a generation module:
[0179] The acquisition module is further used to acquire N real values of the target flow index in the second target historical period, wherein the second target historical period includes N first historical periods, N is a positive integer, and N is less than M;
[0180] The generation module is used to generate the real value of the target traffic index in M first historical time periods based on a preset expansion rule.
[0181] In some embodiments, before the acquisition module is used to acquire N real values of the target traffic indicator in the second target historical period, the device further includes a detection module and a replacement module:
[0182] The acquisition module is further used to obtain N original values of the target flow index in the second target historical period;
[0183] A detection module, used to perform anomaly detection on the original value according to a preset anomaly detection rule to obtain a target detection result, wherein the target detection result includes an anomaly of the original value;
[0184] The replacement module is used to replace the abnormal original value with a normal value according to a preset interpolation rule when the target detection result is that the original value is abnormal, so as to obtain N real values of the target flow index in the second target historical period.
[0185] In some embodiments, there are multiple anomaly detection rules; the detection module is used to perform anomaly detection on the original value according to the preset anomaly detection rules to obtain a target detection result, including:
[0186] A detection unit, configured to perform anomaly detection on the original value according to a plurality of anomaly detection rules to obtain a plurality of sub-detection results;
[0187] A comparison unit is used to compare the number of target sub-detection results with a preset number to obtain a target detection result, wherein the target sub-detection result is a sub-detection result with an abnormal original value.
[0188] Each module in the flow prediction device provided in the embodiment of the present application can realize Figures 1 to 6 The functions of each step of the provided traffic prediction method and the ability to achieve its corresponding technical effects are described briefly and will not be repeated here.
[0189] Figure 8 A schematic diagram of the hardware structure of a traffic prediction device provided in an embodiment of the present application is shown.
[0190] The traffic prediction device may include a processor 801 and a memory 802 storing computer program instructions.
[0191] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0192] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 802 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 802 may be inside or outside the device for flow prediction. In a particular embodiment, the memory 802 is a non-volatile solid-state memory.
[0193] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.
[0194] The processor 801 implements any one of the traffic prediction methods in the above embodiments by reading and executing computer program instructions stored in the memory 802 .
[0195] In one example, the traffic prediction device may further include a communication interface 803 and a bus 804. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 804 and communicate with each other.
[0196] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0197] Bus 804 includes hardware, software or both, and the components of the equipment of flow prediction are coupled to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Linear Predictive Coding (LPC) bus, memory bus, MicroChannel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association local (VESA Local Bus, VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 804 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0198] The device can execute the flow prediction method in the embodiment of the present application based on each unit / component in the flow prediction device, thereby realizing the combination of Figures 1 to 6 Describe the method of traffic prediction.
[0199] In addition, in combination with the traffic prediction method in the above embodiment, the embodiment of the present application can provide a computer storage medium to implement. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the traffic prediction methods in the above embodiment is implemented.
[0200] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned traffic prediction method embodiments.
[0201] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0202] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable Read Only Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0203] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0204] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0205] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for traffic prediction, characterized in that: include: Using a preset target prediction model, predicting the traffic usage of the target cell within a first preset time period, and obtaining a first prediction value of a target traffic index within the first preset time period, wherein there are multiple target traffic indexes; In the correspondence between the preset flow index and the prediction error value, a target prediction error value corresponding to the target flow index is obtained, wherein the prediction error value is an error value of the flow index predicted by the target prediction model; A first target prediction value of the target flow index within the first preset time period is determined according to the first prediction value and the target prediction error value.
2. The method according to claim 1, characterized in that The target traffic indicator includes at least two of a mobile network traffic value, a resource utilization rate, and a number of user connections.
3. The method according to claim 1, characterized in that: Before predicting the traffic usage in the first preset time period by using the preset target prediction model to obtain a first prediction value of the target traffic index in the first preset time period, the method further includes: Obtaining a real value of the target flow index in a first historical period and a real value in a second target preset period, wherein there are multiple first historical periods, and multiple first historical periods constitute a first target historical period; Using a preset initial prediction model, based on the real value in the first historical period, predicting the traffic usage of the target cell in a second preset period, and obtaining a second prediction value of the target traffic index in the second preset period, wherein there are multiple second preset periods, and multiple second preset periods constitute the second target preset period; Adding the second predicted values of the target flow index in a plurality of the second preset time periods to obtain a third predicted value of the target flow index in the second target preset time period; According to the actual value of the target flow index within the second target preset time period and the third predicted value, the initial prediction model is modified to obtain the target prediction model.
4. The method according to claim 3, characterized in that The real value of the target flow index in the first historical period and the real value of the second target preset period are both greater than or equal to 0 and less than or equal to 1; the method further includes: A first target prediction value of the target flow index within the first preset time period is denormalized to obtain a second target prediction value of the target flow index within the first preset time period.
5. The method according to claim 3, characterized in that: There are M first historical time periods, where M is a positive integer; Before obtaining the real value of the target flow index in the first historical period and the real value of the target flow index in the second target preset period, the method further includes: Obtaining N real values of the target traffic index in a second target historical period, wherein the second target historical period includes N first historical periods, N is a positive integer, and N is less than M; Based on the preset expansion rule, the real value of the target traffic index in the M first historical time periods is generated.
6. The method according to claim 5, characterized in that Before obtaining N real values of the target flow index in the second target historical period, the method further includes: Obtaining N original values of the target traffic indicator in the second target historical period; Performing anomaly detection on the original value according to a preset anomaly detection rule to obtain a target detection result, wherein the target detection result includes an anomaly of the original value; When the target detection result is that the original value is abnormal, the abnormal original value is replaced with a normal value according to a preset interpolation rule to obtain N real values of the target flow index within the second target historical period.
7. The method according to claim 6, characterized in that There are multiple anomaly detection rules; performing anomaly detection on the original value according to the preset anomaly detection rules to obtain a target detection result includes: Performing anomaly detection on the original value according to the multiple anomaly detection rules to obtain multiple sub-detection results; The number of target sub-detection results is compared with a preset number to obtain the target detection result, wherein the target sub-detection result is the sub-detection result of the original value being abnormal.
8. A flow prediction device, characterized in that: include: A prediction module, used to predict the traffic usage of the target cell within a first preset time period using a preset target prediction model, and obtain a first prediction value of the target traffic index within the first preset time period, wherein there are multiple traffic indexes; An acquisition module, used for acquiring a target prediction error value corresponding to the target flow index in a preset correspondence relationship between the flow index and the prediction error value, wherein the prediction error value is an error value of the flow index predicted by the target prediction model; A determination module is used to determine a first target prediction value of the target flow index within the first preset time period based on the first prediction value and the target prediction error value. An execution module is used to execute the target processing solution.
9. A flow prediction device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for traffic prediction according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for traffic prediction according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of a device, the device is enabled to perform the method for traffic prediction as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Grain quality multi-index prediction method and device
CN111144552A
Method and device for automatically adjusting predicted value, equipment and storage medium
CN111401642A
Data anomaly detection method and device
CN116933121A
Comprehensive multi-precision index evaluation method and system for electric power prediction models
WO2021077646A1
Traffic prediction method, device, and storage medium
WO2021129086A1
