[go: up one dir, main page]

CN116684330A - Traffic prediction method, device, equipment and storage medium based on artificial intelligence - Google Patents

Traffic prediction method, device, equipment and storage medium based on artificial intelligence Download PDF

Info

Publication number
CN116684330A
CN116684330A CN202310769159.9A CN202310769159A CN116684330A CN 116684330 A CN116684330 A CN 116684330A CN 202310769159 A CN202310769159 A CN 202310769159A CN 116684330 A CN116684330 A CN 116684330A
Authority
CN
China
Prior art keywords
prediction model
target
traffic
training set
training
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310769159.9A
Other languages
Chinese (zh)
Inventor
刘兴廷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202310769159.9A priority Critical patent/CN116684330A/en
Publication of CN116684330A publication Critical patent/CN116684330A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/16Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using machine learning or artificial intelligence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请实施例属于人工智能领域,涉及一种基于人工智能的流量预测方法,包括:获取网络流量;基于网络流量构建训练集与测试集;对训练集与测试集进行预处理,得到目标训练集与目标测试集;构建基于BP神经网络结构的初始预测模型;基于目标布谷鸟搜索算法对初始预测模型进行权阈值优化,得到指定预测模型;使用训练集与测试集对指定预测模型进行训练与测试,得到训练好的流量预测模型;基于流量预测模型对网络流量数据进行流量预测处理。本申请还提供一种基于人工智能的流量预测装置、计算机设备及存储介质。此外,本申请还涉及区块链技术,流量预测模型可存储于区块链中。本申请能有效提升流量预测模型的流量预测的准确性及模型训练的迭代效率。

The embodiment of the present application belongs to the field of artificial intelligence and relates to a traffic prediction method based on artificial intelligence, including: obtaining network traffic; constructing a training set and a test set based on the network traffic; preprocessing the training set and the test set to obtain a target training set and the target test set; build an initial prediction model based on BP neural network structure; optimize the weight threshold of the initial prediction model based on the target cuckoo search algorithm to obtain the specified prediction model; use the training set and test set to train and test the specified prediction model , to obtain a well-trained traffic forecasting model; based on the traffic forecasting model, traffic forecasting processing is performed on the network traffic data. The present application also provides an artificial intelligence-based flow prediction device, computer equipment, and storage media. In addition, this application also relates to blockchain technology, and the traffic forecasting model can be stored in the blockchain. The present application can effectively improve the accuracy of the traffic prediction of the traffic prediction model and the iterative efficiency of the model training.

Description

基于人工智能的流量预测方法、装置、设备及存储介质Flow prediction method, device, equipment and storage medium based on artificial intelligence

技术领域technical field

本申请涉及人工智能开发技术领域与金融科技领域,尤其涉及基于人工智能的流量预测方法、装置、计算机设备及存储介质。This application relates to the field of artificial intelligence development technology and the field of financial technology, and in particular to an artificial intelligence-based flow prediction method, device, computer equipment and storage medium.

背景技术Background technique

随着网络通信及计算机技术的快速发展,各种业务系统,例如保险系统、银行系统等在线上的应用服务形式也多种多样。这些应用需要稳定的网络支持,对网络的服务质量、流量控制和网络管理均提出了很高的要求。因此,对网络流量的分析预测就显得十分必要。目前,已经存在很多网络流量的分析预测模型,但依然存在很多难题:一方面网络流量在时间和空间上比较复杂;另一方面各应用场景下的网络特征差异较大,这些问题都会加增加网络预测模型构建和训练的复杂度。With the rapid development of network communication and computer technology, various business systems, such as insurance systems, banking systems, etc., have various forms of online application services. These applications require stable network support, and put forward high requirements for network service quality, flow control and network management. Therefore, it is very necessary to analyze and predict network traffic. At present, there are already many analysis and prediction models for network traffic, but there are still many problems: on the one hand, network traffic is complex in time and space; on the other hand, network characteristics in various application scenarios are quite different. Complexity of predictive model building and training.

BP网络是目前使用最广泛的预测模型,在处理非线性预测问题方面脱颖而出。目前需要业务系统使用BP网络进行网络流量的预测。然而,传统的BP网络依赖于误差的反向传播,需要进行不断的迭代,且预测模型的预测精度不高。BP network is currently the most widely used forecasting model, and it stands out in dealing with nonlinear forecasting problems. At present, business systems need to use BP network to predict network traffic. However, the traditional BP network relies on the backpropagation of errors, which requires continuous iterations, and the prediction accuracy of the prediction model is not high.

发明内容Contents of the invention

本申请实施例的目的在于提出一种基于人工智能的流量预测方法、装置、计算机设备及存储介质,以解决现有的使用BP网络进行网络流量的预测的方式依赖于误差的反向传播,需要进行不断的迭代,且预测模型的预测精度不高的技术问题。The purpose of the embodiments of the present application is to propose an artificial intelligence-based flow prediction method, device, computer equipment, and storage medium to solve the problem that the existing way of using BP network to predict network flow depends on the backpropagation of errors. Continuous iterations are carried out, and the prediction accuracy of the prediction model is not high.

为了解决上述技术问题,本申请实施例提供一种基于人工智能的流量预测方法,采用了如下所述的技术方案:In order to solve the above technical problems, the embodiment of the present application provides an artificial intelligence-based traffic forecasting method, which adopts the following technical solutions:

获取预设的历史时间周期内的网络流量;Obtain network traffic within a preset historical time period;

基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;Constructing samples of the network traffic based on a preset time period division unit to obtain corresponding training sets and test sets;

对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;performing data preprocessing on the training set and the test set to obtain corresponding target training sets and target test sets;

确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;Determine the BP neural network structure, and build an initial prediction model based on the BP neural network structure;

基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;其中,所述目标布谷鸟搜索算法为对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的优化布谷鸟搜索算法;Based on the target cuckoo search algorithm, the weight threshold of the initial prediction model is optimized to obtain the optimized specified prediction model; wherein, the target cuckoo search algorithm is an improved step size update method of the original cuckoo search algorithm The obtained optimized cuckoo search algorithm;

使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;using the training set to train the designated prediction model, and testing the trained designated prediction model through the test set to obtain a trained traffic prediction model;

基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。Perform traffic prediction processing on the network traffic data to be processed based on the traffic prediction model.

进一步的,所述基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集的步骤,具体包括:Further, the step of constructing samples of the network traffic based on the preset time period division unit to obtain corresponding training sets and test sets specifically includes:

获取预设的时间段划分单位;Obtain the preset time period division unit;

基于所述时间段划分单位将所述历史时间周期内的每一天划分为对应的多个单位时间段;dividing each day in the historical time period into corresponding multiple unit time periods based on the time period division unit;

采用将处于相同的单位时间段内的网络流量作为同一类样本的方式,构建与所述网络流量对应的训练集;Constructing a training set corresponding to the network traffic by using the network traffic in the same unit time period as the same type of samples;

获取预设的时间数值;Get the preset time value;

基于所述时间数值,从所述训练集中随机筛选出与所述时间数值对应的指定数据;randomly selecting specified data corresponding to the time value from the training set based on the time value;

将所述指定数据作为所述测试集。Use the specified data as the test set.

进一步的,所述对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集的步骤,具体包括:Further, the step of performing data preprocessing on the training set and the test set to obtain the corresponding target training set and target test set specifically includes:

对所述训练集与所述测试集进行数据清洗,得到对应的第一训练集与第一测试集;Performing data cleaning on the training set and the test set to obtain corresponding first training set and first test set;

对所述第一训练集与所述第一测试集进行归一化处理,得到对应的第二训练集与第二测试集;performing normalization processing on the first training set and the first test set to obtain corresponding second training sets and second test sets;

将所述第二训练集作为所述目标训练集,以及将所述第二测试集作为所述目标测试集。The second training set is used as the target training set, and the second test set is used as the target test set.

进一步的,在所述基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型的步骤之前,还包括:Further, before the step of optimizing the weight threshold of the initial prediction model based on the target cuckoo search algorithm to obtain the optimized specified prediction model, it also includes:

获取原始的布谷鸟搜索算法;Get the original cuckoo search algorithm;

获取所述初始布谷鸟搜索算法中的步长更新方式;Obtain the step size update method in the initial cuckoo search algorithm;

基于预设公式对所述布谷鸟搜索算法的步长更新方式进行改进,得到优化后的所述目标布谷鸟搜索算法。The step size update method of the cuckoo search algorithm is improved based on a preset formula to obtain the optimized target cuckoo search algorithm.

进一步的,所述基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型的步骤,具体包括:Further, the step of optimizing the weight threshold of the initial prediction model based on the target cuckoo search algorithm to obtain the optimized specified prediction model specifically includes:

对所述目标布谷鸟搜索算法进行参数初始化;Carry out parameter initialization to described target cuckoo search algorithm;

随机产生多个鸟巢位置,并将所述初始预测模型的初始权阈值编码为所述目标布谷鸟搜索算法的初始鸟巢位置;Randomly generate a plurality of bird's nest positions, and encode the initial weight threshold of the initial prediction model as the initial bird's nest position of the target cuckoo search algorithm;

确定所述目标布谷鸟搜索算法的适应度函数,并基于所述适应度函数计算各所述鸟巢位置的适应度;Determine the fitness function of the target cuckoo search algorithm, and calculate the fitness of each nest position based on the fitness function;

使用所述目标布谷鸟搜索算法,根据所述适应度进行全局迭代寻优处理,从所有所述鸟巢位置中寻找出对应的全局最优位置;Using the target cuckoo search algorithm, perform global iterative optimization processing according to the fitness, and find the corresponding global optimal position from all the bird's nest positions;

判断当前的迭代次数是否满足预设的最大迭代次数;Determine whether the current number of iterations meets the preset maximum number of iterations;

若是,将所述全局最优位置作为所述初始预测模型的最优权阈值,得到优化后的所述指定预测模型。If yes, the global optimal position is used as the optimal weight threshold of the initial prediction model to obtain the optimized specified prediction model.

