Tunnel light control method and device, electronic equipment and computer storage medium
By obtaining the traffic flow and vehicle speed data at the entrance of the tunnel, combining external brightness values, fuzzy control and PSO-PID algorithm are used to adjust the brightness of the lights in the tunnel, solving the problem that the existing technology cannot intelligently adjust the tunnel lighting, and achieving intelligent adjustment of brightness and energy conservation reduce the risk of traffic accidents.
Patent Information
- Application Number
- CN202411532008.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-07
AI Technical Summary
The existing tunnel lighting control methods cannot intelligently adjust the light intensity based on traffic flow, vehicle speed and external lighting conditions, resulting in energy waste and driving safety risks.
By obtaining the traffic data, vehicle speed and external brightness values at the entrance of the tunnel, determining the initial light value and reduction coefficient, the fuzzy control strategy and PSO-PID algorithm are used to adjust the power of the light emitting device to achieve intelligent adjustment of the light brightness.
It realizes intelligently adjusting the brightness of lights in different locations in the tunnel according to actual conditions, saving energy and reducing the risk of traffic accidents.
Smart Images

Figure CN119277592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to a tunnel lighting control method, device, electronic equipment and computer storage medium. Background Art
[0002] With the continuous development of infrastructure, there are many tunnels in mountainous areas and within cities. The lighting control in the tunnel is related to driving safety and needs to be paid attention to.
[0003] Existing tunnel lighting control methods generally use manual control or timed control, usually manually controlling or timing the switch of the lighting coefficient in the tunnel. It is impossible to intelligently adjust the lighting conditions at different locations in the tunnel according to the traffic volume, speed and lighting conditions outside the tunnel. The light intensity at all locations in the tunnel is consistent, resulting in energy waste or insufficient lighting, and even affecting driving safety.
[0004] It can be seen that the existing technology is unable to intelligently control the lighting in the tunnel, resulting in energy waste and even technical problems that affect driving safety. Summary of the invention
[0005] In view of this, it is necessary to provide a tunnel lighting control method, device, electronic device and computer storage medium to solve the technical problems that the existing technology cannot intelligently control the lighting in the tunnel, there is energy waste, and even affects driving safety.
[0006] In order to solve the above problems, the present invention provides a tunnel lighting control method, comprising: Obtain traffic flow data at the tunnel entrance, vehicle speed, and brightness value outside the tunnel; Determine the initial value of the light brightness inside the tunnel and the reduction coefficient of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel, wherein the reduction coefficient is used to gradually adjust the light brightness at different positions in the tunnel; The initial value of the light brightness is adjusted based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel.
[0007] In a possible implementation manner, the obtaining of the traffic flow data at the tunnel entrance, the speed of the vehicle, and the brightness value outside the tunnel includes: Collect vehicle videos at the tunnel entrance, use a preset target detection algorithm to identify the vehicle videos, and determine the traffic flow data and vehicle speed at the tunnel entrance; The light intensity sensor outside the tunnel collects the brightness value outside the tunnel.
[0008] In a possible implementation manner, determining the initial value of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle, and the brightness value outside the tunnel includes: Based on the traffic flow data, the speed of the vehicle, and the corresponding relationship between the brightness value outside the tunnel and the brightness of the light inside the tunnel, the initial value of the light brightness at each position inside the tunnel is determined.
[0009] In a possible implementation manner, determining the reduction coefficient of the light brightness inside the tunnel includes: Determining an initial reduction coefficient of the tunnel light brightness based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel; The initial reduction coefficient is adjusted by adopting a fuzzy control strategy to obtain a target reduction coefficient.
[0010] In a possible implementation manner, the adopting a fuzzy control strategy to adjust the initial reduction coefficient to obtain a target reduction coefficient includes: A first-order low-pass filter is used to smooth the initial reduction coefficient. The expression of the first-order low-pass filter is as follows:
[0011] in, is the transfer function of the first-order low-pass filter, s is the complex frequency variable, is the cutoff frequency of the first-order low-pass filter; The cutoff frequency is adjusted by using a preset fuzzy rule based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel to obtain a target cutoff frequency, and the initial reduction coefficient is smoothed by using a target first-order low-pass filter corresponding to the target cutoff frequency to obtain a target reduction coefficient.
[0012] In a possible implementation manner, adjusting the initial value of the light brightness based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel includes: The power of each light emitting device is adjusted according to the target reduction coefficient and the position of each light emitting device in the tunnel, so that the light brightness at the position where the light emitting device is located is the target light brightness.
[0013] In a possible implementation, the method further includes: Get the actual light brightness at each location in the tunnel; Based on the actual light brightness and the target light brightness, the PSO-PID control algorithm is used to adjust the power of each of the light-emitting devices to ensure that the difference between the actual light brightness and the target light brightness is within a preset range.
[0014] The present invention also provides a tunnel lighting control device, comprising: A data acquisition module is used to acquire the traffic flow data at the tunnel entrance, the speed of the vehicle and the brightness value outside the tunnel; A reduction coefficient calculation module, used to determine the initial value of the light brightness inside the tunnel and the reduction coefficient of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel, and the reduction coefficient is used to gradually adjust the light brightness at different positions in the tunnel; The brightness adjustment module is used to adjust the initial value of the light brightness based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel.
[0015] The present invention also provides an electronic device, comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the tunnel light control method described in any one of the above embodiments.
[0016] The present invention also provides a computer-readable storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the steps of the tunnel light control method described in any of the above embodiments.
[0017] The beneficial effects of the present invention are as follows: the tunnel lighting control method provided by the present invention determines the initial value of the lighting brightness inside the tunnel and the reduction coefficient of the lighting brightness based on the traffic flow data at the tunnel entrance, the vehicle speed and the brightness value outside the tunnel, and adjusts the lighting brightness at various positions in the tunnel by the reduction coefficient. The lighting brightness at different positions in the tunnel can be intelligently adjusted according to actual conditions under different traffic flows and speeds, thereby ensuring that the lighting brightness at different positions in the tunnel is appropriate, saving energy and reducing the risk of traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A schematic diagram of a flow chart of a tunnel lighting control method provided by an embodiment of the present invention; Figure 2 A schematic diagram of the structure of a tunnel lighting control system provided by an embodiment of the present invention; Figure 3 A schematic diagram of a flow chart of a brightness value acquisition method provided by an embodiment of the present invention; Figure 4 A graph showing the relationship between the initial value of light brightness and vehicle speed provided by an embodiment of the present invention; Figure 5 A schematic flow chart of a method for determining a target reduction coefficient provided by an embodiment of the present invention; Figure 6 A smoothing effect diagram corresponding to different cutoff frequencies provided by an embodiment of the present invention; Figure 7 A schematic diagram of a fuzzy system structure provided by an embodiment of the present invention; Figure 8 A flow chart of a PSO-PID control method provided by an embodiment of the present invention; Fig. 9 A schematic diagram of the structure of a PSO-PID control system provided by an embodiment of the present invention; Fig.10 A schematic diagram of the structure of a tunnel lighting control device provided by an embodiment of the present invention; Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the present invention and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0021] The descriptions of "first", "second", etc. involved in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0022] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0023] A specific embodiment of the present invention, as Figure 1 As shown, a tunnel lighting control method is disclosed, comprising: S101, obtaining traffic flow data at a tunnel entrance, vehicle speeds, and brightness values outside the tunnel; S102, determining an initial value of the light brightness inside the tunnel and a reduction coefficient of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel, the reduction coefficient being used to gradually adjust the light brightness at different positions in the tunnel; S103, adjusting the initial value of the light brightness based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel.
[0024] In the embodiment of the present invention, the control of the lights inside the tunnel is carried out by collecting the traffic flow data at the tunnel entrance, the speed of the vehicle and the brightness value outside the tunnel, and combining the following: Figure 2 The tunnel lighting control system shown controls the lights at various locations in the tunnel. Specifically, the tunnel lighting control system includes an environmental data acquisition module, an on-site control unit module, a lighting control module, a remote communication module, and a remote monitoring system module. Among them, the environmental data acquisition module uses multiple sensing devices, namely, a video camera to monitor vehicle speed and flow, a brightness sensor responsible for collecting the brightness outside the tunnel, and a brightness sensor for measuring the brightness inside the tunnel. The data collected by these sensors are preliminarily processed by the data collector and then sent to the on-site main controller using the CAN communication bus. The controller further transmits the information to the remote monitoring center through the high-speed 5G communication network to achieve remote transmission and real-time monitoring of data; the control unit module at the tunnel site is composed of a core controller and a dimmer, which is responsible for regulating the lighting equipment. In view of the complexity of the lighting environment in the tunnel and its high demand for energy, the core controller is designed to be able to Different control strategies are switched according to the diversity of lighting conditions. In order to cope with various scenarios that may be encountered in tunnel lighting, four control strategies are provided: intelligent mode, automatic mode, manual mode and fault mode. These modes are selected and switched according to established priorities and specific activation conditions; the lighting control module is composed of LED lighting equipment and its driving power supply. The lighting circuits of each lighting section of the tunnel are managed by the dimming controller to adjust the brightness level of the tunnel lighting. The remote communication module serves as a data exchange link between the site and the remote monitoring center. The remote communication module is responsible for transmitting the data, control commands and equipment operating status collected at the tunnel site to the remote monitoring system. The remote monitoring system module ensures the safe operation of the tunnel lighting system through effective management and supervision measures. The system can capture and process information such as lighting conditions, traffic flow and equipment working status in the tunnel in real time, and respond to various situations in real time, thereby maintaining the normal operation of the lighting system.
[0025] The tunnel lighting control method provided by the present invention determines the initial value of the lighting brightness inside the tunnel and the reduction coefficient of the lighting brightness based on the traffic flow data at the tunnel entrance, the vehicle speed and the brightness value outside the tunnel, and adjusts the lighting brightness at various positions in the tunnel by the reduction coefficient. The lighting brightness at different positions in the tunnel can be intelligently adjusted according to actual conditions under different traffic flows and speeds, thereby ensuring that the lighting brightness at different positions in the tunnel is appropriate, saving energy and reducing the risk of traffic accidents.
[0026] As a possible implementation mode of the present invention, in this implementation mode, Figure 3 As shown, the traffic flow data at the tunnel entrance, the vehicle speed and the brightness value outside the tunnel are obtained, including: S301, collecting vehicle videos at the tunnel entrance, using a preset target detection algorithm to identify the vehicle videos, and determining the traffic flow data and vehicle speeds at the tunnel entrance; S302: Collect the brightness value outside the tunnel based on the light intensity sensor outside the tunnel.
[0027] In an embodiment of the present invention, a video acquisition device is provided at the entrance of the tunnel, and the video acquisition device is integrated with a target detection algorithm for identifying and tracking vehicles in the collected vehicle video, and then calculating the traffic flow data and vehicle speed at the entrance of the tunnel, wherein the target detection algorithm may be a YOLOv5+Deepsort algorithm. The brightness value outside the tunnel may be obtained using a light intensity sensor provided outside the tunnel.
[0028] Furthermore, determining the initial value of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel includes: Based on the traffic flow data, the speed of the vehicle, and the corresponding relationship between the brightness value outside the tunnel and the brightness of the lights inside the tunnel, the initial value of the light brightness at each position inside the tunnel is determined.
[0029] In the embodiment of the present invention, different traffic flow data, vehicle speeds, and brightness values outside the tunnel are provided with corresponding initial values of the brightness of lights at various locations inside the tunnel, for example, Figure 4 As shown, this is a graph showing the relationship between the initial value of the light brightness inside the tunnel and the vehicle speed when the brightness value outside the tunnel is 4000. The faster the vehicle speed, the greater the initial value of the light brightness inside the tunnel. Therefore, the initial value of the light brightness at each position inside the tunnel can be obtained based on the relationship between the preset initial value of the light brightness inside the tunnel and the brightness value outside the tunnel, the vehicle flow rate, and the vehicle speed.
[0030] Further, such as Figure 5 As shown in the figure, the reduction factor of the light brightness inside the tunnel is determined, including: S501, determining an initial reduction coefficient of tunnel light brightness based on traffic flow data, vehicle speeds, and brightness values outside the tunnel; S502, using a fuzzy control strategy to adjust the initial reduction coefficient to obtain a target reduction coefficient.
[0031] The setting of the reduction coefficient is closely related to the traffic volume and speed of the tunnel. In actual operation, after obtaining the tunnel traffic volume and speed data, the initial reduction coefficient is generally determined according to the maximum speed in the corresponding speed range. In the embodiment of the present invention, after determining the initial reduction coefficient, the fuzzy control strategy can be used to adjust the initial reduction coefficient to obtain the target reduction coefficient.
[0032] Specifically, the fuzzy control strategy is used to adjust the initial reduction coefficient to obtain the target reduction coefficient, including: A first-order low-pass filter is used to smooth the initial reduction coefficient. The expression of the first-order low-pass filter is as follows:
[0033] in, is the transfer function of the first-order low-pass filter, s is the complex frequency variable, is the cutoff frequency of the first-order low-pass filter; Based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel, the cutoff frequency is adjusted using a preset fuzzy rule to obtain the target cutoff frequency. The initial reduction coefficient is smoothed using a target first-order low-pass filter corresponding to the target cutoff frequency to obtain the target reduction coefficient.
[0034] In the implementation of the present invention, the initial reduction coefficient is a step-like reduction coefficient, which cannot finely adjust the lighting in the tunnel. For example, when the vehicle speed is 81 km / h and 100 km / h, the same reduction coefficient is used, and the tunnel lighting cannot be finely adjusted, resulting in redundancy in brightness. In addition, when the vehicle speed increases from 79 km / h to 81 km / h, the sudden change in the reduction coefficient may cause a sudden change in lighting brightness. This rapid change in brightness may temporarily interfere with the driver's visual adaptation, causing temporary unclear road conditions, which is particularly dangerous in vehicles traveling at high speeds.
[0035] In the embodiment of the present invention, when the initial reduction coefficient is adjusted, a first-order low-pass filter may be used to smooth the initial reduction coefficient. The expression of the first-order low-pass filter is as follows:
[0036] in, is the transfer function of the first-order low-pass filter, s is the complex frequency variable, is the cutoff frequency of a first-order low-pass filter.
[0037] The step signal is transformed into a smooth curve after being processed by a low-pass filter. It is worth noting that Figure 6 As shown, selecting different cutoff frequencies will result in different degrees of smoothing effects. Specifically, as the value decreases, the smoothing degree of the step signal is significantly improved. Therefore, the smoothing degree of the reduction factor can be adjusted by adjusting the cutoff frequency.
[0038] Furthermore, the reduction factor is closely related to vehicle speed and traffic volume. However, this relationship is not always linear or clear, but has certain uncertainty and ambiguity. Therefore, in this case, the fuzzy logic method is used to adjust the value of the cutoff frequency, and then obtain a more refined reduction factor. The purpose is to make the brightness adjustment of the tunnel lighting smoother as the number of vehicles increases and the speed increases. Specifically, the fuzzy system is like Figure 7 As shown in Figure 1, it is a fuzzy system with two inputs and a single output.
[0039] In the embodiment of the present invention, when the fuzzy control strategy is used to adjust the reduction coefficient, it is necessary to first define a fuzzy set, the fuzzy subset of the vehicle flow is defined as N={NB, NS, ZO, PS, PB}, the fuzzy subset of the vehicle speed is defined as V={NB, NS, ZO, PS, PB}, and the fuzzy subset of the cutoff frequency of the low-pass filter is defined as W={NB, NS, ZO, PS, PB}, then the definitions of NB, NS, ZO, PS, and PB in the fuzzy set in this domain are as shown in Table 1: Table 1: Definition of fuzzy sets
[0040] Combined with the characteristics of tunnel traffic flow, vehicles and tunnel lighting brightness, the parameter interval of traffic flow is defined as [0, 2500], the parameter interval of vehicle speed is [0, 120], and the interval of cut-off frequency is [0.005, 0.05]. The fuzzy rules of traffic flow, vehicle speed and cut-off frequency are shown in Tables 2 to 4: Table 2: Traffic flow fuzzy rule division table
[0041] Table 3: Vehicle speed fuzzy rule classification table
[0042] Table 4: Cut-off frequency fuzzy rule division table
[0043] Based on this, the input (traffic flow, vehicle speed) and output (cut-off frequency) are fuzzified, and the corresponding fuzzy rules are constructed, as shown in Table 5: Table 5: Fuzzy rules table
[0044] Fuzzy reasoning based on the fuzzy rules usually produces fuzzy outputs, while defuzzification processes the fuzzy outputs to obtain an accurate output value. Currently, the commonly used defuzzification methods include the average method, weighted average method, maximum membership method, area bisection method and centroid method. In tunnel lighting control, the use of the centroid method as a defuzzification method has significant advantages. The centroid method can comprehensively consider the overall information of the membership function, including shape and distribution, to generate an output value that reflects the comprehensive effect of all fuzzy rules. This means that control decisions can more accurately reflect the actual lighting needs, taking into account changes in traffic flow and speed, and balancing the lighting needs under different time and environmental conditions.
[0045] After the corresponding target cutoff frequency is obtained through the fuzzy control strategy, the target first-order low-pass filter corresponding to the target cutoff frequency is used to smooth the initial reduction coefficient to obtain the target reduction coefficient.
[0046] Furthermore, the initial value of the light brightness is adjusted based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel, including: The power of each light-emitting device is adjusted using the target reduction coefficient and the position of each light-emitting device in the tunnel so that the light brightness at the position of the light-emitting device is the target light brightness.
[0047] In the implementation of the present invention, as in the aforementioned embodiment, the lighting device of the tunnel is an LED lamp. For different positions in the tunnel, the corresponding target light intensity is different. Therefore, the power of the LED lamps at different positions needs to be controlled so that each LED lamp operates according to the target light intensity.
[0048] The embodiment of the present invention controls the cutoff frequency of the first-order low-pass filter through a fuzzy control strategy, and uses the first-order low-pass filter with adjusted cutoff frequency to adjust the initial step reduction coefficient, thereby achieving fine control of the light intensity at each position in the tunnel.
[0049] As a possible implementation mode of the present invention, in this implementation mode, Figure 8 As shown, the tunnel lighting control method also includes: S801, obtaining the actual light brightness at each position in the tunnel; S802, based on the actual light brightness and the target light brightness, the power of each light emitting device is adjusted using a PSO-PID control algorithm to ensure that the difference between the actual light brightness and the target light brightness is within a preset range.
[0050] In the embodiment of the present invention, the PSO-PID control algorithm is a PID control algorithm combined with a particle swarm algorithm, and its principle diagram is as follows: Fig. 9 As shown in the figure, the target light brightness demand value is taken as input and the actual lighting brightness value is output. After receiving the target light brightness demand value and the actual lighting value, the PID controller calculates the error between them and minimizes the error through continuous adjustment. In this process, speed and accuracy are crucial for the adjustment of PID parameters. Therefore, in each iteration, the PID parameter value is continuously adjusted by the PSO optimization algorithm to achieve the best control effect. Among them, the process of PSO parameter adjustment is as follows: 1) Randomly initialize the position and speed of each particle in the particle swarm. In the context of PID parameter optimization, the position of each particle corresponds to a set of PID parameters (P, I, D). 2) Calculate the fitness value of each particle, that is, the performance when using its PID parameters to control a specific system. Performance can be evaluated in many ways, such as the speed of system response time, the size of overshoot or stability. 3) For each particle, compare its current fitness value with the best position it has found so far (individual optimal solution). At the same time, the best position of all particles in the swarm (global optimal solution) will also be updated. 4) According to the individual optimal solution and the global optimal solution, adjust the speed and position of each particle. This step simulates the social behavior of the flock by tracking two optimal values. Finally, repeat steps 2) to 4) until the stopping condition is met, such as reaching the maximum number of iterations or the fitness value meets the preset threshold. The fitness function is as follows:
[0051] in, Indicates the lighting brightness deviation, represents the output of the controller, is the overshoot, , as well as is the preset weight coefficient.
[0052] In addition, in order to enhance the global search capability of the traditional PSO algorithm, the fusion Lévy flight strategy is introduced to improve the traditional PSO algorithm. Lévy flight is a random walk whose step length follows the Lévy distribution. This distribution allows occasional long-distance jumps, giving the algorithm the opportunity to jump out of the local optimum and explore a wider search space. The fusion of the Lévy flight strategy in the PSO algorithm is mainly reflected in the particle position update mechanism. In the traditional PSO algorithm, the position update of the particle depends on the current speed, the individual historical optimal position, and the group historical optimal position. By introducing Lévy flight, a new position update mechanism is added, allowing particles to explore in a long-step manner, which is nonlinear and random, and the step length follows the Lévy distribution. Lévy can be expressed as follows:
[0053] in, is the position of particle i in dimension j at the next moment, is the position of particle i in dimension j at the current moment. is the step size factor, which controls the size of the step size. is the scaling parameter of the Lévy distribution, which usually takes a smaller value. is the shape parameter of the Lévy distribution, usually between 1.5 and 3. is the Gamma function. Based on this, we can further achieve fine control of the lights in the tunnel.
[0054] In order to better implement the tunnel light control method in the embodiment of the present invention, based on the tunnel light control method, correspondingly, Fig.10 As shown, the embodiment of the present invention further provides a tunnel light control device, and the tunnel light control device 1000 includes: The data acquisition module 1001 is used to acquire the traffic flow data at the tunnel entrance, the speed of the vehicle and the brightness value outside the tunnel; A reduction coefficient calculation module 1002 is used to determine the initial value of the light brightness inside the tunnel and the reduction coefficient of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel. The reduction coefficient is used to gradually adjust the light brightness at different positions in the tunnel; The brightness adjustment module 1003 is used to adjust the initial value of the light brightness based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel.
[0055] The tunnel light control device 1000 provided in the above embodiment can implement the technical solution described in the above tunnel light control method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above tunnel light control method embodiment, which will not be repeated here.
[0056] The tunnel lighting control device provided by the present invention determines the initial value of the lighting brightness inside the tunnel and the reduction coefficient of the lighting brightness based on the traffic flow data at the tunnel entrance, the vehicle speed and the brightness value outside the tunnel, and adjusts the lighting brightness at various positions in the tunnel by the reduction coefficient. The lighting brightness at different positions in the tunnel can be intelligently adjusted according to actual conditions under different traffic flows and speeds, thereby ensuring that the lighting brightness at different positions in the tunnel is appropriate, saving energy and reducing the risk of traffic accidents.
[0057] like Fig.11 As shown, the present invention also provides an electronic device 1100. The electronic device 1100 includes a processor 1101, a memory 1102 and a display 1103. Fig.11 Only some components of the electronic device 1100 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0058] In some embodiments, the processor 1101 may be a central processing unit (CPU), a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 1102, such as the tunnel light control method of the present invention.
[0059] In some embodiments, processor 1101 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, processor 1101 may be local or remote. In some embodiments, processor 1101 may be implemented in a cloud platform. In some embodiments, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.
[0060] In some embodiments, the memory 1102 may be an internal storage unit of the electronic device 1100, such as a hard disk or memory of the electronic device 1100. In other embodiments, the memory 1102 may also be an external storage device of the electronic device 1100, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device 1100.
[0061] Furthermore, the memory 1102 may include both an internal storage unit of the electronic device 1100 and an external storage device. The memory 1102 is used to store application software installed in the electronic device 1100 and various data.
[0062] In some embodiments, the display 1103 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 1103 is used to display information of the electronic device 1100 and to display a visual user interface. The components 1101-1103 of the electronic device 1100 communicate with each other via a system bus.
[0063] In some embodiments, when the processor 1101 executes the tunnel light control program in the memory 1102, the following steps may be implemented: Obtain traffic flow data at the tunnel entrance, vehicle speed, and brightness value outside the tunnel; Based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel, the initial value of the light brightness inside the tunnel and the reduction coefficient of the light brightness inside the tunnel are determined. The reduction coefficient is used to gradually adjust the light brightness at different positions in the tunnel. The initial value of the light brightness is adjusted based on the reduction factor to obtain the target light brightness at each location inside the tunnel.
[0064] It should be understood that: when the processor 1101 executes the tunnel light control program in the memory 1102, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiment above.
[0065] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 1100 mentioned, and the electronic device 1100 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 1100 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0066] Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps or functions of the tunnel lighting control method provided in the above-mentioned method embodiments can be implemented.
[0067] Those skilled in the art can understand that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0068] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A tunnel lighting control method, characterized in that: include: Obtain traffic flow data at the tunnel entrance, vehicle speed, and brightness value outside the tunnel; Determine the initial value of the light brightness inside the tunnel and the reduction coefficient of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel, wherein the reduction coefficient is used to gradually adjust the light brightness at different positions in the tunnel; The initial value of the light brightness is adjusted based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel.
2. The tunnel lighting control method according to claim 1, characterized in that: The obtaining of the traffic flow data at the tunnel entrance, the speed of the vehicle and the brightness value outside the tunnel includes: Collect vehicle videos at the tunnel entrance, use a preset target detection algorithm to identify the vehicle videos, and determine the traffic flow data and vehicle speed at the tunnel entrance; The light intensity sensor outside the tunnel collects the brightness value outside the tunnel.
3. The tunnel light brightness control method according to claim 1, characterized in that: The determining the initial value of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel includes: Based on the traffic flow data, the speed of the vehicle, and the corresponding relationship between the brightness value outside the tunnel and the brightness of the light inside the tunnel, the initial value of the light brightness at each position inside the tunnel is determined.
4. The tunnel lighting control method according to claim 1, characterized in that: The reduction coefficient of the light brightness inside the tunnel is determined, including: Determining an initial reduction coefficient of the tunnel light brightness based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel; The initial reduction coefficient is adjusted by adopting a fuzzy control strategy to obtain a target reduction coefficient.
5. The tunnel lighting control method according to claim 4, characterized in that: The adopting of fuzzy control strategy to adjust the initial reduction coefficient to obtain the target reduction coefficient includes: A first-order low-pass filter is used to smooth the initial reduction coefficient. The expression of the first-order low-pass filter is as follows: in, is the transfer function of the first-order low-pass filter, s is the complex frequency variable, is the cutoff frequency of the first-order low-pass filter; The cutoff frequency is adjusted by using a preset fuzzy rule based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel to obtain a target cutoff frequency, and the initial reduction coefficient is smoothed by using a target first-order low-pass filter corresponding to the target cutoff frequency to obtain a target reduction coefficient.
6. The tunnel lighting control method according to claim 1, characterized in that: The adjusting the initial value of the light brightness based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel includes: The power of each light emitting device is adjusted according to the target reduction coefficient and the position of each light emitting device in the tunnel, so that the light brightness at the position where the light emitting device is located is the target light brightness.
7. The tunnel lighting control method according to claim 6, characterized in that: The method further comprises: Get the actual light brightness at each location in the tunnel; Based on the actual light brightness and the target light brightness, the PSO-PID control algorithm is used to adjust the power of each of the light-emitting devices to ensure that the difference between the actual light brightness and the target light brightness is within a preset range.
8. A tunnel lighting control device, characterized in that: include: A data acquisition module is used to acquire the traffic flow data at the tunnel entrance, the speed of the vehicle and the brightness value outside the tunnel; A reduction coefficient calculation module, used to determine the initial value of the light brightness inside the tunnel and the reduction coefficient of the light brightness inside the tunnel based on the traffic flow data, the speed of the vehicle and the brightness value outside the tunnel, and the reduction coefficient is used to gradually adjust the light brightness at different positions in the tunnel; The brightness adjustment module is used to adjust the initial value of the light brightness based on the reduction coefficient to obtain the target light brightness at each position inside the tunnel.
9. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the tunnel lighting control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the tunnel lighting control method described in any one of claims 1 to 7.
Citation Information
Cited By
Tunnel illumination energy consumption optimization method and system based on ambient light perception
CN122340656A