Traffic light signal timing method, device, electronic device and storage medium
By acquiring and analyzing traffic vehicle information, and using fuzzy reasoning and weighted average methods to dynamically adjust the traffic light signal configuration duration, it solves the problem that existing traffic signal control methods cannot meet real-time traffic conditions, and improves road traffic efficiency and resource utilization.
Patent Information
- Application Number
- CN202411397813.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-10-09
AI Technical Summary
The existing traffic signal control method adopts fixed time periods to control traffic light signals, which cannot meet real-time changing traffic conditions, resulting in low road traffic efficiency and resource utilization.
By obtaining the current traffic vehicle information and the current configuration duration of the target traffic light area, using fuzzy reasoning and weighted average methods to dynamically adjust the configuration of the traffic light signal to meet the vehicle traffic needs.
The flexible configuration of the traffic light signal is based on real -time transportation vehicle information, improve road traffic efficiency and resource utilization rate, and meet vehicle traffic needs.
Smart Images

Figure CN118898909B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic signal control, and in particular to a traffic light signal timing method, device, electronic equipment and storage medium. Background Art
[0002] In order to effectively control traffic flow, improve traffic efficiency, reduce congestion and traffic accidents, it is increasingly important to reasonably configure the duration of traffic light signals. Currently, the switching control of traffic light signals is mainly carried out according to a fixed time cycle.
[0003] However, traffic conditions change in real time, and fixed time periods cannot meet vehicle traffic needs in many cases, resulting in low road traffic efficiency and resource utilization. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a traffic light signal timing method, device, electronic device and storage medium, which can flexibly configure the duration of traffic light signals according to traffic vehicle information, meet vehicle traffic needs, and improve road traffic efficiency and resource utilization.
[0005] In a first aspect, an embodiment of the present application provides a method for timing a traffic light signal, the method comprising:
[0006] Obtain the current traffic vehicle information in the area where the target traffic light is located, and the current configuration duration of the traffic light signal of the target traffic light;
[0007] Fuzzy reasoning is performed based on the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signals under various timing modes to obtain the membership degree of the traffic light signals under various timing modes;
[0008] The membership of the traffic light signal under all timing modes is weighted averaged to defuzzify and obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal under each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration.
[0009] In a possible implementation, fuzzy reasoning is performed according to traffic vehicle information and preset fuzzy rules corresponding to traffic light signals in various timing modes to obtain the membership degree of traffic light signals in various timing modes, including:
[0010] For the preset fuzzy rules corresponding to the traffic light signal in each timing mode, the membership of the traffic vehicle information under each fuzzy set is calculated according to the membership function corresponding to each fuzzy set in the preset fuzzy rules; the preset fuzzy rules include at least one fuzzy set to which the traffic vehicle information belongs;
[0011] According to the membership of traffic vehicle information under each fuzzy set, the membership of traffic light signal under this timing mode is determined.
[0012] In a possible implementation, determining the degree of membership of the traffic light signal under the timing mode according to the degree of membership of the traffic vehicle information under each fuzzy set includes:
[0013] If the preset fuzzy rules include multiple fuzzy sets, the product of the membership degrees of the traffic vehicle information under all fuzzy sets is determined as the membership degree of the traffic light signal under the timing mode.
[0014] In a possible implementation, calculating the degree of membership of the traffic light signal under the timing mode according to the degree of membership of the traffic vehicle information under each fuzzy set also includes:
[0015] If the preset fuzzy rule includes a fuzzy set, the membership degree of the traffic vehicle information under the fuzzy set is determined as the membership degree of the traffic light signal under the timing mode.
[0016] In a possible implementation manner, the time matching method includes a method of extending the configuration duration, a method of keeping the configuration duration unchanged, and a method of shortening the configuration duration.
[0017] In a possible implementation, the weights corresponding to the membership degrees of traffic light signals under various timing modes are determined by the following steps:
[0018] The maximum value in the time domain corresponding to the traffic light signal is determined as the weight corresponding to the membership degree under the extended configuration time mode;
[0019] and determining the current configuration duration as the weight corresponding to the membership degree in a manner of keeping the configuration duration unchanged;
[0020] And the minimum value in the timing domain corresponding to the traffic light signal is determined as the weight corresponding to the membership degree under the method of shortening the configuration duration.
[0021] In a possible implementation, the method further includes:
[0022] The traffic light signal of the target traffic light is controlled according to the target configuration duration.
[0023] In a second aspect, an embodiment of the present application further provides a traffic light signal timing device, the traffic light signal timing device comprising:
[0024] An acquisition module, used to acquire current traffic vehicle information in the area where the target traffic light is located, and the current configuration duration of the traffic light signal of the target traffic light;
[0025] The reasoning module is used to perform fuzzy reasoning according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signals under various timing modes, and obtain the membership degree of the traffic light signals under various timing modes;
[0026] The defuzzification module is also used to perform weighted averaging of the membership of the traffic light signal under all timing modes to perform defuzzification to obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal under each timing mode is determined based on the timing domain corresponding to the traffic light signal and the current configuration duration.
[0027] In a possible implementation, the reasoning module is specifically used to calculate the membership of traffic vehicle information under each fuzzy set according to the membership function corresponding to each fuzzy set in the preset fuzzy rule corresponding to the traffic light signal under each timing mode; the preset fuzzy rule includes at least one fuzzy set to which the traffic vehicle information belongs; and according to the membership of the traffic vehicle information under each fuzzy set, the membership of the traffic light signal under the timing mode is determined.
[0028] In a possible implementation, the reasoning module is specifically configured to determine the product of the membership of the traffic vehicle information under all fuzzy sets as the membership of the traffic light signal under the timing mode if the preset fuzzy rule includes multiple fuzzy sets.
[0029] In a possible implementation, the reasoning module is specifically configured to determine the membership of the traffic vehicle information under the fuzzy set as the membership of the traffic light signal under the timing mode if the preset fuzzy rule includes a fuzzy set.
[0030] In a possible implementation manner, the time matching method includes a method of extending the configuration duration, a method of keeping the configuration duration unchanged, and a method of shortening the configuration duration.
[0031] In one possible implementation, the defuzzification module is specifically used to determine the maximum value in the timing domain corresponding to the traffic light signal as the weight corresponding to the membership in a manner of extending the configuration duration; and determine the current configuration duration as the weight corresponding to the membership in a manner of keeping the configuration duration unchanged; and determine the minimum value in the timing domain corresponding to the traffic light signal as the weight corresponding to the membership in a manner of shortening the configuration duration.
[0032] In a possible implementation, the device further includes: a control module;
[0033] The control module is used to control the traffic light signal of the target traffic light according to the target configuration duration.
[0034] In the third aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the traffic light signal timing method as described in any one of the first aspects.
[0035] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the traffic light signal timing method as described in any one of the first aspects are executed.
[0036] The embodiment of the present application provides a method, device, electronic device and storage medium for timing of traffic light signals, the method comprising: obtaining the current traffic vehicle information of the area where the target traffic light is located, and the current configuration duration of the traffic light signal of the target traffic light; performing fuzzy reasoning according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signal in each timing mode, and obtaining the membership of the traffic light signal in each timing mode; performing weighted averaging on the membership of the traffic light signal in all timing modes to defuzzify and obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal in each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration; the weight corresponding to the membership of the traffic light signal in each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration. Through the method of the embodiment of the present application, the duration of the traffic light signal can be flexibly configured according to the traffic vehicle information, meet the vehicle traffic needs, and improve the road traffic efficiency and resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A flow chart of a traffic light signal timing method provided in an embodiment of the present application is shown;
[0039] Figure 2 A flow chart showing another method for timing a traffic light signal provided in an embodiment of the present application is shown;
[0040] Figure 3 A schematic diagram of the structure of a traffic light signal timing device provided in an embodiment of the present application is shown;
[0041] Figure 4 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0042] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0043] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0044] In order to enable those skilled in the art to use the content of this application, the following implementation is provided in conjunction with a specific application scenario "traffic signal control field". For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application is mainly described around the "traffic signal control field", it should be understood that this is only an exemplary embodiment.
[0045] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0046] A traffic light signal timing method provided in an embodiment of the present application is described in detail below.
[0047] Reference Figure 1 As shown, it is a flow chart of a traffic light signal timing method provided in an embodiment of the present application. The specific execution process of the traffic light signal timing method is as follows:
[0048] S101. Acquire current traffic vehicle information in an area where a target traffic light is located, and a current configuration duration of a traffic light signal of the target traffic light.
[0049] S102, performing fuzzy reasoning according to traffic vehicle information and preset fuzzy rules corresponding to traffic light signals in various timing modes, and obtaining the membership degree of the traffic light signals in various timing modes.
[0050] S103. Perform a weighted average of the membership of the traffic light signal under all timing modes to perform defuzzification to obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal under each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration.
[0051] The embodiment of the present application provides a method for timing a traffic light signal, the method comprising: obtaining the current traffic vehicle information of the area where the target traffic light is located, and the current configuration duration of the traffic light signal of the target traffic light; performing fuzzy reasoning according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signal in each timing mode, and obtaining the membership of the traffic light signal in each timing mode; performing weighted averaging on the membership of the traffic light signal in all timing modes to defuzzify and obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal in each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration; the weight corresponding to the membership of the traffic light signal in each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration. Through the method of the embodiment of the present application, the duration of the traffic light signal can be flexibly configured according to the traffic vehicle information, the vehicle traffic needs can be met, and the road traffic efficiency and resource utilization can be improved.
[0052] The following is a description of the exemplary steps of the present application embodiment:
[0053] S101. Acquire current traffic vehicle information in an area where a target traffic light is located, and a current configuration duration of a traffic light signal of the target traffic light.
[0054] In the implementation manner of the present application, the target traffic light refers to the traffic light that needs to be timed; the traffic light will display a variety of signals, such as a no-pass signal, a pass-allowed signal, and a warning signal; the traffic light signal can be a no-pass signal, a pass-allowed signal, or a warning signal. Different traffic light signals correspond to different traffic light colors, such as a no-pass signal corresponding to a red traffic light color, a pass-allowed signal corresponding to a green traffic light color, and a warning signal corresponding to a yellow traffic light color. The area where the target traffic light is located refers to the area within a preset range where the target traffic light is located, such as the area within 5 meters of the target traffic light.
[0055] Among them, the traffic vehicle information in the area where the target traffic light is located may include one or more of the following information: vehicle speed, traffic flow, etc.; the vehicle speed is determined based on the driving speed of the vehicles in the area where the target traffic light is located and controlled by the target traffic light. Traffic flow refers to the traffic flow in the area where the target traffic light is located and controlled by the target traffic light. Each traffic light signal corresponds to a configuration duration, such as 30s, 40s, etc. Specifically, the current traffic vehicle information within the preset range where the target traffic light is located and controlled by the target traffic light, as well as the current configuration duration of the traffic light signal of the target traffic light, is obtained.
[0056] Here, not all vehicles within the preset range of the target traffic light are controlled by the target traffic light. For example, vehicles behind the target traffic light need to be controlled by the target traffic light in order to improve timing accuracy.
[0057] Specifically, the vehicle speed in the area where the target traffic light is located can be obtained in the following two ways:
[0058] The first method is: obtaining the speeds of all vehicles within a preset range where a target traffic light is located and controlled by the target traffic light; and determining the average speed of all vehicles as the vehicle speed in the area where the target traffic light is located.
[0059] Example 1: Vehicles within the preset range of the target traffic light and controlled by the target traffic light include vehicle A, vehicle B, and vehicle C. The speed of vehicle A is a, the speed of vehicle B is b, and the speed of vehicle C is c. The vehicle speed in the target traffic light area = (a+b+c) / 3.
[0060] The second method is to obtain the speed of all vehicles within the preset range of the target traffic light and controlled by the target traffic light; and determine the weighted value of the speed of all vehicles as the speed of vehicles in the area where the target traffic light is located. The closer the vehicle is to the target traffic light, the greater the weight value corresponding to the vehicle's speed.
[0061] Example 2: Vehicles within the preset range of the target traffic light and controlled by the target traffic light include vehicle A, vehicle B and vehicle C. The speed of vehicle A is a, the speed of vehicle B is b, the speed of vehicle C is c, the distance between vehicle A and the target traffic light is d1, the distance between vehicle B and the target traffic light is d2, the distance between vehicle C and the target traffic light is d3, and d2>d1>d3, then the vehicle speed in the area where the target traffic light is located = a*w1+b*w2+c*w3; where w1 is the weight value corresponding to the speed of vehicle A, w2 is the weight value corresponding to the speed of vehicle B, w3 is the weight value corresponding to the speed of vehicle C, and w2 <w1<w3。
[0062] S102, performing fuzzy reasoning according to traffic vehicle information and preset fuzzy rules corresponding to traffic light signals in various timing modes, and obtaining the membership degree of the traffic light signals in various timing modes.
[0063] In the implementation mode of the present application, fuzzy reasoning is performed based on input conditions and preset fuzzy rules in the fuzzy rule base to obtain output actions. The embodiment S102 of the present application uses the Mamdani fuzzy reasoning algorithm for fuzzy reasoning, and then obtains the membership of the traffic light signal under each timing mode. The input condition is the traffic vehicle information; for each preset fuzzy rule corresponding to each timing mode, the fuzzy relationship Ri=Ai×Bi×Ci is defined, where Ai and Bi can represent each traffic vehicle information, and Ci is the configuration duration t of the traffic light signal under each timing mode. Given the membership of the traffic vehicle information under each fuzzy set in the preset fuzzy rule, it can refer to the membership of the vehicle speed μA(v) and the membership of the traffic flow μB(f); the membership μC(t) of the output t (configuration duration under each timing mode) is calculated through fuzzy reasoning, and the process of calculating the membership μC(t) is specifically the product of the membership of all traffic vehicle information, which can refer to μA(v)*μB(f) here.
[0064] Here, the preset fuzzy rules corresponding to each timing mode are used to describe the timing conditions corresponding to the traffic light signal under each timing mode; the membership degree of the traffic light signal under each timing mode refers to the degree to which the traffic vehicle information satisfies the preset fuzzy rules corresponding to the traffic light signal under each timing mode.
[0065] Among them, the pre-configured fuzzy rule base contains preset fuzzy rules corresponding to each traffic light signal under each timing mode; different traffic light signals correspond to different preset fuzzy rules under each timing mode. The timing modes include extending the configuration duration mode, keeping the configuration duration unchanged mode and shortening the configuration duration mode. The extending configuration duration mode refers to extending the configuration duration of the traffic light signal, keeping the configuration duration unchanged mode refers to keeping the current configuration duration of the traffic light signal unchanged, and shortening the configuration duration mode refers to shortening the configuration duration of the traffic light signal.
[0066] Example 3, in the scenario where the traffic light signal is a signal to allow passage, according to the traffic vehicle information and the preset fuzzy rules corresponding to the traffic light signal in each timing mode, the membership of the traffic light signal in each timing mode is calculated, including: according to the traffic light vehicle information and the preset fuzzy rules corresponding to the signal to allow passage in the extended configuration duration mode, the membership of the signal to allow passage in the extended configuration duration mode is calculated; according to the traffic light vehicle information and the preset fuzzy rules corresponding to the signal to allow passage in the kept configuration duration mode, the membership of the signal to allow passage in the kept configuration duration mode is calculated; according to the traffic light vehicle information and the preset fuzzy rules corresponding to the signal to allow passage in the shortened configuration duration mode, the membership of the signal to allow passage in the shortened configuration duration mode is calculated.
[0067] Example 4, in the scenario where the traffic light signal is a no-pass signal, according to the traffic vehicle information and the preset fuzzy rules corresponding to the traffic light signal in each timing mode, the membership of the traffic light signal in each timing mode is calculated, including: according to the traffic light vehicle information and the preset fuzzy rules corresponding to the no-pass signal in the extended configuration duration mode, the membership of the no-pass signal in the extended configuration duration mode is calculated; according to the traffic light vehicle information and the preset fuzzy rules corresponding to the no-pass signal in the keep configuration duration mode, the membership of the no-pass signal in the keep configuration duration mode is calculated; according to the traffic light vehicle information and the preset fuzzy rules corresponding to the no-pass signal in the shortened configuration duration mode, the membership of the no-pass signal in the shortened configuration duration mode is calculated.
[0068] Example 5. In the scenario where the traffic light signal is a warning signal, according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signal in each timing mode, the membership of the traffic light signal in each timing mode is calculated, including: according to the preset fuzzy rules corresponding to the traffic light vehicle information and the warning signal in the extended configuration duration mode, the membership of the warning signal in the extended configuration duration mode is calculated; according to the preset fuzzy rules corresponding to the traffic light vehicle information and the warning signal in the kept configuration duration mode, the membership of the warning signal in the kept configuration duration mode is calculated; according to the preset fuzzy rules corresponding to the traffic light vehicle information and the warning signal in the shortened configuration duration mode, the membership of the warning signal in the shortened configuration duration mode is calculated.
[0069] Furthermore, the membership degree of the traffic light signal under each timing mode is calculated by the following steps:
[0070] Step 1: for the preset fuzzy rules corresponding to the traffic light signal in each timing mode, according to the membership function corresponding to each fuzzy set in the preset fuzzy rules, calculate the membership of the traffic vehicle information under each fuzzy set; the preset fuzzy rules include the fuzzy sets to which the traffic vehicle information belongs.
[0071] In the implementation manner of the present application, the traffic vehicle information is substituted into the membership function corresponding to each fuzzy set under the preset fuzzy rule to obtain the membership of the traffic vehicle information under each fuzzy set.
[0072] Here, each traffic vehicle information corresponds to at least one fuzzy set, such as the fuzzy set corresponding to vehicle speed can include a slow fuzzy set, a medium fuzzy set and a fast fuzzy set, and the fuzzy set corresponding to vehicle flow can include a large vehicle flow fuzzy set, a medium vehicle flow fuzzy set and a small vehicle flow fuzzy set. The preset fuzzy rules include at least one fuzzy set to which the traffic vehicle information belongs. Different fuzzy sets correspond to different membership functions; the membership function corresponding to each fuzzy set is used to describe the degree to which the traffic vehicle information belongs to each fuzzy set.
[0073] Example 6, in the scenario where the traffic light signal is a signal to allow passage: the preset fuzzy rule corresponding to the method of extending the configuration time may be: the fuzzy set corresponding to the vehicle speed is a slow fuzzy set, and the fuzzy set corresponding to the vehicle flow is a large vehicle flow fuzzy set; the preset fuzzy rule corresponding to the method of keeping the configuration time unchanged may be: the fuzzy set corresponding to the vehicle speed is a medium-speed fuzzy set, and the fuzzy set corresponding to the vehicle flow is a medium vehicle flow fuzzy set; the preset fuzzy rule corresponding to the method of shortening the configuration time may be: the fuzzy set corresponding to the vehicle speed is a fast fuzzy set, and the fuzzy set corresponding to the vehicle flow is a small vehicle flow fuzzy set.
[0074] Example 7. Based on Example 6, calculating the membership of traffic vehicle information under a fuzzy set includes: substituting the traffic vehicle information into the membership function corresponding to the slow fuzzy set to obtain the membership of the traffic vehicle information under the slow fuzzy set; substituting the traffic vehicle information into the membership function corresponding to the large vehicle flow fuzzy set to obtain the membership of the traffic vehicle information under the large vehicle flow fuzzy set.
[0075] Furthermore, the membership function can be a Gaussian function, a trapezoidal function, etc.; the function parameters in the membership function corresponding to the vehicle speed under each fuzzy set are determined based on the speed domain corresponding to the vehicle speed, and the speed domain refers to the numerical range of the vehicle speed. The function parameters in the membership function corresponding to the vehicle flow under each fuzzy set are determined based on the vehicle flow domain corresponding to the vehicle flow, and the vehicle flow domain refers to the numerical range of the vehicle flow.
[0076] Taking the Gaussian function as an example, assuming that the vehicle speed The speed domain is p[0,120], the unit is km / h, and the membership function corresponding to the slow fuzzy set is:
[0077] ;
[0078] in, is the vehicle speed The corresponding fuzzy set is the membership of the slow fuzzy set, is the natural exponential function, is the first function parameter (here the value is 20), The second function parameter (here the value is 30).
[0079] Taking the Gaussian function as an example, assuming that the vehicle speed The speed domain is p[0,120], the unit is km / h, and the membership function corresponding to the medium speed fuzzy set is:
[0080] ;
[0081] in, is the vehicle speed The corresponding fuzzy set is the membership of the slow fuzzy set, is the natural exponential function, is the first function parameter (here the value is 20), The third function parameter (here the value is 60).
[0082] Taking the Gaussian function as an example, assuming that the vehicle speed The speed domain is p[0,120], the unit is km / h, and the membership function corresponding to the fast fuzzy set is:
[0083] ;
[0084] in, is the vehicle speed The corresponding fuzzy set is the membership of the slow fuzzy set, is the natural exponential function, is the first function parameter (here the value is 20), The fourth function parameter (here the value is 90).
[0085] Step 2: According to the membership of traffic vehicle information under each fuzzy set, determine the membership of the traffic light signal under the timing mode.
[0086] Specifically, if the preset fuzzy rule includes multiple fuzzy sets, the product of the membership degrees of the traffic vehicle information under all fuzzy sets is determined as the membership degree of the traffic light signal under the timing mode.
[0087] Example 8. Based on Example 6, assume that the vehicle speed has a membership of 0.8 in the "slow fuzzy set", a membership of 0.2 in the "medium speed fuzzy set", and a membership of 0 in the "fast fuzzy set"; the traffic flow has a membership of 0.9 in the "large vehicle flow fuzzy set", a membership of 0.1 in the "medium vehicle flow fuzzy set", and a membership of 0 in the "small vehicle flow fuzzy set"; then the traffic light signal has a membership of 0.8*0.9=0.72 when the configuration time is extended; the traffic light signal has a membership of 0.2*0.1=0.02 when the configuration time is kept unchanged; the traffic light signal has a membership of 0*0=0 when the configuration time is shortened.
[0088] Specifically, if the preset fuzzy rule includes a fuzzy set, the degree of membership of the traffic vehicle information under the fuzzy set is determined as the degree of membership of the traffic light signal under the timing mode.
[0089] S103. Perform a weighted average of the membership of the traffic light signal under all timing modes to perform defuzzification to obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal under each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration.
[0090] In the implementation manner of the present application, step S103 is a defuzzification process, which is a process of converting the result of fuzzy reasoning into a specific control signal (here, the target configuration duration). In this embodiment, a weighted average method is used for defuzzification.
[0091] Here, the timing domain corresponding to the traffic light signal refers to the numerical range of the configuration duration of the traffic light signal.
[0092] Furthermore, the weights corresponding to the membership of the traffic light signal under each timing mode are determined by the following steps: the maximum value in the timing domain corresponding to the traffic light signal is determined as the weight corresponding to the membership under the mode of extending the configuration duration; and the current configuration duration is determined as the weight corresponding to the membership under the mode of keeping the configuration duration unchanged; the minimum value in the timing domain corresponding to the traffic light signal is determined as the weight corresponding to the membership under the mode of shortening the configuration duration.
[0093] Example 9: Based on Example 8, assume that the timing domain corresponding to the Go signal is [10,60] (unit: seconds), and the current configuration duration of the Go signal is 30s. Then the target configuration duration of the Go signal is s.
[0094] Furthermore, the traffic light signal of the target traffic light is controlled according to the target configuration duration.
[0095] Reference Figure 2 As shown, it is a flow chart of another method for timing a traffic light signal provided in an embodiment of the present application. The exemplary steps of the embodiment of the present application are described below:
[0096] S201. For the preset fuzzy rules corresponding to the traffic light signal in each timing mode, the membership of the traffic vehicle information under each fuzzy set is calculated according to the membership function corresponding to each fuzzy set in the preset fuzzy rules; the preset fuzzy rules include at least one fuzzy set to which the traffic vehicle information belongs.
[0097] S202: Determine the degree of membership of the traffic light signal under the timing mode according to the degree of membership of the traffic vehicle information under each fuzzy set.
[0098] The embodiment of the present application provides another method for timing of traffic light signals, which can determine the membership of traffic light signals under various timing modes.
[0099] Based on the same inventive concept, an embodiment of the present application also provides a traffic light signal timing device corresponding to the traffic light signal timing method. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned traffic light signal timing method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0100] Reference Figure 3 FIG. 1 is a schematic diagram of a traffic light signal timing device provided in an embodiment of the present application, wherein the traffic light signal timing device includes:
[0101] An acquisition module 301 is used to acquire current traffic vehicle information in the area where the target traffic light is located, and a current configuration duration of the traffic light signal of the target traffic light;
[0102] The reasoning module 302 is used to perform fuzzy reasoning according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signal in each timing mode, and obtain the membership degree of the traffic light signal in each timing mode;
[0103] The defuzzification module 303 is also used to perform weighted averaging of the membership of the traffic light signal under all timing modes to perform defuzzification to obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal under each timing mode is determined based on the timing domain corresponding to the traffic light signal and the current configuration duration.
[0104] In a possible implementation, the reasoning module 302 is specifically used to calculate the membership of traffic vehicle information under each fuzzy set according to the membership function corresponding to each fuzzy set in the preset fuzzy rule for the traffic light signal under each timing mode; the preset fuzzy rule includes at least one fuzzy set to which the traffic vehicle information belongs; and according to the membership of the traffic vehicle information under each fuzzy set, the membership of the traffic light signal under the timing mode is determined.
[0105] In a possible implementation, the reasoning module 302 is specifically configured to determine the product of the membership of the traffic vehicle information under all fuzzy sets as the membership of the traffic light signal under the timing mode if the preset fuzzy rule includes multiple fuzzy sets.
[0106] In a possible implementation, the reasoning module 302 is specifically configured to determine the membership of the traffic vehicle information under the fuzzy set as the membership of the traffic light signal under the timing mode if the preset fuzzy rule includes a fuzzy set.
[0107] In a possible implementation manner, the time matching method includes a method of extending the configuration duration, a method of keeping the configuration duration unchanged, and a method of shortening the configuration duration.
[0108] In one possible implementation, the defuzzification module 303 is specifically used to determine the maximum value in the timing domain corresponding to the traffic light signal as the weight corresponding to the membership in a method of extending the configuration duration; and determine the current configuration duration as the weight corresponding to the membership in a method of keeping the configuration duration unchanged; and determine the minimum value in the timing domain corresponding to the traffic light signal as the weight corresponding to the membership in a method of shortening the configuration duration.
[0109] In a possible implementation, the device further includes: a control module 304;
[0110] The control module 304 is used to control the traffic light signal of the target traffic light according to the target configuration duration.
[0111] The embodiment of the present application provides a timing device for traffic light signals, which includes: an acquisition module 301, which is used to obtain the current traffic vehicle information in the area where the target traffic light is located, and the current configuration duration of the traffic light signal of the target traffic light; an inference module 302, which is used to perform fuzzy inference according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signal in each timing mode, and obtain the membership of the traffic light signal in each timing mode; a defuzzification module 303, which is also used to perform weighted averaging of the membership of the traffic light signal in all timing modes, so as to perform defuzzification and obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal in each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration. Through the method of the embodiment of the present application, the duration of the traffic light signal can be flexibly configured according to the traffic vehicle information, meet the vehicle traffic needs, and improve the road traffic efficiency and resource utilization.
[0112] like Figure 4 As shown, an electronic device 400 provided in an embodiment of the present application includes: a processor 401, a memory 402 and a bus, the memory 402 stores machine-readable instructions executable by the processor 401, when the electronic device is running, the processor 401 and the memory 402 communicate through the bus, and the processor 401 executes the machine-readable instructions to perform the steps of the timing method of the traffic light signal as mentioned above.
[0113] Specifically, the above-mentioned memory 402 and processor 401 can be general-purpose memory and processor, which are not specifically limited here. When the processor 401 runs the computer program stored in the memory 402, the above-mentioned traffic light signal timing method can be executed.
[0114] Corresponding to the above-mentioned traffic light signal timing method, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned traffic light signal timing method are executed.
[0115] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0116] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0117] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0118] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the information processing method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0119] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A traffic light signal timing method, characterized in that: The method comprises: Acquire current traffic vehicle information in the area where the target traffic light is located, and the current configuration duration of the traffic light signal of the target traffic light; the traffic vehicle information includes vehicle speed and traffic volume; Performing fuzzy reasoning according to the traffic vehicle information and the preset fuzzy rules corresponding to the traffic light signal in each timing mode, to obtain the membership degree of the traffic light signal in each timing mode; Among them, the timing mode includes a mode of extending the configuration time, a mode of keeping the configuration time unchanged, and a mode of shortening the configuration time; the preset fuzzy rule corresponding to the mode of extending the configuration time is that the fuzzy set corresponding to the vehicle speed is a slow fuzzy set, and the fuzzy set corresponding to the vehicle flow is a large vehicle flow fuzzy set; the preset fuzzy rule corresponding to the mode of keeping the configuration time unchanged is that the fuzzy set corresponding to the vehicle speed is a medium-speed fuzzy set, and the fuzzy set corresponding to the vehicle flow is a medium vehicle flow fuzzy set; the preset fuzzy rule corresponding to the mode of shortening the configuration time is that the fuzzy set corresponding to the vehicle speed is a fast fuzzy set, and the fuzzy set corresponding to the vehicle flow is a small vehicle flow fuzzy set; The membership of the traffic light signal under all timing modes is weighted averaged to perform defuzzification to obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal under each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration; In the preset fuzzy rules, each piece of traffic vehicle information corresponds to a fuzzy set to which the traffic vehicle information belongs; different fuzzy sets correspond to different membership functions; the membership function corresponding to the fuzzy set is used to describe the degree to which the traffic vehicle information belongs to the fuzzy set; The fuzzy reasoning is performed according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signal in each timing mode to obtain the membership of the traffic light signal in each timing mode, including: for the preset fuzzy rules corresponding to the traffic light signal in each timing mode, substituting each traffic vehicle information into the membership function corresponding to the fuzzy set in the preset fuzzy rules to obtain the membership of each traffic vehicle information in the fuzzy set corresponding to the preset fuzzy rules; determining the membership of the traffic light signal in the timing mode according to the membership of all traffic vehicle information in the fuzzy set corresponding to the preset fuzzy rules; The weights corresponding to the membership of the traffic light signal under each timing mode are determined by the following steps: the maximum value in the timing domain corresponding to the traffic light signal is determined as the weight corresponding to the membership under the mode of extending the configuration duration; the current configuration duration is determined as the weight corresponding to the membership under the mode of keeping the configuration duration unchanged; and the minimum value in the timing domain corresponding to the traffic light signal is determined as the weight corresponding to the membership under the mode of shortening the configuration duration.
2. The traffic light signal timing method according to claim 1, characterized in that: The step of determining the degree of membership of the traffic light signal under the timing mode according to the degree of membership of the fuzzy set corresponding to the preset fuzzy rule of all traffic vehicle information includes: If the preset fuzzy rule includes a plurality of fuzzy sets corresponding to traffic vehicle information, the product of the membership degrees of all traffic vehicle information under the corresponding fuzzy sets is determined as the membership degree of the traffic light signal under the timing mode.
3. The traffic light signal timing method according to claim 1, characterized in that: The determining the degree of membership of the traffic light signal under the timing mode according to the degree of membership of all traffic vehicle information under the fuzzy set corresponding to the preset fuzzy rule also includes: If the preset fuzzy rule includes a fuzzy set corresponding to the traffic vehicle information, the membership degree of the traffic vehicle information under the corresponding fuzzy set is determined as the membership degree of the traffic light signal under the timing mode.
4. The traffic light signal timing method according to claim 1, characterized in that: The method further comprises: The traffic light signal of the target traffic light is controlled according to the target configuration duration.
5. A traffic light signal timing device, characterized in that: The device comprises: An acquisition module, used to acquire current traffic vehicle information in the area where the target traffic light is located, and the current configuration duration of the traffic light signal of the target traffic light; the traffic vehicle information includes vehicle speed and traffic volume; An inference module, for performing fuzzy inference according to the preset fuzzy rules corresponding to the traffic vehicle information and the traffic light signal in each timing mode, and obtaining the membership degree of the traffic light signal in each timing mode; wherein the timing mode includes a mode of extending the configuration duration, a mode of keeping the configuration duration unchanged, and a mode of shortening the configuration duration; the preset fuzzy rule corresponding to the mode of extending the configuration duration is that the fuzzy set corresponding to the vehicle speed is a slow fuzzy set, and the fuzzy set corresponding to the vehicle flow is a large vehicle flow fuzzy set; the preset fuzzy rule corresponding to the mode of keeping the configuration duration unchanged is that the fuzzy set corresponding to the vehicle speed is a medium-speed fuzzy set, and the fuzzy set corresponding to the vehicle flow is a medium vehicle flow fuzzy set; the preset fuzzy rule corresponding to the mode of shortening the configuration duration is that the fuzzy set corresponding to the vehicle speed is a fast fuzzy set, and the fuzzy set corresponding to the vehicle flow is a small vehicle flow fuzzy set; A defuzzification module, used for performing weighted averaging of the membership of the traffic light signal under all timing modes to perform defuzzification to obtain the target configuration duration of the traffic light signal; the weight corresponding to the membership of the traffic light signal under each timing mode is determined according to the timing domain corresponding to the traffic light signal and the current configuration duration; In the preset fuzzy rules, each piece of traffic vehicle information corresponds to a fuzzy set to which the traffic vehicle information belongs; different fuzzy sets correspond to different membership functions; the membership function corresponding to the fuzzy set is used to describe the degree to which the traffic vehicle information belongs to the fuzzy set; The reasoning module is specifically used for substituting each traffic vehicle information into the membership function corresponding to the fuzzy set corresponding to the preset fuzzy rule in each timing mode, and obtaining the membership of each traffic vehicle information under the fuzzy set corresponding to the preset fuzzy rule; and determining the membership of the traffic light signal under the timing mode according to the membership of all traffic vehicle information under the fuzzy set corresponding to the preset fuzzy rule; The defuzzification module is specifically used to determine the weight corresponding to the membership of the traffic light signal under each timing mode through the following steps: determining the maximum value in the timing domain corresponding to the traffic light signal as the weight corresponding to the membership under the mode of extending the configuration duration; and determining the current configuration duration as the weight corresponding to the membership under the mode of keeping the configuration duration unchanged; and determining the minimum value in the timing domain corresponding to the traffic light signal as the weight corresponding to the membership under the mode of shortening the configuration duration.
6. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the traffic light signal timing method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the traffic light signal timing method according to any one of claims 1 to 4 are executed.
Citation Information
Patent Citations
Multi-emergency vehicle signal priority control device at single-point signalized crossing
CN101901549A
Intersection traffic signal control method based on fuzzy reinforcement learning
CN118711386A