进一步的,所述基于所述流量预测模型对待处理的网络流量数据进行流量预测处理的步骤,具体包括:Further, the step of performing traffic prediction processing on the network traffic data to be processed based on the traffic prediction model specifically includes:

获取待处理的网络流量数据;Obtain pending network traffic data;

将所述网络流量数据输入至所述流量预测模型内;inputting the network traffic data into the traffic prediction model;

通过所述流量预测模型对所述网络流量数据进行预测处理,输出与所述网络流量数据对应的预测结果。Prediction processing is performed on the network traffic data by the traffic prediction model, and a prediction result corresponding to the network traffic data is output.

进一步的,在所述使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型的步骤之后,还包括:Further, after the step of using the training set to train the designated prediction model, and using the test set to test the trained designated prediction model to obtain a trained traffic prediction model, further include:

获取预设的模型标识;Obtain the preset model ID;

从区块链中包含的多个存储子区域确定出与所述模型标识匹配的目标存储子区域;determining a target storage sub-area matching the model identifier from multiple storage sub-areas included in the blockchain;

将所述流量预测模型存储至目标存储子区域内。The traffic forecasting model is stored in the target storage sub-area.

为了解决上述技术问题,本申请实施例还提供一种基于人工智能的流量预测装置,采用了如下所述的技术方案:In order to solve the above technical problems, the embodiment of the present application also provides an artificial intelligence-based flow prediction device, which adopts the following technical solutions:

第一获取模块,用于获取预设的历史时间周期内的网络流量;A first acquisition module, configured to acquire network traffic within a preset historical time period;

第一构建模块,用于基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;The first building module is used to construct samples of the network traffic based on the preset time period division unit, and obtain corresponding training sets and test sets;

处理模块,用于对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;A processing module, configured to perform data preprocessing on the training set and the test set to obtain corresponding target training sets and target test sets;

第二构建模块,用于确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;The second building block is used to determine the BP neural network structure, and construct an initial prediction model based on the BP neural network structure;

优化模块,用于基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;其中,所述目标布谷鸟搜索算法为对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的优化布谷鸟搜索算法;The optimization module is used to optimize the weight threshold of the initial prediction model based on the target cuckoo search algorithm to obtain an optimized specified prediction model; wherein, the target cuckoo search algorithm is the step size of the original cuckoo search algorithm The optimized cuckoo search algorithm obtained after the update method is improved;

训练模块,用于使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;A training module, configured to use the training set to train the designated prediction model, and test the trained designated prediction model through the test set to obtain a trained traffic prediction model;

预测模块,用于基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。A forecasting module, configured to perform traffic forecasting processing on the network traffic data to be processed based on the traffic forecasting model.

为了解决上述技术问题,本申请实施例还提供一种计算机设备,采用了如下所述的技术方案:In order to solve the above technical problems, the embodiment of the present application also provides a computer device, which adopts the following technical solutions:

获取预设的历史时间周期内的网络流量;Obtain network traffic within a preset historical time period;

基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;Constructing samples of the network traffic based on a preset time period division unit to obtain corresponding training sets and test sets;

对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;performing data preprocessing on the training set and the test set to obtain corresponding target training sets and target test sets;

确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;Determine the BP neural network structure, and build an initial prediction model based on the BP neural network structure;

基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;其中,所述目标布谷鸟搜索算法为对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的优化布谷鸟搜索算法;Based on the target cuckoo search algorithm, the weight threshold of the initial prediction model is optimized to obtain the optimized specified prediction model; wherein, the target cuckoo search algorithm is an improved step size update method of the original cuckoo search algorithm The obtained optimized cuckoo search algorithm;

使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;using the training set to train the designated prediction model, and testing the trained designated prediction model through the test set to obtain a trained traffic prediction model;

基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。Perform traffic prediction processing on the network traffic data to be processed based on the traffic prediction model.

为了解决上述技术问题,本申请实施例还提供一种计算机可读存储介质,采用了如下所述的技术方案:In order to solve the above technical problems, the embodiment of the present application also provides a computer-readable storage medium, which adopts the following technical solution:

获取预设的历史时间周期内的网络流量;Obtain network traffic within a preset historical time period;

基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;Constructing samples of the network traffic based on a preset time period division unit to obtain corresponding training sets and test sets;

对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;performing data preprocessing on the training set and the test set to obtain corresponding target training sets and target test sets;

确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;Determine the BP neural network structure, and build an initial prediction model based on the BP neural network structure;

基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;其中,所述目标布谷鸟搜索算法为对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的优化布谷鸟搜索算法;Based on the target cuckoo search algorithm, the weight threshold of the initial prediction model is optimized to obtain the optimized specified prediction model; wherein, the target cuckoo search algorithm is an improved step size update method of the original cuckoo search algorithm The obtained optimized cuckoo search algorithm;

使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;using the training set to train the designated prediction model, and testing the trained designated prediction model through the test set to obtain a trained traffic prediction model;

基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。Perform traffic prediction processing on the network traffic data to be processed based on the traffic prediction model.

与现有技术相比,本申请实施例主要有以下有益效果:Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects:

本申请实施例首先获取预设的历史时间周期内的网络流量;然后基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;并对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;之后确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;后续基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;进一步使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;最后基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。本申请实施例在基于获取的历史时间周期内的网络流量构建对应的训练集与测试集后,通过使用对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的目标布谷鸟搜索算法对初始预测模型进行权阈值优化以构建得到指定预测模型,进而使用训练集对与测试集对指定预测模型进行训练与测试,得到训练好的流量预测模型,可以有效提升流量预测模型的网络流量预测的准确性以及模型训练的迭代效率。In the embodiment of the present application, the network traffic in the preset historical time period is first obtained; then, based on the preset time period division unit, the network traffic is sample-constructed to obtain the corresponding training set and test set; and the training set Carry out data preprocessing with the test set to obtain the corresponding target training set and target test set; then determine the BP neural network structure, and build an initial prediction model based on the BP neural network structure; follow-up based on the target cuckoo search algorithm for Perform weight threshold optimization on the initial prediction model to obtain an optimized designated prediction model; further use the training set to train the designated prediction model, and use the test set to test the trained designated prediction model , to obtain a well-trained traffic prediction model; finally, perform traffic prediction processing on the network traffic data to be processed based on the traffic prediction model. In the embodiment of the present application, after constructing the corresponding training set and test set based on the obtained network traffic in the historical time period, the target cuckoo search algorithm obtained by improving the step size update method of the original cuckoo search algorithm is used to The weight threshold of the initial prediction model is optimized to construct a specified prediction model, and then the training set and test set are used to train and test the specified prediction model to obtain a trained traffic prediction model, which can effectively improve the network traffic prediction performance of the traffic prediction model Accuracy and iterative efficiency of model training.

附图说明Description of drawings

为了更清楚地说明本申请中的方案,下面将对本申请实施例描述中所需要使用的附图作一个简单介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the solution in this application more clearly, a brief introduction will be given below to the accompanying drawings that need to be used in the description of the embodiments of the application. Obviously, the accompanying drawings in the following description are some embodiments of the application. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.

图1是本申请可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;

图2根据本申请的基于人工智能的流量预测方法的一个实施例的流程图;Fig. 2 is a flow chart of an embodiment of the artificial intelligence-based traffic forecasting method according to the present application;

图3是根据本申请的基于人工智能的流量预测装置的一个实施例的结构示意图;FIG. 3 is a schematic structural diagram of an embodiment of an artificial intelligence-based flow prediction device according to the present application;

图4是根据本申请的计算机设备的一个实施例的结构示意图。Fig. 4 is a schematic structural diagram of an embodiment of a computer device according to the present application.

具体实施方式Detailed ways

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同;本文中在申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请;本申请的说明书和权利要求书及上述附图说明中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。本申请的说明书和权利要求书或上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the application; the terms used herein in the description of the application are only to describe specific embodiments The purpose is not to limit the present application; the terms "comprising" and "having" and any variations thereof in the specification and claims of the present application and the description of the above drawings are intended to cover non-exclusive inclusion. The terms "first", "second" and the like in the description and claims of the present application or the above drawings are used to distinguish different objects, rather than to describe a specific order.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

为了使本技术领域的人员更好地理解本申请方案,下面将结合附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, and the like.

终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 can be various electronic devices that have display screens and support web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, moving picture Expert Compression Standard Audio Layer 3), MP4 (Moving PictureExperts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) Players, Laptop Portable Computers and Desktop Computers, etc.

服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上显示的页面提供支持的后台服务器。The server 105 may be a server that provides various services, such as a background server that provides support for pages displayed on the terminal devices 101 , 102 , 103 .

需要说明的是,本申请实施例所提供的基于人工智能的流量预测方法一般由服务器/终端设备执行,相应地,基于人工智能的流量预测装置一般设置于服务器/终端设备中。It should be noted that the artificial intelligence-based traffic prediction method provided in the embodiment of the present application is generally executed by a server/terminal device, and accordingly, the artificial intelligence-based traffic prediction device is generally set in the server/terminal device.

本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .

人工智能基础技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理技术、操作/交互系统、机电一体化等技术。人工智能软件技术主要包括计算机视觉技术、机器人技术、生物识别技术、语音处理技术、自然语言处理技术以及机器学习/深度学习等几大方向。Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation/interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning/deep learning.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

继续参考图2,示出了根据本申请的基于人工智能的流量预测方法的一个实施例的流程图。所述的基于人工智能的流量预测方法,包括以下步骤:Continuing to refer to FIG. 2 , it shows a flow chart of an embodiment of an artificial intelligence-based traffic forecasting method according to the present application. The artificial intelligence-based traffic forecasting method comprises the following steps:

步骤S201,获取预设的历史时间周期内的网络流量。Step S201, acquiring network traffic within a preset historical time period.

