WO2021027153A1 - Method and apparatus for constructing traffic flow data analysis model - Google Patents

Method and apparatus for constructing traffic flow data analysis model Download PDF

Info

Publication number
WO2021027153A1
WO2021027153A1 PCT/CN2019/117989 CN2019117989W WO2021027153A1 WO 2021027153 A1 WO2021027153 A1 WO 2021027153A1 CN 2019117989 W CN2019117989 W CN 2019117989W WO 2021027153 A1 WO2021027153 A1 WO 2021027153A1
Authority
WO
WIPO (PCT)
Prior art keywords
traffic flow
fitness value
flow data
road
iterations
Prior art date
Application number
PCT/CN2019/117989
Other languages
French (fr)
Chinese (zh)
Inventor
杜艳艳
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021027153A1 publication Critical patent/WO2021027153A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2477Temporal data queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • G08G1/0129Traffic data processing for creating historical data or processing based on historical data

Definitions

  • This application relates to the technical field of data processing. Specifically, this application relates to a method and device for constructing a traffic flow data analysis model.
  • an intelligent transportation system is used to record historical traffic flow data in the same time period in the near future, and to predict the recent traffic flow based on the recorded content.
  • this method can predict real-time traffic flow data to a certain extent, there is no tool that can be widely applied to long-term road condition analysis and does not help long-term traffic flow forecasting.
  • this application provides a method for constructing a traffic flow data analysis model, which includes the following steps:
  • the training samples of each road section are updated, and the hybrid frog leaping algorithm is used to obtain the optimal fitness value of all road sections;
  • connection weights The optimal fitness values of all road sections are used to obtain connection weights, and a wavelet neural network traffic flow data analysis model is constructed according to the connection weights.
  • this application also provides a device for constructing a traffic flow data analysis model, which includes:
  • the extraction module is used to establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
  • the training sample setting module is used to obtain the historical traffic flow data of each road section in different sub-time periods of the set time period as training samples;
  • the iterative calculation module is used to update the training samples of each road section according to the set maximum number of iterations, and obtain the optimal fitness value of all road sections by using the hybrid leapfrog algorithm;
  • the construction module is used for obtaining connection weights by using the optimal fitness values of all road sections, and constructing and obtaining a traffic flow data analysis model of the wavelet neural network according to the connection weights.
  • this application also provides a server, which includes:
  • One or more processors are One or more processors;
  • One or more computer programs wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to execute The method for constructing a traffic flow data analysis model described in the embodiment of the above first aspect.
  • the present application also provides a computer non-volatile readable storage medium, the computer non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect is realized The method for constructing the traffic flow data analysis model described in the embodiment.
  • the method and device for constructing a traffic flow data analysis model obtained traffic flow data of all road sections in a target area through a data channel with a traffic flow data monitoring system; and according to different sub-time periods of the set time period
  • the historical traffic flow data is used as the training sample, and the optimal fitness value is obtained using the hybrid leapfrog algorithm, and the traffic flow data analysis model of the wavelet neural network is obtained.
  • this application also further technically optimizes the technical solution of the construction method and device of the traffic flow data analysis model, and divides the traffic flow directions of all road sections in the target area into the injection direction and the drainage direction,
  • the hybrid frog leaping algorithm is used to train the injected traffic flow and the diverted traffic flow of each road section to obtain the corresponding traffic flow data analysis model.
  • the traffic flow data analysis model separately predicts the injected traffic flow and the diversion traffic flow, and can obtain the prediction results of the traffic flow of all road sections in the target area more accurately.
  • the technical solution provided in this application uses the hybrid frog leaping algorithm to obtain the connection weights of the wavelet neural network prediction model. It uses the characteristics of the hybrid frog leaping algorithm with strong global search ability, fast convergence speed, and less parameter configuration, making it possible to Fast convergence to obtain the global optimal solution, so the use of the initial wavelet neural network parameters obtained by the hybrid frog leaping algorithm to train the traffic flow data analysis model can achieve the goal of improving the prediction speed and prediction accuracy when predicting the traffic flow.
  • the method and device for constructing a traffic flow data analysis model provided by this application have strong global search capabilities and can be well adapted to different traffic flow data samples after updating and iteration, and therefore can be adapted to different traffic flow data samples in different periods and periods. Flow data constructs a corresponding traffic flow data analysis model, filling the gap of long-term traffic flow data analysis tools.
  • Fig. 1 is a flowchart of a method for constructing a traffic flow data analysis model according to an embodiment of the application
  • FIG. 2 is a flowchart of a method for constructing a traffic flow data analysis model according to another embodiment of the application
  • FIG. 3 is a schematic diagram of a device for constructing a traffic flow data analysis model according to an embodiment of the application
  • FIG. 4 is a schematic structural diagram of a server according to an embodiment of the application.
  • FIG. 1 is an embodiment of the construction of a traffic flow data analysis model.
  • the flow chart of the method includes the following steps:
  • S110 Establish a data channel with the traffic flow data monitoring system, determine a corresponding road section according to the target area, and extract traffic flow data of the target area from the data channel.
  • the target area is an area including several road sections.
  • the road section is a general traffic road section, which must form a direct or indirect connection with other road sections, and will interact with the traffic flow data of all road sections, and act on the traffic flow data of other road sections connected to it, especially A road section that directly inputs or outputs a traffic flow to the target road section.
  • the acquisition of traffic flow data for all road sections is completed by the traffic flow data monitoring system.
  • the traffic flow data monitoring system When acquiring traffic flow data of a corresponding road section, first determine the road section corresponding to the target area, and add a label to the road section. According to the label of the road section, the traffic flow data of the corresponding road section is obtained through the data channel established with the traffic flow data monitoring system.
  • the evaluation time period of the traffic flow data of all road sections in the target area is determined as a set time period, and the evaluation time period is divided into several sub-time periods with equal time intervals. For each road section in the target area, the traffic flow data in each sub-time period is obtained, and part of the traffic flow data is used as the training sample x it .
  • the hybrid leapfrog algorithm is used to calculate the fitness value of the traffic flow data of each road section to obtain the optimal fitness value, and the traffic flow data analysis model is trained.
  • the training samples obtained in step S120 are used as elements of the hybrid leaping algorithm, and the fitness value corresponding to each training sample is calculated according to the set maximum number of iterations . After comparing the fitness of each training sample, the minimum fitness value is obtained, and this is used as the optimal fitness value.
  • the fitness value is a parameter reflecting the pros and cons of the current position of the frog's primary color in the hybrid leapfrog algorithm.
  • connection weights Calculate connection weights by using the optimal fitness values of all road sections, and construct and obtain a traffic flow data analysis model of the wavelet neural network according to the connection weights.
  • connection weight is calculated by using the optimal fitness value obtained in step S130.
  • the connection weight is input into the wavelet neural network to obtain a traffic flow data analysis model of the wavelet neural network.
  • the traffic flow data analysis model obtained by training the wavelet neural network using the hybrid frog leaping algorithm compares the error with the predicted value and the actual value that only relies on the calculation of the connection weight, and is continuously adjusted according to the magnitude of the error Compared with the practice of wavelet neural network parameters, until the predicted value is getting closer and closer to the true value, it is easier to obtain the connection weight that matches the actual value.
  • the connection weight includes a first connection weight and a second connection weight.
  • the method for constructing a traffic flow data analysis model is to obtain traffic flow data on corresponding road sections in a target area through a data channel established with a traffic flow data monitoring system to obtain traffic flow data for different sub-time periods of a set time period.
  • the historical traffic flow data is used as the training sample, and the hybrid leaping algorithm is used to obtain the optimal fitness value of all road sections according to the set maximum number of iterations, and the connection weight of the wavelet neural network is obtained according to the optimal fitness value, Construct a traffic flow data analysis model based on wavelet neural network.
  • This application trains the wavelet neural network through a hybrid leapfrog algorithm to obtain the traffic flow data analysis model.
  • the traffic flow data of the target road section can be obtained by acquiring the traffic flow data of the road section in different periods and different time periods.
  • the prediction solves the problem that the prior art can only simply predict the historical traffic flow in the same time period in the short-term, and cannot meet the long-term traffic flow prediction of the target road section.
  • step S130 it may further include the following steps:
  • A1 Update the training samples of each road segment according to the set maximum number of iterations, and use the hybrid leapfrog algorithm to obtain the updated fitness value of each road segment.
  • the maximum number of iterations set by the hybrid leapfrog group algorithm is used to update the training sample x it of each road section.
  • the updated fitness value of each road section is calculated.
  • y i is calculated by the wavelet neural network model, and the formula of the output layer is as follows:
  • h(j) represents the output result of the j-th node of the hidden layer
  • the selected hidden layer output formula is:
  • the fitness value is the prediction error value of the wavelet neural network
  • y i is the predicted output of the i-th node
  • mi is the expected output of the i-th node
  • the expected output is a variable sample of the obtained traffic flow data
  • a i is the expansion factor
  • b i is the translation factor.
  • step S130 In order to obtain the fitness value of each road segment, before step S130, that is, before the optimal fitness of the road segment is obtained by the hybrid leaping algorithm, a traffic flow data analysis model of wavelet neural network is required, and the above-mentioned a first wavelet neural network connection weight values W ij, the second connection weights W jk, stretching factor a i, b i is initialized shift factor is provided, so as to calculate the fitness value of each segment.
  • the local optimal fitness value is obtained by comparing all the molecular groups of the fitness values of the road sections, and the global optimal fitness value is obtained by comparing the fitness values of all the road sections .
  • the minimum fitness value is calculated with the maximum fitness value obtained by the final update, and the minimum fitness value is used as the optimal fitness value.
  • the historical traffic flow data of each road section can be assigned to each road section according to the busy level of the historical traffic flow data in the descending order of the fitness value of each road section in each update iteration. For each busy level, each traffic flow subset is obtained.
  • each traffic flow subset is obtained.
  • step A2 may further include:
  • A21 Update the maximum fitness value of the current traffic flow subset in all traffic flow subsets according to the maximum number of iterations set by a single traffic flow subset.
  • the maximum number of iterations for each traffic flow subset is set to be consistent. According to the maximum number of iterations set by the traffic flow subset, for different sub-time periods within the set time period, the training samples of each road section in each traffic flow subset are updated and iterated, and the corresponding traffic flow subset The current maximum fitness value is updated to obtain the current maximum fitness value in the traffic flow subset.
  • the global maximum fitness value of the road segment is updated according to the remaining number of iterations.
  • each traffic flow subset when the maximum number of iterations set by a single traffic flow subset is met, after all traffic flow subsets have completed the local deep search, if the number of global hybrid iterations is met, update At the end of the process, the last maximum fitness value of the global road section is obtained, and the minimum fitness value is calculated.
  • the road section with the largest fitness value of the subset in the current iteration is X w
  • the road section with the smallest fitness value is X b
  • the road section with the smallest fitness value among all road sections is X g
  • the road section with the largest current fitness value in this subset is X w for updating.
  • the updating strategy is as follows.
  • the updated road segment is used to replace the road segment with the largest fitness in the current subset in the current iteration.
  • the maximum number of iterations set for a single traffic flow subset is less than the number of global hybrid iterations, then re-sort the latest fitness values obtained from each iteration and then assign them to each traffic flow one by one in the above manner. Concentration, first update the maximum fitness value of all traffic flow subsets. According to the remaining number of iterations, repeat the above calculation and update to obtain the last maximum fitness value for the global road section.
  • A23 Calculate the minimum fitness value of the road section according to the updated maximum fitness value, and use the minimum fitness value as the optimal fitness value.
  • step A22 the last maximum fitness value is obtained, and the minimum fitness value is calculated and used as the optimal fitness value.
  • the method for constructing the traffic flow data analysis model provided by this application can converge to the global optimal solution, so it is beneficial to improve the prediction speed and prediction accuracy.
  • step S140 may further include the following steps:
  • the vector value of the green frog position element corresponding to the optimal fitness value is obtained.
  • the vector value of the position of the frog element is:
  • x id is the expression form of the vector of x it .
  • the fitness function is used to characterize the corresponding relationship between all individuals in the problem and their fitness.
  • the vector of the position of the frog element obtained by using the curve image of the fitness value function is the first connection weight W ij , the second connection weight W jk , the expansion factor a i and the translation factor of the wavelet neural network.
  • the fitness function is used to calculate an optimal solution of the first connection weight W ij and the second connection weight W jk according to the optimal fitness value.
  • the obtained optimal solution of the first connection weight W ij and the second connection weight W jk is to be input into the constructed wavelet neural network model to obtain the optimal traffic flow data analysis model for the road section.
  • test samples of the traffic flow data of each road section are input into the traffic flow data analysis model to obtain the traffic flow prediction data of the target area.
  • the traffic flow data prediction method provided in this application is easier to converge to the global optimal solution, which is beneficial to improve the prediction speed and prediction accuracy.
  • the sum of the training samples, test samples, and variable samples of traffic flow data involved in the above description is the sum of the traffic flow data acquired in different sub-time periods of the set time period for all road sections, based on empirical values Set the ratio of the above three samples.
  • the proportion of the training samples is set to 65%, and the proportion of the variable samples is set to 10%, the proportion of test samples is set to 25%.
  • the obtained traffic flow data corresponding to each sample is respectively distributed according to proportions and waiting to be entered, and data processing is performed to obtain the traffic flow prediction data of the target area.
  • FIG. 2 is a flowchart of a method for constructing a traffic flow data analysis model according to another embodiment of the application.
  • a traffic flow data analysis model according to another embodiment of the application.
  • all road sections are divided into injecting traffic flow and diverting traffic flow.
  • step S130 may further include:
  • the corresponding training samples of the injected traffic flow and the diversion traffic flow of each road section are updated.
  • the injecting traffic flow and the diversion traffic flow of each road segment are traffic flows in the traffic lanes in opposite directions in a road segment.
  • the fitness values of each injected traffic flow and diversion traffic flow are calculated respectively.
  • each injecting traffic flow or diverting traffic flow can be divided into busy level, and all injecting traffic flow or diverting traffic can be classified According to the busy level, the flow is divided into different infusion traffic flow sets or diversion traffic flow sets.
  • the global maximum fitness value of the road segment is updated according to the remaining number of iterations.
  • the method for constructing the traffic flow data analysis model may include:
  • a traffic flow direction For all road sections, set a traffic flow direction to be positive, and the traffic flow direction opposite to it to be negative, and input the injected traffic flow and diverted traffic flow of each road section into the traffic flow data analysis model to obtain the traffic in each direction Stream forecast data. According to the direction of the traffic flow, the predicted data of the injected traffic flow and the dredging traffic flow are added together to obtain the predicted data of the traffic flow of all road sections.
  • the traffic flow prediction data of all road sections in the target area is finally obtained.
  • the traffic flow data of the injected traffic flow and the traffic flow data of the diversion traffic flow both include respective corresponding training samples, variable samples, and test samples, and their addition is for the injected traffic flow.
  • the sum of the traffic flow data obtained in different sub-time periods of the set time period of the diversion traffic flow, and the above three samples of the injection traffic flow and the diversion traffic flow are respectively set in proportions according to empirical values .
  • the proportion settings of the respective samples corresponding to the injection road section and the dredging road section are the same.
  • the proportions of the training samples are all set to 65%, and the proportions of the variable samples are all Set to 10%, and the proportion of test samples is set to 25%.
  • an embodiment of the present application also provides a device for constructing a traffic flow data analysis model, as shown in FIG. 3, including:
  • the extraction module 310 is configured to establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
  • the training sample setting module 320 is used to obtain historical traffic flow data of each road section in different sub-time periods of the set time period as training samples;
  • the iterative calculation module 330 is used to update the training samples of each road section according to the set maximum number of iterations, and obtain the optimal fitness value of all road sections by using the hybrid frog leaping algorithm;
  • the construction module 340 is configured to use the optimal fitness values of all road sections to obtain connection weights, and construct a wavelet neural network traffic flow data analysis model according to the connection weights.
  • FIG. 4 is a schematic diagram of the internal structure of the server in an embodiment.
  • the server includes a processor 410, a storage medium 420, a memory 430, and a network interface 440 connected through a system bus.
  • the storage medium 420 of the server stores an operating system, a database, and computer-readable instructions.
  • the database may store control information sequences.
  • the processor 410 can realize a traffic
  • the processor 410 can implement the extraction module 310, the training sample setting module 320, the iterative calculation module 330, and the construction in the device for constructing a traffic flow data analysis model in the embodiment shown in FIG.
  • the processor 410 of the server is used to provide computing and control capabilities to support the operation of the entire server.
  • the memory 430 of the server may store computer-readable instructions, and when the computer-readable instructions are executed by the processor 410, the processor 410 can execute a method for constructing a traffic flow data analysis model.
  • the network interface 440 of the server is used to connect and communicate with the terminal.
  • the present application also proposes a storage medium storing computer-readable instructions.
  • the one or more processors perform the following steps:
  • the data channel with the traffic flow data monitoring system determines the corresponding road section according to the target area, and extracts the traffic flow data of the target area from the data channel; obtains the historical traffic flow of each road section in different sub-time periods of the set time period Data is used as a training sample; according to the set maximum number of iterations, the training sample of each road section is updated, and the optimal fitness value of all road sections is obtained using the hybrid frog-leap algorithm; the optimal fitness value of all road sections is used
  • the connection weight is constructed to obtain a traffic flow data analysis model of the wavelet neural network according to the connection weight.
  • the method and device for constructing a traffic flow data analysis model obtained traffic flow data of all road sections in a target area through a data channel with a traffic flow data monitoring system; and according to different sub-time periods of the set time period
  • the historical traffic flow data is used as the training sample, and the optimal fitness value is obtained using the hybrid leapfrog algorithm, and the traffic flow data analysis model of the wavelet neural network is obtained.
  • this application also further technically optimizes the technical solution of the construction method and device of the traffic flow data analysis model, and divides the traffic flow directions of all road sections in the target area into the injection direction and the drainage direction,
  • the hybrid frog leaping algorithm is used to train the injected traffic flow and the diverted traffic flow of each road section to obtain the corresponding traffic flow data analysis model.
  • the traffic flow data analysis model separately predicts the injected traffic flow and the diversion traffic flow, and can obtain the prediction results of the traffic flow of all road sections in the target area more accurately.
  • the technical solution provided by this application uses the hybrid frog leaping algorithm to obtain the connection weights of the wavelet neural network prediction model. It uses the characteristics of the hybrid frog leaping algorithm with strong global search ability, fast convergence speed, and less parameter configuration, making it possible to Fast convergence to obtain the global optimal solution, so the use of the initial wavelet neural network parameters obtained by the hybrid frog leaping algorithm to train the traffic flow data analysis model can achieve the goal of improving the prediction speed and prediction accuracy when predicting the traffic flow.
  • the method and device for constructing a traffic flow data analysis model provided by this application have strong global search capabilities and can be well adapted to different traffic flow data samples after updating and iteration, and therefore can be adapted to different traffic flow data samples in different periods and periods. Flow data constructs a corresponding traffic flow data analysis model, filling the gap of long-term traffic flow data analysis tools.
  • this application will use the hybrid frog leaping algorithm to construct a traffic flow data analysis model of wavelet neural network, which fills in the gap of long-term traffic flow data analysis tools and improves The efficiency of traffic flow data prediction.
  • the computer program can be stored in a computer readable storage medium. When executed, it may include the processes of the above-mentioned method embodiments.
  • the aforementioned storage medium may be a storage medium such as a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Molecular Biology (AREA)
  • Evolutionary Computation (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Probability & Statistics with Applications (AREA)
  • Fuzzy Systems (AREA)
  • Databases & Information Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Traffic Control Systems (AREA)

Abstract

A method and apparatus for constructing a traffic flow data analysis model, relating to the technical field of data processing. The method comprises: establishing a data channel with a traffic flow data monitoring system, determining a corresponding road segment according to a target area, and extracting traffic flow data of the target area from the data channel (S110); obtaining historical traffic flow data in different sub-periods of a set period of each road segment as a training sample (S120); updating the training sample of each road segment according to a set maximum number of iterations, and obtaining an optimal fitness value of all road segments using a shuffled frog leaping algorithm (S130); and obtaining a connection weight value using the optimal fitness value of all road segments, and constructing, according to the connection weight value, a traffic flow data analysis model of a wavelet neural network (S140). The method fills a long-standing gap in analysis tools for traffic flow data, and improves the efficiency of traffic flow data prediction.

Description

交通流数据分析模型的构建方法和装置Method and device for constructing traffic flow data analysis model
本申请要求于2019年08月15日提交中国专利局、申请号为201910754650.8、申请名称为“交通流数据分析模型的构建方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on August 15, 2019, the application number is 201910754650.8, and the application title is "Method and Device for Constructing Traffic Flow Data Analysis Model", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及数据处理技术领域,具体而言,本申请涉及一种交通流数据分析模型的构建方法和装置。This application relates to the technical field of data processing. Specifically, this application relates to a method and device for constructing a traffic flow data analysis model.
背景技术Background technique
随着城市交通网络的发展,交通流量更容易受多方面的因素影响,随机性的特点也越来越突出。目前,针对这个问题,运用了智能交通系统,对应近期同一时间段的历史交通流数据的进行收录,并根据该收录的内容,对近期的交通流量进行预测。但该方法虽然能对实时的交通流数据起到一定的预测作用,但没有一种能广泛适用于长期的路况分析工具,无助于交通流长期的预测工作。With the development of urban transportation networks, traffic flow is more susceptible to many factors, and the characteristics of randomness are becoming more and more prominent. At present, in response to this problem, an intelligent transportation system is used to record historical traffic flow data in the same time period in the near future, and to predict the recent traffic flow based on the recorded content. Although this method can predict real-time traffic flow data to a certain extent, there is no tool that can be widely applied to long-term road condition analysis and does not help long-term traffic flow forecasting.
发明内容Summary of the invention
为克服以上技术问题,特别是现有技术中只能从短期的同一时间段获取历史交通流数据,不能很好解决对长期的交通流数据的预测的问题,特提出以下技术方案:In order to overcome the above technical problems, especially the prior art can only obtain historical traffic flow data from the same time period in a short period of time, and cannot well solve the problem of predicting long-term traffic flow data, the following technical solutions are proposed:
第一方面,本申请提供一种基于交通流数据分析模型的构建方法,其包括如下步骤:In the first aspect, this application provides a method for constructing a traffic flow data analysis model, which includes the following steps:
建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据;Establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本;Obtain historical traffic flow data of different sub-time periods of each road section in the set time period as training samples;
根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值;According to the set maximum number of iterations, the training samples of each road section are updated, and the hybrid frog leaping algorithm is used to obtain the optimal fitness value of all road sections;
利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建 得到小波神经网络的交通流数据分析模型。The optimal fitness values of all road sections are used to obtain connection weights, and a wavelet neural network traffic flow data analysis model is constructed according to the connection weights.
第二方面,本申请还提供一种交通流数据分析模型的构建装置,其包括:In the second aspect, this application also provides a device for constructing a traffic flow data analysis model, which includes:
提取模块,用于建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据;The extraction module is used to establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
训练样本设定模块,用于获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本;The training sample setting module is used to obtain the historical traffic flow data of each road section in different sub-time periods of the set time period as training samples;
迭代计算模块,用于根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值;The iterative calculation module is used to update the training samples of each road section according to the set maximum number of iterations, and obtain the optimal fitness value of all road sections by using the hybrid leapfrog algorithm;
构建模块,用于利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建得到小波神经网络的交通流数据分析模型。The construction module is used for obtaining connection weights by using the optimal fitness values of all road sections, and constructing and obtaining a traffic flow data analysis model of the wavelet neural network according to the connection weights.
第三方面,本申请还提供一种服务器,其包括:In the third aspect, this application also provides a server, which includes:
一个或多个处理器;One or more processors;
存储器;Memory
一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个计算机程序配置用于执行上述第一方面的实施例所述交通流数据分析模型的构建方法。One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to execute The method for constructing a traffic flow data analysis model described in the embodiment of the above first aspect.
第四方面,本申请还提供一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述第一方面的实施例所述交通流数据分析模型的构建方法。In a fourth aspect, the present application also provides a computer non-volatile readable storage medium, the computer non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect is realized The method for constructing the traffic flow data analysis model described in the embodiment.
本申请所提供的一种交通流数据分析模型的构建方法和装置,通过与交通流数据监控系统的数据通道获取目标区域所有路段的交通流数据;并根据设定时间段的不同子时间段的历史交通流数据作为训练样本,利用混合蛙跳算法得到最优适应度值,得到小波神经网络的交通流数据分析模型。The method and device for constructing a traffic flow data analysis model provided by this application obtain traffic flow data of all road sections in a target area through a data channel with a traffic flow data monitoring system; and according to different sub-time periods of the set time period The historical traffic flow data is used as the training sample, and the optimal fitness value is obtained using the hybrid leapfrog algorithm, and the traffic flow data analysis model of the wavelet neural network is obtained.
在此基础上,本申请还对所述交通流数据分析模型的构建方法和装置的技术方案进行进一步的技术优化,将所述目标区域的所有路段的交通流方向分为注入方向和疏导方向,分别利用混合蛙跳算法对每个路段的注入交通流和所述疏导交通流进行训练,得到对应的交通流数据分析模型。该交通流数据分析模型分别对所述注入交通流和所述疏导交通流进行预测,可更精准地得到所述目标区域的所有路段的交通流的预测结果。On this basis, this application also further technically optimizes the technical solution of the construction method and device of the traffic flow data analysis model, and divides the traffic flow directions of all road sections in the target area into the injection direction and the drainage direction, The hybrid frog leaping algorithm is used to train the injected traffic flow and the diverted traffic flow of each road section to obtain the corresponding traffic flow data analysis model. The traffic flow data analysis model separately predicts the injected traffic flow and the diversion traffic flow, and can obtain the prediction results of the traffic flow of all road sections in the target area more accurately.
本申请所提供的技术方案运用了混合蛙跳算法得到小波神经网络的预测模型的连接权值,其运用了混合蛙跳算法的全局搜索能力强、收敛速度快、参数配置少的特点,使得可快速收敛得到全局最优解,故利用混合蛙跳算法得到的初始化小波神经网络参数训练交通流数据分析模型在对交通流进行预测时,可以达到提高预测速度和预测精度的目标。同时,本申请提供的交通流数据分析模型的构建方法和装置,由于全局搜索能力强,通过更新迭代后,能很好适应不同的交通流数据的数据样本,因此能根据不同时期不同时段的交通流数据构建对应的交通流数据分析模型,填补了对长期的交通流数据的分析工具的空缺。The technical solution provided in this application uses the hybrid frog leaping algorithm to obtain the connection weights of the wavelet neural network prediction model. It uses the characteristics of the hybrid frog leaping algorithm with strong global search ability, fast convergence speed, and less parameter configuration, making it possible to Fast convergence to obtain the global optimal solution, so the use of the initial wavelet neural network parameters obtained by the hybrid frog leaping algorithm to train the traffic flow data analysis model can achieve the goal of improving the prediction speed and prediction accuracy when predicting the traffic flow. At the same time, the method and device for constructing a traffic flow data analysis model provided by this application have strong global search capabilities and can be well adapted to different traffic flow data samples after updating and iteration, and therefore can be adapted to different traffic flow data samples in different periods and periods. Flow data constructs a corresponding traffic flow data analysis model, filling the gap of long-term traffic flow data analysis tools.
本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。The additional aspects and advantages of this application will be partly given in the following description, which will become obvious from the following description, or be understood through the practice of this application.
附图说明Description of the drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become obvious and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为本申请中的一个实施例的交通流数据分析模型的构建方法的流程图;Fig. 1 is a flowchart of a method for constructing a traffic flow data analysis model according to an embodiment of the application;
图2为本申请中的另一个实施例的交通流数据分析模型的构建方法的流程图;2 is a flowchart of a method for constructing a traffic flow data analysis model according to another embodiment of the application;
图3为本申请中的一个实施例的交通流数据分析模型的构建装置的示意图;FIG. 3 is a schematic diagram of a device for constructing a traffic flow data analysis model according to an embodiment of the application;
图4为本申请中的一个实施例的服务器的结构示意图。FIG. 4 is a schematic structural diagram of a server according to an embodiment of the application.
具体实施方式detailed description
下面详细描述本申请的实施例,所述实施例的示例在附图中示出。The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings.
这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,这里使用的措辞“和/ 或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。The singular forms "a", "an", "said" and "the" used herein may also include plural forms. The term "comprising" used in the specification of this application refers to the presence of the described features, integers, steps, operations, elements, and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, Elements, components and/or groups of them. It should be understood that the term "and/or" used herein includes all or any unit and all combinations of one or more associated listed items.
该方法虽然能对实时的交通流数据起到一定的预测作用,但没有一种能广泛适用于长期的路况分析模型,无助于交通流长期的预测工作。Although this method can predict real-time traffic flow data to a certain extent, there is no one that can be widely applied to long-term road condition analysis models and does not help long-term traffic flow forecasting.
目前缺乏针对长期且能广泛应用的路况分析工具的问题,本申请提供一种交通流数据分析模型的构建方法,请参考图1所示,图1是一个实施例的交通流数据分析模型的构建方法的流程图,包括以下步骤:Currently, there is a lack of long-term and widely applicable road condition analysis tools. This application provides a method for constructing a traffic flow data analysis model. Please refer to FIG. 1, which is an embodiment of the construction of a traffic flow data analysis model. The flow chart of the method includes the following steps:
S110、建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据。S110: Establish a data channel with the traffic flow data monitoring system, determine a corresponding road section according to the target area, and extract traffic flow data of the target area from the data channel.
在本申请中,所述目标区域为包括若干路段的区域。所述路段为一般的行车路段,其必定与其他路段形成直接或间接的连接关系,而且与所有路段的交通流数据会产生相互影响,作用于与其对应连接的其他路段的交通流数据,尤其是直接向所述目标路段输入或输出交通流的路段。In this application, the target area is an area including several road sections. The road section is a general traffic road section, which must form a direct or indirect connection with other road sections, and will interact with the traffic flow data of all road sections, and act on the traffic flow data of other road sections connected to it, especially A road section that directly inputs or outputs a traffic flow to the target road section.
对于所有路段的交通流数据的获取是利用交通流数据监控系统完成的。在获取相应路段的交通流数据时,首先确定所述目标区域对应的路段,并对所述路段添加标注。依据所述路段的标注,通过与所述交通流数据监控系统建立的数据通道,获取对应路段的交通流数据。The acquisition of traffic flow data for all road sections is completed by the traffic flow data monitoring system. When acquiring traffic flow data of a corresponding road section, first determine the road section corresponding to the target area, and add a label to the road section. According to the label of the road section, the traffic flow data of the corresponding road section is obtained through the data channel established with the traffic flow data monitoring system.
S120、获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本。S120. Obtain historical traffic flow data of different sub-time periods in a set time period for each road section as a training sample.
在本实施例中,将所述目标区域的所有路段的交通流数据的评估时间段确定为设定时间段,将所述评估时间段分隔成若干个等时间间隔的子时间段。针对所述目标区域中的每个路段,获取其每个子时间段中的交通流数据,并以部分的该交通流数据作为训练样本x itIn this embodiment, the evaluation time period of the traffic flow data of all road sections in the target area is determined as a set time period, and the evaluation time period is divided into several sub-time periods with equal time intervals. For each road section in the target area, the traffic flow data in each sub-time period is obtained, and part of the traffic flow data is used as the training sample x it .
S130、根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值。S130: According to the set maximum number of iterations, the training samples of each road section are updated, and the optimal fitness value of all road sections is obtained by using the hybrid leaping algorithm.
对于该步骤,运用混合蛙跳算法,对每个路段的交通流数据进行适应度值的计算得到最优适应度值,对所述交通流数据分析模型进行训练。For this step, the hybrid leapfrog algorithm is used to calculate the fitness value of the traffic flow data of each road section to obtain the optimal fitness value, and the traffic flow data analysis model is trained.
在运用所述混合蛙跳算法进行训练的过程中,将步骤S120得到的所述训练样本作为所述混合蛙跳算法的元素,根据设定的最大迭代次数,计算各个训练样本对应的适应度值。经过各个训练样本的适应度对比,得到最 小适应度值,并以此作为最优适应度值。In the process of using the hybrid leaping algorithm for training, the training samples obtained in step S120 are used as elements of the hybrid leaping algorithm, and the fitness value corresponding to each training sample is calculated according to the set maximum number of iterations . After comparing the fitness of each training sample, the minimum fitness value is obtained, and this is used as the optimal fitness value.
其中,适应度值为在混合蛙跳算法反映青蛙原色当前位置优劣的一个参数。Among them, the fitness value is a parameter reflecting the pros and cons of the current position of the frog's primary color in the hybrid leapfrog algorithm.
S140、利用所述所有路段的最优适应度值计算得到连接权值,根据所述连接权值构建得到小波神经网络的交通流数据分析模型。S140. Calculate connection weights by using the optimal fitness values of all road sections, and construct and obtain a traffic flow data analysis model of the wavelet neural network according to the connection weights.
在本步骤中,利用步骤S130得到的最优适应度值计算得到连接权值。将所述连接权值输入至所述小波神经网络中,得到所述小波神经网络的交通流数据分析模型。在本实施例中,利用混合蛙跳算法对所述小波神经网络进行训练所得到的交通流数据分析模型,与仅仅依靠计算连接权重的预测值与实际值比较误差,根据该误差的大小不断调整小波神经网络的参数,直至预测值越来越接近真实的值的做法相比,更容易得到与实际匹配的连接权值。In this step, the connection weight is calculated by using the optimal fitness value obtained in step S130. The connection weight is input into the wavelet neural network to obtain a traffic flow data analysis model of the wavelet neural network. In this embodiment, the traffic flow data analysis model obtained by training the wavelet neural network using the hybrid frog leaping algorithm compares the error with the predicted value and the actual value that only relies on the calculation of the connection weight, and is continuously adjusted according to the magnitude of the error Compared with the practice of wavelet neural network parameters, until the predicted value is getting closer and closer to the true value, it is easier to obtain the connection weight that matches the actual value.
所述连接权值包括第一连接权值和第二连接权值。所述第一连接权值为所述小波神经网络构建的预测模型的输入层的连接权值,若其表示输入层的第i个节点到隐含层的第j个节点之间的连接权值,可记录为W ij,其中,j=1,2,…l,l表示隐含层的节点数。所述第二连接权值为所述小波神经网络构建的预测模型的隐含层的连接权值,若其代表隐含层的第j个节点到输出层的第k个节点之间的连接权值,可记录为W jk,其中,k=1,2,…m,m表示输出层的节点数。 The connection weight includes a first connection weight and a second connection weight. The first connection weight is the connection weight of the input layer of the prediction model constructed by the wavelet neural network, if it represents the connection weight between the i-th node of the input layer and the j-th node of the hidden layer , Can be recorded as Wij , where j=1, 2,...l, l represents the number of nodes in the hidden layer. The second connection weight is the connection weight of the hidden layer of the prediction model constructed by the wavelet neural network, if it represents the connection weight between the jth node of the hidden layer and the kth node of the output layer The value can be recorded as W jk , where k=1, 2,...m, and m represents the number of nodes in the output layer.
本申请提供的一种交通流数据分析模型的构建方法,通过与获取交通流数据监控系统建立的数据通道获取的关于目标区域对应路段的交通流数据,针对设定时间段的不同子时间段的历史交通流数据作为训练样本,并根据设定的最大迭代次数,利用混合蛙跳算法得到所有路段的最优适应度值,并根据所述最优适应度值得到小波神经网络的连接权值,构建得到基于小波神经网络的交通流数据分析模型。本申请通过混合蛙跳算法对所述小波神经网络进行训练,得到所述交通流数据分析模型,可以通过获取所述路段不同时期的不同时间段的交通流数据对所述目标路段的交通流进行预测,解决了现有技术中只能简单的短期内同一时间段的历史交通流进行预测,无法满足长期对所述目标路段的交通流预测的问题。The method for constructing a traffic flow data analysis model provided by the present application is to obtain traffic flow data on corresponding road sections in a target area through a data channel established with a traffic flow data monitoring system to obtain traffic flow data for different sub-time periods of a set time period. The historical traffic flow data is used as the training sample, and the hybrid leaping algorithm is used to obtain the optimal fitness value of all road sections according to the set maximum number of iterations, and the connection weight of the wavelet neural network is obtained according to the optimal fitness value, Construct a traffic flow data analysis model based on wavelet neural network. This application trains the wavelet neural network through a hybrid leapfrog algorithm to obtain the traffic flow data analysis model. The traffic flow data of the target road section can be obtained by acquiring the traffic flow data of the road section in different periods and different time periods. The prediction solves the problem that the prior art can only simply predict the historical traffic flow in the same time period in the short-term, and cannot meet the long-term traffic flow prediction of the target road section.
对于步骤S130,其可进一步包括以下步骤:For step S130, it may further include the following steps:
A1、根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法分别得到每个路段更新后的适应度值。A1. Update the training samples of each road segment according to the set maximum number of iterations, and use the hybrid leapfrog algorithm to obtain the updated fitness value of each road segment.
在该步骤中,利用所述混合蛙跳群算法设定的最大迭代次数,对每个路段的所述训练样本x it进行更新。 In this step, the maximum number of iterations set by the hybrid leapfrog group algorithm is used to update the training sample x it of each road section.
根据所述更新后的所述训练样本x it,计算得到每个路段经过更新后的适应度值。 According to the updated training sample x it , the updated fitness value of each road section is calculated.
适应度值具体的计算过程如下:The specific calculation process of fitness value is as follows:
适应度值:
Figure PCTCN2019117989-appb-000001
Fitness value:
Figure PCTCN2019117989-appb-000001
其中,y i是通过小波神经网络模型算出的,输出层的公式如下: Among them, y i is calculated by the wavelet neural network model, and the formula of the output layer is as follows:
Figure PCTCN2019117989-appb-000002
Figure PCTCN2019117989-appb-000002
其中,h(j)表示隐含层第j个节点的输出结果,选用的隐含层输出公式为:Among them, h(j) represents the output result of the j-th node of the hidden layer, and the selected hidden layer output formula is:
Figure PCTCN2019117989-appb-000003
Figure PCTCN2019117989-appb-000003
其中,适应度值为小波神经网络的预测误差值,y i为第i个节点的预测输出,m i为第i个节点的期望输出,该期望输出为取所获得的交通流数据的变量样本;a i为伸缩因子、b i为平移因子。 Among them, the fitness value is the prediction error value of the wavelet neural network, y i is the predicted output of the i-th node, mi is the expected output of the i-th node, and the expected output is a variable sample of the obtained traffic flow data ; A i is the expansion factor and b i is the translation factor.
为了得到各个路段的适应度值,在步骤S130之前,即在利用混合蛙跳算法得到所述路段的最优适应度之前,需要小波神经网络的交通流数据分析模型,并根据经验值对上述的小波神经网络的第一连接权值W ij、第二连接权值W jk、伸缩因子a i、平移因子b i进行初始化设置,以计算得到各个路段的适应度值。 In order to obtain the fitness value of each road segment, before step S130, that is, before the optimal fitness of the road segment is obtained by the hybrid leaping algorithm, a traffic flow data analysis model of wavelet neural network is required, and the above-mentioned a first wavelet neural network connection weight values W ij, the second connection weights W jk, stretching factor a i, b i is initialized shift factor is provided, so as to calculate the fitness value of each segment.
A2、依据更新后的适应度值,分别与全局最优适应度值与局部适应度值比较,得到所述所有路段的最优适应度值。A2. According to the updated fitness value, compare the global optimal fitness value and the local fitness value to obtain the optimal fitness value of all the road sections.
根据更新后的适应度值,经过所有的所述路段的适应度值的分子群体并比较得到局部最优适应度值,经过所有的所述路段的适应度值的比较得到全局最优适应度值。根据在每次迭代更新时对最大适应度值进行更新, 以最终更新得到的最大适应度值计算最小适应度值,并以所述最小适应度值作为最优的适应度值。According to the updated fitness value, the local optimal fitness value is obtained by comparing all the molecular groups of the fitness values of the road sections, and the global optimal fitness value is obtained by comparing the fitness values of all the road sections . According to the update of the maximum fitness value during each iteration update, the minimum fitness value is calculated with the maximum fitness value obtained by the final update, and the minimum fitness value is used as the optimal fitness value.
对于上述的所述路段的适应度值的获取与划分,可以按照每个路段的历史交通流数据的繁忙级别,依据每次更新迭代的每个路段的适应度值从小到大的顺序逐一分配至各个繁忙级别,得到各个交通流子集。For the above-mentioned acquisition and division of the fitness value of the road section, the historical traffic flow data of each road section can be assigned to each road section according to the busy level of the historical traffic flow data in the descending order of the fitness value of each road section in each update iteration. For each busy level, each traffic flow subset is obtained.
具体地,根据历史交通流数据的繁忙级别,对应分成若干个交通流子集,如第1、2、3……n个子集。并根据依据每次更新迭代的每个路段的适应度值从小到大进行排序,得到第1、2、3……,n+m个适应度值,并将排序第1位的适应度值分入至第1个子集,将排序第2位的适应度值分入至第2个子集,……,将排序第n位的适应度值分入至第n个子集。最终得到各个交通流子集。Specifically, according to the busy level of historical traffic flow data, it is correspondingly divided into several traffic flow subsets, such as 1, 2, 3...n subsets. And sort according to the fitness value of each road section according to each update iteration from small to large, and get the first 1, 2, 3..., n+m fitness values, and divide the fitness value of the ranking first. Into the first subset, sort the fitness value of the second rank into the second subset,..., sort the fitness value of the nth rank into the nth subset. Finally, each traffic flow subset is obtained.
在此基础上,上述步骤A2可以进一步包括:On this basis, the above step A2 may further include:
A21、根据单个交通流子集所设定的最大迭代次数对所有交通流子集中当前的交通流子集的最大适应度值进行更新。A21. Update the maximum fitness value of the current traffic flow subset in all traffic flow subsets according to the maximum number of iterations set by a single traffic flow subset.
为了方便计算,每个交通流子集的最大迭代次数设定值一致。根据交通流子集所设定的最大迭代次数,针对设定时间段内的不同子时间段,对每个交通流子集中的每个路段的训练样本进行更新迭代,并对对应交通流子集当前的最大适应度值进行更新,得到该交通流子集中当前的最大适应度值。For the convenience of calculation, the maximum number of iterations for each traffic flow subset is set to be consistent. According to the maximum number of iterations set by the traffic flow subset, for different sub-time periods within the set time period, the training samples of each road section in each traffic flow subset are updated and iterated, and the corresponding traffic flow subset The current maximum fitness value is updated to obtain the current maximum fitness value in the traffic flow subset.
A22、单个交通流子集所设定的最大迭代次数小于全局混合迭代次数时,则根据剩余的迭代次数对全局的路段的最大适应度值进行更新。A22. When the maximum number of iterations set for a single traffic flow subset is less than the number of global hybrid iterations, the global maximum fitness value of the road segment is updated according to the remaining number of iterations.
在对每个交通流子集进行更新时,当满足单个交通流子集所设定的最大迭代次数时,所有交通流子集均完成了局部深度搜索后,若满足全局混合迭代次数时,更新过程结束,得到全局的路段的最后一次最大适应度值,并计算计算得到最小适应度值。When updating each traffic flow subset, when the maximum number of iterations set by a single traffic flow subset is met, after all traffic flow subsets have completed the local deep search, if the number of global hybrid iterations is met, update At the end of the process, the last maximum fitness value of the global road section is obtained, and the minimum fitness value is calculated.
具体的运算过程如下:The specific calculation process is as follows:
每次迭代中,首先确定当前迭代中子集的适应度值最大的路段为X w、适应度值最小的路段为X b和所有路段中适应度值最小的路段为X g;首先,只对该子集中当前的适应度值最大的路段为X w进行更新操作,更新策略如 下。 In each iteration, it is first determined that the road section with the largest fitness value of the subset in the current iteration is X w , the road section with the smallest fitness value is X b and the road section with the smallest fitness value among all road sections is X g ; The road section with the largest current fitness value in this subset is X w for updating. The updating strategy is as follows.
蛙跳步长更新公式:Leapfrog step length update formula:
Ω i=rand().(X b-X w) Ω i =rand().(X b -X w )
(|Ω min||≤||Ω i||≤||Ω max||)  (1) (|Ω min ||≤||Ω i ||≤||Ω max ||) (1)
青蛙个体的位置更新公式:The position update formula of the individual frog:
new X w=X wi  (2) new X w =X wi (2)
其中,Ω i表示青蛙个体的更新步长,i=1,2,…,N;rand() Among them, Ω i represents the update step size of the frog individual, i = 1, 2, ..., N; rand()
为均匀分布在[0,1]之间的随机数;||Ω max||表示所允许更新的最大蛙跳步长;||Ω min||表示所允许更新的最小蛙跳步长。执行更新策略(1)(2)。 It is a random number uniformly distributed between [0,1]; ||Ω max || represents the maximum leapfrog step allowed to be updated; ||Ω min || represents the minimum leapfrog step allowed to be updated. Implement the update strategy (1)(2).
如果newX w的适应度值小于原来X w的适应度值,则用更新后的路段取代当前迭代中子集的当前子集中适应度最大的路段。 If the fitness value of newX w is less than the fitness value of the original X w , the updated road segment is used to replace the road segment with the largest fitness in the current subset in the current iteration.
当所有交通流子集的局部深度搜索完成以后,将所有的路段重新混合排序并再次划分子群体,然后再进行局部深度搜索,如此反复直到满足混合迭代次数。When the local depth search of all traffic flow subsets is completed, all road sections are remixed and sorted and subgroups are divided again, and then the local depth search is performed again, and so on until the number of mixed iterations is met.
若单个交通流子集所设定的最大迭代次数小于全局混合迭代次数,则重新对每一次迭代更新得到的最新的关于所有的适应度值进行排序,然后按照上述方式逐一分配至各个交通流子集中,先对所有交通流子集的最大适应度值进行更新。根据剩余的迭代次数,重复上述计算和更新,得到针对全局的路段的最后一次最大适应度值。If the maximum number of iterations set for a single traffic flow subset is less than the number of global hybrid iterations, then re-sort the latest fitness values obtained from each iteration and then assign them to each traffic flow one by one in the above manner. Concentration, first update the maximum fitness value of all traffic flow subsets. According to the remaining number of iterations, repeat the above calculation and update to obtain the last maximum fitness value for the global road section.
具体的运算过程如下:The specific calculation process is as follows:
蛙跳步长更新公式:Leapfrog step length update formula:
Ω i=rand().(X g-X w) Ω i =rand().(X g -X w )
(||Ω min||≤||Ω i||≤||Ω max||)  (3) (||Ω min ||≤||Ω i ||≤||Ω max ||) (3)
青蛙个体的位置更新公式:The position update formula of the individual frog:
new X w=X wi  (4) new X w =X wi (4)
执行更新策略(3)(4)。Implement the update strategy (3)(4).
如果newX w的适应度值仍然没有改进,则随机产生一个新的X wIf the fitness value of newX w is still not improved, a new X w is randomly generated.
A23、依据更新后的最大适应度值,计算得到所述路段的最小适应度值, 并以所述最小适应度值作为最优适应度值。A23. Calculate the minimum fitness value of the road section according to the updated maximum fitness value, and use the minimum fitness value as the optimal fitness value.
根据上述步骤A22得到最后一次的最大适应度值,计算得到所述最小适应度值,并以此作为最优适应度值。According to the above step A22, the last maximum fitness value is obtained, and the minimum fitness value is calculated and used as the optimal fitness value.
借助混合蛙跳算法具有全局搜索能力的特点,本申请提供的交通流数据分析模型的构建方法能收敛于全局最优解,所以,有利于提高预测速度和预测精度。With the help of the hybrid leapfrog algorithm having the characteristics of global search capability, the method for constructing the traffic flow data analysis model provided by this application can converge to the global optimal solution, so it is beneficial to improve the prediction speed and prediction accuracy.
在上述得到的最优适应度值的前提下,对于步骤S140还可以包括以下步骤:On the premise of the optimal fitness value obtained above, step S140 may further include the following steps:
B1、利用所有路段的最优适应度值,根据适应度函数曲线得到混合蛙跳算法中对应青蛙元素的位置。B1. Using the optimal fitness value of all road sections, obtain the position of the corresponding frog element in the hybrid leapfrog algorithm according to the fitness function curve.
根据从步骤S130得到的最优适应度值,并利用青蛙群算法的适应度函数的曲线图像,得到与所述最优适应度值对应的青的蛙位置元素的向量值。According to the optimal fitness value obtained from step S130 and the curve image of the fitness function of the frog swarm algorithm, the vector value of the green frog position element corresponding to the optimal fitness value is obtained.
在本实施例中,所述青蛙元素的位置的向量值为:In this embodiment, the vector value of the position of the frog element is:
x id=(W ij,W jk,a j,b j)  (5) x id = (W ij , W jk ,a j ,b j ) (5)
其中,x id为x it的向量的表现形式。 Among them, x id is the expression form of the vector of x it .
所述适应度函数用于表征问题中的全体个体与其适应度之间的对应关系的函数。The fitness function is used to characterize the corresponding relationship between all individuals in the problem and their fitness.
B2、根据所述对应青蛙元素的位置的向量,得到所述连接权值的最优解。B2. Obtain the optimal solution of the connection weight according to the vector corresponding to the position of the frog element.
利用适应度值函数的曲线图像所得到的青蛙元素的位置的向量是关于小波神经网络的所述第一连接权值W ij、所述第二连接权值W jk、伸缩因子a i和平移因子b i的向量。 The vector of the position of the frog element obtained by using the curve image of the fitness value function is the first connection weight W ij , the second connection weight W jk , the expansion factor a i and the translation factor of the wavelet neural network. The vector of b i .
利用适应度函数,根据所述最优适应度值,计算得到所述第一连接权值W ij和所述第二连接权值W jk的最优解。 The fitness function is used to calculate an optimal solution of the first connection weight W ij and the second connection weight W jk according to the optimal fitness value.
将得到的所述第一连接权值W ij和所述第二连接权值W jk的最优解待入所构建的小波神经网络模型中,得到针对该路段的最优的交通流数据分析模型。 The obtained optimal solution of the first connection weight W ij and the second connection weight W jk is to be input into the constructed wavelet neural network model to obtain the optimal traffic flow data analysis model for the road section.
将之前获取得到的关于各个路段的交通流数据的测试样本输入至所述交通流数据分析模型中,得到所述目标区域的交通流的预测数据。The previously obtained test samples of the traffic flow data of each road section are input into the traffic flow data analysis model to obtain the traffic flow prediction data of the target area.
借助混合蛙跳算法具有全局搜索能力、收敛速度快,参数配置少的特点,本申请提供的交通流数据预测方法更容易收敛于全局最优解,有利于提高预测速度和预测精度。With the help of the hybrid leapfrog algorithm with the characteristics of global search capability, fast convergence speed, and less parameter configuration, the traffic flow data prediction method provided in this application is easier to converge to the global optimal solution, which is beneficial to improve the prediction speed and prediction accuracy.
在上述描述中所涉及的关于交通流数据的训练样本、测试样本、变量样本的相加是针对所有路段在设定时间段的不同子时间段的所获取的交通流数据的总和,根据经验值对上述三个样本进行比例设置。The sum of the training samples, test samples, and variable samples of traffic flow data involved in the above description is the sum of the traffic flow data acquired in different sub-time periods of the set time period for all road sections, based on empirical values Set the ratio of the above three samples.
在本实施例中,为了以利用尽量多的交通流数据进行训练得到所述预测能力更好的预测模型,将所述训练样本的占比设定为65%,变量样本的占比设定为10%,测试样本的占比设定为25%。In this embodiment, in order to train with as much traffic flow data as possible to obtain the prediction model with better prediction ability, the proportion of the training samples is set to 65%, and the proportion of the variable samples is set to 10%, the proportion of test samples is set to 25%.
将得到的各个样本对应的交通流数据分别按照比例分配并待入,进行数据处理,得到所述目标区域的交通流的预测数据。The obtained traffic flow data corresponding to each sample is respectively distributed according to proportions and waiting to be entered, and data processing is performed to obtain the traffic flow prediction data of the target area.
参照图2,图2为本申请中的另一个实施例的交通流数据分析模型的构建方法的流程图。为了能以训练得到更为精准的预测模型,在这一实施例中,在所述目标区域中,根据交通量的方向,将所有路段分为注入交通流和疏导交通流。Referring to FIG. 2, FIG. 2 is a flowchart of a method for constructing a traffic flow data analysis model according to another embodiment of the application. In order to obtain a more accurate prediction model through training, in this embodiment, in the target area, according to the direction of the traffic volume, all road sections are divided into injecting traffic flow and diverting traffic flow.
针对上述对路段的交通流的划分,步骤S130可进一步包括:Regarding the foregoing division of the traffic flow of the road section, step S130 may further include:
S131、根据设定的最大迭代次数,对每个路段的各个方向的交通流的训练样本进行更新。S131: According to the set maximum number of iterations, update the training samples of the traffic flow in each direction of each road section.
利用所述混合蛙跳算法设定的最大迭代次数,对每个路段的注入交通流和疏导交通流的对应的训练样本进行更新。Using the maximum number of iterations set by the hybrid leapfrog algorithm, the corresponding training samples of the injected traffic flow and the diversion traffic flow of each road section are updated.
对于实际路段场景来将,每个路段的注入交通流和疏导交通流为在一个路段中互为相反方向的行车道的交通流。For the actual road segment scenario, the injecting traffic flow and the diversion traffic flow of each road segment are traffic flows in the traffic lanes in opposite directions in a road segment.
S132、利用混合蛙跳算法,分别以每个路段的各个方向的交通流数据计算对应的适应度值。S132. Using the hybrid leapfrog algorithm, calculate the corresponding fitness value based on the traffic flow data in each direction of each road section.
根据更新后的训练样本,分别计算每个注入交通流和疏导交通流的适应度值。According to the updated training samples, the fitness values of each injected traffic flow and diversion traffic flow are calculated respectively.
具体的计算过程参照上述的公式(1)-(4)。The specific calculation process refers to the above formulas (1)-(4).
分别对所述注入交通流的适应度值和所述疏导交通流的适应度值进行更新迭代和比较,分别得到所有注入交通流的最优适应度值和所有疏导交 通流的最优适应度值。Respectively update and iterate the fitness value of the injected traffic flow and the fitness value of the diversion traffic flow to obtain the optimal fitness value of all the injected traffic flows and the optimal fitness value of all the diversion traffic flows. .
分别对应所述注入交通流的适应度值或所述疏导交通流的适应度值的最优适应度值的计算如下:The calculation of the optimal fitness value corresponding to the fitness value of the injected traffic flow or the fitness value of the diversion traffic flow is as follows:
对于上述注入交通流或疏导交通流的适应度值的划分与计算,可以依据历史交通流数据,对每个注入交通流或疏导交通流进行繁忙等级的划分,并对所有注入交通流或疏导交通流根据繁忙等级,划分为不同的注入交通流集或疏导交通流集。For the division and calculation of the fitness value of the above injecting traffic flow or diverting traffic flow, according to historical traffic flow data, each injecting traffic flow or diverting traffic flow can be divided into busy level, and all injecting traffic flow or diverting traffic can be classified According to the busy level, the flow is divided into different infusion traffic flow sets or diversion traffic flow sets.
C1、根据每个注入交通流集和疏导交通流集所设定的最大迭代次数对所有交通流子集中当前的注入交通流集和疏导交通流集的最大适应度值进行更新。C1. According to the maximum number of iterations set for each injected traffic flow set and diversion traffic flow set, update the maximum fitness value of the current injected traffic flow set and diversion traffic flow set in all traffic flow subsets.
C2、当注入交通流集和疏导交通流集所设定的最大迭代次数小于全局混合迭代次数时,则根据剩余的迭代次数对全局的路段的最大适应度值进行更新。C2. When the maximum number of iterations set for the injection traffic flow set and the channeling traffic flow set is less than the global mixed iteration number, the global maximum fitness value of the road segment is updated according to the remaining number of iterations.
C3、分别依据更新后的注入交通流集和疏导交通流集最大适应度值,计算得到所述注入交通流和疏导交通流的各自最小适应度值,并以各自的所述最小适应度值作为最优适应度值。C3. Calculate the respective minimum fitness values of the injected traffic flow and the guided traffic flow according to the updated maximum fitness values of the injected traffic flow set and the guided traffic flow set, and use the respective minimum fitness values as The optimal fitness value.
在此基础上,所述一种交通流数据分析模型的构建方法可包括:On this basis, the method for constructing the traffic flow data analysis model may include:
D1、将每个路段的各个方向的交通流数据,输入所述交通流数据分析模型,得到所有路段的交通流的预测数据;D1. Input the traffic flow data in each direction of each road section into the traffic flow data analysis model to obtain traffic flow forecast data of all road sections;
D2、根据所有路段的交通流的预测数据,得到所述目标区域的交通流的预测数据。D2. Obtain the traffic flow prediction data of the target area according to the traffic flow prediction data of all road sections.
对于所有路段设定一个交通流方向为正,与其方向相反的交通流方向为负,将得到每个路段的注入交通流和疏导交通流输入至所述交通流数据分析模型,得到各自方向的交通流的预测数据。根据交通流的方向设置,将注入交通流和疏导交通流的预测数据进行相加计算,得到所有路段的交通流的预测数据。For all road sections, set a traffic flow direction to be positive, and the traffic flow direction opposite to it to be negative, and input the injected traffic flow and diverted traffic flow of each road section into the traffic flow data analysis model to obtain the traffic in each direction Stream forecast data. According to the direction of the traffic flow, the predicted data of the injected traffic flow and the dredging traffic flow are added together to obtain the predicted data of the traffic flow of all road sections.
根据各个路段的预测数据,最终得到所述目标区域的所有路段的交通流的预测数据。According to the prediction data of each road section, the traffic flow prediction data of all road sections in the target area is finally obtained.
在该实施例中,所述注入交通流的交通流数据和所述疏导交通流的交 通流数据均包括各自对应的训练样本、变量样本和测试样本,其相加是分别针对所述注入交通流和所述疏导交通流在设定时间段的不同子时间段的所获取的交通流数据的总和,根据经验值分别对所述注入交通流和所述疏导交通流的上述三个样本进行比例设置。而且,为了满足对应的数据量进行数据处理,所述注入路段和所述疏导路段所各自对应样本的比例设置均相同。In this embodiment, the traffic flow data of the injected traffic flow and the traffic flow data of the diversion traffic flow both include respective corresponding training samples, variable samples, and test samples, and their addition is for the injected traffic flow. And the sum of the traffic flow data obtained in different sub-time periods of the set time period of the diversion traffic flow, and the above three samples of the injection traffic flow and the diversion traffic flow are respectively set in proportions according to empirical values . Moreover, in order to satisfy the corresponding data volume for data processing, the proportion settings of the respective samples corresponding to the injection road section and the dredging road section are the same.
在本实施例中,为了以利用尽量多的交通流数据进行训练得到所述预测能力更好的预测模型,对将所述训练样本的占比均设定为65%,变量样本的占比均设定为10%,测试样本的占比均设定为25%。In this embodiment, in order to train with as much traffic flow data as possible to obtain the prediction model with better prediction ability, the proportions of the training samples are all set to 65%, and the proportions of the variable samples are all Set to 10%, and the proportion of test samples is set to 25%.
基于与上述交通流数据分析模型的构建方法相同的发明构思,本申请实施例还提供了一种交通流数据分析模型的构建装置,如图3所示,包括:Based on the same inventive concept as the above-mentioned method for constructing a traffic flow data analysis model, an embodiment of the present application also provides a device for constructing a traffic flow data analysis model, as shown in FIG. 3, including:
提取模块310,用于建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据;The extraction module 310 is configured to establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
训练样本设定模块320,用于获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本;The training sample setting module 320 is used to obtain historical traffic flow data of each road section in different sub-time periods of the set time period as training samples;
迭代计算模块330,用于根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值;The iterative calculation module 330 is used to update the training samples of each road section according to the set maximum number of iterations, and obtain the optimal fitness value of all road sections by using the hybrid frog leaping algorithm;
构建模块340,用于利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建得到小波神经网络的交通流数据分析模型。The construction module 340 is configured to use the optimal fitness values of all road sections to obtain connection weights, and construct a wavelet neural network traffic flow data analysis model according to the connection weights.
请参考图4,图4为一个实施例中服务器的内部结构示意图。如图4所示,该服务器包括通过系统总线连接的处理器410、存储介质420、存储器430和网络接口440。其中,该服务器的存储介质420存储有操作系统、数据库和计算机可读指令,数据库中可存储有控件信息序列,该计算机可读指令被处理器410执行时,可使得处理器410实现一种交通流数据分析模型的构建方法,处理器410能实现图3所示实施例中的一种交通流数据分析模型的构建装置中的提取模块310、训练样本设定模块320、迭代计算模块330和构建模块340的功能。该服务器的处理器410用于提供计算和控制能力,支撑整个服务器的运行。该服务器的存储器430中可存储有计算机可读指令,该计算机可读指令被处理器410执行时,可使得处理器410 执行一种交通流数据分析模型的构建方法。该服务器的网络接口440用于与终端连接通信。本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的服务器的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Please refer to FIG. 4, which is a schematic diagram of the internal structure of the server in an embodiment. As shown in FIG. 4, the server includes a processor 410, a storage medium 420, a memory 430, and a network interface 440 connected through a system bus. Wherein, the storage medium 420 of the server stores an operating system, a database, and computer-readable instructions. The database may store control information sequences. When the computer-readable instructions are executed by the processor 410, the processor 410 can realize a traffic In the method for constructing a flow data analysis model, the processor 410 can implement the extraction module 310, the training sample setting module 320, the iterative calculation module 330, and the construction in the device for constructing a traffic flow data analysis model in the embodiment shown in FIG. Function of module 340. The processor 410 of the server is used to provide computing and control capabilities to support the operation of the entire server. The memory 430 of the server may store computer-readable instructions, and when the computer-readable instructions are executed by the processor 410, the processor 410 can execute a method for constructing a traffic flow data analysis model. The network interface 440 of the server is used to connect and communicate with the terminal. Those skilled in the art can understand that the structure shown in FIG. 4 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include More or fewer components are shown in the figure, or some components are combined, or have different component arrangements.
在一个实施例中,本申请还提出了一种存储有计算机可读指令的存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据;获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本;根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值;利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建得到小波神经网络的交通流数据分析模型。In one embodiment, the present application also proposes a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps: The data channel with the traffic flow data monitoring system determines the corresponding road section according to the target area, and extracts the traffic flow data of the target area from the data channel; obtains the historical traffic flow of each road section in different sub-time periods of the set time period Data is used as a training sample; according to the set maximum number of iterations, the training sample of each road section is updated, and the optimal fitness value of all road sections is obtained using the hybrid frog-leap algorithm; the optimal fitness value of all road sections is used The connection weight is constructed to obtain a traffic flow data analysis model of the wavelet neural network according to the connection weight.
综合上述实施例可知,本申请最大的有益效果在于:Based on the foregoing embodiments, it can be seen that the greatest beneficial effect of this application lies in:
本申请所提供的一种交通流数据分析模型的构建方法和装置,通过与交通流数据监控系统的数据通道获取目标区域所有路段的交通流数据;并根据设定时间段的不同子时间段的历史交通流数据作为训练样本,利用混合蛙跳算法得到最优适应度值,得到小波神经网络的交通流数据分析模型。The method and device for constructing a traffic flow data analysis model provided by this application obtain traffic flow data of all road sections in a target area through a data channel with a traffic flow data monitoring system; and according to different sub-time periods of the set time period The historical traffic flow data is used as the training sample, and the optimal fitness value is obtained using the hybrid leapfrog algorithm, and the traffic flow data analysis model of the wavelet neural network is obtained.
在此基础上,本申请还对所述交通流数据分析模型的构建方法和装置的技术方案进行进一步的技术优化,将所述目标区域的所有路段的交通流方向分为注入方向和疏导方向,分别利用混合蛙跳算法对每个路段的注入交通流和所述疏导交通流进行训练,得到对应的交通流数据分析模型。该交通流数据分析模型分别对所述注入交通流和所述疏导交通流进行预测,可更精准地得到所述目标区域的所有路段的交通流的预测结果。On this basis, this application also further technically optimizes the technical solution of the construction method and device of the traffic flow data analysis model, and divides the traffic flow directions of all road sections in the target area into the injection direction and the drainage direction, The hybrid frog leaping algorithm is used to train the injected traffic flow and the diverted traffic flow of each road section to obtain the corresponding traffic flow data analysis model. The traffic flow data analysis model separately predicts the injected traffic flow and the diversion traffic flow, and can obtain the prediction results of the traffic flow of all road sections in the target area more accurately.
本申请所提供的技术方案运用了混合蛙跳算法得到小波神经网络的预测模型的连接权值,其运用了混合蛙跳算法的全局搜索能力强、收敛速度快、参数配置少的特点,使得可快速收敛得到全局最优解,故利用混合蛙跳算法得到的初始化小波神经网络参数训练交通流数据分析模型在对交通 流进行预测时,可以达到提高预测速度和预测精度的目标。同时,本申请提供的交通流数据分析模型的构建方法和装置,由于全局搜索能力强,通过更新迭代后,能很好适应不同的交通流数据的数据样本,因此能根据不同时期不同时段的交通流数据构建对应的交通流数据分析模型,填补了对长期的交通流数据的分析工具的空缺。The technical solution provided by this application uses the hybrid frog leaping algorithm to obtain the connection weights of the wavelet neural network prediction model. It uses the characteristics of the hybrid frog leaping algorithm with strong global search ability, fast convergence speed, and less parameter configuration, making it possible to Fast convergence to obtain the global optimal solution, so the use of the initial wavelet neural network parameters obtained by the hybrid frog leaping algorithm to train the traffic flow data analysis model can achieve the goal of improving the prediction speed and prediction accuracy when predicting the traffic flow. At the same time, the method and device for constructing a traffic flow data analysis model provided by this application have strong global search capabilities and can be well adapted to different traffic flow data samples after updating and iteration, and therefore can be adapted to different traffic flow data samples in different periods and periods. Flow data constructs a corresponding traffic flow data analysis model, filling the gap of long-term traffic flow data analysis tools.
综上,本申请通过交通流数据分析模型的构建和装置,将利用混合蛙跳算法构建得到小波神经网络的交通流数据分析模型,填补了对长期的交通流数据的分析工具的空缺,提高了交通流数据预测的效率。In summary, through the construction and installation of the traffic flow data analysis model, this application will use the hybrid frog leaping algorithm to construct a traffic flow data analysis model of wavelet neural network, which fills in the gap of long-term traffic flow data analysis tools and improves The efficiency of traffic flow data prediction.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等存储介质,或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The computer program can be stored in a computer readable storage medium. When executed, it may include the processes of the above-mentioned method embodiments. Among them, the aforementioned storage medium may be a storage medium such as a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, All should be considered as the scope of this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of this application, and their descriptions are more specific and detailed, but they should not be construed as limiting the scope of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种交通流数据分析模型的构建方法,其特征在于,包括如下步骤:A method for constructing a traffic flow data analysis model is characterized in that it comprises the following steps:
    建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据;Establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
    获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本;Obtain historical traffic flow data of different sub-time periods of each road section in the set time period as training samples;
    根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值;According to the set maximum number of iterations, the training samples of each road section are updated, and the hybrid frog leaping algorithm is used to obtain the optimal fitness value of all road sections;
    利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建得到小波神经网络的交通流数据分析模型;Use the optimal fitness values of all road sections to obtain connection weights, and construct a wavelet neural network traffic flow data analysis model according to the connection weights;
    将所述目标区域对应的各个路段的交通流数据,输入至所述交通流数据分析模型中,以得到所述目标区域的交通流的预测数据。The traffic flow data of each road section corresponding to the target area is input into the traffic flow data analysis model to obtain traffic flow prediction data of the target area.
  2. 根据权利要求1所述的方法,其特征在于:The method according to claim 1, wherein:
    所述根据设定的最大迭代次数,对每个路段的所述训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值的步骤包括:The step of updating the training samples of each road section according to the set maximum number of iterations, and obtaining the optimal fitness value of all road sections by using the hybrid frog leaping algorithm includes:
    根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法分别得到每个路段更新后的适应度值;According to the set maximum number of iterations, update the training samples of each road segment, and use the hybrid leapfrog algorithm to obtain the updated fitness value of each road segment;
    依据更新后的适应度值,分别与全局最优适应度值与局部适应度值比较,得到所述所有路段的最优适应度值。According to the updated fitness value, it is compared with the global optimal fitness value and the local fitness value to obtain the optimal fitness values of all the road sections.
  3. 根据权利要求2所述的方法,其特征在于,The method according to claim 2, wherein:
    按照每个所述路段的历史交通流数据的繁忙级别,依据每次更新迭代的每个所述路段的适应度值从小到大的顺序分配至各个繁忙级别,得到各个交通流子集;According to the busy level of the historical traffic flow data of each said road segment, the fitness value of each said road segment in each update iteration is allocated to each busy level in ascending order to obtain each traffic flow subset;
    所述依据更新后的适应度值,分别与全局最优适应度值与局部适应度值比较,得到所述所有路段的最优适应度值的步骤包括:The step of comparing the global optimal fitness value and the local fitness value according to the updated fitness value to obtain the optimal fitness value of all road sections includes:
    根据单个交通流子集所设定的最大迭代次数对所有交通流子集中当前的交通流子集的最大适应度值进行更新;Update the maximum fitness value of the current traffic flow subset in all traffic flow subsets according to the maximum number of iterations set by a single traffic flow subset;
    当单个交通流子集所设定的最大迭代次数小于全局混合迭代次数时,则根据剩余的迭代次数对全局的路段的最大适应度值进行更新;When the maximum number of iterations set for a single traffic flow subset is less than the number of global hybrid iterations, the global maximum fitness value of the road segment is updated according to the remaining number of iterations;
    依据更新后的最大适应度值,计算得到所述路段的最小适应度值,并以所述最小适应度值作为最优适应度值。According to the updated maximum fitness value, the minimum fitness value of the road section is calculated, and the minimum fitness value is used as the optimal fitness value.
  4. 根据权利要求3所述的方法,其特征在于:The method according to claim 3, characterized in that:
    所述利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建得到交通流数据分析模型的步骤,包括:The step of using the optimal fitness values of all road sections to obtain connection weights, and constructing and obtaining a traffic flow data analysis model according to the connection weights includes:
    利用所有路段的最优适应度值,根据适应度函数曲线得到混合蛙跳算法中对应青蛙元素的位置;Use the optimal fitness value of all road sections to obtain the position of the corresponding frog element in the hybrid leapfrog algorithm according to the fitness function curve;
    根据所述对应青蛙元素的位置的向量,得到所述连接权值的最优解;Obtaining the optimal solution of the connection weight according to the vector corresponding to the position of the frog element;
    依据所述连接权值的最优解,构建得到交通流数据分析模型。According to the optimal solution of the connection weight, a traffic flow data analysis model is constructed.
  5. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, wherein:
    在所述目标区域中,根据交通量的方向,将所有路段分为注入交通流和疏导交通流;In the target area, according to the direction of the traffic volume, divide all road sections into injecting traffic flow and diverting traffic flow;
    所述根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值的步骤,包括:The steps of updating the training samples of each road section according to the set maximum number of iterations, and obtaining the optimal fitness value of all road sections by using the hybrid leapfrog algorithm, include:
    根据设定的最大迭代次数,对每个路段的各个方向的交通流的训练样本进行更新;According to the set maximum number of iterations, update the training samples of the traffic flow in each direction of each road section;
    利用混合蛙跳算法,分别以每个路段的各个方向的交通流数据计算对应的适应度值。Using the hybrid leapfrog algorithm, the corresponding fitness value is calculated based on the traffic flow data of each road section in each direction.
  6. 根据权利要求5所述的方法,其特征在于,所述将所述目标区域对应的各个路段的交通流数据,输入至所述交通流数据分析模型中,以得到所述目标区域的交通流的预测数据,包括:The method according to claim 5, wherein the traffic flow data of each road section corresponding to the target area is input into the traffic flow data analysis model to obtain the traffic flow data of the target area Forecast data, including:
    将每个路段的各个方向的交通流数据,输入所述交通流数据分析模型,得到所有路段的交通流的预测数据;Input the traffic flow data in each direction of each road section into the traffic flow data analysis model to obtain traffic flow forecast data of all road sections;
    根据所有路段的交通流的预测数据,得到所述目标区域的交通流的预测数据。According to the traffic flow prediction data of all road sections, the traffic flow prediction data of the target area is obtained.
  7. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, wherein:
    在所述根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值的步骤之前,还包括:Before the step of updating the training samples of each road segment according to the set maximum number of iterations, and obtaining the optimal fitness value of all road segments by using the hybrid leaping algorithm, it also includes:
    对于交通流数据分析模型,分别根据经验值对连接权值、伸缩因子和平移 因子进行初始化设置。For the traffic flow data analysis model, the connection weights, expansion factors, and translation factors are initialized according to experience values.
  8. 一种交通流数据分析模型的构建装置,其特征在于,包括:A device for constructing a traffic flow data analysis model is characterized in that it comprises:
    提取模块,用于建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据;The extraction module is used to establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
    训练样本设定模块,用于获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本;The training sample setting module is used to obtain the historical traffic flow data of each road section in different sub-time periods of the set time period as training samples;
    迭代计算模块,用于根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值;The iterative calculation module is used to update the training samples of each road section according to the set maximum number of iterations, and obtain the optimal fitness value of all road sections by using the hybrid leapfrog algorithm;
    构建模块,用于利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建得到小波神经网络的交通流数据分析模型;A construction module for obtaining connection weights using the optimal fitness values of all road sections, and constructing and obtaining a wavelet neural network traffic flow data analysis model according to the connection weights;
    所述构建模块,还用于将所述目标区域对应的各个路段的交通流数据,输入至所述交通流数据分析模型中,以得到所述目标区域的交通流的预测数据。The building module is also used to input the traffic flow data of each road section corresponding to the target area into the traffic flow data analysis model to obtain traffic flow prediction data in the target area.
  9. 根据权利要求8所述的装置,其特征在于,所述迭代计算模块具体用于:The device according to claim 8, wherein the iterative calculation module is specifically configured to:
    根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法分别得到每个路段更新后的适应度值;According to the set maximum number of iterations, update the training samples of each road segment, and use the hybrid leapfrog algorithm to obtain the updated fitness value of each road segment;
    依据更新后的适应度值,分别与全局最优适应度值与局部适应度值比较,得到所述所有路段的最优适应度值。According to the updated fitness value, it is compared with the global optimal fitness value and the local fitness value to obtain the optimal fitness values of all the road sections.
  10. 根据权利要求9所述的装置,其特征在于,The device according to claim 9, wherein:
    所述迭代计算模块,还用于按照每个所述路段的历史交通流数据的繁忙级别,依据每次更新迭代的每个所述路段的适应度值从小到大的顺序分配至各个繁忙级别,得到各个交通流子集;The iterative calculation module is further configured to assign each busy level to each busy level according to the busy level of the historical traffic flow data of each of the road sections, according to the fitness value of each road section in each update iteration from small to large, Get a subset of each traffic flow;
    所述迭代计算模块依据更新后的适应度值,分别与全局最优适应度值与局部适应度值比较,得到所述所有路段的最优适应度值时,具体用于:When the iterative calculation module compares the global optimal fitness value and the local fitness value according to the updated fitness value to obtain the optimal fitness value of all road sections, it is specifically used for:
    根据单个交通流子集所设定的最大迭代次数对所有交通流子集中当前的交通流子集的最大适应度值进行更新;Update the maximum fitness value of the current traffic flow subset in all traffic flow subsets according to the maximum number of iterations set by a single traffic flow subset;
    当单个交通流子集所设定的最大迭代次数小于全局混合迭代次数时,则根据剩余的迭代次数对全局的路段的最大适应度值进行更新;When the maximum number of iterations set for a single traffic flow subset is less than the number of global hybrid iterations, the global maximum fitness value of the road segment is updated according to the remaining number of iterations;
    依据更新后的最大适应度值,计算得到所述路段的最小适应度值,并以所 述最小适应度值作为最优适应度值。According to the updated maximum fitness value, the minimum fitness value of the road section is calculated, and the minimum fitness value is taken as the optimal fitness value.
  11. 根据权利要求10所述的装置,其特征在于,所述构建模块具体用于:The device according to claim 10, wherein the building module is specifically configured to:
    利用所有路段的最优适应度值,根据适应度函数曲线得到混合蛙跳算法中对应青蛙元素的位置;Use the optimal fitness value of all road sections to obtain the position of the corresponding frog element in the hybrid leapfrog algorithm according to the fitness function curve;
    根据所述对应青蛙元素的位置的向量,得到所述连接权值的最优解;Obtaining the optimal solution of the connection weight according to the vector corresponding to the position of the frog element;
    依据所述连接权值的最优解,构建得到交通流数据分析模型。According to the optimal solution of the connection weight, a traffic flow data analysis model is constructed.
  12. 根据权利要求8所述的装置,其特征在于,The device according to claim 8, wherein:
    所述训练样本设定模块,还用于在所述目标区域中,根据交通量的方向,将所有路段分为注入交通流和疏导交通流;The training sample setting module is also used to divide all road sections into injecting traffic flow and diverting traffic flow in the target area according to the direction of traffic volume;
    所述迭代计算模块具体用于:The iterative calculation module is specifically used for:
    根据设定的最大迭代次数,对每个路段的各个方向的交通流的训练样本进行更新;According to the set maximum number of iterations, update the training samples of the traffic flow in each direction of each road section;
    利用混合蛙跳算法,分别以每个路段的各个方向的交通流数据计算对应的适应度值。Using the hybrid leapfrog algorithm, the corresponding fitness value is calculated based on the traffic flow data of each road section in each direction.
  13. 根据权利要求12所述的装置,其特征在于,The device according to claim 12, wherein:
    所述构建模块,还用于将每个路段的各个方向的交通流数据,输入所述交通流数据分析模型,得到所有路段的交通流的预测数据;根据所有路段的交通流的预测数据,得到所述目标区域的交通流的预测数据。The building module is also used to input the traffic flow data in each direction of each road section into the traffic flow data analysis model to obtain traffic flow prediction data for all road sections; and obtain traffic flow prediction data for all road sections Forecast data of traffic flow in the target area.
  14. 根据权利要求8所述的装置,其特征在于,The device according to claim 8, wherein:
    所述迭代计算模块,还用于在所述根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值之前,对于交通流数据分析模型,分别根据经验值对连接权值、伸缩因子和平移因子进行初始化设置。The iterative calculation module is also used to update the training samples of each road section according to the set maximum number of iterations, and use the hybrid frog leaping algorithm to obtain the optimal fitness value of all road sections, for traffic flow data Analyze the model, and initialize the connection weight, expansion factor, and translation factor according to experience values.
  15. 一种服务器,其特征在于,包括:A server, characterized in that it comprises:
    一个或多个处理器;One or more processors;
    存储器;Memory
    一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个计算机程序配置用于执行以下步骤:One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to execute The following steps:
    建立与交通流数据监控系统的数据通道,根据目标区域确定对应路段,从所述数据通道提取所述目标区域的交通流数据;Establish a data channel with the traffic flow data monitoring system, determine the corresponding road section according to the target area, and extract the traffic flow data of the target area from the data channel;
    获取每个路段在设定时间段的不同子时间段的历史交通流数据作为训练样本;Obtain historical traffic flow data of different sub-time periods of each road section in the set time period as training samples;
    根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值;According to the set maximum number of iterations, the training samples of each road section are updated, and the hybrid frog leaping algorithm is used to obtain the optimal fitness value of all road sections;
    利用所述所有路段的最优适应度值得到连接权值,根据所述连接权值构建得到小波神经网络的交通流数据分析模型;Use the optimal fitness values of all road sections to obtain connection weights, and construct a wavelet neural network traffic flow data analysis model according to the connection weights;
    将所述目标区域对应的各个路段的交通流数据,输入至所述交通流数据分析模型中,以得到所述目标区域的交通流的预测数据。The traffic flow data of each road section corresponding to the target area is input into the traffic flow data analysis model to obtain traffic flow prediction data of the target area.
  16. 根据权利要求15所述的服务器,其特征在于,所述根据设定的最大迭代次数,对每个路段的所述训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值时,所述一个或多个计算机程序被配置用于执行以下步骤:The server according to claim 15, wherein the training samples of each road section are updated according to the set maximum number of iterations, and the hybrid leapfrog algorithm is used to obtain the optimal fitness value of all road sections. , The one or more computer programs are configured to perform the following steps:
    根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法分别得到每个路段更新后的适应度值;According to the set maximum number of iterations, update the training samples of each road segment, and use the hybrid leapfrog algorithm to obtain the updated fitness value of each road segment;
    依据更新后的适应度值,分别与全局最优适应度值与局部适应度值比较,得到所述所有路段的最优适应度值。According to the updated fitness value, it is compared with the global optimal fitness value and the local fitness value to obtain the optimal fitness values of all the road sections.
  17. 根据权利要求16所述的服务器,其特征在于,所述一个或多个计算机程序还被配置用于执行以下步骤:The server of claim 16, wherein the one or more computer programs are further configured to perform the following steps:
    按照每个所述路段的历史交通流数据的繁忙级别,依据每次更新迭代的每个所述路段的适应度值从小到大的顺序分配至各个繁忙级别,得到各个交通流子集;According to the busy level of the historical traffic flow data of each said road segment, the fitness value of each said road segment in each update iteration is allocated to each busy level in ascending order to obtain each traffic flow subset;
    所述依据更新后的适应度值,分别与全局最优适应度值与局部适应度值比较,得到所述所有路段的最优适应度值时,所述一个或多个计算机程序被配置用于执行以下步骤:When the updated fitness value is compared with the global optimal fitness value and the local fitness value to obtain the optimal fitness values of all road sections, the one or more computer programs are configured to Perform the following steps:
    根据单个交通流子集所设定的最大迭代次数对所有交通流子集中当前的交通流子集的最大适应度值进行更新;Update the maximum fitness value of the current traffic flow subset in all traffic flow subsets according to the maximum number of iterations set by a single traffic flow subset;
    当单个交通流子集所设定的最大迭代次数小于全局混合迭代次数时,则根据剩余的迭代次数对全局的路段的最大适应度值进行更新;When the maximum number of iterations set for a single traffic flow subset is less than the number of global hybrid iterations, the global maximum fitness value of the road segment is updated according to the remaining number of iterations;
    依据更新后的最大适应度值,计算得到所述路段的最小适应度值,并以所述最小适应度值作为最优适应度值。According to the updated maximum fitness value, the minimum fitness value of the road section is calculated, and the minimum fitness value is used as the optimal fitness value.
  18. 根据权利要求15所述的服务器,其特征在于,所述一个或多个计算机程序还被配置用于执行以下步骤:The server according to claim 15, wherein the one or more computer programs are further configured to perform the following steps:
    在所述目标区域中,根据交通量的方向,将所有路段分为注入交通流和疏导交通流;In the target area, according to the direction of traffic volume, divide all road sections into injecting traffic flow and diverting traffic flow;
    所述根据设定的最大迭代次数,对每个路段的训练样本进行更新,利用混合蛙跳算法得到所有路段的最优适应度值时,所述一个或多个计算机程序被配置用于执行以下步骤:When the training samples of each road section are updated according to the set maximum number of iterations, and the hybrid leaping algorithm is used to obtain the optimal fitness value of all road sections, the one or more computer programs are configured to execute the following step:
    根据设定的最大迭代次数,对每个路段的各个方向的交通流的训练样本进行更新;According to the set maximum number of iterations, update the training samples of the traffic flow in each direction of each road section;
    利用混合蛙跳算法,分别以每个路段的各个方向的交通流数据计算对应的适应度值。Using the hybrid leapfrog algorithm, the corresponding fitness value is calculated based on the traffic flow data of each road section in each direction.
  19. 根据权利要求18所述的服务器,其特征在于,所述一个或多个计算机程序还被配置用于执行以下步骤:The server according to claim 18, wherein the one or more computer programs are further configured to perform the following steps:
    将每个路段的各个方向的交通流数据,输入所述交通流数据分析模型,得到所有路段的交通流的预测数据;Input the traffic flow data in each direction of each road section into the traffic flow data analysis model to obtain traffic flow forecast data of all road sections;
    根据所有路段的交通流的预测数据,得到所述目标区域的交通流的预测数据。According to the traffic flow prediction data of all road sections, the traffic flow prediction data of the target area is obtained.
  20. 一种计算机非易失性可读存储介质,其特征在于,所述计算机非易失性可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现权利要求1-7任一项所述交通流数据分析模型的构建方法。A computer non-volatile readable storage medium, characterized in that a computer program is stored on the computer non-volatile readable storage medium, and the computer program implements any one of claims 1-7 when executed by a processor The method for constructing the traffic flow data analysis model.
PCT/CN2019/117989 2019-08-15 2019-11-13 Method and apparatus for constructing traffic flow data analysis model WO2021027153A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910754650.8 2019-08-15
CN201910754650.8A CN110444022A (en) 2019-08-15 2019-08-15 The construction method and device of traffic flow data analysis model

Publications (1)

Publication Number Publication Date
WO2021027153A1 true WO2021027153A1 (en) 2021-02-18

Family

ID=68435801

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117989 WO2021027153A1 (en) 2019-08-15 2019-11-13 Method and apparatus for constructing traffic flow data analysis model

Country Status (2)

Country Link
CN (1) CN110444022A (en)
WO (1) WO2021027153A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486933A (en) * 2021-06-22 2021-10-08 中国联合网络通信集团有限公司 Model training method, user identity information prediction method and device
CN116580564A (en) * 2023-07-12 2023-08-11 北京赛目科技股份有限公司 Traffic flow prediction method and device
CN117373263A (en) * 2023-12-08 2024-01-09 深圳市永达电子信息股份有限公司 Traffic flow prediction method and device based on quantum pigeon swarm algorithm
CN117994986A (en) * 2024-04-07 2024-05-07 岳正检测认证技术有限公司 Traffic flow prediction optimization method based on intelligent optimization algorithm

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110444022A (en) * 2019-08-15 2019-11-12 平安科技(深圳)有限公司 The construction method and device of traffic flow data analysis model
CN114023074B (en) * 2022-01-10 2022-04-15 佛山市达衍数据科技有限公司 Traffic jam prediction method, device and medium based on multiple signal sources
CN116029459B (en) * 2023-02-28 2023-07-21 速度科技股份有限公司 Extraction method of TMGCN traffic flow prediction model combined with graph Fourier transform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103397A (en) * 2017-06-26 2017-08-29 广东工业大学 A kind of traffic flow forecasting method based on bat algorithm, apparatus and system
US20180063261A1 (en) * 2016-09-01 2018-03-01 Cisco Technology, Inc. Predictive resource preparation and handoff for vehicle-to-infrastructure systems
CN110444022A (en) * 2019-08-15 2019-11-12 平安科技(深圳)有限公司 The construction method and device of traffic flow data analysis model

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104464291B (en) * 2014-12-08 2017-02-01 杭州智诚惠通科技有限公司 Traffic flow predicting method and system
CN104599501A (en) * 2015-01-26 2015-05-06 大连理工大学 Traffic flow forecasting method optimizing support vector regression by mixed artificial fish swarm algorithm
CN105631516A (en) * 2015-11-16 2016-06-01 长沙理工大学 Historical experience and real-time adjustment combination-based particle swarm optimization algorithm
CN106600100B (en) * 2016-11-01 2020-10-27 南京航空航天大学 Weighted multi-population particle swarm optimization-based hazard source reason analysis method
CN106779198A (en) * 2016-12-06 2017-05-31 广州市科恩电脑有限公司 A kind of congestion in road situation analysis method
CN108694356B (en) * 2017-04-10 2024-05-07 京东方科技集团股份有限公司 Pedestrian detection device and method and auxiliary driving system
CN107293115B (en) * 2017-05-09 2020-09-08 上海电科智能系统股份有限公司 Traffic flow prediction method for microscopic simulation
CN107085942B (en) * 2017-06-26 2021-01-26 广东工业大学 Traffic flow prediction method, device and system based on wolf colony algorithm
CN107085941B (en) * 2017-06-26 2021-01-26 广东工业大学 Traffic flow prediction method, device and system
DE102017210975A1 (en) * 2017-06-28 2019-01-17 Audi Ag Method for collecting data
CN108399744A (en) * 2018-02-24 2018-08-14 上海理工大学 Short-time Traffic Flow Forecasting Methods based on grey wavelet neural network
CN109215344B (en) * 2018-09-27 2021-06-18 中电科大数据研究院有限公司 Method and system for urban road short-time traffic flow prediction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063261A1 (en) * 2016-09-01 2018-03-01 Cisco Technology, Inc. Predictive resource preparation and handoff for vehicle-to-infrastructure systems
CN107103397A (en) * 2017-06-26 2017-08-29 广东工业大学 A kind of traffic flow forecasting method based on bat algorithm, apparatus and system
CN110444022A (en) * 2019-08-15 2019-11-12 平安科技(深圳)有限公司 The construction method and device of traffic flow data analysis model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YAN, JIRU: "Particle Swarm Optimization Neural Network in the Application of Traffic Flow Prediction", SCIENCE-ENGINEERING (B), CHINA MASTER’S THESES FULL-TEXT DATABASE, no. 3, 15 March 2014 (2014-03-15), pages 1 - 71, XP055780728, ISSN: 1674-0246 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486933A (en) * 2021-06-22 2021-10-08 中国联合网络通信集团有限公司 Model training method, user identity information prediction method and device
CN113486933B (en) * 2021-06-22 2023-06-27 中国联合网络通信集团有限公司 Model training method, user identity information prediction method and device
CN116580564A (en) * 2023-07-12 2023-08-11 北京赛目科技股份有限公司 Traffic flow prediction method and device
CN116580564B (en) * 2023-07-12 2023-09-15 北京赛目科技股份有限公司 Traffic flow prediction method and device
CN117373263A (en) * 2023-12-08 2024-01-09 深圳市永达电子信息股份有限公司 Traffic flow prediction method and device based on quantum pigeon swarm algorithm
CN117373263B (en) * 2023-12-08 2024-03-08 深圳市永达电子信息股份有限公司 Traffic flow prediction method and device based on quantum pigeon swarm algorithm
CN117994986A (en) * 2024-04-07 2024-05-07 岳正检测认证技术有限公司 Traffic flow prediction optimization method based on intelligent optimization algorithm
CN117994986B (en) * 2024-04-07 2024-05-28 岳正检测认证技术有限公司 Traffic flow prediction optimization method based on intelligent optimization algorithm

Also Published As

Publication number Publication date
CN110444022A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
WO2021027153A1 (en) Method and apparatus for constructing traffic flow data analysis model
CN109816095B (en) Network flow prediction method based on improved gated cyclic neural network
CN110223517B (en) Short-term traffic flow prediction method based on space-time correlation
WO2022121510A1 (en) Stochastic policy gradient-based traffic signal control method and system, and electronic device
CN108875916B (en) Advertisement click rate prediction method based on GRU neural network
CN108399748B (en) Road travel time prediction method based on random forest and clustering algorithm
CN106781489B (en) A kind of road network trend prediction method based on recurrent neural network
CN110610242A (en) Method and device for setting participant weight in federated learning
WO2021027139A1 (en) Traffic flow data prediction method and device based on wavelet neural network
CN108446794A (en) One kind being based on multiple convolutional neural networks combination framework deep learning prediction techniques
CN109543939A (en) A kind of method of green building productions certification risk evaluation model building
CN113361680A (en) Neural network architecture searching method, device, equipment and medium
CN113672865A (en) Traffic flow prediction method based on depth map Gaussian process
CN114925238B (en) Federal learning-based video clip retrieval method and system
CN109871622A (en) A kind of low-voltage platform area line loss calculation method and system based on deep learning
CN103678004A (en) Host load prediction method based on unsupervised feature learning
CN110889450A (en) Method and device for super-parameter tuning and model building
CN115544873B (en) Training efficiency and personalized effect quantitative evaluation method for personalized federal learning
CN108805346A (en) A kind of hot continuous rolling force forecasting method based on more hidden layer extreme learning machines
CN109411093A (en) A kind of intelligent medical treatment big data analysis processing method based on cloud computing
CN110309907A (en) It is a kind of based on go tracking self-encoding encoder dynamic missing values complementing method
CN114584406B (en) Industrial big data privacy protection system and method for federated learning
CN115659807A (en) Method for predicting talent performance based on Bayesian optimization model fusion algorithm
CN113065045A (en) Method and device for carrying out crowd division and training multitask model on user
CN113887748B (en) Online federal learning task allocation method and device, and federal learning method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19941423

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19941423

Country of ref document: EP

Kind code of ref document: A1