Traffic flow adjusting method and device, electronic equipment and storage medium
By acquiring traffic data in real time and using large language models to predict traffic flow and dynamically control traffic lights, it solves the problem that existing traffic management methods cannot fundamentally solve urban traffic congestion, and achieves effective adjustment and management of urban traffic flow.
Patent Information
- Application Number
- CN202410685125.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-06
AI Technical Summary
Existing traffic management methods rely on manual intervention and cannot fundamentally solve the problem of urban traffic congestion. Traditional methods can only alleviate congestion in specific areas and cannot dynamically adjust traffic flow.
By obtaining traffic data in the target area in real time, large language models are used to predict traffic flow, and dynamically control traffic lights to adjust the flow of traffic sections to avoid traffic congestion.
It achieves dynamic adjustment of urban traffic flow, effectively avoids traffic congestion, and improves the efficiency and effectiveness of traffic management.
Smart Images

Figure CN118609357A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for adjusting traffic flow. Background Art
[0002] In recent years, with the development of urban areas, the population has continued to increase, and the number of cars has also continued to increase, resulting in increasingly serious urban traffic congestion problems. When traffic congestion occurs on a road, the traditional traffic management method will contact nearby traffic management personnel for manual intervention and diversion. However, the above traffic management method mainly relies on manual monitoring and management, usually transferring the traffic flow of one area to other nearby areas, resulting in only alleviating traffic congestion in a specific area, and failing to fundamentally solve the problem of urban traffic congestion. Therefore, the target urgently needs a traffic flow adjustment method that can better solve the problem of traffic congestion. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device and storage medium for adjusting traffic flow, which can dynamically adjust the traffic flow of any traffic section in a target area, thereby timely avoiding traffic congestion in the traffic section in the target area, and effectively solving the traffic congestion problem in the city. The technical solution is as follows:
[0004] In one aspect, a method for adjusting traffic flow is provided, the method comprising:
[0005] Acquire traffic data of a target area in real time, the target area including at least two traffic sections, and the traffic data including vehicle information of the target area;
[0006] Based on the large language model, the traffic data is processed to obtain the predicted traffic flow of the target area, and the large language model is used to predict the future traffic flow of the area based on the traffic data of the area;
[0007] Based on the predicted traffic flow of the target area, the traffic lights in the target area are dynamically controlled so that the traffic flow of any traffic section in the target area is not greater than a flow threshold.
[0008] In another aspect, a traffic flow adjustment device is provided, the device comprising:
[0009] An acquisition module, used for acquiring traffic data of a target area in real time, wherein the target area includes at least two traffic sections, and the traffic data includes vehicle information of the target area;
[0010] A traffic prediction module, used to process the traffic data based on a large language model to obtain a predicted traffic flow of the target area, wherein the large language model is used to predict the future traffic flow of the area based on the traffic data of the area;
[0011] The control module is used to dynamically control the traffic lights in the target area based on the predicted traffic flow in the target area, so that the traffic flow in any traffic section in the target area is not greater than a flow threshold.
[0012] In some embodiments, the vehicle information includes the number of vehicles in the target area, the vehicle locations, and the vehicle license plate numbers;
[0013] The traffic prediction module includes:
[0014] A first determination unit is configured to process the number of vehicles and vehicle positions in the target area based on the large language model to obtain the current traffic flow of any traffic section in the target area; and query the historical driving routes of vehicles corresponding to the license plate numbers of vehicles in the target area based on the large language model;
[0015] The second determination unit is used to process the current traffic flow and the historical driving routes of vehicles in the target area based on the large language model to obtain the predicted traffic flow of any traffic section in the target area.
[0016] In some embodiments, the control module is used to determine, for any traffic light in the target area, a first green light duration of the traffic light based on the predicted traffic flow of the traffic section where the traffic light is located, the first green light duration being used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass through the traffic light; when the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, send a first control signal to the traffic light, the first control signal being used to control the traffic light to cancel the planned red light and continue to display the green light until the display duration of the green light is equal to the first green light duration; when the traffic light currently displays a red light and the predicted traffic flow is greater than the flow threshold, send a second control signal to the traffic light, the second control signal being used to control the traffic light to cancel the currently displayed red light and display the green light according to the first green light duration.
[0017] In some embodiments, the control module is used to determine, for any traffic light in the target area, a first green light duration of the traffic light based on the predicted traffic flow, when the predicted traffic flow of the traffic section where the traffic light is located is greater than the flow threshold, the first green light duration being used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass through the traffic light; when the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, send a first control signal to the traffic light, the first control signal being used to control the traffic light to cancel the planned red light and continue to display the green light until the display duration of the green light is equal to the first green light duration; when the traffic light currently displays a red light, send a second control signal to the traffic light, the second control signal being used to control the traffic light to cancel the currently displayed red light and display the green light according to the first green light duration.
[0018] In some embodiments, the vehicle information includes navigation information of a vehicle in the target area, the navigation information is used to indicate a driving route of the vehicle, and the device further includes:
[0019] A first determination module is used to determine a congested section of the target area based on the predicted traffic flow of the target area, wherein the congested section is a traffic section in the target area where the predicted traffic flow is greater than a flow threshold; for any vehicle in the target area, based on the navigation information of the vehicle and the congested section, determine whether the driving route indicated by the navigation information includes the congested section;
[0020] The first sending module is used to send a first prompt message to the terminal associated with the vehicle when the driving route includes the congested section, wherein the first prompt message is used to prompt the driver of the vehicle that congestion may occur on the congested section and to suggest changing the driving route of the vehicle.
[0021] In some embodiments, the apparatus further comprises:
[0022] A second determination module is used to determine the vehicle type of any vehicle in the target area based on the vehicle information of the vehicle; if the vehicle type is a municipal vehicle, obtain a default driving route of the vehicle;
[0023] an adjustment module, configured to adjust the default driving route of the vehicle based on the predicted traffic flow of the target area when the default driving route includes the congested road section, so that the adjusted default driving route enables the vehicle to pass through the congested road section when the traffic flow of the congested road section is not greater than a flow threshold;
[0024] The second sending module is used to send the adjusted default driving route to the terminal associated with the vehicle to instruct the driver of the vehicle to drive the vehicle according to the default driving route.
[0025] In some embodiments, the apparatus further comprises:
[0026] The third sending module is used to, when a traffic accident occurs in the target area, process the traffic accident based on the large language model to obtain the accident location of the traffic accident; based on the accident location, send an alarm message to a traffic management object located near the accident location, wherein the alarm message is used to prompt the traffic management object that a traffic accident has occurred at the accident location in the target area.
[0027] In some embodiments, the third sending module is also used to process the predicted traffic flow of the target area based on the large language model, and determine the probability of an accident occurring in any traffic section in the target area; when the probability of an accident occurring in the traffic section is greater than a probability threshold, based on the location of the traffic section, a second prompt information is sent to a traffic management object located near the traffic section, and the second prompt information is used to prompt the traffic management object that a traffic accident may occur in the traffic section.
[0028] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the traffic flow adjustment method in an embodiment of the present application.
[0029] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement a traffic flow adjustment method as in an embodiment of the present application.
[0030] On the other hand, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to implement the traffic flow adjustment method in the embodiment of the present application.
[0031] The embodiment of the present application provides a method for adjusting traffic flow, which can obtain the predicted traffic flow of the target area by inputting the traffic data of the target area acquired in real time into the large language model used to predict the future traffic flow of the area. By dynamically controlling the traffic lights in the target area based on the predicted traffic flow, the traffic flow of any traffic section in the target area can be dynamically adjusted, so that traffic congestion in the traffic section in the target area can be avoided in time, effectively solving the traffic congestion problem in the city. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0033] Figure 1 It is a schematic diagram of an implementation environment of a traffic flow adjustment method provided in an embodiment of the present application;
[0034] Figure 2 is a flow chart of a method for adjusting traffic flow provided according to an embodiment of the present application;
[0035] Figure 3 is a flow chart of another method for adjusting traffic flow provided according to an embodiment of the present application;
[0036] Figure 4 is a block diagram of a traffic flow adjustment device provided according to an embodiment of the present application;
[0037] Figure 5 is a block diagram of another traffic flow adjustment device provided according to an embodiment of the present application;
[0038] Figure 6 is a structural block diagram of a terminal provided according to an embodiment of the present application;
[0039] Figure 7 It is a structural diagram of a server provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0041] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0042] In the present application, the term "at least one" means one or more, and the term "plurality" means two or more.
[0043] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the traffic data and navigation information involved in this application are obtained with full authorization.
[0044] Figure 1 Schematic diagram of an implementation environment of a traffic flow adjustment method provided in an embodiment of the present application. Figure 1 The implementation environment includes a data acquisition device 101, a data processing device 102, and a traffic light 103. The data processing device 102 can be directly or indirectly connected to the data acquisition device 101 and the traffic light 103 through wired or wireless communication, and this application does not limit this.
[0045] In some embodiments, the data collection device 101 is used to collect traffic data of the target area in real time, and may be a monitoring camera, a radar, a traffic counter, etc., but is not limited thereto. The data collection device 101 can send the collected traffic data to the data processing device 102 .
[0046] In some embodiments, the data processing device 102 may be an electronic device running a large language model for predicting future traffic flow in a region. Taking the electronic device as a server as an example, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Taking the electronic device as a terminal as an example, the terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto.
[0047] In an embodiment of the present application, the data processing device 102 can receive the traffic data of the target area uploaded by the data acquisition device 101, and then process the traffic data based on the large language model to obtain the predicted traffic flow of the target area, so as to dynamically control the traffic lights 103 in the target area based on the predicted traffic flow.
[0048] Figure 2 is a flow chart of a traffic flow adjustment method provided in accordance with an embodiment of the present application, the method being executed by a data processing device, see Figure 2, the method comprises the following steps:
[0049] 201. Obtain traffic data of a target area in real time, where the target area includes at least two traffic sections, and the traffic data includes vehicle information of the target area.
[0050] In an embodiment of the present application, the target area includes at least two traffic sections, and data acquisition equipment is installed. The data processing device can obtain the traffic data of the target area collected by the data acquisition equipment in real time through the connection with the data acquisition equipment. Among them, the data acquisition equipment includes monitoring cameras, radars, and traffic counters distributed in any traffic section of the target area. Correspondingly, the traffic data includes vehicle information of the target area collected by monitoring cameras, radars, and traffic counters, such as the number of vehicles, vehicle locations, and vehicle license plate numbers, etc., which is not limited by the embodiment of the present application.
[0051] 202. Based on the large language model, the traffic data is processed to obtain the predicted traffic flow of the target area. The large language model is used to predict the future traffic flow of the area based on the traffic data of the area.
[0052] In an embodiment of the present application, the data processing device is an electronic device running a large language model. The large language model is used to predict the future traffic flow of the region based on regional traffic data. Accordingly, after acquiring the traffic data of the target area, the data processing device can process the traffic data of the target area based on the large language model to obtain the predicted traffic flow of the target area, and the predicted traffic flow is the future traffic flow of the target area. Among them, the predicted traffic flow of the target area includes the predicted traffic flow of any traffic section in the target area. The predicted traffic flow is used to reflect the future traffic flow of the traffic section.
[0053] 203. Based on the predicted traffic flow in the target area, dynamically control the traffic lights in the target area so that the traffic flow of any traffic section in the target area is not greater than the flow threshold.
[0054] In the embodiment of the present application, the traffic lights in the target area are used to direct the traffic in the target area. Therefore, the data processing device dynamically controls the traffic lights in the target area based on the predicted traffic flow in the target area, and can dynamically adjust the traffic flow in the target area so that the traffic flow in any traffic section in the target area is not greater than the flow threshold.
[0055] The embodiment of the present application provides a method for adjusting traffic flow, which can obtain the predicted traffic flow of the target area by inputting the traffic data of the target area acquired in real time into the large language model used to predict the future traffic flow of the area. By dynamically controlling the traffic lights in the target area based on the predicted traffic flow, the traffic flow of any traffic section in the target area can be dynamically adjusted, so that traffic congestion in the traffic section in the target area can be avoided in time, effectively solving the traffic congestion problem in the city.
[0056] Figure 3 is a flow chart of another traffic flow adjustment method provided in an embodiment of the present application, the method is executed by a data processing device, see Figure 3 , the method comprises the following steps:
[0057] 301. Obtain traffic data of a target area in real time, where the target area includes at least two traffic sections, and the traffic data includes vehicle information of the target area.
[0058] In an embodiment of the present application, the target area includes at least two traffic sections, and a data acquisition device is installed on each traffic section. The data acquisition device can send the traffic data collected in real time to the data processing device, that is, the data processing device can obtain the traffic data of the target area in real time. Among them, the data acquisition device includes a monitoring camera, a radar, and a traffic counter. Correspondingly, the traffic data includes vehicle information of the target area collected by the monitoring camera, the radar, and the traffic counter, such as the number of vehicles, the location of the vehicle, and the license plate number of the vehicle. Optionally, the traffic data can also include information on pedestrians, non-motor vehicles, etc. in the target area, which is not limited by the embodiment of the present application.
[0059] 302. Based on the large language model, the traffic data is processed to obtain the predicted traffic flow of the target area. The large language model is used to predict the future traffic flow of the area based on the traffic data of the area.
[0060] In an embodiment of the present application, the large language model is trained based on the historical traffic data of the city, has large-scale data processing capabilities, and can predict the future traffic flow of any area in the city based on the traffic data of the area. The target area is an area in the city that includes at least two traffic sections. After acquiring the traffic data of the target area, the data processing device running the large language model can input the traffic data of the target area into the large language model, and the large language model predicts the future traffic flow of the target area based on the traffic data of the target area to obtain the predicted traffic flow of the target area. Among them, the predicted traffic flow of the target area includes the predicted traffic flow of any traffic section in the target area. The predicted traffic flow is used to reflect the future traffic flow of the traffic section.
[0061] In some embodiments, the vehicle information in the traffic data of the target area includes the number of vehicles, the position of the vehicles, and the license plate number of the vehicles in the target area. Accordingly, the process of the data processing device processing the traffic data based on the large language model includes: the data processing device processes the number of vehicles and the position of the vehicles in the target area based on the large language model to obtain the current traffic flow of any traffic section in the target area; based on the large language model, query the historical driving route of the vehicle corresponding to the license plate number of the vehicle in the target area; based on the large language model, process the current traffic flow and the historical driving route of the vehicle in the target area to obtain the predicted traffic flow of any traffic section in the target area. Among them, the number of vehicles is the total number of vehicles traveling on the traffic section of the target area, excluding the number of vehicles in other areas except the traffic section. The vehicle position is the position of the vehicle traveling on the traffic section of the target area. The license plate number is also the license plate number of the vehicle traveling on the traffic section of the target area. After the data processing device inputs the above vehicle information into the large language model, the large language model can determine the number of vehicles traveling on any traffic section in the target area based on the number of vehicles and the position of the vehicles in the target area, and then determine the current traffic flow of any traffic section. Since the vehicles traveling in the target area can basically be regarded as vehicles driven by the permanent population of the city, the vehicles are also permanent vehicles in the city. Therefore, the large language model can query the historical driving route of the vehicle corresponding to the license plate number from the city's traffic management database based on the vehicle's license plate number. Since most of the vehicles traveling in the target area are commuter vehicles, the vehicle's driving route is basically fixed. Therefore, the large language model can regard the vehicle's historical driving route as the vehicle's driving route in the current time period, that is, it can adjust the current traffic flow of the traffic section based on the historical driving route of the vehicle traveling in any traffic section in the target area to obtain the future traffic flow of the traffic section. By processing the vehicle information in the target area, the predicted traffic flow of any traffic section in the target area can be determined based on the historical driving route of the vehicles in the target area and the current traffic flow of the target area, so that the future traffic flow of the traffic section can be predicted more accurately, further improving the flow control effect of controlling traffic lights based on predicted traffic flow.
[0062] For example, the target area includes traffic section A and traffic section B intersecting with traffic section A. The current traffic flow of traffic section A is 100 vehicles, and the current traffic flow of traffic section B is 50 vehicles. The large language model can determine the driving routes of vehicles based on the historical driving routes of vehicles in traffic section A and traffic section B. For vehicles in traffic section A, the driving routes of 10 vehicles will enter traffic section B, and the driving routes of 10 vehicles will enter other traffic sections. For vehicles in traffic section B, 15 vehicles will enter traffic section A. Then the future traffic flow of traffic section A can be determined to be 95 vehicles, and the future traffic flow of traffic section B can be determined to be 45 vehicles.
[0063] Optionally, the large language model can determine the vehicle's driving route in the current time period based on the vehicle's historical driving route and the current time period, that is, the historical driving route that belongs to the same time period as the current time period and is the same as the vehicle's current position can be determined as the driving route of the current time period. For example, if the current time period is Monday, and the vehicle's position is intersection B of traffic section A, the historical driving route that passed through roadside B last Monday can be determined as the driving route of this Monday.
[0064] Optionally, since the vehicle traveling in the target area is in a driving state but has not yet reached the destination, the data processing module can obtain a portion of the vehicle's driving route in the current time period in real time. The large language model can determine the degree of similarity between the portion of the driving route and multiple historical driving routes of the vehicle, and determine the historical driving route with a degree of similarity greater than a similarity threshold as the vehicle's driving route in the current time period.
[0065] Optionally, the large language model can be ChatGPT (Chat Generative Pre-trained Transformer), BERT (Bidirectional Encoder Representations from Transformers), PaLM (Pathways Language Model) or LLaMA (Large Language Model Meta Artificial Intelligence), which is not limited in the embodiments of the present application.
[0066] It should be noted that after determining the predicted traffic flow of the target area, the data processing device may restrict the conditions for executing the step of dynamically controlling the traffic lights, or may not restrict the conditions for executing the step of dynamically controlling the traffic lights. Accordingly, in the case where the conditions for executing the step of dynamically controlling the traffic lights are not restricted, the data processing device can dynamically control the traffic lights through the following steps 303-305. In the case where the conditions for executing the step of dynamically controlling the traffic lights are restricted, the data processing device can dynamically control the traffic lights through the following steps 306-308.
[0067] 303. For any traffic light in the target area, determine the first green light duration of the traffic light based on the predicted traffic flow of the traffic section where the traffic light is located, and the first green light duration is used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass the traffic light.
[0068] In an embodiment of the present application, for any traffic light in the target area, the data processing device can determine the predicted traffic flow of the traffic section where the traffic light is located from the predicted traffic flow of the target area based on the traffic section where the traffic light is located. The traffic section where the traffic light is located is the traffic section controlled by the traffic light, that is, the traffic light is used to inform vehicles in the traffic section when they can pass and when they need to stop, so as to direct the traffic in the traffic section. Therefore, the data processing device can determine the number of vehicles to be passed through the traffic section in the future based on the predicted traffic flow of the traffic section where the traffic light is located, and then can determine the passage time of the number of vehicles based on the number of vehicles. The passage time is used to indicate the time required for all the vehicles of the number of vehicles to pass through the traffic light, that is, the data processing device can determine the passage time as the first green light time of the traffic light.
[0069] 304. When the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, send a first control signal to the traffic light, and the first control signal is used to control the traffic light to cancel the planned display of the red light and continue to display the green light until the display duration of the green light is equal to the first green light duration.
[0070] In the embodiment of the present application, when the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, it indicates that the green light display duration currently set for the traffic light is short, resulting in a small number of vehicles that can pass through the traffic light at one time during the green light display period, which in turn causes an increase in the number of vehicles waiting to pass through the traffic section, thereby causing congestion in the traffic section. In order to avoid congestion in the traffic section, it is necessary to improve the traffic efficiency of vehicles, so the data processing device can send a first control signal to the traffic light to control the traffic light to cancel the red light planned to be displayed after the green light, and continue to display the green light until the display duration of the green light is equal to the first green light duration.
[0071] 305. When the traffic light currently displays a red light and the predicted traffic flow is greater than a flow threshold, send a second control signal to the traffic light, where the second control signal is used to control the traffic light to cancel the currently displayed red light and display a green light according to the first green light duration.
[0072] In an embodiment of the present application, when the traffic light currently displays a red light and the predicted traffic flow of the traffic section where the traffic light is located is greater than the flow threshold, it indicates that the future traffic flow of the traffic section where the traffic light is located is high, and traffic congestion will occur to a large extent. Since the red light is currently displayed, vehicles in the traffic section cannot pass immediately. Therefore, the data processing device can send a second control signal to the traffic light to control the traffic light to cancel the currently displayed red light and display the green light according to the first green light duration. By determining the green light display duration of the traffic light based on the predicted traffic flow of the traffic section where the traffic light is located, it can be ensured that all vehicles in the traffic section where the traffic light is located in the future can pass through the traffic light, thereby improving the traffic efficiency of the vehicle. By setting a corresponding signal display process for the traffic light based on the type of signal light currently displayed by the traffic light, dynamic control of the traffic light can be achieved, effectively reducing the occurrence of traffic congestion.
[0073] 306. For any traffic light in the target area, when the predicted traffic flow of the traffic section where the traffic light is located is greater than the flow threshold, the first green light duration of the traffic light is determined based on the predicted traffic flow. The first green light duration is used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass the traffic light.
[0074] In an embodiment of the present application, for any traffic light in the target area, the data processing device can determine the predicted traffic flow of the traffic section where the traffic light is located from the predicted traffic flow of the target area based on the traffic section where the traffic light is located. When the predicted traffic flow is greater than the flow threshold, it indicates that the future traffic flow of the traffic section where the traffic light is located is high, and traffic congestion will occur to a large extent. Therefore, the data processing device needs to control the signal display process of the traffic light to avoid traffic congestion. Accordingly, the data processing device can determine the number of vehicles to be passed through the traffic section in the future based on the predicted traffic flow of the traffic section where the traffic light is located, and then can determine the passage time of the number of vehicles based on the number of vehicles. The passage time is used to indicate the time required for all the vehicles of the number of vehicles to pass through the traffic light, that is, the data processing device can determine the passage time as the first green light time of the traffic light.
[0075] 307. When the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, send a first control signal to the traffic light, and the first control signal is used to control the traffic light to cancel the planned display of the red light and continue to display the green light until the display duration of the green light is equal to the first green light duration.
[0076] In the embodiment of the present application, when the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, it indicates that the green light display duration currently set for the traffic light is short, resulting in a small number of vehicles that can pass through the traffic light at one time during the green light display period, which in turn causes an increase in the number of vehicles waiting to pass through the traffic section, thereby causing congestion in the traffic section. In order to avoid congestion in the traffic section, it is necessary to improve the traffic efficiency of vehicles, so the data processing device can send a first control signal to the traffic light to control the traffic light to cancel the red light planned to be displayed after the green light, and continue to display the green light until the display duration of the green light is equal to the first green light duration.
[0077] 308. When the traffic light currently displays a red light, send a second control signal to the traffic light, where the second control signal is used to control the traffic light to cancel the currently displayed red light and display a green light according to the first green light duration.
[0078] In an embodiment of the present application, when a traffic light currently displays a red light, vehicles in the traffic section cannot pass immediately. Therefore, in order to enable vehicles in the traffic section to pass immediately and thus avoid traffic congestion in the traffic section, the data processing device can send a second control signal to the traffic light to control the traffic light to cancel the currently displayed red light and display the green light according to the first green light duration. By determining the green light display duration of the traffic light based on the predicted traffic flow of the traffic section where the traffic light is located, it can be ensured that all vehicles in the traffic section where the traffic light is located in the future can pass the traffic light, thereby improving the traffic efficiency of the vehicle. By setting a corresponding signal display process for the traffic light based on the type of signal currently displayed by the traffic light, dynamic control of the traffic light can be achieved, effectively reducing the occurrence of traffic congestion.
[0079] It should be noted that when controlling the signal display process of a traffic light, this application only takes increasing the green light display time of a certain traffic light as an example for explanation. Optionally, when increasing the green light display time of a certain traffic light, the data processing device also needs to increase the red light display time of another traffic light corresponding to the traffic light.
[0080] Optionally, the embodiment of the present application can also adjust the signal switching frequency of the traffic light based on the predicted traffic flow of the traffic section where the traffic light is located, that is, adjust the switching frequency of the red and green lights. For example, when the predicted traffic flow is greater than the flow threshold, the data processing device can control the traffic light to increase the signal switching frequency to reduce the waiting time of vehicles in the traffic section, thereby improving the traffic efficiency of vehicles.
[0081] In some embodiments, the data processing device can also request to obtain the navigation information of the vehicle in the target area, so as to prompt the user to change the navigation route in time when the driving route indicated by the navigation information includes a congested section. Accordingly, the data processing device determines the congested section of the target area based on the predicted traffic flow of the target area, and the congested section is the traffic section in the target area where the predicted traffic flow is greater than the flow threshold; for any vehicle in the target area, the data processing device determines whether the driving route indicated by the navigation information includes the congested section based on the navigation information and the congested section of the vehicle; when the driving route includes the congested section, the data processing device sends a first prompt information to the terminal associated with the vehicle, and the first prompt information is used to prompt the driving object of the vehicle that the congested section may be congested, and it is recommended to change the driving route of the vehicle. Among them, the predicted traffic flow of the target area includes the predicted traffic flow of any traffic section in the target area. Therefore, the data processing device can determine that the traffic section with a predicted traffic flow greater than the flow threshold is a congested section from the multiple traffic sections included in the target area, that is, the future traffic flow of the traffic section is high, and traffic congestion will occur to a large extent. In the case where the driving route indicated by the navigation information of any vehicle in the target area includes a congested section, it indicates that if the driver of the vehicle continues to drive along the driving route indicated by the navigation information, it is likely to encounter traffic congestion, affecting the traffic efficiency. Therefore, the data processing device can promptly send the first prompt information to the driver of the vehicle to prompt the driver that the traffic section may be congested and suggest changing the driving route of the vehicle. By promptly prompting the driver of the vehicle to change the navigation driving route when the driving route indicated by the navigation information of the vehicle includes a congested section, it can help the driver avoid traffic congestion and improve the traffic efficiency of the driver driving the vehicle.
[0082] In some embodiments, the data processing device can also timely adjust the driving route of the municipal vehicle in the target area when the default driving route of the municipal vehicle includes a congested section. Accordingly, for any vehicle in the target area, the data processing device determines the vehicle type of the vehicle based on the vehicle information of the vehicle; when the vehicle type is a municipal vehicle, the default driving route of the vehicle is obtained; when the default driving route includes a congested section, the default driving route of the vehicle is adjusted based on the predicted traffic flow of the target area, so that the adjusted default driving route can enable the vehicle to pass through the congested section when the traffic flow of the congested section is not greater than the flow threshold; the adjusted default driving route is sent to the terminal associated with the vehicle to instruct the driving object of the vehicle to drive the vehicle according to the default driving route. Among them, the municipal vehicle is a vehicle used for a fixed driving route in the target area, such as a sanitation vehicle (such as a sprinkler truck, a sweeper, a garbage truck, etc.), a patrol vehicle, and a bus. Since the congested road section is a traffic section where the predicted traffic flow is greater than the flow threshold, when the default driving route of the municipal vehicle includes the congested road section, it indicates that if the driver of the municipal vehicle continues to drive according to the default driving route, it is likely to encounter traffic congestion, affecting the operating efficiency. Since the congested road section is an operating section where the municipal vehicle must travel, in order to avoid the municipal vehicle passing through the congested road section when the predicted traffic flow corresponding to the congested road section is greater than the flow threshold, the data processing device can adjust the default driving route of the municipal vehicle based on the predicted traffic flow of the target area, so that the adjusted default driving route can enable the vehicle to pass through the congested road section when the traffic flow of the congested road section is not greater than the flow threshold. When the default driving route of the municipal vehicle in the target area includes the congested road section, the default driving route of the municipal vehicle is adjusted in time based on the predicted traffic information of the target area, which can help the municipal vehicle avoid traffic congestion and improve the operating efficiency of the municipal vehicle.
[0083] In some embodiments, when a traffic accident occurs in a target area, the data processing device can process the traffic accident based on the large language model to obtain the accident location of the traffic accident; and then can send an alarm message to a traffic management object located near the accident location based on the accident location, and the alarm message is used to remind the traffic management object that a traffic accident has occurred at the accident location in the target area. By sending an alarm message to a traffic management object near the location based on the location of the accident determined by the large language model when a traffic accident occurs, it is possible to contact the nearby traffic management object in a timely manner to handle the traffic accident when the user who has the traffic accident cannot contact the traffic management object, thereby improving the efficiency of handling traffic accidents.
[0084] In some embodiments, the data processing device can also process the predicted traffic flow of the target area based on the large language model to determine the probability of an accident occurring in any traffic section in the target area; when the probability of an accident occurring in the traffic section is greater than the probability threshold, based on the location of the traffic section, a second prompt information is sent to a traffic management object located near the traffic section, and the second prompt information is used to prompt the traffic management object that a traffic accident may occur in the traffic section. Among them, the probability of an accident occurring in the traffic section is used to indicate the probability of a traffic accident occurring in the traffic section. The probability of an accident occurring in the traffic section is positively correlated with the predicted traffic flow of the traffic section. When the probability of an accident occurring in the traffic section is greater than the probability threshold, it indicates that the probability of a traffic accident occurring in the traffic section is high. In order to reduce the probability of a traffic accident occurring, the data processing device can send a second prompt information to a traffic management object located near the traffic section based on the location of the traffic section to prompt the traffic management object that a traffic accident may occur in the traffic section. When the probability of an accident occurring in the traffic section is greater than the probability threshold, the nearby traffic management object is promptly prompted, so that the traffic management object can extract corresponding measures to intervene in traffic accidents that may occur in passing traffic, reduce the probability of traffic accidents, and improve the traffic safety of the traffic section.
[0085] Optionally, the flow threshold in the above embodiment can be set according to the traffic capacity of the traffic section. The traffic capacity is used to reflect the maximum number of vehicles passing through the traffic section per hour. The stronger the traffic capacity of the traffic section, the higher the flow threshold.
[0086] The embodiment of the present application provides a method for adjusting traffic flow, which can obtain the predicted traffic flow of the target area by inputting the traffic data of the target area acquired in real time into the large language model used to predict the future traffic flow of the area. By dynamically controlling the traffic lights in the target area based on the predicted traffic flow, the traffic flow of any traffic section in the target area can be dynamically adjusted, so that traffic congestion in the traffic section in the target area can be avoided in time, effectively solving the traffic congestion problem in the city.
[0087] Figure 4 is a block diagram of a traffic flow adjustment device provided according to an embodiment of the present application. The device is used to execute the steps of the above-mentioned traffic flow adjustment method, see Figure 4 The traffic flow adjustment device includes: an acquisition module 401, a traffic flow prediction module 402 and a control module 403.
[0088] An acquisition module 401 is used to acquire traffic data of a target area in real time, where the target area includes at least two traffic sections, and the traffic data includes vehicle information of the target area;
[0089] A traffic prediction module 402 is used to process traffic data based on a large language model to obtain a predicted traffic flow of a target area. The large language model is used to predict the future traffic flow of a region based on the traffic data of the region.
[0090] The control module 403 is used to dynamically control the traffic lights in the target area based on the predicted traffic flow in the target area, so that the traffic flow of any traffic section in the target area is not greater than the flow threshold.
[0091] In some embodiments, the vehicle information includes the number of vehicles in the target area, the location of the vehicles, and the license plate numbers of the vehicles;
[0092] Figure 5 is a block diagram of another traffic flow adjustment device provided according to an embodiment of the present application. Figure 5 , the traffic prediction module 402 includes:
[0093] The first determination unit 501 is used to process the number of vehicles and vehicle positions in the target area based on the large language model to obtain the current traffic flow of any traffic section in the target area; and to process the license plate numbers of the vehicles in the target area based on the large language model to obtain the historical driving routes of the vehicles in the target area;
[0094] The second determining unit 502 is used to determine the predicted traffic flow of any traffic section in the target area based on the current traffic flow and the historical driving routes of the vehicles in the target area.
[0095] In some embodiments, the control module 403 is used to determine, for any traffic light in the target area, the first green light duration of the traffic light based on the predicted traffic flow of the traffic section where the traffic light is located, the first green light duration being used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass the traffic light; when the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, send a first control signal to the traffic light, the first control signal being used to control the traffic light to cancel the planned red light and continue to display the green light until the display duration of the green light is equal to the first green light duration; when the traffic light currently displays a red light and the predicted traffic flow is greater than a flow threshold, send a second control signal to the traffic light, the second control signal being used to control the traffic light to cancel the currently displayed red light and display the green light according to the first green light duration.
[0096] In some embodiments, the control module 403 is used to determine, for any traffic light in the target area, a first green light duration of the traffic light based on the predicted traffic flow, when the predicted traffic flow of the traffic section where the traffic light is located is greater than a flow threshold, the first green light duration is used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass the traffic light; when the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, send a first control signal to the traffic light, the first control signal is used to control the traffic light to cancel the planned red light and continue to display the green light until the display duration of the green light is equal to the first green light duration; when the traffic light currently displays a red light, send a second control signal to the traffic light, the second control signal is used to control the traffic light to cancel the currently displayed red light and display the green light according to the first green light duration.
[0097] In some embodiments, the vehicle information includes navigation information of the vehicle in the target area, and the navigation information is used to indicate the driving route of the vehicle. Figure 5 , the device further comprises:
[0098] The first determination module 404 is used to determine the congested road section of the target area based on the predicted traffic flow of the target area, where the congested road section is a traffic section in the target area where the predicted traffic flow is greater than a flow threshold; for any vehicle in the target area, based on the navigation information of the vehicle and the congested road section, determine whether the driving route indicated by the navigation information includes the congested road section;
[0099] The first sending module 405 is used to send a first prompt message to a terminal associated with the vehicle when the driving route includes a congested section. The first prompt message is used to prompt the driver of the vehicle that congestion may occur on the congested section and to suggest changing the driving route of the vehicle.
[0100] In some embodiments, see Figure 5 , the device further comprises:
[0101] The second determination module 406 is used to determine the vehicle type of any vehicle in the target area based on the vehicle information of the vehicle; if the vehicle type is a municipal vehicle, obtain a default driving route of the vehicle;
[0102] An adjustment module 407 is used to adjust the default driving route of the vehicle based on the predicted traffic flow of the target area when the default driving route includes a congested road section, so that the adjusted default driving route can enable the vehicle to pass through the congested road section when the traffic flow of the congested road section is not greater than a flow threshold;
[0103] The second sending module 408 is used to send the adjusted default driving route to the terminal associated with the vehicle to instruct the driver of the vehicle to drive the vehicle according to the default driving route.
[0104] In some embodiments, see Figure 5 , the device further comprises:
[0105] The third sending module 409 is used to process the traffic accident based on the large language model to obtain the accident location of the traffic accident when a traffic accident occurs in the target area; based on the accident location, send an alarm message to the traffic management object located near the accident location, and the alarm message is used to prompt the traffic management object that a traffic accident has occurred at the accident location in the target area.
[0106] In some embodiments, the third sending module 409 is also used to process the predicted traffic flow of the target area based on the large language model, and determine the probability of an accident occurring in any traffic section in the target area; when the probability of an accident occurring in the traffic section is greater than a probability threshold, based on the location of the traffic section, a second prompt information is sent to a traffic management object located near the traffic section, and the second prompt information is used to prompt the traffic management object that a traffic accident may occur in the traffic section.
[0107] The embodiment of the present application provides a traffic flow adjustment device, which can obtain the predicted traffic flow of the target area by inputting the traffic data of the target area acquired in real time into the large language model used to predict the future traffic flow of the area. By dynamically controlling the traffic lights in the target area based on the predicted traffic flow, the traffic flow of any traffic section in the target area can be dynamically adjusted, so that traffic congestion in the traffic section in the target area can be avoided in time, effectively solving the traffic congestion problem in the city.
[0108] It should be noted that: the traffic flow adjustment device provided in the above embodiment only uses the division of the above functional modules as an example when running an application program. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the traffic flow adjustment device provided in the above embodiment and the traffic flow adjustment method embodiment belong to the same concept, and the specific implementation process is shown in the method embodiment, which will not be repeated here.
[0109] Figure 6600 is a block diagram of a terminal according to an embodiment of the present application. The terminal 600 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 600 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0110] Typically, the terminal 600 includes a processor 601 and a memory 602 .
[0111] The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0112] The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one computer program, which is used to be executed by the processor 601 to implement the traffic flow adjustment method provided in the method embodiment of the present application.
[0113] In some embodiments, the terminal 600 may further optionally include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 603 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display screen 605, a camera assembly 606, an audio circuit 607 and a power supply 608.
[0114] The peripheral device interface 603 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, the memory 602, and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral device interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0115] The radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 604 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. In some embodiments, the radio frequency circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 604 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0116] The display screen 605 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to collect touch signals on the surface or above the surface of the display screen 605. The touch signal can be input to the processor 601 as a control signal for processing. At this time, the display screen 605 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 605 can be one, set on the front panel of the terminal 600; in other embodiments, the display screen 605 can be at least two, respectively set on different surfaces of the terminal 600 or in a folding design; in other embodiments, the display screen 605 can be a flexible display screen, set on the curved surface or folding surface of the terminal 600. Even, the display screen 605 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 605 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0117] The camera assembly 606 is used to capture images or videos. In some embodiments, the camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 606 may also include a flash. The flash may be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0118] The audio circuit 607 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 601 for processing, or input them into the radio frequency circuit 604 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 600. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 607 may also include a headphone jack.
[0119] The power supply 608 is used to power various components in the terminal 600. The power supply 608 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 608 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0120] In some embodiments, the terminal 600 further includes one or more sensors 609 , including but not limited to: an acceleration sensor 610 , a gyroscope sensor 611 , a pressure sensor 612 , an optical sensor 613 , and a proximity sensor 614 .
[0121] The acceleration sensor 610 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 600. For example, the acceleration sensor 610 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 601 can control the display screen 605 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 610. The acceleration sensor 610 can also be used to collect game or user motion data.
[0122] The gyro sensor 611 can detect the body direction and rotation angle of the terminal 600, and the gyro sensor 611 can cooperate with the acceleration sensor 610 to collect the user's 3D actions on the terminal 600. The processor 601 can implement the following functions based on the data collected by the gyro sensor 611: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0123] The pressure sensor 612 can be set on the side frame of the terminal 600 and / or the lower layer of the display screen 605. When the pressure sensor 612 is set on the side frame of the terminal 600, it can detect the user's holding signal of the terminal 600, and the processor 601 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 612. When the pressure sensor 612 is set on the lower layer of the display screen 605, the processor 601 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0124] The optical sensor 613 is used to collect the ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the display screen 605 according to the ambient light intensity collected by the optical sensor 613. Optionally, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is decreased. In another embodiment, the processor 601 can also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 613.
[0125] The proximity sensor 614, also called a distance sensor, is disposed on the front panel of the terminal 600. The proximity sensor 614 is used to collect the distance between the user and the front of the terminal 600. In one embodiment, when the proximity sensor 614 detects that the distance between the user and the front of the terminal 600 is gradually decreasing, the processor 601 controls the display screen 605 to switch from the screen-on state to the screen-off state; when the proximity sensor 614 detects that the distance between the user and the front of the terminal 600 is gradually increasing, the processor 601 controls the display screen 605 to switch from the screen-off state to the screen-on state.
[0126] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the terminal 600, and the terminal 600 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0127] Figure 7This is a schematic diagram of the structure of a server provided according to an embodiment of the present application. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, wherein the memory 702 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 701 to implement the traffic flow adjustment method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be repeated here.
[0128] The embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by the processor of the vehicle to implement the operation performed by the terminal in the traffic flow adjustment method of the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0129] The embodiment of the present application also provides a computer program product, including a computer program, which is executed by a processor to implement the traffic flow adjustment method in the embodiment of the present application.
[0130] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0131] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for adjusting traffic flow, It is characterized in that The method comprises: Acquire traffic data of a target area in real time, the target area including at least two traffic sections, and the traffic data including vehicle information of the target area; Based on the large language model, the traffic data is processed to obtain the predicted traffic flow of the target area, and the large language model is used to predict the future traffic flow of the area based on the traffic data of the area; Based on the predicted traffic flow of the target area, the traffic lights in the target area are dynamically controlled so that the traffic flow of any traffic section in the target area is not greater than a flow threshold.
2. The method according to claim 1, It is characterized in that The vehicle information includes the number of vehicles in the target area, the vehicle locations, and the vehicle license plate numbers; The processing of the traffic data based on the large language model to obtain the predicted traffic flow of the target area includes: Based on the large language model, the number of vehicles and vehicle positions in the target area are processed to obtain the current traffic flow of any traffic section in the target area; Based on the large language model, query the historical driving routes of vehicles corresponding to the license plate numbers of vehicles in the target area; Based on the large language model, the current traffic flow and the historical driving routes of vehicles in the target area are processed to obtain the predicted traffic flow of any traffic section in the target area.
3. The method according to claim 1, It is characterized in that The method of dynamically controlling the traffic lights in the target area based on the predicted traffic flow in the target area includes: For any traffic light in the target area, determining a first green light duration of the traffic light based on the predicted traffic flow of the traffic section where the traffic light is located, wherein the first green light duration is used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass through the traffic light; When the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, sending a first control signal to the traffic light, wherein the first control signal is used to control the traffic light to cancel the planned red light and continue to display the green light until the display duration of the green light is equal to the first green light duration; When the traffic light currently displays a red light and the predicted traffic flow is greater than the flow threshold, a second control signal is sent to the traffic light, wherein the second control signal is used to control the traffic light to cancel the currently displayed red light and display a green light according to the first green light duration.
4. The method according to claim 1, It is characterized in that The method of dynamically controlling the traffic lights in the target area based on the predicted traffic flow in the target area includes: For any traffic light in the target area, when the predicted traffic flow of the traffic section where the traffic light is located is greater than the flow threshold, determining a first green light duration of the traffic light based on the predicted traffic flow, wherein the first green light duration is used to indicate the time required for all vehicles in the traffic section where the traffic light is located to pass through the traffic light; When the traffic light currently displays a green light and the display duration of the green light is less than the first green light duration, sending a first control signal to the traffic light, wherein the first control signal is used to control the traffic light to cancel the planned red light and continue to display the green light until the display duration of the green light is equal to the first green light duration; In the case that the traffic light currently displays a red light, a second control signal is sent to the traffic light, wherein the second control signal is used to control the traffic light to cancel the currently displayed red light and display a green light according to the first green light duration.
5. The method according to claim 1, It is characterized in that The vehicle information includes navigation information of the vehicle in the target area, and the navigation information is used to indicate a driving route of the vehicle. The method further includes: Based on the predicted traffic flow of the target area, determining a congested road section of the target area, wherein the congested road section is a traffic section in the target area where the predicted traffic flow is greater than the flow threshold; For any vehicle in the target area, based on the navigation information of the vehicle and the congested road section, determining whether the driving route indicated by the navigation information includes the congested road section; In the case where the driving route includes the congested road section, a first prompt message is sent to a terminal associated with the vehicle, wherein the first prompt message is used to prompt the driver of the vehicle that congestion may occur on the congested road section and to suggest changing the driving route of the vehicle.
6. The method according to claim 5, It is characterized in that The method further comprises: For any vehicle in the target area, determining the vehicle type of the vehicle based on the vehicle information of the vehicle; When the vehicle type is a municipal vehicle, obtaining a default driving route of the vehicle; In a case where the default driving route includes the congested road section, adjusting the default driving route of the vehicle based on the predicted traffic flow of the target area, so that the adjusted default driving route enables the vehicle to pass through the congested road section when the traffic flow of the congested road section is not greater than the flow threshold; The adjusted default driving route is sent to a terminal associated with the vehicle to instruct a driver of the vehicle to drive the vehicle according to the default driving route.
7. The method according to claim 1, It is characterized in that The method further comprises: When a traffic accident occurs in the target area, the traffic accident is processed based on the large language model to obtain the accident location of the traffic accident; Based on the accident location, an alarm message is sent to a traffic management object located near the accident location, wherein the alarm message is used to prompt the traffic management object that a traffic accident has occurred at the accident location in the target area.
8. The method according to claim 1, It is characterized in that The method further comprises: Based on the large language model, the predicted traffic flow of the target area is processed to determine the probability of an accident occurring in any traffic section of the target area; When the probability of an accident occurring on the traffic section is greater than a probability threshold, a second prompt message is sent to a traffic management object located near the traffic section based on the location of the traffic section, and the second prompt message is used to prompt the traffic management object that a traffic accident may occur on the traffic section.
9. A traffic flow adjustment device, It is characterized in that The device comprises: An acquisition module, used for acquiring traffic data of a target area in real time, wherein the target area includes at least two traffic sections, and the traffic data includes vehicle information of the target area; A traffic prediction module, used to process the traffic data based on a large language model to obtain a predicted traffic flow of the target area, wherein the large language model is used to predict the future traffic flow of the area based on the traffic data of the area; The control module is used to dynamically control the traffic lights in the target area based on the predicted traffic flow in the target area, so that the traffic flow in any traffic section in the target area is not greater than a flow threshold.
10. An electronic device, It is characterized in that The electronic device includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded by the processor and executes the traffic flow adjustment method described in any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store at least one computer program, and the at least one computer program is used to execute the traffic flow adjustment method described in any one of claims 1 to 8.
12. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the traffic flow adjustment method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Anti-congestion urban traffic control method and system
CN120148233A