在本实施例中,基于人工智能的流量预测方法运行于其上的电子设备(例如图1所示的服务器/终端设备),可以通过有线连接方式或者无线连接方式获取历史时间周期内的网络流量。需要指出的是,上述无线连接方式可以包括但不限于3G/4G/5G连接、WiFi连接、蓝牙连接、WiMAX连接、Zigbee连接、UWB(ultra wideband)连接、以及其他现在已知或将来开发的无线连接方式。本申请提供的基于人工智能的流量预测方法,可应用于业务场景的网络流量预测的业务场景中。对于保险系统的业务场景进行举例说明,可将当前时间段的网络数据输入至本申请构建的流量预测模型内,以通过该流量预测模型输出在当前时间段之后的下一时间段的网络流量预测数据。其中,上述网络流量具体是指业务系统内的网络流量。业务系统具体可为保险系统、银行系统、交易系统、订单系统等中的任意系统。另外,对于上述历史时间周期的选取不做具体限定,可根据实际的业务使用需求进行设置,例如可为距离当前时间的前一个月内。In this embodiment, the electronic device (such as the server/terminal device shown in FIG. 1 ) on which the traffic prediction method based on artificial intelligence runs can obtain the network traffic in the historical time period through a wired connection or a wireless connection. . It should be pointed out that the above wireless connection methods may include but not limited to 3G/4G/5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connections known or developed in the future. connection method. The traffic prediction method based on artificial intelligence provided in this application can be applied in the business scenario of network traffic prediction in business scenarios. To illustrate the business scenario of the insurance system, the network data of the current time period can be input into the traffic forecasting model built by this application, so that the network traffic forecast of the next time period after the current time period can be output through the traffic forecasting model data. Wherein, the above-mentioned network traffic specifically refers to network traffic in the business system. Specifically, the business system may be any system in an insurance system, a banking system, a transaction system, an order system, and the like. In addition, there is no specific limitation on the selection of the above-mentioned historical time period, which can be set according to actual business usage requirements, for example, it can be within one month before the current time.

步骤S202,基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集。Step S202, constructing samples of the network traffic based on the preset time period division unit to obtain corresponding training sets and test sets.

在本实施例中,上述基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集的具体实施过程,本申请将在后续的具体实施例中对此进行进一步的细节描述,在此不作过多阐述。In this embodiment, the above-mentioned division unit based on the preset time period performs sample construction on the network traffic, and obtains the specific implementation process of the corresponding training set and test set. Further detailed descriptions will not be elaborated here.

步骤S203,对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集。Step S203, performing data preprocessing on the training set and the test set to obtain a corresponding target training set and target test set.

在本实施例中,上述数据预处理具体可包括数据清洗处理与归一化处理。所述训练集与所述测试集统称为样本集。通过对样本集进行数据清洗,以剔除样本集中的噪声数据。通过对样本集进行归一化处理,以将样本集转化到[0,1]之间,从而提升后续的流量预测模型的训练速度。In this embodiment, the above data preprocessing may specifically include data cleaning processing and normalization processing. The training set and the testing set are collectively referred to as a sample set. By cleaning the data of the sample set, the noise data in the sample set can be eliminated. By normalizing the sample set, the sample set is converted to [0,1], so as to improve the training speed of the subsequent traffic prediction model.

步骤S204,确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型。Step S204, determining the BP neural network structure, and constructing an initial prediction model based on the BP neural network structure.

在本实施例中,BP神经网络可以分为两个部分,BP和神经网络。BP是BackPropagation的简写,意思是反向传播。BP神经网络能学习和存贮大量的输入-输出模式映射关系,而无需事前揭示描述这种映射关系的数学方程。它的学习规则是使用最速下降法,通过反向传播来不断调整网络的权值和阈值,使网络的误差平方和最小。其主要的特点是:信号是正向传播的,而误差是反向传播的。其中,BP神经网络结构包括:输入层为各时段及对应的网络流量,输出为预测流量值,并初始化BP神经网络的权阈值及以及最大迭代次数等参数。In this embodiment, the BP neural network can be divided into two parts, BP and neural network. BP is the abbreviation of BackPropagation, which means backpropagation. The BP neural network can learn and store a large number of input-output pattern mapping relationships without revealing the mathematical equations describing the mapping relationship in advance. Its learning rule is to use the steepest descent method to continuously adjust the weights and thresholds of the network through backpropagation to minimize the sum of squared errors of the network. Its main characteristics are: the signal is propagated forward, and the error is propagated backward. Among them, the BP neural network structure includes: the input layer is each time period and the corresponding network traffic, the output is the predicted traffic value, and the parameters such as the weight threshold and the maximum number of iterations of the BP neural network are initialized.

步骤S205,基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型。其中,所述目标布谷鸟搜索算法为对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的优化布谷鸟搜索算法。Step S205, based on the target cuckoo search algorithm, optimize the weight threshold of the initial prediction model to obtain an optimized specified prediction model. Wherein, the target cuckoo search algorithm is an optimized cuckoo search algorithm obtained by improving the step size update method of the original cuckoo search algorithm.

在本实施例中,所述目标布谷鸟搜索算法为对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的优化布谷鸟搜索算法。布谷鸟搜索算法,也称CS算法,是一种群智能优化算法,通过模拟布谷鸟寄生育雏来求解最优化问题的算法,因为其采用了Levy飞行搜索策略,所以相比其它寻优算法更有效。传统CS算法的路径和位置更新策略如下:xi(t)=xi(t-1)+a⊙Levy(λ);上式中:xi(t)和xi(t-1)分别为第t和t-1次迭代时的第i个解;a为步长因子,用来确定搜索尺度;⊙为点乘;Levy(λ)为服从莱维的概率分布。其中,上述基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型的具体实施过程,本申请将在后续的具体实施例中对此进行进一步的细节描述,在此不作过多阐述。通过使用目标布谷鸟搜索算法对初始预测模型进行权阈值优化,可以保证初始预测模型的参数优化的精度及迭代效率。本实施例通过将群智能优化算法和深度神经网络融合,构建出可用于复杂网络环境中的CS-BP流量预测模型,可为线上系统网络流量监控、网络性能分析和网络管理等提供保障。In this embodiment, the target cuckoo search algorithm is an optimized cuckoo search algorithm obtained by improving the step size update method of the original cuckoo search algorithm. The cuckoo search algorithm, also known as the CS algorithm, is a swarm intelligence optimization algorithm that solves optimization problems by simulating the cuckoo parasitic brood. Because it uses the Levy flight search strategy, it is more effective than other optimization algorithms. The path and position update strategy of the traditional CS algorithm is as follows: x i (t) = x i (t-1) + a⊙Levy (λ); in the above formula: x i (t) and x i (t-1) respectively is the i-th solution at the t-th and t-1 iterations; a is the step factor, used to determine the search scale; ⊙ is the dot product; Levy(λ) is the probability distribution that obeys Levy. Among them, the above-mentioned target cuckoo search algorithm is used to optimize the weight threshold of the initial prediction model to obtain the specific implementation process of the optimized specified prediction model. This application will further describe this in detail in subsequent specific embodiments. I won't elaborate too much here. By using the target cuckoo search algorithm to optimize the weight threshold of the initial prediction model, the accuracy and iteration efficiency of the parameter optimization of the initial prediction model can be guaranteed. In this embodiment, by integrating the swarm intelligence optimization algorithm and the deep neural network, a CS-BP traffic prediction model that can be used in complex network environments is constructed, which can provide guarantees for online system network traffic monitoring, network performance analysis, and network management.

步骤S206,使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型。Step S206, using the training set to train the designated prediction model, and using the test set to test the trained designated prediction model to obtain a trained traffic prediction model.

在本实施例中,在使用所述训练集对所述指定预测模型进行训练后,通过所述测试集对所述训练后的指定预测模型进行测试,计算实际值(即预测值)与真实值之间的精确度指标,并评估该精确度指标(例如评估准确率是否大于设定阈值),若评估通过,则将评估通过的指定预测模型作为训练好的流量预测模型。In this embodiment, after using the training set to train the specified prediction model, the test set is used to test the trained specified prediction model, and the actual value (ie predicted value) and the real value are calculated. Between the accuracy index, and evaluate the accuracy index (for example, evaluate whether the accuracy rate is greater than the set threshold), if the evaluation is passed, then use the specified prediction model that passed the evaluation as the trained traffic prediction model.

步骤S207,基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。Step S207, performing traffic prediction processing on the network traffic data to be processed based on the traffic prediction model.

在本实施例中,上述基于所述流量预测模型对待处理的网络流量数据进行流量预测处理的具体实施过程,本申请将在后续的具体实施例中对此进行进一步的细节描述,在此不作过多阐述。In this embodiment, the specific implementation process of performing traffic prediction processing on the network traffic data to be processed based on the traffic prediction model above will be further described in detail in subsequent specific embodiments in this application, and will not be described here Explain more.

本申请首先获取预设的历史时间周期内的网络流量;然后基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;并对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;之后确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;后续基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;进一步使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;最后基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。本申请在基于获取的历史时间周期内的网络流量构建对应的训练集与测试集后,通过使用对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的目标布谷鸟搜索算法对初始预测模型进行权阈值优化以构建得到指定预测模型,进而使用训练集对与测试集对指定预测模型进行训练与测试,得到训练好的流量预测模型,可以有效提升流量预测模型的网络流量预测的准确性以及模型训练的迭代效率。The application first obtains the network traffic in the preset historical time period; then constructs samples of the network traffic based on the preset time period division unit to obtain the corresponding training set and test set; and compares the training set and the Perform data preprocessing on the test set to obtain the corresponding target training set and target test set; then determine the BP neural network structure, and build an initial prediction model based on the BP neural network structure; follow-up based on the target cuckoo search algorithm for the described Optimizing the weight threshold of the initial prediction model to obtain the optimized specified prediction model; further using the training set to train the specified prediction model, and testing the trained specified prediction model through the test set to obtain A trained traffic prediction model; finally, traffic prediction processing is performed on the network traffic data to be processed based on the traffic prediction model. In this application, after constructing the corresponding training set and test set based on the obtained network traffic in the historical time period, the initial prediction is made by using the target cuckoo search algorithm obtained by improving the step size update method of the original cuckoo search algorithm. The weight threshold of the model is optimized to build a specified prediction model, and then use the training set and test set to train and test the specified prediction model to obtain a trained traffic prediction model, which can effectively improve the network traffic prediction accuracy of the traffic prediction model And the iterative efficiency of model training.

