Methods, devices and vehicles for vehicle driving safety

CN122747751APending Publication Date: 2026-09-15VALEO INTERIOR CONTROLS (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610517999.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-17
Publication Date
2026-09-15

Smart Images

  • Figure CN122747751A_ABST
    Figure CN122747751A_ABST
Patent Text Reader

Abstract

A method, apparatus, computer program product, and vehicle for vehicle driving safety. The method includes: acquiring ambient light data around the vehicle; determining whether the vehicle is driving in or about to enter a tunnel scenario based on the rate of change of ambient light around the vehicle indicated by the ambient light data; and, upon determining that the vehicle is driving in or about to enter a tunnel scenario, determining to activate the vehicle's tunnel lighting mode. This solution can accurately determine whether a vehicle has entered a tunnel or is driving in a tunnel, enabling the corresponding determination of whether to activate the vehicle's tunnel lighting mode, thus improving vehicle driving safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle safety, and more specifically to methods, apparatus and vehicles for driving safety of vehicles. Background Technology

[0002] Vehicles typically need to turn on their lights when driving through tunnels. Existing automatic headlight activation technologies require measuring the ambient light intensity around the vehicle. When the light intensity is below a certain value, the lights turn on; when the light intensity is above a certain value, the lights turn off. However, this approach struggles to differentiate between different scenarios. For example, when a vehicle is driving under an overpass, the ambient light dims, and the vehicle's driving system might mistakenly assume it's in a tunnel due to the low light intensity, thus turning on the lights and wasting energy.

[0003] Therefore, a technical solution is needed that can accurately determine whether a vehicle is traveling in a tunnel. Summary of the Invention

[0004] To at least partially address the aforementioned problems, embodiments of this application provide a method, apparatus, and vehicle for ensuring vehicle driving safety.

[0005] In a first aspect, a method for vehicle safety is provided, comprising: acquiring ambient light data around the vehicle; determining whether the vehicle is driving in a tunnel scenario or is about to drive in a tunnel scenario based on the rate of change of ambient light around the vehicle indicated by the ambient light data; and determining to activate a tunnel lighting mode for the vehicle when it is determined that the vehicle is driving in a tunnel scenario or is about to drive in a tunnel scenario.

[0006] According to at least some embodiments, the ambient lighting data includes first ambient lighting data for the upward ambient light of the vehicle and second ambient lighting data for the forward ambient light of the vehicle, and the ambient lighting change rate includes a first ambient lighting change rate for the first ambient lighting data and a second ambient lighting change rate for the second ambient lighting data.

[0007] According to at least some embodiments, determining whether a vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by ambient light data includes: if a first rate of change of ambient light indicates that the rate of decrease of upward ambient light around the vehicle exceeds a first threshold, and a second rate of change of ambient light indicates that the rate of decrease of forward ambient light around the vehicle exceeds a second threshold, determining that the vehicle is about to drive in a tunnel scene.

[0008] According to at least some embodiments, determining whether a vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by ambient light data includes: if a first rate of change of ambient light indicates that the upward ambient light of the vehicle is regularly rising and falling and the rate of rise and fall exceeds a third threshold, and a second rate of change of ambient light indicates that the rate of change of the forward ambient light of the vehicle does not exceed a fourth threshold, then it is determined that the vehicle is driving in a tunnel scene.

[0009] According to at least some embodiments, determining whether a vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by ambient light data includes: if a first rate of change of ambient light indicates that the rate of increase of the upward ambient light around the vehicle exceeds a fifth threshold, and a second rate of change of ambient light indicates that the rate of increase of the forward ambient light around the vehicle exceeds a sixth threshold, determining that the vehicle is leaving the tunnel scene. In this case, the method further includes determining the tunnel lighting pattern of the exiting vehicle.

[0010] In a second aspect, an apparatus for vehicle driving safety is provided, comprising: a data acquisition module for acquiring ambient light data around the vehicle; a scene recognition module for determining whether the vehicle is driving in a tunnel scene or is about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by the ambient light data; and a mode switching module for determining and activating the tunnel lighting mode of the vehicle when it is determined that the vehicle is driving in a tunnel scene or is about to drive in a tunnel scene.

[0011] According to at least some embodiments, the ambient lighting data includes first ambient lighting data for the upward ambient light of the vehicle and second ambient lighting data for the forward ambient light of the vehicle, and the ambient lighting change rate includes a first ambient lighting change rate for the first ambient lighting data and a second ambient lighting change rate for the second ambient lighting data.

[0012] According to at least some embodiments, the scene recognition module is used to: determine that the vehicle is about to drive in a tunnel scene if a first ambient light change rate indicates that the rate of decrease of the upward ambient light of the vehicle exceeds a first threshold, and a second ambient light change rate indicates that the rate of decrease of the forward ambient light of the vehicle exceeds a second threshold.

[0013] According to at least some embodiments, the scene recognition module is used to: determine that the vehicle is driving in a tunnel scene if a first ambient light change rate indicates that the vehicle's upward ambient light is regularly rising and falling and the rate of rise and fall exceeds a third threshold, and a second ambient light change rate indicates that the vehicle's forward ambient light change rate does not exceed a fourth threshold.

[0014] According to at least some embodiments, the scene recognition module is configured to: determine that the vehicle has exited the tunnel scene if a first ambient light change rate indicates that the upward ambient light of the vehicle rises at a rate exceeding a fifth threshold, and a second ambient light change rate indicates that the forward ambient light of the vehicle rises at a rate exceeding a sixth threshold. In this case, the mode switching module is further configured to determine the tunnel lighting mode of the exiting vehicle when it is determined that the vehicle has exited the tunnel scene.

[0015] In a third aspect, a computer program product storing instructions is provided. When executed by a processor, the instructions cause the processor to perform the method described in the first aspect.

[0016] In a fourth aspect, a vehicle is provided, including the device described in the second aspect.

[0017] The above solution can accurately determine whether a vehicle has entered a tunnel or is driving in a tunnel, thus enabling the corresponding determination of whether to activate the vehicle's tunnel lighting mode and improving vehicle driving safety. Attached Figure Description

[0018] Figure 1 A schematic diagram of an example scheme for light detection of the vehicle's external environment is shown;

[0019] Figure 2 This diagram illustrates an example of determining whether a vehicle has entered a tunnel mode based on illumination values.

[0020] Figure 3 A schematic flowchart of a method for vehicle driving safety according to an embodiment of this application is shown;

[0021] Figure 4 A schematic diagram illustrating the changes in illumination when entering a tunnel, according to an embodiment of this application;

[0022] Figure 5 A schematic diagram illustrating the changes in illumination while traveling in a tunnel according to an embodiment of this application is shown; and

[0023] Figure 6 A schematic block diagram of a device for vehicle driving safety according to an embodiment of this application is shown. Detailed Implementation

[0024] Some embodiments contemplated herein will now be described more fully with reference to the accompanying drawings. Examples of embodiments are provided by way of example to convey the inventive concept to those skilled in the art. However, the inventive concept can be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the inventive concept to those skilled in the art. It should also be noted that these embodiments are not mutually exclusive. Components from one embodiment may be assumed by default to be present / used in another embodiment.

[0025] Figure 1 A schematic diagram of an example scheme for detecting illumination in the external environment of a vehicle is shown. In some examples, the illumination detection may be achieved by a rain and light sensor located within a rearview mirror cover positioned at the upper center of the vehicle's windshield. However, in other examples, the illumination detection may be achieved by any device or combination of devices capable of detecting illumination conditions in front of and above the vehicle. For example, illumination conditions in front of and above the vehicle may be detected by different sensors respectively mounted in front of and above the vehicle. The invention is not limited to a specific form of illumination detection.

[0026] Figure 1 The illumination detection shown can detect upward-facing rays at an upward angle and forward-facing rays at a forward angle. During vehicle operation, the illumination values ​​at these two different angles can be used to determine if a tunnel scene has been entered, and a request to turn on the lights can be issued. For example, in some existing technologies, the detected ambient light is compared with a threshold to determine whether a tunnel mode has been entered, and a request to turn on the lights is issued if tunnel mode is determined to be entered.

[0027] Figure 2 This diagram illustrates an example of determining whether a vehicle has entered tunnel mode based on illumination values. Figure 2 The example curve shown represents time on the x-axis (seconds (s) and illuminance on the y-axis (lux). For example... Figure 2 As shown, in the illuminance-based judgment scheme, when the detected illuminance value is greater than a certain threshold (e.g., ThrshBrightSlowOn, shown as 700 lux in the figure), it is determined that the vehicle is not driving in the tunnel or has left the tunnel, and therefore the lights are turned off. Conversely, when the detected illuminance value is less than a certain threshold (e.g., ThrshBrightFastOn, shown as 120 lux in the figure), it is determined that the vehicle is driving in the tunnel or has entered the tunnel, and therefore the lights are turned on. Figure 2 The diagram shown can be applied to both uplighting and frontlighting; the only difference is the threshold values ​​used. In some solutions, the lighting control system only turns on the lights if both uplighting and frontlighting indicators suggest that the lights should be turned on.

[0028] However, this tunnel mode detection scheme has a relatively high probability of false triggering. For example, when a vehicle passes under an overpass, the ambient light dims, and the vehicle's driving system may assume it is in a tunnel based on the current low light intensity (e.g., below ThrshBrightFastOn), thus unnecessarily turning on the lights and wasting energy. In other cases, such as when a vehicle is driving in a well-lit tunnel, the upward and forward beams, or either one or both, may exceed the threshold for turning on the lights (e.g., below ThrshBrightFastOn), causing a failure to issue a request to turn on the lights when it should.

[0029] This invention was made to at least partially solve this problem. Figure 3 A schematic flowchart of a method for vehicle driving safety according to an embodiment of this application is shown.

[0030] Figure 3 The method shown begins with step S310. In step S310, ambient light data around the vehicle is acquired.

[0031] This step can be performed by any method that allows the acquisition of the desired ambient light data. In some examples, the ambient light data may include first ambient light data for upward ambient light of the vehicle and second ambient light data for forward ambient light of the vehicle. Correspondingly, the ambient light change rate may include a first ambient light change rate for the first ambient light data and a second ambient light change rate for the second ambient light data. Although the embodiments of this application mainly illustrate the technical solution using upward ambient light and forward ambient light as examples, the technical solution of this application should not be limited thereto. For example, in some other examples, only one of upward ambient light and forward ambient light may be used. In other examples, alternatively or as a supplement, other types of ambient light, such as ambient light from the side of the vehicle, may also be used. These variations of the technical solution should all be included within the scope of the embodiments of this application.

[0032] In step S320, the vehicle is determined to be driving in a tunnel scenario or about to drive in a tunnel scenario based on the rate of change of ambient light around the vehicle indicated by ambient light data.

[0033] Taking both upward ambient light and forward ambient light as examples, in some embodiments, determining whether a vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by ambient light data may include: if a first rate of change of ambient light indicates that the rate of decrease of upward ambient light around the vehicle exceeds a first threshold, and a second rate of change of ambient light indicates that the rate of decrease of forward ambient light around the vehicle exceeds a second threshold, then it is determined that the vehicle is about to drive in a tunnel scene. The first threshold and the second threshold may be the same or different.

[0034] Figure 4 A schematic diagram of the change in illumination when entering a tunnel is shown in an embodiment of this application. Figure 4 The example curve shown represents time on the x-axis (seconds) and illuminance on the y-axis (lux). Figure 4 The arrows indicate the slope of the curve, i.e., the degree of change in illuminance. When a vehicle enters the tunnel, at the location indicated by the arrow, a relatively drastic change can be observed in both the detected upward and forward light. This embodiment of the application can accurately determine whether a vehicle has entered the tunnel based on the slope of the arrow (i.e., the rate of decrease in ambient light).

[0035] When a vehicle enters a tunnel, lighting conditions often change significantly, such as dropping sharply compared to an open-air environment. Conversely, when a vehicle passes under an overpass, the change in lighting is relatively slow due to the unenclosed nature of the space. Therefore, the rate of change in lighting can accurately indicate that a vehicle is entering a tunnel, rather than driving under an overpass.

[0036] In other embodiments, determining whether a vehicle is driving in or about to drive in a tunnel scenario based on the rate of change of ambient light around the vehicle indicated by ambient light data may include: if a first rate of change of ambient light indicates that the upward ambient light around the vehicle is regularly rising and falling, and the rate of rise and fall exceeds a third threshold, and a second rate of change of ambient light indicates that the rate of change of forward ambient light around the vehicle does not exceed a fourth threshold, then the vehicle is determined to be driving in a tunnel scenario. The third threshold may be different from the fourth threshold. Typically, the third threshold is greater than the fourth threshold.

[0037] In many tunnel scenarios, tunnel lighting is primarily provided by lights installed at intervals on the tunnel ceiling or sides. For sensors detecting overhead illumination, the detected illumination value increases as the vehicle approaches the ceiling light. The detected illumination value reaches its maximum when the vehicle is below the ceiling light and decreases as the vehicle moves away. The detected illumination value between two lights typically exhibits a decreasing-increasing-decreasing pattern. For forward illumination, the influence of the ceiling light at vehicle height is weakened, and the decreasing-increasing-decreasing pattern and magnitude of the illumination detection value are less pronounced compared to upward ambient light, especially when auxiliary lighting is installed on the sides of the tunnel. The embodiments described above in this application take into account the different patterns of upward and forward ambient light changes for vehicles in tunnels, enabling accurate determination that the vehicle is still traveling in the tunnel and that the tunnel lighting mode still needs to be maintained.

[0038] Figure 5 A schematic diagram illustrating the changes in illumination when traveling in a tunnel according to an embodiment of this application is shown. Figure 5 The example curve shown represents time on the x-axis (seconds) and illuminance on the y-axis (lux).

[0039] like Figure 5 As shown, during the stage when the illuminance of both upward and forward light decreases sharply, the vehicle can be determined to have entered the tunnel according to the above-described scheme of this application.

[0040] Subsequently, the illuminance of the upward light, representing illumination above the vehicle, rises rapidly, then falls after a period of time, then rises again, repeating this process. Meanwhile, the illuminance of the forward light, representing illumination in front of the vehicle, changes less drastically. According to the above-described scheme of this application, it can be determined that the vehicle is traveling in a tunnel. However, if the existing scheme for determining whether a vehicle is in a tunnel based on illuminance values ​​is used, the phase of the rising illuminance of the upward light might be mistaken for the vehicle not being in the tunnel or leaving the tunnel, leading to the incorrect switching off of the vehicle lights.

[0041] In other embodiments, determining whether a vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by ambient light data may include: if a first rate of change of ambient light indicates that the rate of increase of the upward ambient light around the vehicle exceeds a fifth threshold, and a second rate of change of ambient light indicates that the rate of increase of the forward ambient light around the vehicle exceeds a sixth threshold, then determining that the vehicle has left the tunnel scene. The fifth threshold and the sixth threshold may be the same or different.

[0042] When both the upward and forward ambient light levels of a vehicle increase rapidly, it can be determined that the vehicle is exiting the tunnel.

[0043] In step S330, when it is determined in step S320 that the vehicle is driving in a tunnel scene or is about to drive in a tunnel scene, the tunnel lighting mode of the vehicle is activated.

[0044] The "tunnel lighting mode" mentioned in this document can be any vehicle lighting mode suitable for safe driving in tunnels. For example, in some examples, a vehicle's tunnel lighting mode may include turning on the vehicle's headlights (such as low beams), side marker lights, taillights, etc. The "tunnel lighting mode" may vary in different countries or regions due to different laws and regulations. The technical solution of this application is not limited to the specific implementation of the "tunnel lighting mode".

[0045] In some embodiments, when determining to activate the vehicle's tunnel lighting mode, the method may further include sending a message to the vehicle's lighting control system requesting that the vehicle's external lights be turned on according to the tunnel lighting mode. Correspondingly, when determining to deactivate the vehicle's tunnel lighting mode, the method may further include sending a message to the vehicle's lighting control system requesting that the vehicle's external lights be deactivated from the tunnel lighting mode.

[0046] Optionally, when it is determined in step S320 that the vehicle has left the tunnel scene, the tunnel lighting mode of the exiting vehicle can be determined in step S340.

[0047] As described above, when determining to exit the tunnel lighting mode of the vehicle, a message can be sent to the vehicle lighting control system to request that the external lights of the vehicle be exited the tunnel lighting mode.

[0048] It should be noted that the above division of steps is merely an example used to clearly illustrate the technical solution of this application, and should not be construed as limiting the scope of protection of this application. Based on logical and implementation considerations, more or fewer steps may be used, certain steps may be further divided or combined, or the steps may be arranged in accordance with... Figure 3 Execute in different orders as shown Figure 3 The method shown.

[0049] Figure 6 A schematic block diagram of an apparatus for vehicle driving safety according to an embodiment of this application is shown. The apparatus includes a data acquisition module 610, a scene recognition module 620, and a mode switching module 630.

[0050] The data acquisition module 610 is used to acquire ambient light data around the vehicle.

[0051] This step can be performed by any method that allows the acquisition of the desired ambient light data. In some examples, the ambient light data may include first ambient light data for upward ambient light of the vehicle and second ambient light data for forward ambient light of the vehicle. Correspondingly, the ambient light change rate may include a first ambient light change rate for the first ambient light data and a second ambient light change rate for the second ambient light data. Although the embodiments of this application mainly illustrate the technical solution using upward ambient light and forward ambient light as examples, the technical solution of this application should not be limited thereto. For example, in some other examples, only one of upward ambient light and forward ambient light may be used. In other examples, alternatively or as a supplement, other types of ambient light, such as ambient light from the side of the vehicle, may also be used. These variations of the technical solution should all be included within the scope of the embodiments of this application.

[0052] The scene recognition module 620 is used to determine whether the vehicle is driving in a tunnel scene or is about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by ambient light data.

[0053] Taking both upward ambient light and forward ambient light as examples, in some embodiments, the scene recognition module 620 is used to: determine that the vehicle is about to travel in a tunnel scene if the first ambient light change rate indicates that the rate of decrease of the upward ambient light of the vehicle exceeds a first threshold, and the second ambient light change rate indicates that the rate of decrease of the forward ambient light of the vehicle exceeds a second threshold. The first threshold and the second threshold may be the same or different.

[0054] When a vehicle enters a tunnel, lighting conditions often change significantly, such as dropping sharply compared to an open-air environment. Conversely, when a vehicle passes under an overpass, the change in lighting is relatively slow due to the unenclosed nature of the space. Therefore, the rate of change in lighting can accurately indicate that a vehicle is entering a tunnel, rather than driving under an overpass.

[0055] In some embodiments, the scene recognition module 620 is configured to: determine that the vehicle is traveling in a tunnel scene if a first ambient light change rate indicates that the vehicle's upward ambient light regularly rises and falls and the rate of rise and fall exceeds a third threshold, and a second ambient light change rate indicates that the vehicle's forward ambient light change rate does not exceed a fourth threshold. The third threshold may be different from the fourth threshold. Typically, the third threshold is greater than the fourth threshold.

[0056] In many tunnel scenarios, tunnel lighting is primarily provided by lights installed at intervals on the tunnel ceiling or sides. For sensors detecting overhead illumination, the detected illumination value increases as the vehicle approaches the ceiling light. The detected illumination value reaches its maximum when the vehicle is below the ceiling light and decreases as the vehicle moves away. The detected illumination value between two lights typically exhibits a decreasing-increasing-decreasing pattern. For forward illumination, the influence of the ceiling light at vehicle height is weakened, and the decreasing-increasing-decreasing pattern and magnitude of the illumination detection value are less pronounced compared to upward ambient light, especially when auxiliary lighting is installed on the sides of the tunnel. The embodiments described above in this application take into account the different patterns of upward and forward ambient light changes for vehicles in tunnels, enabling accurate determination that the vehicle is still traveling in the tunnel and that the tunnel lighting mode still needs to be maintained.

[0057] In some embodiments, the scene recognition module 620 is configured to: determine that the vehicle has exited the tunnel scene if a first ambient light change rate indicates that the upward ambient light of the vehicle rises at a rate exceeding a fifth threshold, and a second ambient light change rate indicates that the forward ambient light of the vehicle rises at a rate exceeding a sixth threshold. The fifth threshold and the sixth threshold may be the same or different.

[0058] When both the upward and forward ambient light levels of a vehicle increase rapidly, it can be determined that the vehicle is exiting the tunnel.

[0059] The mode switching module 630 is used to determine the tunnel lighting mode to start the vehicle when it is determined that the vehicle is driving in a tunnel scene or is about to drive in a tunnel scene.

[0060] When the scene recognition module 620 determines that the vehicle has left the tunnel scene, the mode switching module 630 can also be used to determine the tunnel lighting mode for the exiting vehicle.

[0061] It should be noted that the above module division is only for the convenience of describing the technical solution of this application. Other module division methods can also be used, such as using more or fewer modules, further dividing the above-mentioned single module into more modules, or combining the above-mentioned multiple modules into one module, etc. In some embodiments, the device may also include Figure 6Modules not shown may include, for example, a message sending module, used to send a message to the vehicle lighting control system when determining to activate the tunnel lighting mode, requesting that the vehicle's external lights be turned on according to the tunnel lighting mode. Correspondingly, this message sending module can also be used to send a message to the vehicle lighting control system when determining to exit the tunnel lighting mode, requesting that the vehicle's external lights be deactivated from the tunnel lighting mode. This message sending module can be a standalone module, integrated into the mode switching module 630, or implemented in any other feasible manner. This application is not limited to the specific way the modules are divided.

[0062] Figure 6 The device shown can be implemented in hardware, software, or a combination of hardware and software. It can be a standalone product or integrated into other software and / or hardware products, such as in a vehicle's control unit, a product like a rain or light sensor, or in any other software / hardware location.

[0063] A computer program product may also be provided to implement the technical solutions of the embodiments of this application. This computer program product may store instructions, such as computer-readable instructions. When executed by a processor, these instructions cause the processor to perform the operational steps described herein. The computer program product may include a computer-readable medium storing a computer program that includes computer-readable instructions. The computer-readable medium may be a non-transitory computer-readable medium, such as a magnetic medium (e.g., a hard disk), an optical medium, a memory device (e.g., random access memory, flash memory), etc.

[0064] Some embodiments of this application may also provide a vehicle, which may include at least... Figure 6 The apparatus shown.

[0065] The foregoing merely illustrates the principles of this disclosure. Various modifications and alterations to the described embodiments will be apparent to those skilled in the art in light of the teachings herein. Therefore, it should be understood that those skilled in the art will be able to design numerous systems, arrangements, and programs that, while not expressly shown or described herein, embody the principles of this disclosure and are therefore within its scope. As will be understood by those skilled in the art, various exemplary embodiments can be used together and interchangeably.

Claims

1. A method for ensuring vehicle driving safety, comprising: Acquire ambient lighting data around the vehicle; Based on the rate of change of ambient light around the vehicle indicated by the ambient light data, it is determined whether the vehicle is driving in a tunnel scenario or is about to drive in a tunnel scenario. as well as When it is determined that the vehicle is driving in a tunnel scenario or is about to drive in a tunnel scenario, the tunnel lighting mode of the vehicle is activated.

2. The method according to claim 1, wherein, The ambient light data includes first ambient light data for the upward ambient light of the vehicle and second ambient light data for the forward ambient light of the vehicle, and the ambient light change rate includes a first ambient light change rate for the first ambient light data and a second ambient light change rate for the second ambient light data.

3. The method according to claim 2, wherein, Determining whether the vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by the ambient light data includes: If the first ambient light change rate indicates that the rate of decrease of the upward ambient light of the vehicle exceeds a first threshold, and the second ambient light change rate indicates that the rate of decrease of the forward ambient light of the vehicle exceeds a second threshold, it is determined that the vehicle is about to travel in a tunnel scenario.

4. The method according to claim 2, wherein, Determining whether the vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by the ambient light data includes: If the first ambient light change rate indicates that the upward ambient light of the vehicle is rising and falling regularly and the rate of rise and fall exceeds a third threshold, and the second ambient light change rate indicates that the forward ambient light change rate of the vehicle does not exceed a fourth threshold, it is determined that the vehicle is driving in a tunnel scenario.

5. The method according to claim 2, wherein, Determining whether the vehicle is driving in or about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by the ambient light data includes: If the first ambient light change rate indicates that the upward ambient light rise rate of the vehicle exceeds a fifth threshold, and the second ambient light change rate indicates that the forward ambient light rise rate of the vehicle exceeds a sixth threshold, it is determined that the vehicle has exited the tunnel scene. The method further includes: determining when to exit the tunnel lighting mode of the vehicle.

6. A device for vehicle driving safety, comprising: The data acquisition module is used to acquire ambient light data around the vehicle; The scene recognition module is used to determine whether the vehicle is driving in a tunnel scene or is about to drive in a tunnel scene based on the rate of change of ambient light around the vehicle indicated by the ambient light data. as well as The mode switching module is used to determine and activate the tunnel lighting mode of the vehicle when it is determined that the vehicle is driving in a tunnel scenario or is about to drive in a tunnel scenario.

7. The apparatus according to claim 6, wherein, The ambient light data includes first ambient light data for the upward ambient light of the vehicle and second ambient light data for the forward ambient light of the vehicle, and the ambient light change rate includes a first ambient light change rate for the first ambient light data and a second ambient light change rate for the second ambient light data.

8. The apparatus according to claim 7, wherein, The scene recognition module is used for: If the first ambient light change rate indicates that the rate of decrease of the upward ambient light of the vehicle exceeds a first threshold, and the second ambient light change rate indicates that the rate of decrease of the forward ambient light of the vehicle exceeds a second threshold, it is determined that the vehicle is about to travel in a tunnel scenario.

9. The apparatus according to claim 7, wherein, The scene recognition module is used for: If the first ambient light change rate indicates that the upward ambient light of the vehicle is rising and falling regularly and the rate of rise and fall exceeds a third threshold, and the second ambient light change rate indicates that the forward ambient light change rate of the vehicle does not exceed a fourth threshold, it is determined that the vehicle is driving in a tunnel scenario.

10. The apparatus according to claim 7, wherein, The scene recognition module is used for: If the first ambient light change rate indicates that the upward ambient light rise rate of the vehicle exceeds a fifth threshold, and the second ambient light change rate indicates that the forward ambient light rise rate of the vehicle exceeds a sixth threshold, it is determined that the vehicle has exited the tunnel scene. The mode switching module is also used to determine to exit the tunnel lighting mode of the vehicle when it is determined that the vehicle has left the tunnel scene.

11. A vehicle comprising the means according to any one of claims 6-10.

12. A computer program product storing instructions, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 5.