3.1.2. Model Training
During model implementation, this paper constructs a dynamic dimming decision-making model for tunnel lighting based on the Proximal Policy Optimization (PPO) algorithm. At each time step, the agent generates corresponding dimming actions based on the current environmental state and applies them to the tunnel lighting system; the environment calculates a reward value based on the dimming results and performs a state transition, thereby forming experience samples for reinforcement learning training. During the training phase, the reward function comprehensively considers lighting effectiveness, visual comfort, system stability, and energy consumption levels, guiding the model to optimize its policy under multi-objective constraints. The model introduces a dominance function to evaluate the relative merits of actions, updates the policy network using the clipped objective function of the PPO algorithm, and estimates state values using the value network, thereby gradually improving the performance of the policy.
The entire training process follows an iterative mechanism of “sample collection—advantage estimation—policy update—value update.” In the early training stage, the model has not yet converged, and the actions generated by the agent exhibit significant randomness, leading to pronounced fluctuations in reward values. As training progresses, the model gradually learns the mapping between environmental states and dimming decisions; accordingly, the reward values show an overall upward trend and eventually stabilize.
The above training process demonstrates that the PPO algorithm can achieve continuous policy optimization under a stable update mechanism, gradually forming a control strategy that adapts to the dynamic dimming requirements of tunnel lighting.
3.1.3. Experimental Results and Analysis
To verify the control effectiveness of the PPO-based dynamic tunnel lighting dimming strategy under actual operating conditions, this paper compares and analyzes the operational results of the PPO strategy and the traditional L20 control strategy under typical diurnal variation conditions. The experimental results are primarily examined from four aspects: the zone-based brightness adjustment process, control characteristics in the entrance section, time-of-day energy-saving effects, and the spatial distribution of brightness across zones.
(1) Analysis of Zone Brightness Variation Results
As shown in
Figure 8, this figure illustrates the variation of brightness in each functional zone of the tunnel over time under the traditional L20 control strategy. It can be observed that the brightness in the entrance section remains consistently higher than that in the other zones, with a significant increase during daytime hours, reaching its daily peak around noon. The brightness trends in the transition section, interior section, and exit section are largely consistent with those of the entrance section, exhibiting strong overall synchrony.This indicates that the L20 strategy primarily relies on external ambient brightness for zone compensation; when external brightness increases, the brightness of all zones is raised uniformly. While this method meets basic lighting requirements, its ability to differentiate adjustments between zones is limited. This can easily cause the high-brightness demand of the entrance section to spread to adjacent sections, thereby increasing the total lighting power of the entire tunnel.
Figure 8.
Reward Variation Curve During PPO Training.
Figure 8.
Reward Variation Curve During PPO Training.
As shown in
Figure 9, this figure illustrates the brightness variations across zones under the PPO dynamic dimming strategy.Compared to the traditional L20 method, the brightness curves for each zone under the PPO strategy are smoother. Although the entrance section still maintains the highest brightness, the peak value is significantly reduced, and the duration of high brightness is also shortened. The transition and interior sections do not exhibit a synchronous, substantial increase in brightness with the entrance section, and the brightness in the exit section changes relatively little overall, resulting in a more stable curve.These results indicate that the PPO strategy does not simply rely on direct mapping based on external brightness, but rather adaptively adjusts the lighting output of different zones through the joint optimization of environmental conditions, traffic conditions, and control benefits. The distribution of zone brightness is more refined, retaining the necessary high-brightness compensation capability for the entrance section while avoiding redundant lighting in non-critical sections.
Figure 9.
L20 Zone Luminance Control Curves.
Figure 9.
L20 Zone Luminance Control Curves.
A comparison of the two figures reveals that the traditional L20 strategy tends to adopt a rule-driven, conservative control approach, with brightness settings typically set too high; the PPO strategy, however, exhibits more pronounced dynamic optimization characteristics, reducing unnecessary brightness output while meeting the functional requirements of each zone. These results demonstrate that reinforcement learning methods can effectively enhance the flexibility and rationality of zone dimming.
(2) Analysis of Brightness Control Results for the Entrance Section
As shown in
Figure 10, the L20 strategy and the PPO strategy exhibit significant differences in brightness control for the entrance section. Under the L20 strategy, brightness in the entrance section rises rapidly during high-brightness daytime periods and remains at a high level from noon through the afternoon, with peaks approaching the upper limit of the brightness constraint. This indicates that traditional methods typically reserve a large safety margin in entrance section control, which meets drivers’ visual adaptation needs but also tends to result in excessively high brightness output and increased energy consumption.
Figure 10.
Brightness Control Curves for Each Zone under the PPO Strategy.
Figure 10.
Brightness Control Curves for Each Zone under the PPO Strategy.
Under the PPO strategy, the brightness in the entrance section can also be dynamically adjusted in response to changes in ambient brightness, but the overall variation is smoother, the peak control is more reasonable, and it remains within the constraint range at all times. Particularly during the high-brightness period at noon, the brightness in the entrance section under the PPO strategy is significantly lower than that under the L20 strategy, indicating that this method can effectively reduce redundant lighting while ensuring lighting safety, thereby improving the economic efficiency of the control.
Furthermore, during certain low-light periods in the early morning and at night, the entrance section brightness under the PPO strategy is slightly higher than that under the L20 strategy. This indicates that PPO does not simply pursue the lowest energy consumption but appropriately retains a certain margin of illumination under low-light conditions to improve visual comfort and driving safety. Overall, the PPO strategy achieves a good balance between safety and energy efficiency in entrance section control.
(3) Heatmap Analysis of the Traditional L20 Strategy
As shown in
Figure 11, the temporal–spatial distribution of brightness in each tunnel zone under the conventional L20 control strategy is illustrated. A continuous and extensive high-brightness region appears in the entrance section from noon to afternoon, indicating a long period of high-intensity lighting output. Meanwhile, the transition and interior sections also show a significant brightness increase during the same period, implying that the high-brightness demand of the entrance section strongly affects adjacent zones.
Figure 11.
Comparison of Entrance Brightness.
Figure 11.
Comparison of Entrance Brightness.
This heatmap pattern reveals that the L20 strategy follows a typical characteristic of “high brightness in the entrance section driving global brightness elevation” under strong ambient light conditions. Although this design helps quickly establish sufficient lighting safety margins, it also passively increases the brightness of non-critical sections and reduces the independence of zoning control. From an energy-saving perspective, such a distribution significantly increases the overall power consumption of the tunnel system, which is the main reason for the limited energy efficiency of traditional rule-based control methods.
(4) PPO Strategy Heat Map Analysis As shown in
Figure 12, this figure depicts the brightness heat distribution across zones under the PPO dynamic dimming strategy. Compared to the L20 heatmap, the entrance section remains the brightest area under the PPO strategy, but the coverage of the high-brightness zone is significantly reduced, and its duration is markedly shorter. The brightness distribution in the transition and interior sections is more balanced, with no widespread synchronous increase following the entrance section, while the brightness in the exit section remains relatively stable.
Figure 12.
L20 Zone-by-Zone and Time-of-Day Average Illuminance Heat Map.
Figure 12.
L20 Zone-by-Zone and Time-of-Day Average Illuminance Heat Map.
These results indicate that the PPO strategy more accurately identifies the lighting requirements of different functional sections. The entrance section retains the necessary high-brightness compensation capability to meet the driver’s visual adaptation needs; meanwhile, the transition and interior sections are regulated more independently based on their own states, avoiding the problem of excessive spatial propagation of brightness demands found in traditional methods. The contraction of high-value areas in the heatmap directly demonstrates that the PPO strategy reduces redundant lighting output and improves the utilization efficiency of brightness resources.
Further analysis of the energy-saving rate curves reveals that the fundamental reason for the PPO strategy’s superior energy-saving performance during daytime high-brightness periods lies in the effective control of high-brightness areas in its heatmap. In other words, energy savings do not stem from simply reducing brightness in a single zone, but rather from the overall optimization of the brightness structure across all zones.
As shown in
Figure 13, the energy-saving rate of the PPO strategy relative to the conventional L20 strategy varies considerably across different time intervals, indicating distinct control performances of the two methods under diverse operating conditions.
Figure 13.
PPO Zone-by-Zone and Time-of-Day Average Brightness Heatmap.
Figure 13.
PPO Zone-by-Zone and Time-of-Day Average Brightness Heatmap.
During 10:00–17:00, the PPO strategy achieves outstanding energy-saving efficacy, especially from 11:00 to 16:00, when the energy-saving rate stays above 20% at most moments and reaches a peak of nearly 24%. This result reveals that the conventional L20 strategy presents obvious over-illumination under high external brightness during the daytime. In contrast, the PPO strategy effectively reduces the total energy consumption of the system by suppressing excessive brightness in the entrance section and restraining synchronous brightness uplift in adjacent zones, showing stronger adaptive optimization ability.
After 18:00, the energy-saving rate declines gradually, with only slight energy savings in certain periods. This phenomenon implies that the tunnel lighting system operates at a low-power level with the decrease in external brightness, leaving limited optimization space; thus, the gap in energy consumption between the two strategies is narrowed.
During specific early-morning and nighttime periods, the energy-saving rate becomes negative, meaning that the energy consumption of the PPO strategy is slightly higher than that of the L20 strategy. Combined with the brightness variation of the entrance section, this is mainly because the PPO strategy properly raises the brightness of partial sections under low-illuminance conditions. Although the energy consumption increases marginally in these periods, the lighting continuity and visual safety margin are both improved. This confirms that the PPO strategy does not take energy saving as the only goal, but balances energy efficiency and lighting safety comprehensively, giving priority to safety when the two objectives conflict.
Figure 14.
Bar Chart of Time-of-Day Average Energy Savings.
Figure 14.
Bar Chart of Time-of-Day Average Energy Savings.