在一些可选的实现方式中,步骤S202包括以下步骤:In some optional implementation manners, step S202 includes the following steps:

获取预设的时间段划分单位。Get the preset time period division unit.

在本实施例中,对于上述时间段划分单位的取值不做限定,可根据实际的使用需求进行设置,例如可设置为1小时。In this embodiment, there is no limitation on the value of the division unit of the above time period, which can be set according to actual usage requirements, for example, it can be set to 1 hour.

基于所述时间段划分单位将所述历史时间周期内的每一天划分为对应的多个单位时间段。Divide each day in the historical time period into corresponding multiple unit time periods based on the time period division unit.

在本实施例中,如果时间段划分单位为1小时,则可将每天的24小时划分为对应的时间长度为1小时的24个单位时间段。In this embodiment, if the time segment division unit is 1 hour, then 24 hours per day may be divided into 24 unit time segments with a corresponding time length of 1 hour.

采用将处于相同的单位时间段内的网络流量作为同一类样本的方式,构建与所述网络流量对应的训练集。A training set corresponding to the network traffic is constructed by using the network traffic in the same unit time period as samples of the same class.

在本实施例中,如果历史时间周期为业务系统在距离当前时间的前一周内,则可选取业务系统在该一周内的网络流量作为训练集,每天24小时,每天同一单位时间段视作一种类型,即一周内可划分成24个训练集。In this embodiment, if the historical time period is that the business system is in the previous week from the current time, then the network traffic of the business system in the week can be selected as the training set, 24 hours a day, and the same unit time period every day is regarded as a type, that is, it can be divided into 24 training sets within a week.

获取预设的时间数值。Get the preset time value.

在本实施例中,对于上述时间段划分单位的取值不做限定,可根据实际的使用需求进行设置,例如可设置为6。In this embodiment, there is no limitation on the value of the division unit of the above time period, which can be set according to actual usage requirements, for example, it can be set to 6.

基于所述时间数值,从所述训练集中随机筛选出与所述时间数值对应的指定数据。Based on the time value, randomly select specified data corresponding to the time value from the training set.

在本实施例中,参照上述例子,在将业务系统在该一周内的网络流量划分成24个训练集后,从该24个训练集中随机抽取6个小时的单位时间段对应的网络流量作为测试集。In this embodiment, referring to the above example, after dividing the network traffic of the business system in the week into 24 training sets, the network traffic corresponding to a unit time period of 6 hours is randomly selected from the 24 training sets as a test set.

将所述指定数据作为所述测试集。Use the specified data as the test set.

本申请通过获取预设的时间段划分单位,并基于所述时间段划分单位将所述历史时间周期内的每一天划分为对应的多个单位时间段;然后采用将处于相同的单位时间段内的网络流量作为同一类样本的方式,构建与所述网络流量对应的训练集;之后获取预设的时间数值;后续基于所述时间数值,从所述训练集中随机筛选出与所述时间数值对应的指定数据,并将所述指定数据作为所述测试集。本申请基于时间段划分单位的使用对历史时间周期内的网络流量进行划分处理,以实现快速地构建得到所需的训练集,后续再基于时间数值的使用对构建的训练集进行处理,以实现快速地构建得到所需的测试集,提高了训练集与测试集构建的智能性与规范性,保证了得到的测试集的随机性。This application obtains the preset time period division unit, and divides each day in the historical time period into corresponding multiple unit time periods based on the time period division unit; and then uses the same unit time period The network traffic is used as the same type of samples to construct a training set corresponding to the network traffic; after that, the preset time value is obtained; and based on the time value, the time value corresponding to the time value is randomly selected from the training set The specified data of , and use the specified data as the test set. This application divides and processes the network traffic in the historical time period based on the use of the time period division unit, so as to realize the rapid construction and obtain the required training set, and then processes the constructed training set based on the use of the time value to realize Quickly construct the required test set, improve the intelligence and standardization of training set and test set construction, and ensure the randomness of the obtained test set.

在本实施例的一些可选的实现方式中,步骤S203包括以下步骤:In some optional implementation manners of this embodiment, step S203 includes the following steps:

对所述训练集与所述测试集进行数据清洗,得到对应的第一训练集与第一测试集。Data cleaning is performed on the training set and the test set to obtain a corresponding first training set and a first test set.

在本实施例中,上述数据清洗可包括剔除训练集与测试集中的噪声数据。In this embodiment, the above data cleaning may include removing noise data in the training set and the testing set.

对所述第一训练集与所述第一测试集进行归一化处理,得到对应的第二训练集与第二测试集。Perform normalization processing on the first training set and the first testing set to obtain corresponding second training sets and second testing sets.

在本实施例中,可通过使用归一化公式对训练集与测试集进行归一化处理,以将训练集与测试集转化到[0,1]之间。In this embodiment, the training set and the testing set can be normalized by using a normalization formula, so as to transform the training set and the testing set into a range between [0,1].

将所述第二训练集作为所述目标训练集,以及将所述第二测试集作为所述目标测试集。The second training set is used as the target training set, and the second test set is used as the target test set.

本申请通过对所述训练集与所述测试集进行数据清洗,得到对应的第一训练集与第一测试集;然后对所述第一训练集与所述第一测试集进行归一化处理,得到对应的第二训练集与第二测试集;后续将所述第二训练集作为所述目标训练集,以及将所述第二测试集作为所述目标测试集。本申请通过对训练集与测试集进行数据清洗与归一化处理,可以快速准确地得到符合模型使用需求的特征数据,使得后续在使用训练集与测试集进行对于流量预测模型的构建过程时,能够有效提升流量预测模型的训练速度。The present application obtains the corresponding first training set and first test set by performing data cleaning on the training set and the test set; then normalizes the first training set and the first test set , to obtain a corresponding second training set and a second test set; subsequently, the second training set is used as the target training set, and the second test set is used as the target test set. In this application, by performing data cleaning and normalization processing on the training set and the test set, the feature data that meets the requirements of the model can be quickly and accurately obtained, so that when the training set and the test set are used to construct the traffic prediction model, It can effectively improve the training speed of the traffic prediction model.

在一些可选的实现方式中,在步骤S205之前,上述电子设备还可以执行以下步骤:In some optional implementation manners, before step S205, the above-mentioned electronic device may also perform the following steps:

获取原始的布谷鸟搜索算法。Get the original cuckoo search algorithm.

获取所述初始布谷鸟搜索算法中的步长更新方式。Obtain the step size update method in the initial cuckoo search algorithm.

在本实施例中,传统的布谷鸟搜索算法的路径和位置更新策略如下:xi(t)=xi(t-1)+a⊙Levy(λ);上式中:xi(t)和xi(t-1)分别为第t和t-1次迭代时的第i个解;a为步长因子,用来确定搜索尺度;⊙为点乘;Levy(λ)为服从莱维的概率分布。In this embodiment, the path and position update strategy of the traditional cuckoo search algorithm are as follows: x i (t) = x i (t-1) + a⊙Levy (λ); in the above formula: x i (t) and x i (t-1) are the i-th solution at the t and t-1 iterations respectively; a is the step size factor, which is used to determine the search scale; ⊙ is the point product; probability distribution.

基于预设公式对所述布谷鸟搜索算法的步长更新方式进行改进,得到优化后的所述目标布谷鸟搜索算法。The step size update method of the cuckoo search algorithm is improved based on a preset formula to obtain the optimized target cuckoo search algorithm.

在本实施例中,布谷鸟搜索算法因其采用Levy搜索策略,使得其步长有很强的随机性,虽然有强大的全局搜索能力,但局部寻优能力较弱。为平衡其迭代过程中的全局搜索和局部寻优能力,考虑对步长更新方式进行改进,使步长在迭代时能够自适应动态调整。改进方法如下:式中xbest为当前最优值。根据上述对步长因子的改进,使CS算法在前期搜索步长较大,全局搜索能力强;随着对全局最优解的靠近,步长逐渐变小,提升局部寻优能力。综上,通过上述对CS算法的步长进行自适应调整,平衡了CS优化算法的全局搜索和局部寻优能力,且提升收敛速度。本实施例通过引入动态适应因子对CS算法进行位置更新改进,可以解决前期全局寻优和后期局部优化不均衡的问题。使得后续利用改进的CS算法对BP网络的初始权、阈值进行优化,可进一步提升网络流量预测的准确性及模型训练的迭代效率。In this embodiment, because the cuckoo search algorithm adopts the Levy search strategy, its step size has strong randomness. Although it has a strong global search ability, its local optimization ability is weak. In order to balance the global search and local optimization capabilities in the iterative process, it is considered to improve the step size update method, so that the step size can be adaptively adjusted dynamically during iteration. The improvement method is as follows: where x best is the current optimal value. According to the improvement of the step size factor mentioned above, the CS algorithm has a larger search step size in the early stage and a strong global search ability; as the approach to the global optimal solution, the step size gradually becomes smaller, which improves the local optimization ability. To sum up, through the above-mentioned adaptive adjustment of the step size of the CS algorithm, the global search and local optimization capabilities of the CS optimization algorithm are balanced, and the convergence speed is improved. In this embodiment, by introducing a dynamic adaptation factor to improve the position update of the CS algorithm, the problem of unbalanced global optimization in the early stage and local optimization in the later stage can be solved. The subsequent use of the improved CS algorithm to optimize the initial weights and thresholds of the BP network can further improve the accuracy of network traffic prediction and the iterative efficiency of model training.

