Embodiments of this application relate to the field of artificial intelligence, and in particular, to a traffic information processing method and apparatus.
Currently, traffic information (for example, information such as a flow, a speed, and a density) is processed by using a traffic model (a road basic graphical model, a road network curve model, or the like) in the transportation field, to obtain processing results that can reflect statuses of different road units (for example, an intersection, a road section, or a road network). Then, the processing results of the traffic information are used for constructing a road information system (for example, a traffic signal control system).
A preset traffic model corresponding to a road unit is first determined, and then parameter calibration (that is, determining a parameter related to the preset traffic model) is performed on the preset traffic model by using traffic data reported by a vehicle sensor, a road sensor, or the like. For example, a parameter of the road basic graphical model reflects a traffic forward propagation speed. Then, the road information system is constructed based on a parameter of the traffic model. For example, an optimized signal control solution, namely, a solution for controlling duration of traffic lights, is obtained based on the traffic forward propagation speed. However, in the foregoing method, the preset traffic model may deviate from an actual situation. Consequently, a deviation of a processing result of traffic information is large, and an application effect of the constructed road information system is poor.
Embodiments of this application provide a traffic information processing method and apparatus. This can provide a more appropriate and reliable traffic control policy, and improve traffic service quality.
To achieve the foregoing objective, the following technical solutions are used in embodiments of this application.
According to a first aspect, an embodiment of this application provides a traffic information processing method, including: determining a target traffic model from a plurality of candidate traffic models by using historical traffic data, where the candidate traffic model corresponds to the historical traffic data; adjusting a parameter of the target traffic model based on current traffic data, where the parameter of the target traffic model is used for describing a current traffic running status, and the current traffic data corresponds to the target traffic model; and generating a traffic control policy based on an adjusted parameter of the target traffic model.
In this embodiment of this application, the candidate traffic model includes at least one of the following: a driver model, a road propagation model, or a road network evaluation model. The historical traffic data includes at least one of the following: traffic data of a driver in a historical time period, traffic data of a target road in a historical time period, or traffic data of a target road network in a historical time period. The current traffic data includes at least one of the following: traffic data of the driver in a current time period, traffic data of the target road in a current time period, or traffic data of the target road network in a current time period. The traffic control policy includes at least one of the following: navigation information of the driver, traffic signal control information, or road network boundary control information.
The candidate traffic model corresponds to the historical traffic data, that is, a type of the historical traffic data corresponds to a type of the candidate traffic model. For example, if the historical traffic data is the traffic data of the driver in the historical time period, the plurality of candidate traffic models are a plurality of driver models. The current traffic data corresponds to the target traffic model. For example, the target traffic model is a target driver model. The traffic data of the driver in the current time period is obtained, and the parameter of the target driver model is adjusted based on the traffic data of the driver in the current time period. It should be understood that the parameter of the (target) traffic model is used for describing a current traffic running status. For example, a parameter of the driver model is used for describing a current driving habit (a travel radical degree, a route selection preference, or the like) of the driver, the road propagation model is used for describing a current traffic running status of a road, and the road network evaluation model is used for describing a current traffic running status of a road network.
It should be noted that the historical time period is a plurality of calculation time windows before a current moment (a time point). Similarly, for different statistical objects (namely, a vehicle, a road, or a road network), historical time periods correspond to different time lengths, and a length of the historical time period may be set based on an actual requirement. For example, for a driver, a historical time period may be set to a previous day. For a road section or an intersection (namely, a road), a historical time period may be set to a previous day, several previous days, a previous week, or the like. For a road network, a historical time period may be set to a previous week, two previous weeks, or the like.
The current time period is a calculation time window before a current moment (a time point). Therefore, the current traffic data is traffic data in the calculation time window before the current moment. For different statistical objects (namely, a vehicle, a road, or a road network), calculation time windows are different. For different statistical objects, current time periods correspond to different time windows, and a value of the time window may be set based on an actual requirement. For example, for a driver, a calculation time window may be set to a small value, for example, set to 1 minute (min) to 5 min. For a road section or an intersection (namely, a road), a calculation time window may be set to a moderate value, for example, set to 15 min to 30 min. For a road network, a calculation time window may be set to a large value, for example, set to one hour (h) or more than 1 h.
In this embodiment of this application, a regression analysis method, a least square method, or a gradient optimization method (for example, a gradient descent method) may be used to adjust the parameter of the target traffic model based on the current traffic data (which may also be referred to as performing parameter calibration on the parameter of the target traffic model). Alternatively, another method may be used to adjust the parameter of the target traffic model. This is not limited in embodiments of this application.
According to the traffic information processing method provided in this embodiment of this application, the target traffic model may be determined from the plurality of candidate traffic models by using the historical traffic data, where the candidate traffic model includes at least one of the following: a driver model, a road propagation model, or a road network evaluation model. Then, the parameter of the target traffic model is adjusted based on the current traffic data. The traffic control policy is further generated based on the adjusted parameter of the target traffic model, where the traffic control policy includes at least one of the following: navigation information of the driver, traffic signal control information, or road network boundary control information. This can provide a more appropriate and reliable traffic control policy, and improve traffic service quality.
In an embodiment, the historical traffic data is the traffic data of the driver in the historical time period, the target traffic model is a target driver model, and the traffic data of the driver includes traffic data of a vehicle driven by the driver or travel habit data of the driver. Traffic data of the vehicle driven by the driver in the historical time period includes an acceleration and a speed of the vehicle driven by the driver in the historical time period, and travel habit data of the driver in the historical time period includes a travel probability or travel probabilities of one or more trips of the driver in the historical time period and a selection probability or selection probabilities of one or more routes corresponding to each trip. The traffic data of the driver in the current time period includes an acceleration and a speed of the vehicle driven by the driver in the current time period, and travel habit data of the driver in the current time period includes a travel probability or travel probabilities of one or more trips of the driver in the current time period and a selection probability or selection probabilities of one or more routes corresponding to each trip.
In this embodiment of this application, a position and a license plate number of the vehicle driven by the driver may be extracted based on track data of the vehicle in the historical time period (namely, data reported by a sensor, for example, data reported by a position sensor in the vehicle on a previous day or data reported by another sensor such as an electronic police device). Then, the acceleration and the speed of the vehicle driven by the driver are determined based on data such as a position and a license plate number of a vehicle (for example, a vehicle ahead) near the vehicle driven by the driver.
In this embodiment of this application, travel data (for example, a trip and a route) of a driver in a historical time period (it should be noted that the historical time period herein may be a time in a unit of a day, for example, 10 days, 20 days, or 30 days) may be collected. A travel probability or travel probabilities of one or more trips of the driver and a selection probability or selection probabilities of one or more routes corresponding to each trip are obtained through calculation based on the travel data of the driver in the historical time period.
In an embodiment, the traffic control policy is the navigation information of the driver, and the generating a traffic control policy based on an adjusted parameter of the target traffic model includes: setting a weight of a path on a navigation map based on the adjusted parameter of the target driver model, where the parameter of the target driver model is used for describing a current driving habit of the driver; and generating the navigation information of the driver based on the weight of the path on the navigation map.
According to the traffic information processing method provided in this embodiment of this application, from a perspective of the vehicle driven by the driver, the target driver model is determined from a plurality of candidate driver models by using the traffic data of the driver in the historical time period, the parameter of the target driver model is adjusted by using the traffic data of the driver in the current time period, and the navigation information of the driver is generated. This can provide a more comprehensive and practical personalized navigation service for the driver.
In an embodiment, the historical traffic data is the traffic data of the target road in the historical time period, and the target traffic model is a target road propagation model. The traffic data of the target road in the historical time period includes at least two of a flow, a speed, and a density of the target road in the historical time period. The traffic data of the target road in the current time period includes at least two of a flow, a speed, and a density of the target road in the current time period.
It should be noted that the road propagation model may be a road curve model, for example, a road basic graphical model. The road propagation model may be a model in another form. This is not limited in embodiments of this application.
In this embodiment of this application, the road basic graphical model is a curve model reflecting a flow-density-speed relationship of a road, and the road basic graphical model may be a three-dimensional curve or a two-dimensional curve (namely, a curve including two of the flow, the density, or the speed, for example, a flow-density curve including the flow and the density of the road).
In an embodiment, the traffic control policy is the traffic signal control information, and the generating a traffic control policy based on an adjusted parameter of the target traffic model includes: determining a signal control constraint condition based on an adjusted parameter of the target road propagation model, where the parameter of the target road propagation model is used for describing the current traffic running status of the target road; and generating the traffic signal control information by using the signal control constraint condition as an optimization condition of a traffic signal control model, where the signal control constraint condition is determined based on the adjusted parameter of the target road propagation model.
According to the traffic information processing method provided in this embodiment of this application, from a perspective of the road, the target road propagation model is determined from a plurality of candidate road propagation models by using the traffic data of the target road in the historical time period, the parameter of the target road propagation model is adjusted by using the traffic data of the target road in the current time period, and the traffic signal control information is generated. Because the parameter of the target road propagation model is adjusted based on the traffic data (which may be understood as real-time traffic data) of the target road in the current time period, the obtained road propagation model is more reliable as regularity and randomness of a traffic flow and heterogeneity between roads are considered. Therefore, traffic signal control can be performed adaptively and more accurately.
In an embodiment, the historical traffic data is the traffic data of the target road network in the historical time period, and the target traffic model is a target road network evaluation model. The traffic data of the target road network in the historical time period includes at least two of a flow, a speed, and a density of the target road network in the historical time period. The traffic data of the target road network in the current time period includes at least two of a flow, a speed, and a density of the target road network in the current time period.
It should be noted that the road network evaluation model may be a road network curve model or a model in another form. This is not limited in embodiments of this application.
In this embodiment of this application, the road network curve model is a curve model reflecting a flow-density-speed relationship of a road network, and the road network curve model may be a three-dimensional curve or a two-dimensional curve (namely, a curve including two of the flow, the density, or the speed, for example, a density-speed curve including the speed and the density of the road network).
In an embodiment, the traffic control policy is the road network boundary control information, and the generating a traffic control policy based on an adjusted parameter of the target traffic model includes: determining a capacity or a flow of the target road network based on an adjusted parameter of the target road network evaluation model and a macroscopic traffic flow model, where the parameter of the target road network evaluation model is used for describing the current traffic running status of the target road network; and generating the road network boundary control information based on the capacity or the flow of the target road network.
In this embodiment of this application, the capacity or the flow of the target road network may reflect a congestion degree of the traffic status of the target road network. Therefore, the road network boundary control information is generated based on the capacity or the flow of the target road network, to implement traffic control on the road network. For example, if the density (namely, the capacity) of the target road network is close to a cutoff density of the target road network, it indicates that the target road network is congested. In this case, a vehicle in the target road network may be steered to another road network that is not congested.
According to the traffic information processing method provided in this embodiment of this application, from a perspective of the road network, the target road network evaluation model is determined from a plurality of candidate road network evaluation models by using the traffic data of the target road network in the historical time period, the parameter of the target road network evaluation model is adjusted by using the traffic data of the target road network in the current time period, and the road network boundary control information is generated. Because the parameter of the target road network evaluation model is adjusted based on the traffic data (which may be understood as real-time traffic data) of the target road network in the current time period, the obtained road network evaluation model is more reliable as regularity and randomness of a transportation system are considered. Therefore, traffic control on a road network boundary can be performed adaptively and more accurately.
In an embodiment, the traffic data of the target road network is determined based on traffic data of a road section included in the target road network.
In this embodiment of this application, the traffic data of the target road network is determined based on the traffic data of the road section included in the target road network. In other words, traffic data of road sections included in the target road network is aggregated to obtain the traffic data of the target road network. In an embodiment, the traffic data of the road sections included in the target road network may be aggregated in the following manners:
where q indicates the flow of the target road network, qi indicates a flow of an ith road section included in the target road network, and n indicates a quantity of road sections included in the target road network.
where v indicates the speed of the target road network, and Vi indicates a speed of an ith road section included in the target road network.
where k indicates the density of the target road network, and ki indicates a density of an ith road section included in the target road network.
In an embodiment, the traffic information processing method provided in this embodiment of this application further includes: presenting traffic information on different levels based on different scales, where the traffic information on different levels is separately traffic information of the driver, traffic information of the target road, and traffic information of the target road network. The traffic information of the driver includes the traffic data of the driver in the current time period and the parameter of the target driver model, the traffic information of the target road includes the traffic data of the target road in the current time period and the parameter of the target road propagation model, and the traffic information of the target road network includes the traffic data of the target road network in the current time period and the parameter of the target road network evaluation model.
In this embodiment of this application, the traffic information on different levels is presented based on different scales, and presentation (for example, zooming in or zooming out) based on different scales may be switched by performing a UI operation. For example, presentation is performed based on a microscopic scale, a mesoscopic scale, and a macroscopic scale. Microscopic traffic information is traffic information (namely, the traffic information of the driver) of the vehicle, mesoscopic traffic information is traffic information of the road, and macroscopic traffic information is traffic information of the road network.
In an embodiment, the traffic information on different levels is presented in one or more of the following manners: a display, an electronic map, or a projection.
Optionally, the traffic information on different levels may be presented on a display (for example, a city brain), a display on a vehicle-mounted terminal, a display on a mobile phone, and the like, or may be projected on a front windshield of a vehicle and the like, or may be presented in navigation software such as an electronic map.
According to a second aspect, an embodiment of this application provides a traffic information processing apparatus, including a model determining module, a parameter adjustment module, and a traffic control policy generation module. The model determining module is configured to determine a target traffic model from a plurality of candidate traffic models by using historical traffic data. The candidate traffic model includes at least one of the following: a driver model, a road propagation model, or a road network evaluation model, the historical traffic data includes at least one of the following: traffic data of a driver in a historical time period, traffic data of a target road in a historical time period, or traffic data of a target road network in a historical time period, and the candidate traffic model corresponds to the historical traffic data. The parameter adjustment module is configured to adjust a parameter of the target traffic model based on current traffic data. The parameter of the target traffic model is used for describing a current traffic running status, the current traffic data includes at least one of the following: traffic data of a vehicle driven by the driver in a current time period, traffic data of the target road in a current time period, or traffic data of the target road network in a current time period, and the current traffic data corresponds to the target traffic model. The traffic control policy generation module is configured to generate a traffic control policy based on an adjusted parameter of the target traffic model. The traffic control policy includes at least one of the following: navigation information of the driver, traffic signal control information, or road network boundary control information.
In an embodiment, the historical traffic data is the traffic data of the driver in the historical time period, the target traffic model is a target driver model, and the traffic data of the driver includes traffic data of a vehicle driven by the driver or travel habit data of the driver. Traffic data of the vehicle driven by the driver in the historical time period includes an acceleration and a speed of the vehicle driven by the driver in the historical time period, and travel habit data of the driver in the historical time period includes a travel probability or travel probabilities of one or more trips of the driver in the historical time period and a selection probability or selection probabilities of one or more routes corresponding to each trip. The traffic data of the driver in the current time period includes an acceleration and a speed of the vehicle driven by the driver in the current time period, and travel habit data of the driver in the current time period includes a travel probability or travel probabilities of one or more trips of the driver in the current time period and a selection probability or selection probabilities of one or more routes corresponding to each trip.
In an embodiment, the traffic control policy is the navigation information of the driver. The traffic control policy generation module is configured to: set a weight of a path on a navigation map based on the adjusted parameter of the target driver model; and generate the navigation information of the driver based on the weight of the path on the navigation map, where the parameter of the target driver model is used for describing a current driving habit of the driver.
In an embodiment, the historical traffic data is the traffic data of the target road in the historical time period, and the target traffic model is a target road propagation model. The traffic data of the target road in the historical time period includes at least two of a flow, a speed, and a density of the target road in the historical time period. The traffic data of the target road in the current time period includes at least two of a flow, a speed, and a density of the target road in the current time period.
In an embodiment, the traffic control policy is the traffic signal control information. The traffic control policy generation module is configured to: determine a signal control constraint condition based on an adjusted parameter of the target road propagation model; and generate the traffic signal control information by using the signal control constraint condition as an optimization condition of a traffic signal control model, where the parameter of the target road propagation model is used for describing the current traffic running status of the target road, and the signal control constraint condition is determined based on the adjusted parameter of the target road propagation model.
In an embodiment, the historical traffic data is the traffic data of the target road network in the historical time period, and the target traffic model is a target road network evaluation model. The traffic data of the target road network in the historical time period includes at least two of a flow, a speed, and a density of the target road network in the historical time period. The traffic data of the target road network in the current time period includes at least two of a flow, a speed, and a density of the target road network in the current time period.
In an embodiment, the traffic control policy is the road network boundary control information. The traffic control policy generation module is configured to: determine a capacity or a flow of the target road network based on an adjusted parameter of the target road network evaluation model and a macroscopic traffic flow model; and generate the road network boundary control information based on the capacity or the flow of the target road network, where the parameter of the target road network evaluation model is used for describing the current traffic running status of the target road network.
In an embodiment, the traffic data of the target road network is determined based on traffic data of a road section included in the target road network.
In an embodiment, the traffic information processing apparatus provided in this embodiment of this application further includes a display module. The display module is configured to present traffic information on different levels based on different scales, where the traffic information on different levels is separately traffic information of the driver, traffic information of the target road, and traffic information of the target road network. The traffic information of the driver includes the traffic data of the driver in the current time period and the parameter of the target driver model, the traffic information of the target road includes the traffic data of the target road in the current time period and the parameter of the target road propagation model, and the traffic information of the target road network includes the traffic data of the target road network in the current time period and the parameter of the target road network evaluation model.
In an embodiment, the traffic information on different levels is presented in one or more of the following manners: a display, an electronic map, or a projection.
According to a third aspect, an embodiment of this application provides a traffic information processing apparatus, including a processor and a memory coupled to the processor. The memory is configured to store computer instructions, and when the apparatus runs, the processor executes the computer instructions stored in the memory, to enable the apparatus to perform the method in any one of the first aspect and the embodiments of the first aspect.
According to a fourth aspect, an embodiment of this application provides a traffic information processing apparatus. The traffic information processing apparatus exists in a product form of a chip. A structure of the traffic information processing apparatus includes a processor and a memory, and the memory is coupled to the processor. The memory is configured to store computer instructions, and the processor is configured to execute the computer instructions stored in the memory, to enable the traffic information processing apparatus to perform the method in any one of the first aspect and the embodiments of the first aspect.
According to a fifth aspect, an embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium may include computer instructions, and when the computer instructions are run on a computer, the method in any one of the first aspect and the embodiments of the first aspect is performed.
It should be understood that, for beneficial effects achieved by the technical solutions in the second aspect to the fifth aspect and the embodiments of this application, refer to the foregoing technical effects in the first aspect and the corresponding embodiments. Details are not described herein again.
The term “and/or” in this specification describes only an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists.
In embodiments of this application, a word such as “example” or “for example” is used to give an example, an illustration, or description. Any embodiment or design scheme described as an “example” or “for example” in embodiments of this application should not be interpreted as being more preferred or having more advantages than another embodiment or design scheme. Usage of the word such as “example” or “for example” is intended to present a related concept in a specific manner.
In description of embodiments of this application, unless otherwise stated, “a plurality of” means two or more than two. For example, a plurality of processing units are two or more processing units. A plurality of systems are two or more systems.
The following first describes some concepts related to a traffic information processing method and apparatus provided in embodiments of this application.
A traffic model is a mathematical model used for describing a traffic running status in a transportation system. The traffic model may be used for analyzing traffic statuses of a vehicle, a driver, a pedestrian, a road, a road network, and the like, for example, analyzing whether traffic is congested in a position, whether a road is congested, and whether a traffic accident occurs, to effectively perform traffic planning, organization, and management.
A driver model is used for describing a driving status of an individual vehicle, and the driver model is a microscopic traffic model.
A road propagation model is used for describing a propagation status of a traffic flow on a road, for example, a propagation speed. The road propagation model in embodiments of this application may be a road curve model (for example, a road basic graphical model). The road propagation model may alternatively be a model in another form. This is not limited herein. The road propagation model is a mesoscopic traffic model.
A road network evaluation model is used for describing a traffic status of a road network. For example, the road network is congested, or the road network is smooth. The road network evaluation model is a macroscopic traffic model.
A road section is a road between two adjacent intersections. The road section is not connected to another intersection, other than the intersections at two ends, and is not connected to another road.
A road network is a road system including various roads (the roads include a road section and an intersection) that are interconnected and interleaved into a mesh in an area. It should be understood that a road network including all levels of highways is referred to as a highway network. A road network including various roads in an urban area is referred to as an urban road network.
To resolve the problems in the background, embodiments of this application provide a traffic information processing method and apparatus. A target traffic model may be determined from a plurality of candidate traffic models by using historical traffic data, where the candidate traffic model of the plurality of candidate traffic models includes at least one of the following: a driver model, a road propagation model, or a road network evaluation model. Then, a target traffic model parameter of the target traffic model is adjusted based on current traffic data, where the parameter of the target traffic model is used for describing a current traffic running status. A traffic control policy is further generated based on an adjusted parameter of the target traffic model, where the traffic control policy includes at least one of the following: navigation information of a driver, traffic signal control information, or road network boundary control information. The technical solutions in embodiments of this application can provide a more appropriate and reliable traffic control policy, and improve traffic service quality.
The traffic information processing method and apparatus provided in embodiments of this application may be applied to a traffic information communication system.
The traffic information communication system 150 shown in
With reference to the architecture of the traffic information communication system 150, data transmission from the sensor end 110 to the edge side 130 and then to the traffic center side 120 is performed in an active reporting manner. Sensors in the communication system send traffic data to edge sides 130, and the edge sides 130 aggregate the traffic data based on a data reporting format, and send the data to the traffic center side 120 based on the format. Optionally, in this embodiment of this application, the format in which the edge side 130 reports the traffic data may include two types.
In a first data format, a sensor in an area is used as a unit for reporting, for example, data of a sensor 1 in the area, data of a sensor 2 in the area, . . . , and data of a sensor N in the area.
In a second data format, a road in an area is used as a unit for reporting, for example, data of a road 1 in the area, data of a road 2 in the area, . . . , and data of a road M in the area.
The traffic information processing apparatus provided in embodiments of this application may be a server (for example, the center server shown in
The processor 11 is a core component of the server 10, and is configured to run an operating system of the server 10 and an application program (including a system application program and a third-party application program) on the server 30. For example, the processor 11 monitors network quality by running a network quality monitoring method program on the server.
In embodiments of this application, the processor 11 may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processor 11 may implement or execute various example logic blocks, modules, and circuits described with reference to content disclosed in embodiments of this application. Alternatively, the processor may be a combination of processors implementing a computing function, for example, a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
The memory 12 may be configured to store a software program and a module. The processor 11 executes various functional applications of the server 10 and data processing by running the software program and the module stored in the memory 12. The memory 12 may include one or more computer-readable storage media. The memory 12 includes a program storage area and a data storage area. The program storage area may store an operating system, an application program required for at least one function, and the like. The data storage area may store data created by the server 10, and the like. In embodiments of this application, the memory 12 may be configured to store historical traffic data, current traffic data, and the like.
In embodiments of this application, the memory 12 may include a volatile memory, for example, a random access memory (RAM); or may include a non-volatile memory, for example, a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or may include a combination of the foregoing types of memories.
The communication interface 13 is an interface circuit used by the server 10 to communicate with another device. The communication interface may be a structure with a transceiver function, for example, a transceiver or a transceiver circuit. In embodiments of this application, the communication interface 13 on the server 10 may receive traffic data sent by a vehicle sensor or a road sensor (for example, an electronic police device or a sectional detector).
As shown in
S101: Determine a target traffic model from a plurality of candidate traffic models by using historical traffic data.
The candidate (or target) traffic model may include at least one of the following: a driver model, a road propagation model, or a road network evaluation model. The historical traffic data includes at least one of the following: traffic data of a driver in a historical time period, traffic data of a target road in a historical time period, or traffic data of a target road network in a historical time period.
The candidate (or target) traffic model corresponds to the historical traffic data, that is, a type of the historical traffic data corresponds to a type of the candidate traffic model. For example, if the historical traffic data is the traffic data of the driver in the historical time period, the plurality of candidate traffic models are a plurality of driver models.
In embodiments of this application, the plurality of candidate traffic models are a plurality of commonly used traffic models in the traffic field. The determining a target traffic model from a plurality of candidate traffic models by using historical traffic data means matching the traffic models with the historical traffic data, and selecting, from the plurality of candidate traffic models, a traffic model that is best-matched with the historical traffic data as the target traffic model for subsequent traffic data analysis.
Optionally, in embodiments of this application, a traffic model that has a smallest error or a most similar feature may be selected, by using a method such as a global error matching method, a feature matching method, or a probability map matching method, from the plurality of candidate traffic models as the target traffic model based on the historical traffic data. It is clear that the target traffic model may be determined from the plurality of candidate traffic models by using another matching method. This is not limited in embodiments of this application.
It should be noted that the historical time period is a plurality of calculation time windows before a current moment (a time point). Similarly, for different statistical objects (namely, a vehicle, a road, or a road network), historical time periods correspond to different time lengths, and a length of the historical time period may be set based on an actual requirement. For example, for a driver, a historical time period may be set to a previous day. For a road section or an intersection (namely, a road), a historical time period may be set to a previous day, several previous days, a previous week, or the like. For a road network, a historical time period may be set to a previous week, two previous weeks, or the like.
S102: Adjust a parameter of the target traffic model based on current traffic data.
The current traffic data may include at least one of the following: traffic data of the driver in a current time period, traffic data of the target road in a current time period, or traffic data of the target road network in a current time period.
It should be noted that the current time period is a calculation time window before a current moment (a time point) in embodiments of this application. Therefore, the current traffic data is traffic data in the calculation time window before the current moment. For different statistical objects (namely, a vehicle, a road, or a road network), calculation time windows are different. For different statistical objects, current time periods correspond to different time windows, and a value of the time window may be set based on an actual requirement. For example, for a driver, a calculation time window may be set to a small value, for example, set to 1 minute (min) to 5 min. For a road section or an intersection (namely, a road), a calculation time window may be set to a moderate value, for example, set to 15 min to 30 min. For a road network, a calculation time window may be set to a large value, for example, set to one hour (h) or more than 1 h.
The current traffic data corresponds to the target traffic model in embodiments of this application. For example, the target traffic model is a target driver model. The traffic data of the driver in the current time period is obtained, and the parameter of the target driver model is adjusted based on the traffic data of the driver in the current time period. It should be understood that the parameter of the (target) traffic model is used for describing a current traffic running status. For example, a parameter of the driver model is used for describing a current driving habit (a travel radical degree, a route selection preference, or the like) of the driver, the road propagation model is used for describing a current traffic running status of a road, and the road network evaluation model is used for describing a current traffic running status of a road network.
Optionally, in this embodiment of this application, a regression analysis method, a least square method, or a gradient optimization method (for example, a gradient descent method) may be used to adjust the parameter of the target traffic model based on the current traffic data (which may also be referred to as performing parameter calibration on the parameter of the target traffic model). Alternatively, another method may be used to adjust the parameter of the target traffic model. This is not limited in embodiments of this application.
S103: Generate a traffic control policy based on an adjusted parameter of the target traffic model.
The traffic control policy includes at least one of the following: navigation information of the driver, traffic signal control information, or road network boundary control information. For example, when the target traffic model is a target driver model, the traffic control policy is the navigation information of the driver to provide personalized navigation services for different drivers. When the target traffic model is a target road propagation model, the traffic control policy is the traffic signal control information (for example, control duration of traffic lights at an intersection), to adaptively control traffic signals based on a current traffic running status of the target road. When the target traffic model is a target road network evaluation model, the traffic control policy is the road network boundary control information (for example, control duration of traffic lights at a road network boundary), to control traffic signals at the road network boundary based on a current traffic running status of the target road network.
According to the traffic information processing method provided in this embodiment of this application, the target traffic model may be determined from the plurality of candidate traffic models by using the historical traffic data, where the candidate traffic model includes at least one of the following: a driver model, a road propagation model, or a road network evaluation model. Then, the parameter of the target traffic model is adjusted based on the current traffic data. The traffic control policy is further generated based on the adjusted parameter of the target traffic model, where the traffic control policy includes at least one of the following: navigation information of the driver, traffic signal control information, or road network boundary control information. This can provide a more appropriate and reliable traffic control policy, and improve traffic service quality.
It should be noted that the traffic information processing method provided in this embodiment of this application may be used to process traffic information on different scales (microscopic, mesoscopic, and macroscopic scales), for example, process at least one of the traffic data of the driver (the microscopic scale), the traffic data of the road (the mesoscopic scale), or the traffic data of the road network (the macroscopic scale). Further, the corresponding traffic control policy is generated to implement road information systems on a plurality of scales (for example, at least one of a personalized navigation system, a signal control analysis system, and a road network boundary control analysis system). The following embodiments separately describe processes of processing the traffic data of the driver, the traffic data of the road, and the traffic data of the road network.
It may be understood that for a driver (which may alternatively be understood as a vehicle), the historical traffic data is traffic data of the driver in a historical time period, the current traffic data is traffic data of the driver in a current time period, the plurality of candidate traffic models are a plurality of driver models, the target traffic model is a target driver model, and the traffic control policy is navigation information of the driver. As shown in
S201: Determine a target driver model from a plurality of driver models by using traffic data of a driver in a historical time period.
It should be understood that the traffic data of the driver includes traffic data of a vehicle driven by the driver or travel habit data of the driver. The traffic data of the vehicle driven by the driver in the historical time period includes an acceleration and a speed of the vehicle driven by the driver in the historical time period, and the travel habit data of the driver in the historical time period includes a travel probability or travel probabilities of one or more trips of the driver in the historical time period and a selection probability or selection probabilities of one or more routes corresponding to each trip.
In this embodiment of this application, a position and a license plate number of the vehicle driven by the driver may be extracted based on track data of the vehicle in the historical time period (namely, data reported by a sensor, for example, data reported by a position sensor in the vehicle on a previous day or data reported by another sensor such as an electronic police device). Then, the acceleration and the speed of the vehicle driven by the driver are determined based on data such as a position and a license plate number of a vehicle (for example, a vehicle ahead) near the vehicle driven by the driver.
Table 1 shows an example of track data of a vehicle collected by one electronic police device (a camera) on a road passed by the vehicle, and Table 2 shows an example of track data of a vehicle collected by a position sensor in the vehicle on a road.
In Table 1, a license plate number of the vehicle may be obtained based on the license plate encryption information of the vehicle, and the track data (data in Table 1) that is the same as the license plate number of the vehicle driven by the driver is found from massive data collected by the electronic police device. The ID of the detector is a position of the electronic police device collecting the track data of the vehicle, namely, a position of the vehicle. The time is time at which the track data of the vehicle is collected.
It should be understood that, in a running process of the vehicle, a plurality of electronic police devices at road sections or intersections passed by the vehicle may collect a plurality of groups of track data of the vehicle that are similar to that in Table 1. As shown in Table 2, an acceleration and a speed of the vehicle are calculated based on position information and time information of electronic devices collected by the plurality of electronic police devices, and position information and time information of a vehicle adjacent to the vehicle.
It should be understood that there are 86400 seconds (s) in total in a day. In Table 2, the time 12409 indicates a total of seconds from 00:00:00 to a current moment, and 12409 s indicates a moment of 03:26:49.
Similarly, in Table 2, a plurality of groups of track data similar to that shown in Table 2 may alternatively be collected by the position sensor of the vehicle, and position information (the longitude and the latitude), time information, and a speed of the vehicle may be extracted from the track data of the vehicle. Then, an acceleration and the speed of the vehicle are obtained based on position information, time information, and a speed of a vehicle adjacent to the vehicle.
In embodiments of this application, the track data of the vehicle may alternatively be obtained by using another method to calculate the acceleration and the speed of the vehicle. This is not limited herein.
In an implementation, when the traffic data of the driver in the historical time period is the acceleration and the speed of the vehicle driven by the driver in the historical time period, the plurality of target driver models may be a plurality of equations of relationships between the acceleration and the speed of the vehicle. Table 3 shows three commonly used driver models, namely, acceleration equations.
The determining a target driver model from a plurality of driver models by using traffic data of a driver in a historical time period (that is, model matching) may include: calibrating parameters of the plurality of driver models (namely, solving the parameters of the driver models) by using the acceleration and the speed of the vehicle in the historical time period, and an acceleration and the speed of the vehicle adjacent to the vehicle; solving an acceleration (which is referred to as a calculated acceleration) of the vehicle based on the speed of the vehicle and the parameters of the models; and comparing the calculated acceleration with the acceleration (which is referred to as a measured acceleration) determined based on the track data, to determine the target driver model. For example, a global matching method may be used. For a plurality of groups of accelerations and speeds of a vehicle, an accumulated error (namely, a sum of differences between a plurality of groups of calculated accelerations and measured accelerations) corresponding to each driver model may be obtained, and a driver model that has a smallest accumulated error is determined as the target driver model.
In this embodiment of this application, travel data (for example, a trip and a route) of a driver in a historical time period (it should be noted that the historical time period herein may be a time in a unit of a day, for example, 10 days, 20 days, or 30 days) may be collected. A travel probability or travel probabilities of one or more trips of the driver and a selection probability or selection probabilities of one or more routes corresponding to each trip are obtained through calculation based on the travel data of the driver in the historical time period.
The travel probability of each trip of the driver is a ratio of a quantity of travel times of each trip of the driver to a sum of quantities of travel times of all trips. For example, it is assumed that trips of the driver in past 30 days include four types of trips: from home to a working place, from the working place to home, from the working place to a railway station, and from home to a shopping center. Table 4 shows quantities of travel times of the four types of trips and travel probabilities of the four types of trips.
For a trip of the driver, a selection probability of each route corresponding to the trip is a ratio of a quantity of times that the driver selects each route to a sum of quantities of times that the driver selects all routes corresponding to the trip. With reference to Table 4, a trip 1 (namely, the trip from home to the working place) in Table 4 is used as an example. There are three routes from home to the working place that can be selected by the driver in the historical time period. Table 5 shows collected quantities of times of selecting the three routes of the trip 1 and collected selection probabilities of the three routes.
In this embodiment of this application, quantities of times of selecting a plurality of routes corresponding to a trip 2 to a trip 4 and selection probabilities of the plurality of routes in Table 4 are not listed one by one herein.
In an implementation, the traffic data of the driver in the historical time period is a travel probability or travel probabilities of one or more trips of the driver in the historical time period and a selection probability or selection probabilities of one or more routes corresponding to each trip. The plurality of target driver models may be probability distribution models. The target driver model is matched, based on the travel probability or the travel probabilities of one or more trips of the driver in the historical time period, from a plurality of probability distribution models related to the trips, or matched, based on the selection probability or the selection probabilities of one or more routes corresponding to each trip in the historical time period, from a plurality of probability distribution models related to the routes. An idea of the foregoing model matching method is similar to that of the method in which the target driver model is matched based on the acceleration and the speed of the vehicle.
S202: Adjust a parameter of the target driver model based on traffic data of the driver in a current time period.
Correspondingly, with reference to description of the traffic data of the driver in S201, it can be learned that the traffic data of the driver in the current time period may include an acceleration and a speed of the vehicle driven by the driver in the current time period, and travel habit data of the driver in the current time period includes a travel probability or travel probabilities of one or more trips of the driver in the current time period and a selection probability or selection probabilities of one or more routes corresponding to each trip.
For related description of the traffic data of the driver in the current time period, refer to related description of the traffic data of the driver in the historical time period in S201. Details are not described herein again.
In this embodiment of this application, after the target driver model is determined in S201, a regression analysis method may be used based on the traffic data of the driver in the current time period to obtain a parameter that has a smallest error between an output (for example, an acceleration) of the target driver model and actually measured data (for example, an acceleration), and the parameter is used as a finally adjusted parameter. It should be understood that, when the target driver model is one of the acceleration equations shown in Table 3 in S201, for the parameter of the target driver model, refer to the example in Table 3. When the target driver model is a probability distribution model, the parameter of the target driver model may be an average value or a variance of the probability distribution model.
In embodiments of this application, the parameter of the target driver model is used for describing a current driving habit of the driver, and the driving habit of the driver may include a radical degree of the driver or a route selection preference of the driver.
For the several driver models shown in Table 3, a large parameter of the driver model indicates that driving behavior of the driver is radical, and a small parameter of the driver model indicates that driving behavior of the driver is conservative. For example, if the target driver model is the driver model proposed by Newell (1961) in Table 3, parameters of the driver model are c and d, the parameter c is used for describing whether the driver requires a fast acceleration, and the parameter d is used for describing whether the driver frequently changes lanes. For example, when a value of the parameter c is 0.7, it indicates that the driver requires a fast acceleration. When a value of the parameter d is 0.8, it indicates that the driver frequently changes lanes. It can be seen that the driving habit of the driver is radical, and it is deduced that a driving speed of the driver is fast and the driver frequently overtakes.
For the probability distribution models corresponding to Table 4 and Table 5, when a parameter of the probability distribution model is a variance, the variance may indicate a travel preference of the driver for a trip (for example, a small variance indicates that the driver prefers the trip) or a selection preference of the driver for a route (for example, a small variance indicates that the driver prefers the route).
The parameter of the target driver model is adjusted based on the traffic data of the driver in the current time period (which may be understood as real-time traffic data), to better obtain the driving habit of the driver. The obtained driver model is more reliable because regularity and randomness of driving of the driver, and heterogeneity (which may be understood as that different drivers have different driving styles) between drivers are considered.
S203: Generate navigation information of the driver based on the adjusted parameter of the target driver model.
In this embodiment of this application, the navigation information of the driver is a personalized navigation route generated based on the driving habit of the driver.
Optionally, with reference to
S2031: Set a weight of a path on a navigation map based on the adjusted parameter of the target driver model.
S2032: Generate the navigation information of the driver based on the weight of the path on the navigation map.
In embodiments of this application, the adjusted parameter of the target driver model may be used to calculate the weight of the path on the navigation map. For example, for a radical driver, a high weight is set for a large road (a main road or an expressway) such as a level-1 road. For example,
Route 1: {circle around (1)}→{circle around (2)}→{circle around (3)}, including a path {circle around (1)}→{circle around (2)} and a path {circle around (2)}→{circle around (3)}, where the path {circle around (1)}→{circle around (3)} is a small road with a length of 5 kilometers (km), and the path {circle around (2)}→{circle around (3)} is also a small road with a length of 5 km.
Route 2: {circle around (1)}→{circle around (4)}→{circle around (3)}, including a path {circle around (1)}→{circle around (4)} and a path {circle around (4)}→{circle around (3)}, where the path {circle around (1)}→{circle around (4)} is an expressway with a length of 12 km, and the path {circle around (4)}→{circle around (3)} is a main road with a length of 15 km.
With reference to
Route 1: a weight of the path {circle around (1)}→{circle around (2)} is 25 (namely, 5/(1−0.8)), and a weight of the path {circle around (2)}→{circle around (3)} is 25 (namely, 5/(1−0.8)). In this way, a weight cost of Route 1 is 50(25+25).
Route 2: a weight of the path {circle around (1)}→{circle around (4)} is 2.4 (namely, 12×(1−0.8)), and a weight of the path {circle around (4)}→{circle around (3)} is 3 (namely, 15×(1−0.8)). In this way, a weight cost of Route 2 is 5.4.
According to a principle of a smallest weight cost of a route, Route 2, namely, the route {circle around (1)}→{circle around (4)}→{circle around (3)}, is set to a personalized navigation route of the driver. In other words, the navigation information of the driver is navigation information corresponding to Route 2.
With reference to
Route 1: a weight of the path {circle around (1)}→{circle around (2)} is 6.25 (namely, 5/(1−0.2)), and a weight of the path {circle around (2)}→{circle around (3)} is 6.25 (namely, 5/(1−0.2)). In this way, a weight cost of Route 1 is 12.5(6.25+6.25).
Route 2: a weight of the path {circle around (1)}→{circle around (4)} is 9.6 (namely, 12×(1−0.2)), and a weight of the path {circle around (4)}→{circle around (3)} is 12 (namely, 15×(1−0.2)). In this way, a weight cost of Route 2 is 21.6.
According to a principle of a smallest weight cost of a route, Route 1, namely, the route {circle around (1)}→{circle around (2)}→{circle around (3)}, is set to a personalized navigation route of the driver. In other words, the navigation information of the driver is navigation information corresponding to Route 1.
According to the traffic information processing method provided in this embodiment of this application, from a perspective of the vehicle driven by the driver, the target driver model is determined from a plurality of candidate driver models by using the traffic data of the driver in the historical time period, the parameter of the target driver model is adjusted by using the traffic data of the driver in the current time period, and the navigation information of the driver is generated. This can provide a more comprehensive and practical personalized navigation service for the driver.
It may be understood that for a road (which is referred to as a target road in the following, and may include a road section and an intersection), the historical traffic data is traffic data of the target road in a historical time period, the current traffic data is traffic data of the target road in a current time period, the plurality of candidate traffic models are a plurality of road propagation models, the target traffic model is a target road propagation model, and the traffic control policy is traffic signal control information. As shown in
S301: Determine a target road propagation model from a plurality of road propagation models by using traffic data of a target road in a historical time period.
It should be understood that the traffic data of the target road in the historical time period (a previous day or a previous week) includes at least two of a flow, a speed, and a density of the target road in the historical time period, and the target road may include a road section and an intersection.
It should be noted that the road propagation model may be a road curve model, for example, a road basic graphical model. The road propagation model may alternatively be a model in another form. This is not limited in embodiments of this application.
In this embodiment of this application, the road basic graphical model is a curve model reflecting a flow-density-speed relationship of a road, and the road basic graphical model may be a three-dimensional curve or a two-dimensional curve (namely, a curve including two of the flow, the density, or the speed, for example, a flow-density curve including the flow and the density of the road).
For example, the traffic data of the target road in the historical time period collected and reported by a road sensor, for example, a sectional detector, may be received (by a center server). Table 6 shows an example of the traffic data of the target road collected by the sectional detector.
The flow of the target road may be obtained from the traffic data reported by the sectional detector in Table 6. It should be understood that the speed and the density of the target road may be detected by another sensor. This is not limited in embodiments of this application.
With reference to Table 6, in the historical time period, a plurality of sectional detectors on the target road each may collect data similar to that shown in Table 6 to obtain a plurality of groups of flows and densities (namely, flows and densities in the historical time period), so that the plurality of groups of flows and densities are matched with a plurality of flow-density curves to determine a flow-density curve of the target road. In other words, a target road curve model is obtained.
Optionally, in this embodiment of this application, a flow-density curve that is best-matched with the target road is determined, by using a feature matching method (a feature may be a slope feature, a curvature feature, or the like), from the plurality of candidate flow-density curves based on the flows and the densities of the target road in the historical time period. For example,
S302: Adjust a parameter of the target road propagation model based on traffic data of the target road in a current time period.
Correspondingly, with reference to S301, the traffic data of the target road in the current time period includes at least two of a flow, a speed, and a density of the target road in the current time period. For related description of the traffic data of the target road in the current time period, refer to related description of the traffic data of the target road in the historical time period in S301. Details are not described herein again.
In this embodiment of this application, the parameter of the target road propagation model is used for describing a current traffic running status of the target road. For example, the target road propagation model is the foregoing flow-density curve. The traffic data of the target road in the current time period includes the flow and the density of the target road, and parameters of the target road propagation model include a flow upper limit value Q of the target road, a propagation speed W of the target road, and an overflow speed V of the target road. In this case, the parameters Q, W, and V of the target road propagation model are adjusted by using a least square method based on the flow and the density of the target road in the current time period, to obtain adjusted parameters Q, W, and V.
The parameter of the target road propagation model is adjusted based on the traffic data of the target road in the current time period (which may be understood as real-time traffic data). The obtained road propagation model is more reliable because regularity and randomness of propagation of a traffic flow, and heterogeneity between roads are considered.
It should be noted that, in this embodiment, if no sensor is installed on the target road, the traffic data of the target road in the historical time period and the traffic data of the target road in the current time period cannot be obtained. In this case, the target road propagation model of the target road may be determined by using a transfer learning method, namely, performing road similarity matching, and determining a road propagation model of a road similar to the target road as the target road propagation model of the target road. In other words, a road feature of the target road, for example, a feature such as a topology feature (for example, both the road and the target road are left-turn roads), a distance (for example, a road length), or a cell feature (for example, whether there is a parking lot near the road), matches with a feature corresponding to a road on which a sensor is installed, and a road propagation model of a road that has a maximum quantity of features matching with features of the target road is used as the target road propagation model of the target road. Further, a parameter of the best-matched road propagation model is used as the parameter of the target road propagation model, and an adjusted parameter of the target road propagation model is further obtained.
S303: Generate traffic signal control information based on the adjusted parameter of the target road propagation model.
In this embodiment of this application, the traffic signal control information may be control duration of traffic lights of the target road.
With reference to
S3031: Determine a signal control constraint condition based on the adjusted parameter of the target road propagation model.
The signal control constraint condition is determined based on the adjusted parameter of the target road propagation model.
In this embodiment of this application, it is assumed that the target road is a road section i, the target road propagation model is the flow-density curve described in S302, and parameters of the flow-density curve are a flow Q, a propagation speed W, and an overflow speed V. The road section i (which may also be referred to as a link i) is divided into a plurality of units (which may be denoted as cells). For example, the road section i is divided into m cells, which are denoted as a cell (i, 1), a cell (i, 2), . . . , a cell (i, j), . . . , and a cell (i, m). The following four signal control constraint conditions may be determined based on the parameters of the flow-density curve.
A constraint condition 1 is ni,j (t=1)=ni,j(t)+fi,j(t)−fi,j+1(t), where ni,j(t+1) indicates a quantity of vehicles in jth cell of the road section i at a moment t+1, ni,j (t) indicates a quantity of vehicles in the jth cell of the road section i at a moment t, fi,j(t) indicates a quantity of vehicles moving into the jth cell of the road section i at the moment t, and fi,j+1(t) indicates a quantity of vehicles moving from the jth cell of the road section i to a (j+1)th cell at the moment t (it should be noted that, in the constraint condition 1, for a cell, only a case in which a vehicle moving into or moving out of the cell in a single direction is considered).
In other words, the constraint condition 1 indicates that for a cell, a quantity of vehicles in the cell at the moment t+1 is equal to a quantity of vehicles in the cell at the moment t plus a quantity of vehicles moving into the cell at the moment t minus a quantity of vehicles moving out of the cell.
A constraint condition 2 is fi,j(t≤ni,j−1(t), where fi,j(t) indicates a quantity of vehicles moving into a jth cell of the road section i at a moment t, and ni,j−1(t) indicates a quantity of vehicles in a (j−1)th cell of the road section i at the moment t.
In other words, the constraint condition 2 indicates that for a cell, a quantity of vehicles moving into the cell at the moment t is less than or equal to a quantity of vehicles in a previous cell of the cell at the moment t.
A constraint condition 3 is fi,j(t)≤Qi,j(t), where fi,j(t) indicates a quantity of vehicles moving into a jth cell of the road section i at a moment t, and Qi,j(t) indicates a flow upper limit of the jth cell of the road section i at the moment t.
In other words, the constraint condition 3 indicates that for a cell, a quantity of vehicles moving into the cell at the moment t is less than or equal to a flow upper limit of the cell at the moment t.
A constraint condition 4 is
where fi,j(t) indicates a quantity of vehicles moving into a jth cell of the road section i at a moment t, W indicates a propagation speed, V indicates an overflow speed, Ni,j indicates a capacity upper limit of a cell that is specified in the transportation manual, and ni,j(t) indicates a quantity of vehicles in the jth cell of the road section i at the moment t.
S3032: Generate the traffic signal control information by using the signal control constraint condition as an optimization condition of a traffic signal control model.
In this embodiment of this application, the foregoing four signal control constraint conditions are used as optimization conditions of the traffic signal control model (namely, a target function) of the target road, to solve an optimization problem, that is, to solve the traffic signal control model, so as to obtain the traffic signal control information, namely, the control duration of traffic lights. It should be noted that the traffic signal control model of the target road may be a model related to fi,j(t) in the conventional technology. In this way, the foregoing four signal control constraint conditions are used as the constraint conditions of the traffic signal control model, to obtain the traffic signal control information.
For example, for a road shown in
According to the traffic information processing method provided in this embodiment of this application, from a perspective of the road, the target road propagation model is determined from the plurality of candidate road propagation models by using the traffic data of the target road in the historical time period, the parameter of the target road propagation model is adjusted by using the traffic data of the target road in the current time period, and the traffic signal control information is generated. Therefore, traffic signal control can be performed adaptively and more accurately.
It may be understood that for a road network (which is referred to as a target road network in the following), the historical traffic data is traffic data of the target road network in a historical time period, the current traffic data is traffic data of the target road network in a current time period, the plurality of candidate traffic models are a plurality of road network evaluation models, the target traffic model is a target road network evaluation model, and the traffic control policy is road network boundary control information. As shown in
S401: Determine a target road network evaluation model from a plurality of road network evaluation models by using traffic data of a target road network in a historical time period.
It should be understood that the traffic data of the target road network in the historical time period (a previous week or two previous weeks) includes at least two of a flow, a speed, and a density of the target road network in the historical time period (for example, one week or two weeks).
In this embodiment of this application, the traffic data of the target road network is determined based on traffic data of a road section included in the target road network. In other words, traffic data of road sections included in the target road network is aggregated to obtain the traffic data of the target road network. In an embodiment, the traffic data of the road sections included in the target road network may be aggregated in the following manners:
where q indicates the flow of the target road network, qi indicates a flow of an ith road section included in the target road network, and n indicates a quantity of road sections included in the target road network.
where v indicates the speed of the target road network, and vi indicates a speed of the ith road section included in the target road network.
where k indicates the density of the target road network, and ki indicates a density of the ith road section included in the target road network.
It should be noted that the road network evaluation model may be a road network curve model or a model in another form. This is not limited in embodiments of this application.
In this embodiment of this application, the road network curve model is a curve model reflecting a flow-density-speed relationship of a road network, and the road network curve model may be a three-dimensional curve or a two-dimensional curve (namely, a curve including two of the flow, the density, or the speed, for example, a density-speed curve including the speed and the density of the road network).
Optionally, for example, the road network evaluation model is a density-speed curve. A best-matched density-speed curve is determined as the density-speed curve of the target road network, namely, used as the target road network evaluation model, by using a probability map matching method based on the density and the speed of the target road network in the historical time period.
S402: Adjust a parameter of the target road network evaluation model based on traffic data of the target road network in a current time period.
Correspondingly, with reference to S401, the traffic data of the target road network in the current time period includes at least two of a flow, a speed, and a density of the target road network in the current time period. For related description of the traffic data of the target road network in the current time period, refer to related description of the traffic data of the target road network in the historical time period in S401. Details are not described herein again.
In this embodiment of this application, the parameter of the target road network evaluation model is used for describing a current traffic running status of the target road network. If the target road network evaluation model is a density-speed curve, a relationship between the speed and the density of the target road network is:
v=V(k), where v indicates the speed, k indicates the density, and V(k) indicates a function expression of the density-speed curve. In this case, the traffic data of the target road network in the current time period is the speed and the density of the target road network in the current time period. In this way, an adjusted parameter of the density-speed curve V(k) is obtained by using a gradient optimization method based on the speed and the density of the target road network in the current time period.
The parameter of the target road network evaluation model is adjusted based on the traffic data of the target road network in the current time period (which may be understood as real-time traffic data). The obtained road network evaluation model is more reliable because regularity and randomness of a transportation system are considered.
S403: Generate road network boundary control information based on an adjusted parameter of the target road network evaluation model.
In this embodiment of this application, the road network boundary control information may be information such as control duration of traffic lights at a road network boundary.
With reference to
S4031: Determine a capacity or a flow of the target road network based on the adjusted parameter of the target road network evaluation model and a macroscopic traffic flow model.
In this embodiment of this application, the macroscopic traffic flow model is a mathematical model describing a running feature of a traffic flow from perspectives of a flow, a speed, and a density of the traffic flow. The macroscopic traffic flow model may include a traffic flow basic graphics model, a vehicle pairing model, a traffic flow conservation model (which may also be referred to as a traffic flow conservation condition), and the like. In this embodiment of this application, an example in which the macroscopic traffic flow model is a traffic flow conservation condition is used for description.
The traffic flow conservation condition may be an LWR equation:
where
The kt indicates a partial derivative of a density function k(t, x) with respect to t, qt indicates a partial derivative of a flow function q(t, x) with respect to x, t indicates time, and x indicates displacement. In the LWR equation, v=V(k) is known, a function expression of V(k) may be obtained after the parameter is adjusted in S402, and the density function k(t, x) and the flow function q(t, x) may be obtained by solving the LWR equation.
It should be understood that a limiting value of the density function k(t, x) of the target road network may reflect a capacity status of the target road network. It is clear that another indicator may alternatively be used to reflect the capacity of the target road network. A limiting value of the flow function q(t, x) of the target road network may reflect a flow status of the target road network.
S4032: Generate the road network boundary control information based on the capacity or the flow of the target road network.
In this embodiment of this application, the capacity or the flow of the target road network may reflect a congestion degree of a traffic status of the target road network. Therefore, the road network boundary control information is generated based on the capacity or the flow of the target road network, to implement traffic control on the road network. For example, if the density (namely, the capacity) of the target road network is close to a cutoff density of the target road network, it indicates that the target road network is congested. In this case, a vehicle in the target road network may be steered to another road network that is not congested.
For example, capacities (densities) of a road network 1 and a road network 2 are used as an example. It is assumed that a limiting value of a density function of the road network 1 is 40, a limiting value of a density function of the road network 2 is 20, and cutoff densities of the road network 1 and the road network 2 are 50. It can be learned that the density of the road network 1 is close to the cutoff density, and the road network 1 may be in a congested state. The density of the road network 2 is small, and the road network 2 is in a free-flow state. In this case, a road network boundary control solution may be: increasing duration of green lights from the road network 1 to the road network 2, and reducing duration of green lights from the road network 2 to the road network 1, where the road network boundary control information is the duration of the green lights from the road network 1 to the road network 2, and the duration of the green lights from the road network 2 to the road network 1.
According to the traffic information processing method provided in this embodiment of this application, from a perspective of the road network, the target road network evaluation model is determined from the plurality of candidate road network evaluation models by using the traffic data of the target road network in the historical time period, the parameter of the target road network evaluation model is adjusted by using the traffic data of the target road network in the current time period, and the road network boundary control information is generated. Therefore, traffic control on the road network boundary can be performed adaptively and more accurately.
In conclusion, after the traffic data of the vehicle driven by the driver, the traffic data of the road, and the traffic data of the road network are analyzed, the traffic information processing method provided in embodiments of this application further includes: presenting traffic information on different levels based on different scales, and visualizing the traffic information.
The traffic information on different levels is separately traffic information of the driver, traffic information of the target road, and traffic information of the target road network. The traffic information of the driver includes the traffic data of the driver in the current time period (for example, the acceleration and the speed of the vehicle driven by the driver) and the parameter of the target driver model (for example, the parameter c in the acceleration equation proposed by Pipes (1953)). The traffic information of the target road includes the traffic data of the target road in the current time period (for example, at least two of the flow, the density, or the speed of the target road) and the parameter of the target road propagation model. The traffic information of the target road network includes the traffic data of the target road network in the current time period (for example, at least two of the flow, the density, or the speed of the target road network) and the parameter of the target road network evaluation model.
Optionally, the traffic information on different levels may be presented in one or more of the following manners: a display, an electronic map, or a projection in embodiments of this application. For example, the traffic information may be presented on a display (for example, a city brain), a display on a vehicle-mounted terminal, a display on a mobile phone, and the like, or may be projected at a location such as a front windshield of a vehicle and the like, or may be presented in an electronic map such as navigation software.
In this embodiment of this application, the traffic information on different levels is presented based on different scales, and presentation (for example, zooming in or zooming out) based on different scales may be switched by performing a UI operation. For example, presentation is performed based on a microscopic scale, a mesoscopic scale, and a macroscopic scale. Microscopic traffic information is traffic information of the vehicle (namely, the traffic information of the driver), mesoscopic traffic information is traffic information of the road, and macroscopic traffic information is traffic information of the road network. The electronic map is used as an example. In
The traffic information processing method provided in embodiments of this application may be performed by a traffic information processing apparatus (for example, the center server). The traffic information processing apparatus may be divided into functional modules based on the foregoing method examples. For example, functional modules corresponding to the functions may be obtained through division, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module. It should be noted that, in embodiments of this application, division into the modules is an example, and is merely logical function division. During actual implementation, another division manner may be used.
When each functional module corresponding to each function is obtained through division,
Optionally, as shown in
When an integrated unit is used,
The processing module 2001 may be a processor or a controller (for example, the processor 11 shown in
When the processing module 2001 is the processor, the communication module 2002 is the transceiver, and the storage module 2003 is the memory, the processor, the transceiver, and the memory may be connected through a bus. The bus may be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. Buses may be classified into an address bus, a data bus, a control bus, and the like.
All or some of the embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When a software program is used to implement the embodiments, the embodiments may be implemented completely or partially in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or a part of the procedures or functions according to the embodiments are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by the computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a magnetic disk, or a magnetic tape), an optical medium (for example, a digital video disc (DVD)), a semiconductor medium (for example, a solid-state drive (SSD)), or the like.
The foregoing description about implementations allows a person skilled in the art to understand that, for the purpose of convenient and brief description, division into the foregoing functional modules is taken as an example for illustration. During actual application, the foregoing functions can be allocated to different modules and implemented as required, that is, an inner structure of an apparatus is divided into different functional modules to implement all or a part of the functions described above. For detailed working processes of the foregoing system, apparatus, and unit, refer to corresponding processes in the foregoing method embodiments. Details are not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, division into the modules or units is merely logical function division and may be other division during actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected depending on actual requirements to achieve the objectives of the solutions in the embodiments.
In addition, functional units in embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.
When the integrated unit is implemented in the form of a software functional unit and is sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the conventional technology, or all or some of the technical solutions may be implemented in a form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes any medium that can store program code, such as a flash memory, a removable hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disc.
The foregoing description is merely an implementation of this application, but is not intended to limit the protection scope of this application. Any variation or replacement within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
201911380305.9 | Dec 2019 | CN | national |
This application is a continuation of International Application No. PCT/CN 2020/129078, filed on Nov. 16, 2020, which claims priority to Chinese Patent Application No. 201911380305.9, filed on Dec. 27, 2019. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2020/129078 | Nov 2020 | US |
Child | 17851021 | US |