# Optimizing Non-Glare Zone Width of Adaptive Driving Beam (ADB) Using Fuzzy Logic Control
## 3 Data Collection and Post-Processing  
### Data Acquired from LucidDrive  
In each driving scenario, the vehicle starts from the left end of the road, then navigates a left turn followed by a right turn and finishes at a straight road. Because the overall length of the road also increases when the curvature increases, the simulation time varies from around one to two minutes. The lux reading of each simulation is logged, and a lux-time graph is plotted. Figure 8 shows the data collected for the narrowest non-glare zone in the first driving scenario in which the minimum curvature is 25 m. \begin{table}
\begin{tabular}{c c c c c} \hline \hline
**Curvature [m]** & **Side Friction** & **Speed [km/h]** & **Rounded Speed** & **Following** **Distance [m]** \\ \hline
25 & 0.18 & 23.9 & 25 & 20 \\
50 & 0.17 & 32.8 & 30 & 25 \\
75 & 0.17 & 40.2 & 40 & 30 \\
100 & 0.16 & 45.1 & 45 & 40 \\ \hline \hline \end{tabular}
\end{table} 
Table 1: Parameters of the driving scenario. Figure 8: Lux reading of S-curve with 25 m curvature simulation at 100% non-glare zone width. The dashed line is 18.9 lux, above which is considered to be glare, according to both NHTSA (22) and SAE (26). Figure 7: The position of the virtual light sensor, which corresponds to the ADB test fixture from SAE J3069 (26). At the beginning of the simulation, between 0 and 20 s, the vehicle travels on a straight road (Figure 9a), where zero glare is created. When the stimulus vehicle enters the corner at around 20 s (Figure 9b), the side rearview mirror shifts away from the non-glare zone, and, thus, glare is created, which is reflected as the first spike on the lux-time graph. As the vehicle continues the left turn (Figure 9c), there is a brief time when the stimulus vehicle exits the high beam zone of the test vehicle during which the lux reading drops to zero for a few seconds; then, glare is again observed when the test vehicle enters the corner, reflected in the graph as the second spike. When the vehicle enters the right turn, no glare should be created from the driver-side rearview mirror since the light is blocked by the vehicle body (Figure 9d). The third spike in the lux-time graph is due to the limitation of the simulator--its lack of ray-tracing technology--causing the light to reach the sensor by penetrating through the vehicle geometry. This is considered an error and will be neglected during data processing. In accordance with the NHTSA ADB testing proposal [22] and the SAE standard ADB testing procedure [26] and for the same direction driving scenario at a distance shorter than 60 m, lux readings above 18.9 k are considered to be glare, which is the dashed line in Figure 8. In this project, the total time during a simulation when the lux reading is above 18.9 lx is considered as the glare rating for this driving scenario and will be used as an input in the fuzzy logic controller to find the best non-glare zone width. Figure 9: S-curve with 25 m curvature simulation at 100% non-glare zone width: (**a**) At the beginning of the simulation, the vehicle travels on a straight road, and no glare is created. (**b**) When the vehicle enters the corner, glare is created, corresponding to the first peak in Figure 8. (**c**) When the stimulus vehicle exits the high beam area, there is a short time when glare drops to zero, corresponding to the area between two peaks in Figure 8. (**d**) Light penetrates through the vehicle body due to the limitation of the simulator, which is shown as the third peak in Figure 8 and is neglected as an error. As shown in Figure 10, with increases in non-glare zone width, not only does the total glare time reduce (shown in Figure 11), but also the lux peak reduces. It is noted that when the non-glare zone increases from 140% to 180%, the second lux peak (around 27 s to 30 s) is eliminated. Finally, when the non-glare zone width is increased to 265% of the boundary box width, all lux readings are below the 18.9 lx limit, so glare can be considered to be eliminated.