本申请通过获取原始的布谷鸟搜索算法;然后获取所述初始布谷鸟搜索算法中的步长更新方式;后续基于预设公式对所述布谷鸟搜索算法的步长更新方式进行改进,得到优化后的所述目标布谷鸟搜索算法。本申请通过使用预设公式对传统的布谷鸟搜索算法的步长更新方式进行改进,可以快速得到优化后的目标布谷鸟搜索算法,实现了对于传统的布谷鸟搜索算法的步长进行自适应调整,平衡了传统的布谷鸟搜索算法的全局搜索和局部寻优能力,且有效提升收敛速度。使得后续使用目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化以构建得到流量预测模型,可以进一步提升流量预测模型的网络流量预测的准确性以及模型训练的迭代效率。The present application obtains the original cuckoo search algorithm; then obtains the step size update method in the initial cuckoo search algorithm; subsequently improves the step size update method of the cuckoo search algorithm based on the preset formula, and obtains the optimized The target cuckoo search algorithm. This application uses the preset formula to improve the step size update method of the traditional cuckoo search algorithm, and can quickly obtain the optimized target cuckoo search algorithm, and realizes the adaptive adjustment of the step size of the traditional cuckoo search algorithm , which balances the global search and local optimization capabilities of the traditional cuckoo search algorithm, and effectively improves the convergence speed. The subsequent use of the target cuckoo search algorithm to optimize the weight threshold of the initial prediction model to construct the traffic prediction model can further improve the network traffic prediction accuracy of the traffic prediction model and the iterative efficiency of model training.

在一些可选的实现方式中,步骤S205包括以下步骤:In some optional implementation manners, step S205 includes the following steps:

对所述目标布谷鸟搜索算法进行参数初始化。Perform parameter initialization on the target cuckoo search algorithm.

在本实施例中,上述对所述目标布谷鸟搜索算法进行参数初始化的参数至少可包括目标布谷鸟搜索算法的鸟巢数、初始步长更新因子、最大迭代次数、误差标准等参数。其中,对于参数的取值不做限定,可根据实际的业务需求进行设置。In this embodiment, the above parameters for parameter initialization of the target cuckoo search algorithm may include at least the number of nests of the target cuckoo search algorithm, initial step update factor, maximum number of iterations, error standard and other parameters. Wherein, there is no limitation on the value of the parameter, which can be set according to actual business requirements.

随机产生多个鸟巢位置,并将所述初始预测模型的初始权阈值编码为所述目标布谷鸟搜索算法的初始鸟巢位置。A plurality of nest positions are randomly generated, and the initial weight threshold of the initial prediction model is encoded as the initial nest position of the target cuckoo search algorithm.

确定所述目标布谷鸟搜索算法的适应度函数,并基于所述适应度函数计算各所述鸟巢位置的适应度。Determine the fitness function of the target cuckoo search algorithm, and calculate the fitness of each nest location based on the fitness function.

在本实施例中,可获取初始预测模型的输出误差,并将该输出误差作为上述目标布谷鸟搜索算法的适应度函数。In this embodiment, the output error of the initial prediction model can be obtained, and the output error can be used as the fitness function of the above-mentioned target cuckoo search algorithm.

使用所述目标布谷鸟搜索算法,根据所述适应度进行全局迭代寻优处理,从所有所述鸟巢位置中寻找出对应的全局最优位置。Using the target cuckoo search algorithm, a global iterative optimization process is performed according to the fitness, and a corresponding global optimal position is found from all the bird's nest positions.

在本实施例中,通过使用所述目标布谷鸟搜索算法,根据上述适应度得到当前最优位置,然后根据改进的位置更新方式进行位置更新,得到新的鸟巢位置。之后比较这些鸟巢位置的适应度值,将较差的位置舍去,获取当前最优位置。重复上述迭代,寻找全局最优位置。In this embodiment, by using the target cuckoo search algorithm, the current optimal position is obtained according to the above fitness, and then the position is updated according to the improved position update method to obtain a new bird's nest position. Then compare the fitness values of these bird's nest locations, discard the poorer locations, and obtain the current optimal location. Repeat the above iterations to find the global optimal position.

判断当前的迭代次数是否满足预设的最大迭代次数。Determine whether the current number of iterations meets the preset maximum number of iterations.

在本实施例中,对于上述最大迭代次数的取值不做限定,可根据实际的业务需求进行设置。In this embodiment, there is no limitation on the value of the above-mentioned maximum number of iterations, which can be set according to actual business requirements.

若是,将所述全局最优位置作为所述初始预测模型的最优权阈值,得到优化后的所述指定预测模型。If yes, the global optimal position is used as the optimal weight threshold of the initial prediction model to obtain the optimized specified prediction model.

在本实施例中,如果当前的迭代次数不满足预设的最大迭代次数,或者不满足误差标准,则循环执行上述全局迭代寻优处理,一直寻找出满足最大迭代次数或误差标准的全局最优位置。In this embodiment, if the current number of iterations does not meet the preset maximum number of iterations, or does not meet the error standard, the above-mentioned global iterative optimization process is cyclically executed, and the global optimum that meets the maximum number of iterations or the error standard is always found. Location.

本申请通过对所述目标布谷鸟搜索算法进行参数初始化;然后随机产生多个鸟巢位置,并将所述初始预测模型的初始权阈值编码为所述目标布谷鸟搜索算法的初始鸟巢位置;之后确定所述目标布谷鸟搜索算法的适应度函数,并基于所述适应度函数计算各所述鸟巢位置的适应度;后续使用所述目标布谷鸟搜索算法,根据所述适应度进行全局迭代寻优处理,从所有所述鸟巢位置中寻找出对应的全局最优位置;最后判断当前的迭代次数是否满足预设的最大迭代次数;若是,将所述全局最优位置作为所述初始预测模型的最优权阈值,得到优化后的所述指定预测模型。本申请通过基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型,由于目标布谷鸟搜索算法实现了对于传统的布谷鸟搜索算法的步长进行自适应调整,平衡了传统的布谷鸟搜索算法的全局搜索和局部寻优能力,且有效提升收敛速度,从而可以有效提高流量预测模型训练的迭代效率。进而提升流量预测模型的网络流量预测处理的准确性。The present application initializes the parameters of the target cuckoo search algorithm; then randomly generates a plurality of nest positions, and encodes the initial weight threshold of the initial prediction model as the initial nest position of the target cuckoo search algorithm; then determines The fitness function of the target cuckoo search algorithm, and calculate the fitness of each nest position based on the fitness function; subsequently use the target cuckoo search algorithm to perform global iterative optimization processing according to the fitness , find the corresponding global optimal position from all the bird’s nest positions; finally judge whether the current iteration number meets the preset maximum number of iterations; if so, use the global optimal position as the optimal position of the initial prediction model The weight threshold is used to obtain the optimized specified prediction model. This application optimizes the weight threshold of the initial prediction model based on the target cuckoo search algorithm to obtain the optimized specified prediction model. Since the target cuckoo search algorithm realizes the adaptive adjustment of the step size of the traditional cuckoo search algorithm , which balances the global search and local optimization capabilities of the traditional cuckoo search algorithm, and effectively improves the convergence speed, thereby effectively improving the iterative efficiency of traffic forecasting model training. Further, the accuracy of the network traffic prediction processing of the traffic prediction model is improved.

在本实施例的一些可选的实现方式中,步骤S207包括以下步骤:In some optional implementation manners of this embodiment, step S207 includes the following steps:

获取待处理的网络流量数据。Get pending network traffic data.

在本实施例中,上述待处理的网络流量数据可为业务系统在指定时间段内的网络流量数据。In this embodiment, the above-mentioned network traffic data to be processed may be network traffic data of the service system within a specified time period.

将所述网络流量数据输入至所述流量预测模型内。The network traffic data is input into the traffic prediction model.

通过所述流量预测模型对所述网络流量数据进行预测处理,输出与所述网络流量数据对应的预测结果。Prediction processing is performed on the network traffic data by the traffic prediction model, and a prediction result corresponding to the network traffic data is output.

在本实施例中,在所述流量预测模型对所述网络流量数据进行预测处理后,会输出业务系统在目标时间段的网络流量预测值;其中,目标时间段为所述指定时间段之后的时间段。In this embodiment, after the traffic prediction model predicts the network traffic data, it will output the network traffic forecast value of the service system in the target time period; wherein, the target time period is after the specified time period period.

本申请通过获取待处理的网络流量数据;然后将所述网络流量数据输入至所述流量预测模型内;后续通过所述流量预测模型对所述网络流量数据进行预测处理,输出与所述网络流量数据对应的预测结果。本申请通过使用目标布谷鸟搜索算法训练得到的流量预测模型对待处理的网络流量数据进行流量预测处理,可以有效保证流量预测模型的网络流量预测的准确性。The present application obtains the network traffic data to be processed; then inputs the network traffic data into the traffic prediction model; subsequently uses the traffic prediction model to perform prediction processing on the network traffic data, and outputs the same as the network traffic The prediction results corresponding to the data. In this application, by using the traffic prediction model trained by the target cuckoo search algorithm to perform traffic prediction processing on the network traffic data to be processed, the accuracy of the network traffic prediction of the traffic prediction model can be effectively guaranteed.

在本实施例的一些可选的实现方式中,在步骤S206之后,上述电子设备还可以执行以下步骤:In some optional implementation manners of this embodiment, after step S206, the above-mentioned electronic device may also perform the following steps:

获取预设的模型标识。Get the preset model ID.

在本实施例中,预先将区块链按照多个标识划分成一一对应的多个存储子区域。标识可包括模型标识、数据表标识、文件标识,等等。每一个存储子区域用于存储与标识对应的数据。In this embodiment, the block chain is divided into multiple storage sub-areas corresponding to each other in advance according to multiple identifiers. IDs can include model IDs, data table IDs, file IDs, and so on. Each storage sub-area is used to store data corresponding to the identification.

从区块链中包含的多个存储子区域确定出与所述模型标识匹配的目标存储子区域。A target storage sub-area matching the model identifier is determined from multiple storage sub-areas included in the block chain.

将所述流量预测模型存储至目标存储子区域内。The traffic forecasting model is stored in the target storage sub-area.

