Traffic signal light control method, device, medium and equipment
By dividing roads into road sections and target vehicle types, and adjusting the green light duration of traffic lights based on historical traffic data, the problem of fixed duration control in the existing technology being unable to adapt to complex traffic scenarios is solved, and adaptive adjustment of traffic lights is realized. , avoiding congestion and ensuring smooth traffic.
Patent Information
- Application Number
- CN202111261122.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-10-28
AI Technical Summary
The fixed duration control of existing traffic lights cannot adapt to complex and changeable traffic scenarios, and can easily lead to road congestion and even traffic paralysis.
By dividing the road into sections and determining the proportion and average traffic speed of target vehicle types based on historical traffic data, the green light duration of traffic lights can be adaptively adjusted to provide personalized control for different types and proportions of vehicles.
It effectively avoids traffic congestion, ensures smooth traffic on the road, and improves the flexibility and efficiency of traffic management.
Smart Images

Figure CN116052448B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of traffic technology, and in particular to a method, device, medium and equipment for controlling a traffic light. Background Art
[0002] As cities expand and people's living standards improve, cars have become a common means of transportation in thousands of households. Urbanization has brought about drawbacks such as large traffic volume, uncertain traffic peak cycles, a wide variety of vehicles, and a complex three-dimensional transportation network structure. These factors have brought varying degrees of burden to the operation and management of urban transportation.
[0003] In the current traffic system, traffic lights are usually used to control the traffic volume of vehicles, thereby achieving the purpose of traffic management. The on and off time of traffic lights is generally set to a fixed time.
[0004] In the prior art, the fixed-duration on and off method of traffic lights cannot respond to complex and changing traffic scenarios in a timely manner, which can easily cause road congestion. More seriously, this method of controlling vehicle traffic volume may also cause traffic paralysis. Summary of the invention
[0005] The embodiments of the present application provide a method, device, medium and equipment for controlling a traffic light. The technical solution can adaptively adjust the lighting time of the traffic light according to various traffic factors, thereby avoiding congestion and ensuring smooth traffic.
[0006] In a first aspect, an embodiment of the present application provides a method for controlling a traffic signal light, the method comprising:
[0007] Divide the road into sections, and determine the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determine the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles;
[0008] If the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average travel speed of vehicles of the target vehicle type; wherein the checkpoint is the traffic light intersection at the end of the road section.
[0009] In a second aspect, an embodiment of the present application provides a control device for a traffic light, the device comprising:
[0010] A target vehicle type determination module is used to divide the road into sections, and determine the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determine the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles;
[0011] The module for determining the default green light duration is used to determine the default green light duration of each checkpoint based on the average travel speed of vehicles of the target vehicle type if the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold; wherein the checkpoint is a traffic light intersection at the end of the road section.
[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for controlling a traffic light as described in the embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for controlling a traffic light as described in the embodiment of the present application is implemented.
[0014] The technical solution provided in the embodiment of the present application divides the road into sections and the target vehicle types, determines the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determines the average speed of vehicles of the target vehicle type in each section. If the proportion of vehicles of the target vehicle type in each section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average speed of vehicles of the target vehicle type. This technical solution, by dividing the road sections and the target vehicle types, can comprehensively consider multiple aspects such as the proportion of vehicles of the target vehicle type, the average speed of vehicles of the target vehicle type in each section, and the change time, provide the optimal green light on time, adaptively adjust the traffic light on time, and thus avoid congestion and ensure smooth traffic. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a flow chart of a method for controlling a traffic light provided in Embodiment 1 of the present application;
[0016] Figure 2 A schematic diagram of road section division in an embodiment of the present invention;
[0017] Figure 3 is a flow chart of a method for controlling a traffic light in Embodiment 2 of the present invention;
[0018] Figure 4A schematic diagram of the structure of a control device for a traffic light provided in Embodiment 3 of the present invention;
[0019] Figure 5 It is a structural schematic diagram of an electronic device provided in Example 5 of the present application. DETAILED DESCRIPTION
[0020] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0021] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0022] Embodiment 1
[0023] Figure 1 This is a flow chart of the traffic light control method provided in the first embodiment of the present application. This embodiment is applicable to any traffic scene with traffic lights. The method can be executed by the traffic light control device provided in the embodiment of the present application. The device can be implemented by software and / or hardware and can be integrated into an electronic device.
[0024] like Figure 1 As shown, the control method of the traffic light includes:
[0025] S110, dividing the road into sections, and determining the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determining the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles.
[0026] This solution can be implemented by the city's traffic light management system.
[0027] In order to facilitate the flexible control of each traffic light and realize the effective flow of the entire traffic system, the traffic light management system can divide the road into sections. Figure 2 FIG. 1 is a schematic diagram of dividing a road section in an embodiment of the present invention. The road section division method may be based on intersections, for example, based on Figure 2The intersections indicated by points A and E, the three-way intersection indicated by point B, and the roundabout intersection indicated by point C, etc., divide the road between two or more intersections into a road section. The road section division method can also be divided according to the length of the road section, for example, Figure 2 If the distance between point D and point H is long enough, the road section can be divided into DH sections. The road section division method can also be divided according to the complexity of the road section. For example, the traffic situation of the roundabout intersection indicated by point C is complicated, and the road sections can be divided on the radial road of point C. The road section division method can also be divided according to the arrangement of traffic lights on the road section. It can be understood that the road section division method can also be used in combination with the above division methods.
[0028] It should be noted that the division of road sections can facilitate statistics and management. When controlling traffic lights, sections without traffic lights can be merged with adjacent sections with traffic lights. Figure 2 There are no traffic lights at points D and H, but there is a traffic light at point A. When controlling the traffic lights, the DH section can be combined with the AD section.
[0029] The traffic light management system can store historical traffic data in each road section. The historical traffic data can include the traffic volume on previous working days and holidays, each time period and each season, the model of the passing vehicle and the frequency of accidents on the road section, etc. According to the historical traffic data in each road section, the traffic light management system can determine the proportion of vehicles of the target vehicle type. The traffic light management system can use all the historical traffic data, or part of the historical traffic data, or randomly select the required historical traffic data. The target vehicle type can include regular traffic vehicles and fluid vehicles. The regular traffic vehicle can be a vehicle with a high traffic frequency on the current road section, and the fluid vehicle can be a vehicle with a low traffic frequency on the current road section. For example, the traffic frequency of vehicle A is 1 time / month, and the traffic frequency of vehicle B is 1 time / day. The division method of the regular traffic vehicles and fluid vehicles can be by setting a traffic frequency evaluation standard, and when the traffic frequency of the vehicle is higher than the standard, it is divided into a regular traffic vehicle, and when the traffic frequency of the vehicle is lower than the standard, it is divided into a fluid vehicle. Assume that the frequency evaluation standard is set to 2 times / 5 days, the frequency of vehicle A is higher than the frequency evaluation standard, and the frequency of vehicle B is lower than the frequency evaluation standard. By using the historical traffic data in each section, the vehicles are classified into types, and the traffic light management system can determine the proportion of vehicles of the target vehicle type. The proportion of vehicles of the target vehicle type can be a proportion value within a period of time. For example, through statistics, it is found that the number of vehicles that usually pass through section A in a week is 500, and the number of mobile vehicles is 1000. Then the proportion of vehicles that usually pass through is 1 / 3, and the proportion of mobile vehicles is 2 / 3.
[0030] In this solution, optionally, the proportion of vehicles of the target vehicle type is determined based on historical traffic data in each road section, including:
[0031] If the number of times a vehicle passes during the statistical period reaches the preset number, the vehicle is determined to be a regular passing vehicle;
[0032] If the number of passes of the vehicle does not reach the preset number, the vehicle is determined to be a mobile vehicle.
[0033] The statistical period can be, for example, one day, five working days, one month or three months, etc. When classifying vehicle types, this solution does not count the vehicle's passing frequency in all historical passing data, but sets a statistical period to determine whether the vehicle's passing coefficient reaches a preset number of times within the statistical period.
[0034] This method can classify vehicle types more quickly. It does not need to conduct statistical analysis on all historical traffic data. It only needs to focus on the number of traffic within the statistical period. It can more flexibly select the traffic conditions of each section within a certain period, which reduces the statistical pressure. At the same time, selecting the statistical period closest to the current time can avoid the influence of long-term historical traffic data on the current statistical results.
[0035] The historical traffic data in each road section can include the time when the vehicle enters and exits. Based on the time when the vehicle enters and exits, the traffic light management system can calculate the travel time of a vehicle in a certain road section. Using the length of the current road section, the traffic light management system can calculate the speed of the vehicle in the road section. By counting the speed of all vehicles of different target vehicle types, the traffic light management system can further obtain the average speed of the target vehicle type in each road section.
[0036] In a preferred embodiment, optionally, before determining the average travel speed of the target vehicle type in each road section, the method further includes:
[0037] Dividing the historical traffic data according to weather factors;
[0038] The average travel speed of vehicles of the target vehicle type in each road segment under each weather factor is determined.
[0039] It is understandable that the weather factors may include sunny, rainy, snowy, foggy, dusty, and hail, etc. The weather may be further classified according to the severity of the weather, for example, rain may include light rain, moderate rain, heavy rain, and rainstorm, etc. The traffic light management system may first classify the historical traffic data according to the weather factors, and then determine the average traffic speed of the target vehicle type in each road section under each weather factor.
[0040] This solution takes into account the impact of weather factors on traffic and calculates the average traffic speed according to weather factors. This is conducive to the traffic light management system to adopt targeted control strategies for traffic lights in different weather scenarios to avoid the impact of weather factors.
[0041] S120, if the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold, determine the default green light on time of each checkpoint according to the average travel speed of vehicles of the target vehicle type; wherein the checkpoint is the traffic light intersection at the end of the road section.
[0042] Within a preset time, the proportion of vehicles of the target vehicle type in a certain road section can be used to evaluate the traffic conditions of the road section during that period of time. The preset threshold value may be in the range of 0-100%. For example, when the proportion of regular vehicles on road section A is higher than the preset threshold value of 70%, it can be considered that most of the vehicles on road section A are regular vehicles, and the number of mobile vehicles is relatively small, which will not cause traffic congestion, and the traffic flow is controllable at this time. On the contrary, if the proportion of mobile vehicles on road section A is higher than the preset threshold value of 70%, it can be considered that most of the vehicles on road section A are mobile vehicles, and the number of regular vehicles is relatively small, indicating that there are a large number of mobile vehicles pouring into road section A, and the traffic flow is more volatile at this time. The preset threshold value can be set in advance according to the actual application scenario.
[0043] When the number of vehicles on a road section is dominated by a certain type of vehicle, the traffic light management system can determine the default green light duration of the checkpoint according to the average speed of the vehicle of that type. It can be understood that the checkpoint is the traffic light intersection at the end of the road section.
[0044] Specifically, when the number of vehicles in a road section is dominated by regular vehicles, the traffic light management system can use the ratio of the length of the road section and the average speed of regular vehicles to calculate the default green light duration of the checkpoint. Correspondingly, when the number of vehicles in a road section is dominated by mobile vehicles, the traffic light management system can use the ratio of the length of the road section and the average speed of mobile vehicles to calculate the default green light duration of the checkpoint. It should be noted that the time period for calculating the average speed may be different for regular vehicles and mobile vehicles. For example, when the traffic volume fluctuates greatly, the traffic light management system can calculate the average speed of mobile vehicles within 30 minutes, and then calculate the default green light duration of the checkpoint. This method can be more in line with the actual traffic scene, and flexibly determine the default green light duration of the checkpoint based on the real-time average speed, thereby ensuring smooth traffic.
[0045] In a feasible embodiment, optionally, before determining the default green light on time of each checkpoint according to the average passing speed of vehicles of the target vehicle type, the method further includes:
[0046] Divide the control cycle into time periods according to preset durations;
[0047] Accordingly, the default green light duration of each checkpoint is determined according to the average speed of vehicles of the target vehicle type, including:
[0048] For each time period, the default green light on time of each checkpoint in each time period is determined according to the average speed of vehicles of the target vehicle type in the time period.
[0049] Among them. The control cycle can be set according to the actual traffic scenario, and the preset duration can be a period of time in the control cycle. For example, the control cycle can be set to one day, and the preset duration can be set to 2 hours. The traffic light management system can also divide the control cycle into different time periods according to different preset durations. For example, assuming that the control cycle is one day, the traffic light management system can set the preset duration of the morning rush hour period of 07:00-09:00 in the morning and the evening rush hour period of 17:30-19:00 in the evening to 10 minutes according to different preset durations, and set the remaining other time periods to 1 hour. The traffic light management system can determine the default green light on duration of each checkpoint in each time period according to the average traffic speed of the target vehicle type in each time period for different time periods.
[0050] This solution further divides the control cycle and determines the default green light duration according to the vehicle traffic conditions within the preset duration. Therefore, this solution can collect the vehicle traffic conditions within the preset duration in real time, and calculate the default green light duration according to the actual vehicle traffic conditions within the preset duration, thereby realizing adaptive traffic signal light control and solving traffic problems in a targeted manner.
[0051] In this solution, optionally, if the target vehicle type is a regular vehicle, the average speed of the target vehicle type is the average speed of all regular vehicles in the current road section;
[0052] If the target vehicle type is a mobile vehicle, the average travel speed of vehicles of the target vehicle type is the average of the travel speeds of all mobile vehicles in the current road section within a preset historical time period.
[0053] It can be understood that for different types of vehicles, the average speed of vehicles of the target vehicle type is calculated separately. The way to calculate the average speed is to first calculate the speed of each vehicle, and then average the speeds of all vehicles of the same type. It should be noted that if the target vehicle type is a mobile vehicle, it means that there are relatively few vehicles that often pass through the current road section, and the vehicle speed fluctuates greatly. Therefore, by presetting the historical time period, the average speed of all mobile vehicles within the time range is calculated as the average speed of vehicles of the target vehicle type.
[0054] This scheme calculates the average speed of regular vehicles and mobile vehicles respectively, which can distinguish the difference in average speed of different types of vehicles, which is conducive to adopting different traffic light control strategies for different types of vehicles, thereby avoiding traffic congestion and coordinating the waiting time of various types of vehicles.
[0055] Based on the above embodiment, optionally, if the target vehicle type is a mobile vehicle, after determining the default green light on time of each checkpoint according to the average passing speed of vehicles of the target vehicle type, the method further includes:
[0056] Determine whether the default green light on time meets the preset restriction condition;
[0057] If yes, change the default green light duration to the set green light duration.
[0058] The preset restriction condition may be a time length pre-set according to the actual traffic scene, for example, 5 minutes. After calculating the default green light on time length of each checkpoint, the traffic signal light management system may determine whether the default green light on time length of each checkpoint exceeds the preset restriction condition. If so, the vehicles traveling in other directions at the checkpoint will have to wait too long. Therefore, the default green light on time length may be modified to the set green light on time length.
[0059] The preset restriction condition can also be used to standardize the default green light duration. Suppose it is calculated that the default green light duration of checkpoint A is 3.67 minutes, and the traffic light is only allowed to be on for a multiple of 30 seconds. At this time, the traffic light management system can standardize the default green light duration of checkpoint A so that the default green light duration of checkpoint A is 4 minutes.
[0060] The above scheme can coordinate road resources to ensure efficient and orderly traffic, while standardizing the lighting time of traffic lights, conforming to traffic habits, and facilitating the countdown display of traffic lights.
[0061] It should be noted that this solution can be applied not only to each road section, but also to coordinate the traffic of the entire road and the entire region. For a simple example, suppose there are 5 checkpoints on a straight road, and the road between two adjacent checkpoints is considered a road section. As far as a single checkpoint is concerned, the final green light on time for each checkpoint can make the driving of the road section smooth. However, the smoothness of a single checkpoint does not mean that the entire road or the entire area is smooth. Therefore, through the analysis of the travel habits and historical behaviors of vehicles, based on reasonable scheduling, the entire road or the entire area can be made to drive smoothly, thereby realizing the most reasonable traffic light planning for the entire road or the entire area.
[0062] Specifically, for example, when a regular vehicle enters the road, the first checkpoint that captures the vehicle records it. The traffic light management system can calculate and set the final green light duration of each checkpoint on the road the vehicle is about to enter in real time according to the road section the vehicle is about to enter, so that the vehicle waits for as few red lights as possible while driving on the road. The ideal state can be green lights all the way. This solution can greatly improve traffic congestion and facilitate people's daily travel.
[0063] The technical solution provided in the embodiment of the present application divides the road into sections and the target vehicle types, determines the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determines the average speed of vehicles of the target vehicle type in each section. If the proportion of vehicles of the target vehicle type in each section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average speed of vehicles of the target vehicle type. This technical solution, by dividing the road sections and the target vehicle types, can comprehensively consider multiple aspects such as the proportion of vehicles of the target vehicle type, the average speed of vehicles of the target vehicle type in each section, and the change time, provide the optimal green light on time, adaptively adjust the traffic light on time, and thus avoid congestion and ensure smooth traffic.
[0064] Embodiment 2
[0065] Figure 3 Flow chart of a method for controlling a traffic light in Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment.
[0066] like Figure 3 As shown, the method of this embodiment specifically includes the following steps:
[0067] S210, dividing the road into sections, and determining the proportion of vehicles of the target vehicle type based on the historical traffic data in each section, and determining the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles.
[0068] S220: If the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average travel speed of vehicles of the target vehicle type; wherein the checkpoint is a traffic light intersection at the end of the road section.
[0069] S230, for the default green light on time of the current section, at least one transformation time is obtained by using a preset transformation method, and the checkpoint traffic lights are controlled according to the default green light on time and the at least one transformation time, so as to obtain the total travel time of the current section and the reference section; wherein the reference section and the current section are connected.
[0070] The traffic signal management system can use a preset transformation method to obtain one or more transformation durations for the default green light duration of the current road section. Assuming that the default green light duration of the current road section is 60 seconds, the preset transformation method is to increase and decrease the default green light duration by 10 seconds, thus obtaining two transformation durations of 50 seconds and 70 seconds.
[0071] The traffic signal management system can use the default green light on time and the at least one change time to control the checkpoint traffic signal lights in different control cycles. Then, the total travel time of the current road section and the reference road section is recorded. The reference road section is connected to the current road section.
[0072] In a feasible embodiment, optionally, controlling the checkpoint traffic light according to the default green light on time and the at least one change time to obtain the total travel time of the current road section and the reference road section includes:
[0073] Calculating the length of the traffic flow according to the default green light on time and the at least one change time respectively;
[0074] Determine the travel time of the next road section according to the average speed of each vehicle within the traffic flow length and the length of the next road section, and obtain the travel time of all reference road sections in sequence;
[0075] The travel time of the current section and all reference sections is accumulated to obtain the total travel time of the current section and the reference sections.
[0076] It can be understood that the traffic light management system can calculate the traffic flow length corresponding to the default green light on time and the at least one change time according to the default green light on time and the at least one change time, combined with the average travel speed of vehicles on the current road section.
[0077] The traffic light management system can obtain the average speed of each vehicle within the length of the traffic flow in real time, and the average speed of each vehicle can also be obtained from historical traffic data. According to the average speed of each vehicle within the length of the traffic flow and the length of the next road section, the traffic light management system can calculate the travel time of the next road section, and then obtain the travel time of all reference sections. The reference road section is connected to the current road section, and the reference road section can have one or more. When the reference road section is one, the travel time of the next road section is the travel time of the reference road section. When the reference road section is multiple, the traffic light management system can determine the travel time of all reference road sections according to the number of reference road sections. The traffic light management system can also determine the travel time of each reference road section according to the past traffic volume ratio of each reference road section.
[0078] The traffic light management system can accumulate the travel time of the current section and all reference sections, and then calculate the total travel time of the current section and the reference sections.
[0079] S240: Determine, according to the total travel time, a final green light on duration at the checkpoint of the current road section from the default green light on duration and the at least one change duration.
[0080] After obtaining the total travel time corresponding to the default green light on time and all the change time, the traffic light management system can compare the total travel time corresponding to the default green light on time and all the change time, and select the time corresponding to the shortest total travel time as the final green light on time. Still taking the assumption in S230 as an example, the total travel time corresponding to the change time of 50 seconds is 120 seconds, the total travel time corresponding to the change time of 70 seconds is 100 seconds, and the total travel time corresponding to the default green light on time of 60 seconds is 95 seconds, then the final green light on time is the default green light on time of 60 seconds. The technical solution provided in the embodiment of the present application divides the road into sections and the target vehicle type, determines the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determines the average travel speed of vehicles of the target vehicle type in each section. If the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average speed of vehicles of the target vehicle type. For the default green light on time of the current road section, at least one change time is obtained by using a preset change method. The length of the traffic flow is calculated according to the default green light on time and the at least one change time, and the checkpoint traffic lights are controlled according to the default green light on time and the at least one change time, so as to obtain the total travel time of the current road section and the reference road section. According to the total travel time, the final green light on time of the checkpoint of the current road section is determined from the default green light on time and the at least one change time. This technical solution, by dividing the road section and the target vehicle type, can comprehensively consider the proportion of vehicles of the target vehicle type, the average travel speed of vehicles of the target vehicle type in each road section, and the change time, etc., to provide the optimal green light on time, adaptively adjust the traffic light on time, thereby avoiding congestion and ensuring smooth traffic.
[0081] Embodiment 3
[0082] Figure 4 This is a schematic diagram of the structure of a traffic light control device provided in the third embodiment of the present invention. The device can execute the traffic light control method provided in any embodiment of the present invention and has the corresponding functional modules and beneficial effects of the execution method. Figure 4 As shown, the device may include:
[0083] The target vehicle type determination module 310 is used to divide the road into sections, and determine the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determine the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles;
[0084] The default green light duration determination module 320 is used to determine the default green light duration of each checkpoint based on the average travel speed of vehicles of the target vehicle type if the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold; wherein the checkpoint is a traffic light intersection at the end of the road section.
[0085] In this solution, optionally, the device further includes:
[0086] A total travel time determination module, configured to obtain at least one transformed duration using a preset transformation method for the default green light on duration of the current road section, and to control the checkpoint traffic light according to the default green light on duration and the at least one transformed duration, so as to obtain the total travel time of the current road section and a reference road section; wherein the reference road section is connected to the current road section;
[0087] The final green light on time determination module is used to determine the final green light on time of the current road section checkpoint from the default green light on time and the at least one change time according to the total travel time.
[0088] In this solution, optionally, the total travel time determination module is specifically used to:
[0089] Calculating the length of the traffic flow according to the default green light on time and the at least one change time respectively;
[0090] Determine the travel time of the next road section according to the average speed of each vehicle within the traffic flow length and the length of the next road section, and obtain the travel time of all reference road sections in sequence;
[0091] The travel time of the current section and all reference sections is accumulated to obtain the total travel time of the current section and the reference sections.
[0092] In a feasible solution, optionally, if the target vehicle type is a regular vehicle, the average travel speed of the target vehicle type is the average travel speed of all regular vehicles in the current road section;
[0093] If the target vehicle type is a mobile vehicle, the average travel speed of vehicles of the target vehicle type is the average of the travel speeds of all mobile vehicles in the current road section within a preset historical time period.
[0094] In another feasible solution, optionally, the default green light on duration determination module 320 is further used to:
[0095] Determine whether the default green light on time meets the preset restriction condition;
[0096] If yes, change the default green light duration to the set green light duration.
[0097] In this embodiment, optionally, the default green light on duration determination module 320 is further used to:
[0098] Divide the control cycle into time periods according to preset durations;
[0099] For each time period, the default green light on time of each checkpoint in each time period is determined according to the average speed of vehicles of the target vehicle type in the time period.
[0100] In a preferred embodiment, optionally, the target vehicle type determination module 310 is further configured to:
[0101] Dividing the historical traffic data according to weather factors;
[0102] The average travel speed of vehicles of the target vehicle type in each road segment under each weather factor is determined.
[0103] In another preferred embodiment, optionally, the target vehicle type determination module 310 is further configured to:
[0104] If the number of times a vehicle passes during the statistical period reaches the preset number, the vehicle is determined to be a regular passing vehicle;
[0105] If the number of passes of the vehicle does not reach the preset number, the vehicle is determined to be a mobile vehicle.
[0106] The above-mentioned product can execute the traffic light control method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0107] Embodiment 4
[0108] Embodiment 4 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the traffic signal light control method provided in all the embodiments of the present invention is implemented:
[0109] Divide the road into sections, and determine the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determine the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles;
[0110] If the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average travel speed of vehicles of the target vehicle type; wherein the checkpoint is the traffic light intersection at the end of the road section.
[0111] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0112] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0113] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0114] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0115] Embodiment 5
[0116] Embodiment 5 of the present application provides an electronic device. Figure 5 Schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present application. Figure 5 As shown, this embodiment provides an electronic device 400, which includes: one or more processors 420; a storage device 410, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 420, the one or more processors 420 implement the traffic light control method provided in the embodiment of the present application. The method includes:
[0117] Divide the road into sections, and determine the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determine the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles;
[0118] If the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average travel speed of vehicles of the target vehicle type; wherein the checkpoint is the traffic light intersection at the end of the road section.
[0119] Of course, those skilled in the art can understand that the processor 420 also implements the technical solution of the traffic light control method provided in any embodiment of the present application.
[0120] Figure 5 The electronic device 400 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0121] like Figure 5As shown, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of the processor 420 in the electronic device can be one or more. Figure 5 A processor 420 is taken as an example; the processor 420, the storage device 410, the input device 430 and the output device 440 in the electronic device can be connected via a bus or other means. Figure 5 The connection via bus 450 is taken as an example.
[0122] The storage device 410 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and module units, such as program instructions corresponding to the traffic light control method in the embodiment of the present application.
[0123] The storage device 410 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 410 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 410 may further include a memory remotely arranged relative to the processor 420, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0124] The input device 430 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 440 may include electronic devices such as a display screen and a speaker.
[0125] The electronic device provided in the embodiment of the present application can provide the optimal green light duration by dividing road sections and target vehicle types, taking into account multiple factors such as the proportion of vehicles of the target vehicle type, the average travel speed of vehicles of the target vehicle type in each road section, and the change time, and adaptively adjust the traffic light duration, thereby avoiding congestion and ensuring smooth traffic.
[0126] The control device, medium and electronic device of the traffic light provided in the above embodiments can execute the control method of the traffic light provided in any embodiment of the present application, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiments, please refer to the control method of the traffic light provided in any embodiment of the present application.
[0127] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for controlling a traffic light, characterized in that: The method comprises: Divide the road into sections, and determine the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determine the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes a regular traffic vehicle or a mobile vehicle; If the proportion of vehicles of the target vehicle type in each road section reaches a preset threshold, the default green light on time of each checkpoint is determined according to the average passing speed of vehicles of the target vehicle type; wherein the checkpoint is a traffic light intersection at the end of the road section; Among them, the proportion of vehicles of the target vehicle type is determined according to the historical traffic data in each road section, including: If the number of times a vehicle passes during the statistical period reaches the preset number, the vehicle is determined to be a regular passing vehicle; If the number of passes of the vehicle does not reach the preset number, the vehicle is determined to be a mobile vehicle.
2. The method according to claim 1, characterized in that After determining the default green light on time of each checkpoint, the method further includes: For the default green light on time of the current road section, at least one changed time is obtained by using a preset transformation method, and the checkpoint traffic light is controlled according to the default green light on time and the at least one changed time, so as to obtain the total travel time of the current road section and the reference road section; wherein the reference road section is connected to the current road section; According to the total travel time, a final green light on time at the current road section checkpoint is determined from the default green light on time and the at least one change time.
3. The method according to claim 2, characterized in that According to the default green light on time and the at least one change time, the checkpoint traffic light is controlled to obtain the total travel time of the current road section and the reference road section, including: Calculating the length of the traffic flow according to the default green light on time and the at least one change time respectively; Determine the travel time of the next road section according to the average speed of each vehicle within the traffic flow length and the length of the next road section, and obtain the travel time of all reference road sections in sequence; The travel time of the current section and all reference sections is accumulated to obtain the total travel time of the current section and the reference sections.
4. The method according to claim 1, characterized in that If the target vehicle type is a regular vehicle, the average speed of the target vehicle type is the average speed of all regular vehicles in the current road section; If the target vehicle type is a mobile vehicle, the average travel speed of vehicles of the target vehicle type is the average of the travel speeds of all mobile vehicles in the current road section within a preset historical time period.
5. The method according to claim 4, characterized in that If the target vehicle type is a mobile vehicle, after determining the default green light on time of each checkpoint according to the average passing speed of vehicles of the target vehicle type, the method further includes: Determine whether the default green light on time meets the preset restriction condition; If yes, change the default green light duration to the set green light duration.
6. The method according to claim 1, characterized in that Before determining the default green light on time of each checkpoint according to the average passing speed of vehicles of the target vehicle type, the method further includes: Divide the control cycle into time periods according to the preset duration; Accordingly, the default green light duration of each checkpoint is determined according to the average speed of vehicles of the target vehicle type, including: For each time period, the default green light on time of each checkpoint in each time period is determined according to the average speed of vehicles of the target vehicle type in the time period.
7. The method according to claim 1, characterized in that Before determining the average travel speed of vehicles of the target vehicle type in each road section, the method further includes: Dividing the historical traffic data according to weather factors; The average travel speed of vehicles of the target vehicle type in each road segment under each weather factor is determined.
8. A control device for a traffic signal light, characterized in that: The device comprises: A target vehicle type determination module is used to divide the road into sections, and determine the proportion of vehicles of the target vehicle type according to the historical traffic data in each section, and determine the average traffic speed of vehicles of the target vehicle type in each section; wherein the target vehicle type includes regular traffic vehicles and mobile vehicles; A default green light duration determination module is used to determine the default green light duration of each checkpoint according to the average passing speed of vehicles of the target vehicle type if the vehicle ratio of the target vehicle type in each road section reaches a preset threshold; wherein the checkpoint is a traffic light intersection at the end of the road section; Wherein, the target vehicle type determination module is also used for: If the number of times a vehicle passes during the statistical period reaches the preset number, the vehicle is determined to be a regular passing vehicle; If the number of passes of the vehicle does not reach the preset number, the vehicle is determined to be a mobile vehicle.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for controlling a traffic signal light according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for controlling a traffic light according to any one of claims 1 to 7 is implemented.
