Traffic signal timing method and device, electronic equipment and storage medium
By acquiring multi-directional traffic flow data at target intersections, predicting future traffic flow and saturation, and selecting the optimal signal timing scheme, the problem of low traffic efficiency at complex intersections is solved, achieving more efficient traffic signal control and reducing energy consumption and exhaust emissions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- UNICOM ZHIWANG RUIXING TECH (BEIJING) CO LTD
- Filing Date
- 2025-12-22
- Publication Date
- 2026-04-24
AI Technical Summary
Existing detector-based traffic signal control and optimization schemes have low traffic efficiency in complex intersection traffic conditions.
By acquiring the current traffic flow in multiple directions at the target intersection, the traffic flow and saturation at future times are predicted. The optimal signal timing scheme is selected using a comprehensive benefit model, taking into account pedestrian right-of-way, vehicle energy consumption and exhaust emissions, and the signal timing cycle is dynamically adjusted.
It improved the traffic efficiency at the intersection, optimized traffic signal timing, reduced vehicle waiting time and energy consumption, and lowered exhaust emissions.
Smart Images

Figure CN121921980A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent transportation, and more particularly to a traffic signal timing method, apparatus, electronic device, and storage medium. Background Technology
[0002] Traffic signal control and optimization are crucial for alleviating urban traffic congestion. Existing single-intersection traffic signal control and optimization methods typically rely on equipment deployed at the intersection. For example, detectors embedded in the intersection can detect in real time whether vehicles or pedestrians are waiting. Once traffic demand is detected, the signal controller intelligently adjusts the green light duration.
[0003] However, the aforementioned detector-based traffic signal control and optimization schemes have low traffic efficiency in complex intersection traffic conditions. Summary of the Invention
[0004] This application provides a traffic signal timing method, apparatus, electronic device, and storage medium, which helps to improve the traffic efficiency of intersections.
[0005] In a first aspect, embodiments of this application provide a traffic signal timing method, the method comprising: acquiring traffic flow in multiple directions at a target intersection at current time t, wherein the target intersection is a single intersection or a multi-intersection; based on the traffic flow in multiple directions at the target intersection at current time t, traversing signal timing schemes in a timing scheme library, predicting the stage saturation corresponding to each signal timing scheme, wherein the stage saturation corresponding to each signal timing scheme is used to characterize the average saturation of the target intersection at future time t+T; and determining a target signal timing scheme based on the stage saturation corresponding to each signal timing scheme.
[0006] In one possible implementation, determining the target signal timing scheme based on the stage saturation corresponding to each signal timing scheme includes: obtaining pedestrian right-of-way, vehicle energy consumption, and exhaust emissions, wherein the pedestrian right-of-way is used to characterize the waiting time within the duration T when the target intersection operates the signal timing scheme; and determining the target signal timing scheme based on the stage saturation corresponding to each signal timing scheme, the pedestrian right-of-way, the vehicle energy consumption, and the exhaust emissions.
[0007] In one possible implementation, the target signal timing scheme is the signal timing scheme corresponding to the minimum comprehensive benefit value among the comprehensive benefit values, and the comprehensive benefit value is calculated by the following formula: Wherein, W(m) is the comprehensive benefit value corresponding to the m-th signal timing scheme, ω1, ω2, ω3 and ω4 are weighting coefficients, Q(m) is the average saturation corresponding to the m-th signal timing scheme, Dp(m) is the pedestrian right-of-way corresponding to the m-th signal timing scheme, E(m) is the vehicle energy consumption corresponding to the m-th signal timing scheme, and C(m) is the exhaust emission corresponding to the m-th signal timing scheme.
[0008] In one possible implementation, the step of traversing the signal timing schemes in the timing scheme library based on the traffic flow in multiple directions at the current time t of the target intersection and predicting the stage saturation corresponding to each signal timing scheme includes: determining whether to adjust T based on the traffic flow in multiple directions at the current time t of the target intersection; determining the corresponding signal timing scheme subset based on the adjusted T; and traversing the signal timing schemes in the signal timing scheme subset to predict the stage saturation corresponding to each signal timing scheme.
[0009] In one possible implementation, determining whether to adjust T based on the traffic flow in multiple directions at the current time t of the target intersection includes: predicting the traffic flow of each lane at the future time t+T based on the traffic flow in multiple directions at the current time t of the target intersection; predicting the saturation of each lane at each stage of the future time t+T under the current timing scheme based on the traffic flow of each lane at the future time t+T; and determining whether to adjust T based on the saturation of each lane at each stage of the future time t+T under the current timing scheme.
[0010] In one possible implementation, determining whether to adjust T based on the saturation of each lane at each stage of future time t+T under the current timing scheme includes: if the first saturation is less than a first threshold, updating T to T1, where T1 is less than T; if the first saturation is greater than a second threshold, updating T to T2, where T2 is greater than T; if the first saturation is greater than or equal to the first threshold and less than or equal to the second threshold, keeping T unchanged; the first saturation is the maximum saturation among the saturations of each lane at each stage of future time t+T under the current timing scheme.
[0011] In one possible implementation, the traffic flow for each lane at time t+T is calculated using the following formula: ; Wherein, n i (t+T) is used to characterize the traffic flow of the i-th lane at time t+T, where y u->i(t) is used to characterize the vehicle transport volume from lane u to the i-th lane, where u represents all upstream lanes in the target intersection, and y i->d (t) is used to characterize the amount of vehicle transmission from lane i to lane d, where d is used to characterize all downstream lanes in the target intersection.
[0012] Secondly, embodiments of this application provide a traffic signal timing device, including one or more functional modules, which are used to perform the traffic signal timing method as described in the first aspect.
[0013] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, wherein the memory is used to store a program; and the processor is used to run the program to implement the traffic signal timing method as described in the first aspect.
[0014] Fourthly, embodiments of this application provide a readable storage medium storing a program that, when run on an electronic device, causes the electronic device to implement the traffic signal timing method as described in the first aspect.
[0015] Fifthly, embodiments of this application provide a program that, when run on a processor of an electronic device, causes the electronic device to perform the traffic signal timing method as described in the first aspect.
[0016] In one possible design, the program in the fifth aspect can be stored wholly or partially on a storage medium packaged with the processor, or it can be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figure 2 A schematic flowchart of an embodiment of the traffic signal timing method provided in this application; Figure 3 This is a schematic diagram of the traffic signal timing device provided in an embodiment of this application. Detailed Implementation
[0018] In this embodiment of the application, unless otherwise stated, the character " / " indicates that the preceding and following objects are in an OR relationship. For example, A / B can represent A or B. "AND / OR" describes the relationship between the associated objects, indicating that three relationships can exist. For example, A AND / OR B can represent: A alone, A and B simultaneously, and B alone.
[0019] It should be noted that the terms "first" and "second" used in the embodiments of this application are used only for distinguishing descriptive purposes and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated, nor should they be construed as indicating or implying order.
[0020] In the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. Furthermore, "at least one of the following" or similar expressions refer to any combination of these items, which may include any combination of a single item or a plurality of items. For example, at least one of A, B, or C can represent: A, B, C, A and B, A and C, B and C, or A, B, and C. Each of A, B, and C can be an element itself or a set containing one or more elements.
[0021] In this application, terms such as "exemplary," "in some embodiments," and "in another embodiment" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the term "exemplary" is intended to present the concept in a concrete manner.
[0022] In the embodiments of this application, the terms "of," "corresponding (relevant)," and "corresponding" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction, their meanings are consistent. Similarly, in the embodiments of this application, "communication" and "transmission" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction, their meanings are consistent. For example, transmission can include sending and / or receiving, and can be a noun or a verb.
[0023] In the embodiments of this application, the term "equal to" can be used in conjunction with "greater than" to apply to technical solutions where the value is greater than, and it can also be used in conjunction with "less than" to apply to technical solutions where the value is less than. It should be noted that when "equal to" is used with "greater than," it cannot be used with "less than"; conversely, when "equal to" is used with "less than," it cannot be used with "greater than."
[0024] Traffic signal control and optimization are crucial for alleviating urban traffic congestion. Existing single-intersection traffic signal control and optimization methods typically rely on equipment deployed at the intersection. For example, detectors embedded in the intersection can detect in real time whether vehicles or pedestrians are waiting. Once traffic demand is detected, the signal controller intelligently adjusts the green light duration.
[0025] However, the aforementioned detector-based traffic signal control and optimization schemes have low traffic efficiency in complex intersection traffic conditions.
[0026] To address the aforementioned issues, this application provides a traffic signal timing method that helps improve traffic flow efficiency at intersections.
[0027] The traffic signal timing method shown in this application can be applied to electronic devices.
[0028] The electronic device may be a desktop computer, a server, or a server cluster consisting of multiple servers. This application does not impose any special limitation on the type of electronic device.
[0029] It is understood that the electronic device may be a device deployed locally at the intersection, or the electronic device may be an edge device at the intersection, or the electronic device may be a central device in the cloud. This application embodiment does not make any special limitations in this regard.
[0030] Figure 1 First, the hardware structure of the electronic device 100 is shown as an example.
[0031] The aforementioned electronic device 100 may include: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor can execute the methods provided in the embodiments shown herein by calling the program instructions.
[0032] Figure 1 A block diagram is shown that is suitable for implementing the embodiments described herein. Figure 1 The electronic device 100 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments described herein.
[0033] like Figure 1 As shown, the components of the electronic device 100 may include, but are not limited to: one or more processors 110, memory 120, communication bus 140 connecting different system components (including memory 120 and processor 110), and communication interface 130.
[0034] Communication bus 140 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MAC) buses, Enhanced ISA buses, Video Electronics Standards Association (VESA) local buses, and Peripheral Component Interconnect (PCI) buses.
[0035] Electronic device 100 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the device, including volatile and non-volatile media, removable and non-removable media.
[0036] Memory 120 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Although Figure 1 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 140 via one or more data media interfaces. The memory 120 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments herein.
[0037] A program / utility having a set (at least one) of program modules may be stored in memory 120. Such program modules include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules typically perform the functions and / or methods described in the embodiments herein.
[0038] Electronic device 100 can also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), and with one or more devices that enable a user to interact with the device, and / or with any device that enables the device to communicate with one or more other devices (e.g., network card, modem, etc.). This communication can be performed through communication interface 130. Furthermore, electronic device 100 can also communicate through a network adapter (… Figure 1 (Not shown) communicates with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN), and / or public networks, such as the Internet). The aforementioned network adapter can communicate with other modules of the device via communication bus 140. It should be understood that, although... Figure 1 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, Redundant Arrays of Independent Drives (RAID) systems, tape drives, and data backup storage systems.
[0039] The processor 110 executes various functional applications and data processing by running programs stored in the memory 120, such as implementing the methods provided in the embodiments herein.
[0040] It is understood that the interface connection relationships between the modules illustrated in the embodiments herein are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments herein, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0041] Figure 2 A flowchart illustrating an embodiment of the traffic signal timing method provided in this application includes the following steps: Step 201: Obtain the traffic flow in multiple directions at the target intersection at time t.
[0042] Specifically, the target intersection can be a single intersection or a multi-intersection; this application does not impose any special limitations on this.
[0043] It is understood that the traffic flow at the target intersection in this application embodiment may include traffic flow from multiple directions at the intersection.
[0044] For example, a crossroads may include east-west traffic flow and north-south traffic flow.
[0045] Compared to existing technologies that only detect traffic flow in a single direction (e.g., east-west or north-south), this application embodiment detects traffic flow in multiple directions (e.g., east-west and north-south). In some alternative embodiments, traffic flow in one direction can be based on the direction dimension, that is, the traffic flow in that direction can be based on all lanes in that direction, or the traffic flow in one direction can be based on the lane dimension, that is, the traffic flow in that direction can be based on each lane in that direction.
[0046] For example, traffic flow can be calculated using the following formula: ; Where, q i (t) is used to characterize the traffic flow of the i-th lane at time t, k i (t) is used to characterize the congestion density of the i-th lane at time t, v f The free flow density is used to characterize the density of the j-th lane, and the blockage density is used to characterize the density of the j-th lane.
[0047] Step 202: Based on the traffic flow in multiple directions at the target intersection at the current time t, predict the traffic flow at the future time t+T.
[0048] Specifically, the future time can be a time after a signal timing period T, or it can be a time after a preset duration. This application does not impose any special limitations on this.
[0049] It is understood that the signal timing cycle T referred to in this application refers to the cycle of traffic lights. Signal timing refers to the time allocated to each stage of the signal light cycle (e.g., red light stage, green light stage, yellow light stage, etc.) to release conflicting traffic flows in a time-sharing manner, thereby ensuring the safe, orderly and efficient operation of the intersection.
[0050] In some alternative embodiments, the traffic flow at a future time may be the traffic flow in multiple directions at the target intersection at a future time.
[0051] In this future moment, traffic flow in multiple directions can be characterized by the amount of lane changes between intersections.
[0052] For example, consider traffic flow in one direction among multiple traffic flows at a future time.
[0053] First, calculate the maximum number of vehicles originating from the upstream (exit lane) in that direction. This maximum number of vehicles originating from the upstream in that direction can be calculated using the following formula: ; Among them, S i (t) is used to characterize the maximum number of vehicles originating from upstream in the i-th lane at time t, n i (t) is used to characterize the traffic flow in the i-th lane at time t, q i,in Used to characterize the traffic flow upstream of the i-th lane.
[0054] Next, the maximum number of vehicles that can be received upstream and downstream (entering lane) in that direction can be calculated. The maximum number of vehicles that can be received downstream can be obtained by the following formula: ; Where Rj(t) represents the maximum number of vehicles that the downstream lane can receive at time t in the j-th lane, and L j q is used to characterize the length of the j-th lane. j,out Used to characterize the traffic flow downstream of the j-th lane.
[0055] Then, the transmission flow between intersections can be calculated using the following formula: ; Among them, y i->j (t) is used to characterize the traffic flow at time t where the i-th lane turns into the j-th lane.
[0056] Finally, the traffic flow at future times can be predicted using the above formula, where the traffic flow at future times can be calculated using the following formula: ; Where, n i (t+T) is used to characterize the traffic flow of the i-th lane at time t+T in the future, u is used to characterize all upstream lanes in the target intersection, and d is used to characterize all downstream lanes in the target intersection.
[0057] Step 203: Calculate the first-stage saturation of the target intersection at future times, and determine whether to adjust the signal timing cycle based on the first-stage saturation of the target intersection at future times.
[0058] Specifically, the first stage saturation of the target intersection in the future can be: the saturation of each stage after continuing operation from the current time t, for example, one signal timing cycle T, under the current timing scheme.
[0059] The first-stage saturation can be characterized by the following formula: ; Where Q represents saturation, c represents the current timing scheme, r represents each stage within the signal timing cycle, such as the red light stage, green light stage, yellow light stage, etc., and P represents the theoretical traffic flow of a certain stage of the target signal timing scheme.
[0060] If the saturation in the first stage is less than the first threshold, it indicates that the overall traffic flow pressure at the current intersection is relatively low. The traffic signal cycle can be reduced to adapt to the traffic flow changes. For example, the signal timing cycle in the current intersection signal system can be updated to T1, where T1 is less than T.
[0061] If the saturation level in the first stage is greater than or equal to the first threshold and less than or equal to the second threshold, the current intersection signal system can maintain the existing signal timing cycle unchanged.
[0062] If the saturation of the first stage is greater than the second threshold, it indicates that the overall traffic flow pressure at the current intersection is relatively high. The traffic signal cycle can be increased to adapt to the traffic flow changes. For example, the signal timing cycle of the current intersection signal system can be updated to T2, where T2 is greater than T.
[0063] The first and second thresholds can be determined based on historical traffic flow data of the target intersection. It is understood that the first and second thresholds can be used to define the critical saturation of "smooth" and "slow" traffic.
[0064] Step 204: Predict the second-stage saturation of the target intersection at future times based on the adjusted signal timing cycle.
[0065] Specifically, the second-stage saturation of the target intersection at future times can be: the saturation of each stage corresponding to each timing scheme obtained by traversing relevant timing schemes in the timing scheme library.
[0066] For example, if the signal timing period is T, a subset X1 of timing schemes corresponding to T can be found in the timing scheme library. X1 can be traversed to obtain the saturation of each stage corresponding to each timing scheme in X1.
[0067] For example, if the signal timing period is T1, the timing scheme subset X2 corresponding to T can be found in the timing scheme library, and X2 can be traversed to obtain the saturation of each stage corresponding to each timing scheme in X2.
[0068] For example, if the signal timing period is T2, the timing scheme subset X3 corresponding to T can be found in the timing scheme library, and X3 can be traversed to obtain the saturation of each stage corresponding to each timing scheme in X3.
[0069] In some optional embodiments, the second-stage saturation can be characterized by the following formula: ; Where m is used to characterize the timing scheme of the m-th signal.
[0070] Next, the average saturation Q(m) corresponding to the m-th timing scheme can be calculated based on the saturation of each stage in the second stage of saturation.
[0071] Step 205: Determine the target signal timing scheme based on the second-stage saturation of the target intersection at future times. This target signal timing scheme is used as the timing scheme for the next signal timing period T.
[0072] In some alternative embodiments, the target signal timing scheme can also be determined based on vehicle right-of-way, pedestrian right-of-way, vehicle energy consumption, and exhaust emissions.
[0073] Among them, the right-of-way for vehicles can be characterized by the predicted average saturation, and the right-of-way for pedestrians can be characterized by the predicted waiting time for pedestrians.
[0074] A comprehensive benefit model can be established based on vehicle right-of-way, pedestrian right-of-way, vehicle energy consumption, and exhaust emissions. This comprehensive benefit model can be represented by the following expression: ; Wherein, W(m) is the comprehensive benefit value when the m-th signal timing scheme is implemented, ω1, ω2, ω2 and ω4 are weighting coefficients, Dp(m) is used to characterize the expected waiting time of pedestrians in one signal timing cycle after the m-th signal timing scheme is implemented at the target intersection, E(m) is used to characterize the expected energy consumption of vehicles in one signal timing cycle after the m-th signal timing scheme is implemented at the target intersection, and C(m) is used to characterize the expected exhaust emissions in one signal timing cycle after the m-th signal timing scheme is implemented at the target intersection.
[0075] In some alternative embodiments, ω1, ω2, ω3 and ω4 can be dynamically adjusted according to real-time traffic conditions or policy objectives.
[0076] Next, the minimum W value can be found in W(m), and the signal timing scheme corresponding to the minimum W value can be used as the recommended timing scheme for the next signal configuration cycle.
[0077] Figure 3 This is a schematic diagram of the traffic signal timing device provided in the embodiments of this application, as shown below. Figure 3 As shown, the traffic signal timing device 30 includes: an acquisition module 31, a prediction module 32, and a determination module 33; wherein, The acquisition module 31 is used to acquire the traffic flow in multiple directions at the current time t of the target intersection, wherein the target intersection is a single intersection or a multi-intersection; Prediction module 32 is used to predict the stage saturation corresponding to each signal timing scheme by traversing the signal timing scheme library based on the traffic flow in multiple directions at the current time t of the target intersection. The stage saturation corresponding to each signal timing scheme is used to characterize the average saturation of the target intersection at the future time t+T. The determination module 33 is used to determine the target signal timing scheme based on the stage saturation corresponding to each signal timing scheme.
[0078] In one possible implementation, the determining module 33 is further used to obtain pedestrian right-of-way, vehicle energy consumption and exhaust emissions, wherein the pedestrian right-of-way is used to characterize the waiting time within the T duration when the target intersection operates the signal timing scheme; The target signal timing scheme is determined based on the stage saturation corresponding to each signal timing scheme, the pedestrian right-of-way, the vehicle energy consumption, and the exhaust emissions.
[0079] In one possible implementation, the target signal timing scheme is the signal timing scheme corresponding to the minimum comprehensive benefit value among the comprehensive benefit values, and the comprehensive benefit value is calculated by the following formula: ; Wherein, W(m) is the comprehensive benefit value corresponding to the m-th signal timing scheme, ω1, ω2, ω3 and ω4 are weighting coefficients, Q(m) is the average saturation corresponding to the m-th signal timing scheme, Dp(m) is the pedestrian right-of-way corresponding to the m-th signal timing scheme, E(m) is the vehicle energy consumption corresponding to the m-th signal timing scheme, and C(m) is the exhaust emission corresponding to the m-th signal timing scheme.
[0080] In one possible implementation, the prediction module 32 is further configured to determine whether to adjust T based on the traffic flow in multiple directions at the current time t of the target intersection; Determine the corresponding signal timing scheme subset based on the adjusted T; Within the subset of signal timing schemes, the signal timing schemes are traversed, and the stage saturation corresponding to each signal timing scheme is predicted.
[0081] In one possible implementation, the prediction module 32 is further configured to predict the traffic flow of each lane at the future time t+T based on the traffic flow in multiple directions at the current time t of the target intersection. Based on the traffic flow of each lane at the future time t+T, predict the saturation of each lane at each stage of the future time t+T under the current timing scheme; Whether to adjust T is determined based on the saturation of each lane at each stage in the future time t+T under the current timing scheme.
[0082] In one possible implementation, the prediction module 32 is further configured to update T to T1 if the first saturation is less than the first threshold, wherein T1 is less than T; If the first saturation is greater than the second threshold, then T is updated to T2, where T2 is greater than T; If the first saturation is greater than or equal to the first threshold and less than or equal to the second threshold, then T remains unchanged; The first saturation is the maximum saturation of each lane at each stage in the future time t+T under the current timing scheme.
[0083] In one possible implementation, the traffic flow for each lane at time t+T is calculated using the following formula: ; Wherein, n i (t+T) is used to characterize the traffic flow of the i-th lane at time t+T, where y u->i (t) is used to characterize the vehicle transport volume from lane u to the i-th lane, where u represents all upstream lanes in the target intersection, and y i->d (t) is used to characterize the amount of vehicle transmission from lane i to lane d, where d is used to characterize all downstream lanes in the target intersection.
[0084] Figure 3 The traffic signal timing device 30 provided in the embodiment can be used to execute the technical solution of the method embodiment shown in this application, and its implementation principle and technical effect can be further referred to the relevant description in the method embodiment.
[0085] It should be understood that the division of the various modules of the traffic signal timing device 30 described above is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented in software via processing element calls, while others are implemented in hardware. For example, the detection module can be a separate processing element or integrated into a chip in the terminal device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. During implementation, each step of the above method or each of the above modules can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.
[0086] For example, these modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). Alternatively, these modules can be integrated together as a system-on-a-chip (SOC).
[0087] In the above embodiments, the processor may include, for example, a CPU, DSP, microcontroller, or digital signal processor, and may also include a GPU, embedded neural network processing unit (NPU), and image signal processor (ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program in this application. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.
[0088] This application also provides a readable storage medium storing a program that, when run on an electronic device, causes the electronic device to execute the method provided in the embodiments shown in this application.
[0089] This application also provides a program product, which includes a program that, when run on an electronic device, causes the electronic device to perform the method provided in the embodiments shown in this application.
[0090] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0091] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0092] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0093] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0094] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A traffic signal timing method, characterized in that, The method includes: Obtain the traffic flow in multiple directions at the target intersection at time t, where the target intersection is a single intersection or a multi-intersection; Based on the traffic flow in multiple directions at the current time t of the target intersection, the signal timing schemes in the timing scheme library are traversed, and the stage saturation corresponding to each signal timing scheme is predicted. The stage saturation corresponding to each signal timing scheme is used to characterize the average saturation of the target intersection at the future time t+T. The target signal timing scheme is determined based on the stage saturation corresponding to each signal timing scheme.
2. The method according to claim 1, characterized in that, The step of determining the target signal timing scheme based on the stage saturation corresponding to each signal timing scheme includes: Obtain pedestrian right-of-way, vehicle energy consumption, and exhaust emissions, wherein the pedestrian right-of-way is used to characterize the waiting time within the duration T when the target intersection operates the signal timing scheme; The target signal timing scheme is determined based on the stage saturation corresponding to each signal timing scheme, the pedestrian right-of-way, the vehicle energy consumption, and the exhaust emissions.
3. The method according to claim 1, characterized in that, The target signal timing scheme is the signal timing scheme corresponding to the minimum comprehensive benefit value among the comprehensive benefit values, and the comprehensive benefit value is calculated by the following formula: ; Wherein, W(m) is the comprehensive benefit value corresponding to the m-th signal timing scheme, ω1, ω2, ω3 and ω4 are weighting coefficients, Q(m) is the average saturation corresponding to the m-th signal timing scheme, Dp(m) is the pedestrian right-of-way corresponding to the m-th signal timing scheme, E(m) is the vehicle energy consumption corresponding to the m-th signal timing scheme, and C(m) is the exhaust emission corresponding to the m-th signal timing scheme.
4. The method according to claim 1, characterized in that, The step of predicting the stage saturation corresponding to each signal timing scheme by traversing the signal timing scheme library in the multiple directions based on the traffic flow at the target intersection at time t includes: Whether to adjust T is determined based on the traffic flow in multiple directions at the target intersection at the current time t. Determine the corresponding signal timing scheme subset based on the adjusted T; Within the subset of signal timing schemes, the signal timing schemes are traversed, and the stage saturation corresponding to each signal timing scheme is predicted.
5. The method according to claim 4, characterized in that, The step of determining whether to adjust T based on the traffic flow in multiple directions at the target intersection at the current time t includes: Based on the traffic flow in multiple directions at the current time t at the target intersection, predict the traffic flow of each lane at the future time t+T; Based on the traffic flow of each lane at the future time t+T, predict the saturation of each lane at each stage of the future time t+T under the current timing scheme; Whether to adjust T is determined based on the saturation of each lane at each stage in the future time t+T under the current timing scheme.
6. The method according to claim 5, characterized in that, The step of determining whether to adjust T based on the saturation of each lane at various stages in the future time t+T under the current timing scheme includes: If the first saturation is less than the first threshold, T is updated to T1, where T1 is less than T; If the first saturation is greater than the second threshold, then T is updated to T2, where T2 is greater than T; If the first saturation is greater than or equal to the first threshold and less than or equal to the second threshold, then T remains unchanged; The first saturation is the maximum saturation of each lane at each stage in the future time t+T under the current timing scheme.
7. The method according to claim 5 or 6, characterized in that, The traffic flow for each lane at time t+T in the future is calculated using the following formula: ; Wherein, n i (t+T) is used to characterize the traffic flow of the i-th lane at time t+T, where y u->i (t) is used to characterize the vehicle transport volume from lane u to the i-th lane, where u represents all upstream lanes in the target intersection, and y i->d (t) is used to characterize the amount of vehicle transmission from lane i to lane d, where d is used to characterize all downstream lanes in the target intersection.
8. A traffic signal timing device, characterized in that, The device includes: The acquisition module is used to acquire the traffic flow in multiple directions at the current time t of the target intersection, where the target intersection is a single intersection or a multi-intersection. The prediction module is used to predict the stage saturation corresponding to each signal timing scheme based on the traffic flow in multiple directions at the current time t of the target intersection, by traversing the signal timing scheme library. The stage saturation corresponding to each signal timing scheme is used to characterize the average saturation of the target intersection at the future time t+T. The determination module is used to determine the target signal timing scheme based on the stage saturation corresponding to each signal timing scheme.
9. An electronic device, characterized in that, include: A processor and a memory, the memory being used to store a program; the processor being used to run the program to implement the traffic signal timing method as described in any one of claims 1-7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program that, when run on an electronic device, implements the traffic signal timing method as described in any one of claims 1-7.