本申请通过获取预设的模型标识;然后从区块链中包含的多个存储子区域确定出与所述模型标识匹配的目标存储子区域;后续将所述流量预测模型存储至目标存储子区域内。本申请在使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型之后,还会智能地根据该流量预测模型对应的模型标识,将流量预测模型至与区块链中与模型标识匹配的目标存储子区域,有效地提高了模型存储的规范性与智能性,有利于后续能够从该目标存储子区域快速调取出所需的模型,从而提高模型调用的效率。This application obtains the preset model identification; then determines the target storage sub-area matching the model identification from multiple storage sub-areas contained in the block chain; subsequently stores the traffic prediction model in the target storage sub-area Inside. This application uses the training set to train the specified prediction model, and uses the test set to test the trained specified prediction model, and after obtaining the trained traffic prediction model, it will also intelligently according to the The model identification corresponding to the traffic prediction model transfers the traffic prediction model to the target storage sub-area that matches the model identification in the blockchain, which effectively improves the standardization and intelligence of the model storage, and is conducive to subsequent access from the target storage sub-area. The required model can be quickly called out from the region, thereby improving the efficiency of model calling.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.

需要强调的是,为进一步保证上述流量预测模型的私密和安全性,上述流量预测模型还可以存储于一区块链的节点中。It should be emphasized that, in order to further ensure the privacy and security of the above-mentioned flow prediction model, the above-mentioned flow prediction model can also be stored in a block chain node.

本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain (Blockchain), essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .

人工智能基础技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理技术、操作/交互系统、机电一体化等技术。人工智能软件技术主要包括计算机视觉技术、机器人技术、生物识别技术、语音处理技术、自然语言处理技术以及机器学习/深度学习等几大方向。Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation/interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning/deep learning.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,该计算机可读指令可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. , when the program is executed, it may include the procedures of the embodiments of the above-mentioned methods. Wherein, the aforementioned storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM).

应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart of the accompanying drawings are displayed sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages may not necessarily be executed at the same time, but may be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

进一步参考图3,作为对上述图2所示方法的实现,本申请提供了一种基于人工智能的流量预测装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 3 , as an implementation of the method shown in FIG. 2 above, the present application provides an embodiment of an artificial intelligence-based flow prediction device, which corresponds to the method embodiment shown in FIG. 2 , The device can be specifically applied to various electronic devices.

如图3所示,本实施例所述的基于人工智能的流量预测装置300包括:第一获取模块301、第一构建模块302、处理模块303、第二构建模块304、优化模块305、训练模块306以及预测模块307。其中:As shown in Figure 3, the artificial intelligence-based flow prediction device 300 described in this embodiment includes: a first acquisition module 301, a first construction module 302, a processing module 303, a second construction module 304, an optimization module 305, a training module 306 and prediction module 307. in:

第一获取模块301,用于获取预设的历史时间周期内的网络流量;The first acquisition module 301 is configured to acquire network traffic within a preset historical time period;

第一构建模块302,用于基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;The first construction module 302 is configured to construct a sample of the network traffic based on a preset time period division unit, and obtain a corresponding training set and a test set;

处理模块303,用于对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;A processing module 303, configured to perform data preprocessing on the training set and the test set to obtain corresponding target training sets and target test sets;

第二构建模块304,用于确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;The second building block 304 is used to determine the BP neural network structure, and construct an initial prediction model based on the BP neural network structure;

优化模块305,用于基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;其中,所述目标布谷鸟搜索算法为对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的优化布谷鸟搜索算法;The optimization module 305 is used to optimize the weight threshold of the initial prediction model based on the target cuckoo search algorithm to obtain an optimized specified prediction model; wherein, the target cuckoo search algorithm is a step of the original cuckoo search algorithm The optimized cuckoo search algorithm obtained by improving the long update method;

训练模块306,用于使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;A training module 306, configured to use the training set to train the designated prediction model, and use the test set to test the trained designated prediction model to obtain a trained traffic prediction model;

预测模块307,用于基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。The prediction module 307 is configured to perform traffic prediction processing on the network traffic data to be processed based on the traffic prediction model.

在本实施例中,上述模块或单元分别用于执行的操作与前述实施方式的基于人工智能的流量预测方法的步骤一一对应,在此不再赘述。In this embodiment, the operations performed by the above-mentioned modules or units correspond one-to-one to the steps of the artificial intelligence-based traffic forecasting method in the foregoing embodiments, and details are not repeated here.

在本实施例的一些可选的实现方式中,第一构建模块302包括:In some optional implementations of this embodiment, the first building module 302 includes:

第一获取子模块,用于获取预设的时间段划分单位;The first acquisition sub-module is used to acquire the preset time segment division unit;

划分子模块,用于基于所述时间段划分单位将所述历史时间周期内的每一天划分为对应的多个单位时间段;A division submodule, configured to divide each day in the historical time period into corresponding multiple unit time periods based on the time period division unit;

构建子模块,用于采用将处于相同的单位时间段内的网络流量作为同一类样本的方式,构建与所述网络流量对应的训练集;Constructing a sub-module for constructing a training set corresponding to the network traffic by using the network traffic in the same unit time period as the same type of samples;

第二获取子模块,用于获取预设的时间数值;The second acquisition sub-module is used to acquire a preset time value;

筛选子模块,用于基于所述时间数值,从所述训练集中随机筛选出与所述时间数值对应的指定数据;A screening submodule, configured to randomly filter out specified data corresponding to the time value from the training set based on the time value;

第一确定子模块,用于将所述指定数据作为所述测试集。The first determining submodule is configured to use the specified data as the test set.

在本实施例中,上述模块或单元分别用于执行的操作与前述实施方式的基于人工智能的流量预测方法的步骤一一对应,在此不再赘述。In this embodiment, the operations performed by the above-mentioned modules or units correspond one-to-one to the steps of the artificial intelligence-based traffic forecasting method in the foregoing embodiments, and details are not repeated here.

在本实施例的一些可选的实现方式中,处理模块303包括:In some optional implementations of this embodiment, the processing module 303 includes:

清洗子模块,用于对所述训练集与所述测试集进行数据清洗,得到对应的第一训练集与第一测试集;The cleaning submodule is used to perform data cleaning on the training set and the test set to obtain the corresponding first training set and first test set;

第一处理子模块,用于对所述第一训练集与所述第一测试集进行归一化处理,得到对应的第二训练集与第二测试集;A first processing submodule, configured to perform normalization processing on the first training set and the first test set to obtain corresponding second training sets and second test sets;

第二确定子模块,用于将所述第二训练集作为所述目标训练集,以及将所述第二测试集作为所述目标测试集。A second determining submodule, configured to use the second training set as the target training set, and use the second test set as the target test set.

本实施例中,上述模块或单元分别用于执行的操作与前述实施方式的基于人工智能的流量预测方法的步骤一一对应,在此不再赘述。In this embodiment, the operations performed by the above-mentioned modules or units correspond one-to-one to the steps of the artificial intelligence-based traffic forecasting method in the foregoing embodiments, and details are not repeated here.

在本实施例的一些可选的实现方式中,基于人工智能的流量预测装置还包括:In some optional implementation manners of this embodiment, the traffic prediction device based on artificial intelligence further includes:

第三获取子模块,用于获取原始的布谷鸟搜索算法;The third acquisition sub-module is used to acquire the original cuckoo search algorithm;

第四获取子模块,用于获取所述初始布谷鸟搜索算法中的步长更新方式;The fourth acquisition sub-module is used to acquire the step size update method in the initial cuckoo search algorithm;

改进子模块,用于基于预设公式对所述布谷鸟搜索算法的步长更新方式进行改进,得到优化后的所述目标布谷鸟搜索算法。The improvement sub-module is used to improve the step size update method of the cuckoo search algorithm based on a preset formula to obtain the optimized target cuckoo search algorithm.

在本实施例中,上述模块或单元分别用于执行的操作与前述实施方式的基于人工智能的流量预测方法的步骤一一对应,在此不再赘述。In this embodiment, the operations performed by the above-mentioned modules or units correspond one-to-one to the steps of the artificial intelligence-based traffic forecasting method in the foregoing embodiments, and details are not repeated here.

在本实施例的一些可选的实现方式中,优化模块305包括:In some optional implementations of this embodiment, the optimization module 305 includes:

第二处理子模块,用于对所述目标布谷鸟搜索算法进行参数初始化;The second processing submodule is used to initialize parameters of the target cuckoo search algorithm;

第三处理子模块,用于随机产生多个鸟巢位置,并将所述初始预测模型的初始权阈值编码为所述目标布谷鸟搜索算法的初始鸟巢位置;The third processing submodule is used to randomly generate a plurality of nest positions, and encode the initial weight threshold of the initial prediction model as the initial nest position of the target cuckoo search algorithm;

计算子模块,用于确定所述目标布谷鸟搜索算法的适应度函数,并基于所述适应度函数计算各所述鸟巢位置的适应度;Calculation sub-module, used to determine the fitness function of the target cuckoo search algorithm, and calculate the fitness of each nest position based on the fitness function;

第四处理子模块,用于使用所述目标布谷鸟搜索算法,根据所述适应度进行全局迭代寻优处理,从所有所述鸟巢位置中寻找出对应的全局最优位置;The fourth processing submodule is used to use the target cuckoo search algorithm to perform global iterative optimization processing according to the fitness, and find the corresponding global optimal position from all the bird's nest positions;

判断子模块,用于判断当前的迭代次数是否满足预设的最大迭代次数;A judging sub-module is used to judge whether the current number of iterations satisfies the preset maximum number of iterations;

第三确定子模块,用于若是,将所述全局最优位置作为所述初始预测模型的最优权阈值,得到优化后的所述指定预测模型。The third determination sub-module is configured to use the global optimal position as the optimal weight threshold of the initial prediction model to obtain the optimized specified prediction model if yes.

在本实施例中,上述模块或单元分别用于执行的操作与前述实施方式的基于人工智能的流量预测方法的步骤一一对应,在此不再赘述。In this embodiment, the operations performed by the above-mentioned modules or units correspond one-to-one to the steps of the artificial intelligence-based traffic forecasting method in the foregoing embodiments, and details are not repeated here.

在本实施例的一些可选的实现方式中,预测模块307,包括:In some optional implementations of this embodiment, the prediction module 307 includes:

第五获取子模块,用于获取待处理的网络流量数据;The fifth acquisition sub-module is used to acquire network traffic data to be processed;

输入子模块,用于将所述网络流量数据输入至所述流量预测模型内;an input submodule, configured to input the network traffic data into the traffic prediction model;

预测子模块,用于通过所述流量预测模型对所述网络流量数据进行预测处理,输出与所述网络流量数据对应的预测结果。The prediction sub-module is configured to perform prediction processing on the network traffic data through the traffic prediction model, and output a prediction result corresponding to the network traffic data.

在本实施例中,上述模块或单元分别用于执行的操作与前述实施方式的基于人工智能的流量预测方法的步骤一一对应,在此不再赘述。In this embodiment, the operations performed by the above-mentioned modules or units correspond one-to-one to the steps of the artificial intelligence-based traffic forecasting method in the foregoing embodiments, and details are not repeated here.

在本实施例的一些可选的实现方式中,基于人工智能的流量预测装置还包括:In some optional implementation manners of this embodiment, the traffic prediction device based on artificial intelligence further includes:

第二获取模块,用于获取预设的模型标识;The second obtaining module is used to obtain a preset model identification;

确定模块,用于从区块链中包含的多个存储子区域确定出与所述模型标识匹配的目标存储子区域;A determining module, configured to determine a target storage sub-area matching the model identifier from multiple storage sub-areas included in the blockchain;

存储模块,用于将所述流量预测模型存储至目标存储子区域内。A storage module, configured to store the traffic forecasting model in the target storage sub-area.

在本实施例中,上述模块或单元分别用于执行的操作与前述实施方式的基于人工智能的流量预测方法的步骤一一对应,在此不再赘述。In this embodiment, the operations performed by the above-mentioned modules or units correspond one-to-one to the steps of the artificial intelligence-based traffic forecasting method in the foregoing embodiments, and details are not repeated here.

为解决上述技术问题,本申请实施例还提供计算机设备。具体请参阅图4,图4为本实施例计算机设备基本结构框图。In order to solve the above technical problems, the embodiment of the present application further provides computer equipment. Please refer to FIG. 4 for details. FIG. 4 is a block diagram of the basic structure of the computer device in this embodiment.

所述计算机设备4包括通过系统总线相互通信连接存储器41、处理器42、网络接口43。需要指出的是,图中仅示出了具有组件41-43的计算机设备4,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。其中,本技术领域技术人员可以理解,这里的计算机设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(ApplicationSpecific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable GateArray,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。The computer device 4 includes a memory 41 , a processor 42 and a network interface 43 connected to each other through a system bus. It should be noted that only the computer device 4 with components 41-43 is shown in the figure, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculation and/or information processing according to preset or stored instructions, and its hardware includes but is not limited to microprocessors, dedicated Integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable GateArray, FPGA), digital processor (Digital Signal Processor, DSP), embedded devices, etc.

所述计算机设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述计算机设备可以与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互。The computer equipment may be computing equipment such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The computer device can perform human-computer interaction with the user through keyboard, mouse, remote controller, touch panel or voice control device.

所述存储器41至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器41可以是所述计算机设备4的内部存储单元,例如该计算机设备4的硬盘或内存。在另一些实施例中,所述存储器41也可以是所述计算机设备4的外部存储设备,例如该计算机设备4上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(FlashCard)等。当然,所述存储器41还可以既包括所述计算机设备4的内部存储单元也包括其外部存储设备。本实施例中,所述存储器41通常用于存储安装于所述计算机设备4的操作系统和各类应用软件,例如基于人工智能的流量预测方法的计算机可读指令等。此外,所述存储器41还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), Magnetic Memory, Magnetic Disk, Optical Disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4 , such as a hard disk or memory of the computer device 4 . In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (FlashCard), etc. Certainly, the memory 41 may also include both an internal storage unit of the computer device 4 and an external storage device thereof. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed in the computer device 4 , such as computer-readable instructions of a flow prediction method based on artificial intelligence. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output.

所述处理器42在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器42通常用于控制所述计算机设备4的总体操作。本实施例中,所述处理器42用于运行所述存储器41中存储的计算机可读指令或者处理数据,例如运行所述基于人工智能的流量预测方法的计算机可读指令。The processor 42 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chips in some embodiments. This processor 42 is generally used to control the general operation of said computer device 4 . In this embodiment, the processor 42 is configured to execute computer-readable instructions stored in the memory 41 or process data, for example, execute computer-readable instructions of the artificial intelligence-based flow prediction method.

所述网络接口43可包括无线网络接口或有线网络接口,该网络接口43通常用于在所述计算机设备4与其他电子设备之间建立通信连接。The network interface 43 may include a wireless network interface or a wired network interface, and the network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

与现有技术相比,本申请实施例主要有以下有益效果:Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects:

本申请实施例中,首先获取预设的历史时间周期内的网络流量;然后基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;并对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;之后确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;后续基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;进一步使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;最后基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。本申请实施例在基于获取的历史时间周期内的网络流量构建对应的训练集与测试集后,通过使用对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的目标布谷鸟搜索算法对初始预测模型进行权阈值优化以构建得到指定预测模型,进而使用训练集对与测试集对指定预测模型进行训练与测试,得到训练好的流量预测模型,可以有效提升流量预测模型的网络流量预测的准确性以及模型训练的迭代效率。In the embodiment of the present application, the network traffic in the preset historical time period is first obtained; then, based on the preset time period division unit, the network traffic is sampled to obtain the corresponding training set and test set; and the Perform data preprocessing on the training set and the test set to obtain the corresponding target training set and target test set; then determine the BP neural network structure, and build an initial prediction model based on the BP neural network structure; follow-up based on the target cuckoo search The algorithm optimizes the weight threshold of the initial prediction model to obtain an optimized designated prediction model; further uses the training set to train the designated prediction model, and uses the test set to train the designated prediction model A test is performed to obtain a trained traffic prediction model; finally, traffic prediction processing is performed on the network traffic data to be processed based on the traffic prediction model. In the embodiment of the present application, after constructing the corresponding training set and test set based on the obtained network traffic in the historical time period, the target cuckoo search algorithm obtained by improving the step size update method of the original cuckoo search algorithm is used to The weight threshold of the initial prediction model is optimized to construct a specified prediction model, and then the training set and test set are used to train and test the specified prediction model to obtain a trained traffic prediction model, which can effectively improve the network traffic prediction performance of the traffic prediction model Accuracy and iterative efficiency of model training.

本申请还提供了另一种实施方式,即提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令可被至少一个处理器执行,以使所述至少一个处理器执行如上述的基于人工智能的流量预测方法的步骤。The present application also provides another implementation manner, which is to provide a computer-readable storage medium, the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to The at least one processor is made to execute the steps of the aforementioned artificial intelligence-based traffic forecasting method.

与现有技术相比,本申请实施例主要有以下有益效果:Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects:

本申请实施例中,首先获取预设的历史时间周期内的网络流量;然后基于预设的时间段划分单位对所述网络流量进行样本构建,得到对应的训练集与测试集;并对所述训练集与所述测试集进行数据预处理,得到对应的目标训练集与目标测试集;之后确定BP神经网络结构,并构建基于所述BP神经网络结构的初始预测模型;后续基于目标布谷鸟搜索算法对所述初始预测模型进行权阈值优化,得到优化后的指定预测模型;进一步使用所述训练集对所述指定预测模型进行训练,并通过所述测试集对所述训练后的指定预测模型进行测试,得到训练好的流量预测模型;最后基于所述流量预测模型对待处理的网络流量数据进行流量预测处理。本申请实施例在基于获取的历史时间周期内的网络流量构建对应的训练集与测试集后,通过使用对原始的布谷鸟搜索算法的步长更新方式进行改进后得到的目标布谷鸟搜索算法对初始预测模型进行权阈值优化以构建得到指定预测模型,进而使用训练集对与测试集对指定预测模型进行训练与测试,得到训练好的流量预测模型,可以有效提升流量预测模型的网络流量预测的准确性以及模型训练的迭代效率。In the embodiment of the present application, the network traffic in the preset historical time period is first obtained; then, based on the preset time period division unit, the network traffic is sampled to obtain the corresponding training set and test set; and the Perform data preprocessing on the training set and the test set to obtain the corresponding target training set and target test set; then determine the BP neural network structure, and build an initial prediction model based on the BP neural network structure; follow-up based on the target cuckoo search The algorithm optimizes the weight threshold of the initial prediction model to obtain an optimized designated prediction model; further uses the training set to train the designated prediction model, and uses the test set to train the designated prediction model A test is performed to obtain a trained traffic prediction model; finally, traffic prediction processing is performed on the network traffic data to be processed based on the traffic prediction model. In the embodiment of the present application, after constructing the corresponding training set and test set based on the obtained network traffic in the historical time period, the target cuckoo search algorithm obtained by improving the step size update method of the original cuckoo search algorithm is used to The weight threshold of the initial prediction model is optimized to construct a specified prediction model, and then the training set and test set are used to train and test the specified prediction model to obtain a trained traffic prediction model, which can effectively improve the network traffic prediction performance of the traffic prediction model Accuracy and iterative efficiency of model training.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.

显然,以上所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例,附图中给出了本申请的较佳实施例,但并不限制本申请的专利范围。本申请可以以许多不同的形式来实现,相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。尽管参照前述实施例对本申请进行了详细的说明,对于本领域的技术人员来而言,其依然可以对前述各具体实施方式所记载的技术方案进行修改,或者对其中部分技术特征进行等效替换。凡是利用本申请说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理在本申请专利保护范围之内。Apparently, the embodiments described above are only some of the embodiments of the present application, but not all of them. The drawings show preferred embodiments of the present application, but do not limit the patent scope of the present application. The present application can be implemented in many different forms, on the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure content of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or perform equivalent replacements for some of the technical features . All equivalent structures made using the contents of the description and drawings of this application, directly or indirectly used in other related technical fields, are also within the scope of protection of this application.

Claims (10)

1. The artificial intelligence-based flow prediction method is characterized by comprising the following steps of:
acquiring network traffic in a preset historical time period;
sample construction is carried out on the network traffic based on a preset time period dividing unit, and a corresponding training set and a corresponding testing set are obtained;
performing data preprocessing on the training set and the testing set to obtain a corresponding target training set and a corresponding target testing set;
determining a BP neural network structure, and constructing an initial prediction model based on the BP neural network structure;
performing weight threshold optimization on the initial prediction model based on a target cuckoo search algorithm to obtain an optimized specified prediction model; the target cuckoo searching algorithm is an optimized cuckoo searching algorithm obtained by improving the step length updating mode of the original cuckoo searching algorithm;
training the appointed prediction model by using the training set, and testing the trained appointed prediction model by using the testing set to obtain a trained flow prediction model;
and carrying out flow prediction processing on the network flow data to be processed based on the flow prediction model.
2. The artificial intelligence based traffic prediction method according to claim 1, wherein the step of constructing samples of the network traffic based on a preset time period division unit to obtain a corresponding training set and test set specifically includes:
Acquiring a preset time period dividing unit;
dividing each day in the history time period into a corresponding plurality of unit time periods based on the time period dividing unit;
constructing a training set corresponding to the network traffic by taking the network traffic in the same unit time period as the same sample;
acquiring a preset time value;
randomly screening appointed data corresponding to the time value from the training set based on the time value;
and taking the specified data as the test set.
3. The artificial intelligence based flow prediction method according to claim 1, wherein the step of performing data preprocessing on the training set and the test set to obtain a corresponding target training set and a target test set specifically includes:
data cleaning is carried out on the training set and the testing set, and a first training set and a first testing set which correspond to each other are obtained;
normalizing the first training set and the first testing set to obtain a corresponding second training set and second testing set;
the second training set is taken as the target training set, and the second testing set is taken as the target testing set.
4. The artificial intelligence based flow prediction method according to claim 1, further comprising, before the step of optimizing the weight threshold for the initial prediction model based on the target cuckoo search algorithm to obtain an optimized specified prediction model:
acquiring an original cuckoo searching algorithm;
acquiring a step length updating mode in the initial cuckoo searching algorithm;
and improving a step length updating mode of the cuckoo searching algorithm based on a preset formula to obtain the optimized target cuckoo searching algorithm.
5. The artificial intelligence based flow prediction method according to claim 1, wherein the step of optimizing the weight threshold of the initial prediction model based on the target cuckoo search algorithm to obtain an optimized specified prediction model specifically comprises:
initializing parameters of the target cuckoo search algorithm;
randomly generating a plurality of bird nest positions, and encoding an initial weight threshold of the initial prediction model into initial bird nest positions of the target cuckoo search algorithm;
determining a fitness function of the target cuckoo search algorithm, and calculating fitness of each nest position based on the fitness function;
Using the target cuckoo searching algorithm, performing global iterative optimization according to the fitness, and searching out a corresponding global optimal position from all the bird nest positions;
judging whether the current iteration number meets the preset maximum iteration number or not;
if yes, the global optimal position is used as an optimal weight threshold of the initial prediction model, and the optimized appointed prediction model is obtained.
6. The artificial intelligence based traffic prediction method according to claim 1, wherein the step of performing traffic prediction processing on the network traffic data to be processed based on the traffic prediction model specifically comprises:
acquiring network traffic data to be processed;
inputting the network traffic data into the traffic prediction model;
and carrying out prediction processing on the network traffic data through the traffic prediction model, and outputting a prediction result corresponding to the network traffic data.
7. The artificial intelligence based traffic prediction method according to claim 1, further comprising, after the step of training the specified prediction model using the training set and testing the trained specified prediction model by the test set to obtain a trained traffic prediction model:
Acquiring a preset model identifier;
determining a target memory subarea matched with the model identification from a plurality of memory subareas contained in the blockchain;
and storing the flow prediction model into a target storage subarea.
8. An artificial intelligence based flow prediction device, comprising:
the first acquisition module is used for acquiring network traffic in a preset historical time period;
the first construction module is used for carrying out sample construction on the network flow based on a preset time period dividing unit to obtain a corresponding training set and a corresponding testing set;
the processing module is used for carrying out data preprocessing on the training set and the testing set to obtain a corresponding target training set and a corresponding target testing set;
the second construction module is used for determining a BP neural network structure and constructing an initial prediction model based on the BP neural network structure;
the optimization module is used for optimizing the weight threshold value of the initial prediction model based on a target cuckoo search algorithm to obtain an optimized specified prediction model; the target cuckoo searching algorithm is an optimized cuckoo searching algorithm obtained by improving the step length updating mode of the original cuckoo searching algorithm;
The training module is used for training the appointed prediction model by using the training set, and testing the trained appointed prediction model by using the testing set to obtain a trained flow prediction model;
and the prediction module is used for carrying out flow prediction processing on the network flow data to be processed based on the flow prediction model.
9. A computer device comprising a memory having stored therein computer readable instructions which when executed implement the steps of the artificial intelligence based flow prediction method of any of claims 1 to 7.
10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of the artificial intelligence based flow prediction method of any of claims 1 to 7.
CN202310769159.9A 2023-06-27 2023-06-27 Traffic prediction method, device, equipment and storage medium based on artificial intelligence Pending CN116684330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310769159.9A CN116684330A (en) 2023-06-27 2023-06-27 Traffic prediction method, device, equipment and storage medium based on artificial intelligence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310769159.9A CN116684330A (en) 2023-06-27 2023-06-27 Traffic prediction method, device, equipment and storage medium based on artificial intelligence

Publications (1)

Publication Number Publication Date
CN116684330A true CN116684330A (en) 2023-09-01

Family

ID=87783736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310769159.9A Pending CN116684330A (en) 2023-06-27 2023-06-27 Traffic prediction method, device, equipment and storage medium based on artificial intelligence

Country Status (1)

Country Link
CN (1) CN116684330A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996403A (en) * 2023-09-26 2023-11-03 深圳市乙辰科技股份有限公司 Network traffic diagnosis method and system using AI model
CN117647932A (en) * 2024-01-25 2024-03-05 上海碳索能源服务股份有限公司 Method, system, terminal and medium for constructing cooling pump flow prediction model
CN118504716A (en) * 2024-07-18 2024-08-16 长江水利委员会水文局 Method and device for calibrating flow measurement model parameters

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229714A (en) * 2016-12-19 2018-06-29 普天信息技术有限公司 Prediction model construction method, Number of Outpatients Forecasting Methodology and device
CN109637121A (en) * 2018-06-05 2019-04-16 南京理工大学 A kind of road traffic congestion prediction technique in short-term based on CS-SVR algorithm
CN111294227A (en) * 2018-12-10 2020-06-16 中国移动通信集团四川有限公司 Method, apparatus, device and medium for neural network-based traffic prediction
CN115987816A (en) * 2022-12-15 2023-04-18 中国联合网络通信集团有限公司 Network traffic forecasting method, device, electronic device and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229714A (en) * 2016-12-19 2018-06-29 普天信息技术有限公司 Prediction model construction method, Number of Outpatients Forecasting Methodology and device
CN109637121A (en) * 2018-06-05 2019-04-16 南京理工大学 A kind of road traffic congestion prediction technique in short-term based on CS-SVR algorithm
CN111294227A (en) * 2018-12-10 2020-06-16 中国移动通信集团四川有限公司 Method, apparatus, device and medium for neural network-based traffic prediction
CN115987816A (en) * 2022-12-15 2023-04-18 中国联合网络通信集团有限公司 Network traffic forecasting method, device, electronic device and readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116996403A (en) * 2023-09-26 2023-11-03 深圳市乙辰科技股份有限公司 Network traffic diagnosis method and system using AI model
CN116996403B (en) * 2023-09-26 2023-12-15 深圳市乙辰科技股份有限公司 Network traffic diagnosis method and system using AI model
CN117647932A (en) * 2024-01-25 2024-03-05 上海碳索能源服务股份有限公司 Method, system, terminal and medium for constructing cooling pump flow prediction model
CN117647932B (en) * 2024-01-25 2024-05-07 上海碳索能源服务股份有限公司 Method, system, terminal and medium for constructing cooling pump flow prediction model
CN118504716A (en) * 2024-07-18 2024-08-16 长江水利委员会水文局 Method and device for calibrating flow measurement model parameters
CN118504716B (en) * 2024-07-18 2024-10-01 长江水利委员会水文局 Method and device for calibrating flow measurement model parameters

Similar Documents

Publication Publication Date Title
WO2021208728A1 (en) Method and apparatus for speech endpoint detection based on neural network, device, and medium
WO2021120677A1 (en) Warehousing model training method and device, computer device and storage medium
CN116684330A (en) Traffic prediction method, device, equipment and storage medium based on artificial intelligence
US11423307B2 (en) Taxonomy construction via graph-based cross-domain knowledge transfer
CN107169573A (en) Method and system for performing predictions using composite machine learning models
CN110162766B (en) Word vector updating method and device
CN115099875A (en) Data classification method based on decision tree model and related equipment
CN113160795B (en) Language feature extraction model training method, device, equipment and storage medium
CN112995414B (en) Behavior quality inspection method, device, equipment and storage medium based on voice call
CN115329876A (en) A device fault handling method, device, computer equipment and storage medium
CN115099326A (en) Behavior prediction method, device, equipment and storage medium based on artificial intelligence
CN111178537B (en) Feature extraction model training method and device
CN117235257A (en) Emotion prediction method, device, equipment and storage medium based on artificial intelligence
CN114780809A (en) Knowledge pushing method, device, equipment and storage medium based on reinforcement learning
CN115906983B (en) Distributed model training method, device, equipment, storage medium and program product
CN116777646A (en) Artificial intelligence-based risk identification method, apparatus, device and storage medium
CN116049678A (en) Feature contribution degree evaluation method, device, electronic equipment and storage medium
CN119522428A (en) A model training method and related equipment
CN120147023A (en) Enterprise insurance risk control method, device, computer equipment and storage medium
CN113361629A (en) Training sample generation method and device, computer equipment and storage medium
CN119179958A (en) Method, device, computer equipment and storage medium for processing claim risk model
CN114943274B (en) Model training method, device, storage medium, server, terminal and system
US20220286416A1 (en) Method and apparatus for generating account intimacy
CN114445692A (en) Image recognition model construction method and device, computer equipment and storage medium
CN116631436B (en) Gender recognition model processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination