Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for triggering an automobile safety mechanism based on probability distribution, so as to solve the technical problems, consider the difference that the judgment of different drivers on road conditions is influenced by audio volume, and adjust the safety mechanism triggering probability corresponding to each driver under different audio volume, so that the triggering of the automobile safety mechanism can really meet the requirements of each driver.
In order to solve the above technical problem, an embodiment of the present invention provides a method for triggering an automobile safety mechanism based on probability distribution, including:
acquiring the volume of a current compartment and a probability table corresponding to a current driver; the probability table comprises a plurality of entries, and each entry records volume and probability corresponding to the volume;
when the vehicle is judged to be in an emergency road condition, acquiring a trigger probability corresponding to the volume of the current carriage according to the probability table, and judging whether to trigger an automatic vehicle execution safety mechanism according to the trigger probability and a preset rule;
when the automatic vehicle execution safety mechanism is judged not to be triggered according to the triggering probability and a preset rule, judging whether a driver actively triggers the automatic vehicle execution safety mechanism or not;
if so, reducing the trigger probability corresponding to the current carriage volume in the probability table according to a preset reduction rule, and updating and storing the trigger probability;
and if not, increasing the triggering probability corresponding to the current carriage volume in the probability table according to a preset increasing rule, and updating and storing the triggering probability.
Further, before the obtaining the current car volume and the probability table corresponding to the current driver, the method further includes:
when the current driver is detected to be an unassociated driver, the information of the current driver is collected, the association relationship between the current driver and the vehicle is established, and a probability table corresponding to the current driver is established.
Further, the judging method of the emergency road condition specifically includes:
acquiring the current speed of a vehicle, a preset first braking acceleration of the vehicle and the distance between the vehicle and a front vehicle; wherein the vehicle first braking acceleration is less than a vehicle maximum braking acceleration;
calculating a first braking distance according to the current vehicle speed of the vehicle and the first braking acceleration of the vehicle;
and when the first braking distance is greater than the distance between the vehicle and the front vehicle, judging that the vehicle is in an emergency road condition.
Further, the obtaining, according to the probability table, a trigger probability corresponding to the current car volume specifically includes:
judging whether a triggering probability corresponding to the current compartment volume exists in the probability table;
if yes, acquiring a trigger probability corresponding to the current carriage volume;
if not, generating a latest probability value according to a preset generation rule, taking the latest probability value as the trigger probability, and taking the latest probability value and the current carriage volume as an entry to be recorded in the probability table.
Further, the generating a latest probability value according to a preset generating rule specifically includes:
when a volume item smaller than the volume of the current compartment exists in the probability table and the probability value corresponding to the volume item is larger than a preset first preset value, generating a latest probability value, wherein the latest probability value is larger than the probability value corresponding to the volume item;
when a plurality of volume entries smaller than the volume of the current compartment exist in the probability table, and the probability value corresponding to the maximum volume value in the volume entries is not larger than the preset first preset value, calculating according to preset unit step length to obtain the latest probability value;
when there is no volume entry smaller than the current car volume in the probability table, a value not greater than 0.5 is generated as the latest probability value.
Further, the determining, according to the trigger probability and according to a preset rule, whether to trigger an automatic vehicle execution safety mechanism specifically includes:
generating a random value in the range of [0,1 ];
if the triggering probability is larger than or equal to the random value, triggering the vehicle to automatically execute a safety mechanism;
and if the triggering probability is smaller than the random value, not triggering the automatic execution safety mechanism of the vehicle.
Further, the increasing and updating the trigger probability corresponding to the current car volume in the probability table according to a preset increasing rule specifically includes:
judging whether the current road condition of the vehicle reaches a preset emergency condition or not;
if so, controlling the vehicle to actively brake, increasing the trigger probability corresponding to the current carriage volume in the probability table according to a preset first increasing rule, and updating and storing the trigger probability;
and if not, increasing the triggering probability corresponding to the current carriage volume in the probability table according to a preset second increasing rule, and updating and storing the triggering probability.
Further, the judging whether the current road condition of the vehicle reaches a preset emergency condition specifically comprises:
calculating a difference value obtained by subtracting the minimum braking distance of the vehicle from the distance between the vehicle and the front obstacle, and judging whether the difference value is smaller than a preset first distance;
if so, judging that the current road condition of the vehicle reaches a preset emergency condition;
if not, judging that the current road condition of the vehicle does not reach the preset emergency condition.
Further, the safety mechanism comprises one or more of pausing playing the audio and prompting the road condition by voice, controlling the audio volume to be reduced to a preset range, and controlling the vehicle to execute braking.
In order to solve the same technical problem, the invention provides a probability distribution-based triggering device for an automobile safety mechanism, which comprises:
the volume acquisition module is used for acquiring the volume of the current carriage and a probability table corresponding to the current driver; the probability table comprises a plurality of entries, and each entry records volume and probability corresponding to the volume;
the first judgment module is used for acquiring the trigger probability corresponding to the current carriage volume according to the probability table when the vehicle is judged to be in the emergency road condition, and judging whether to trigger the vehicle to automatically execute a safety mechanism according to the trigger probability and a preset rule;
the second judgment module is used for judging whether the driver actively triggers the vehicle to execute the safety mechanism or not when the triggering probability is judged not to trigger the vehicle to automatically execute the safety mechanism according to a preset rule;
the first updating module is used for reducing and updating the triggering probability corresponding to the current carriage volume in the probability table according to a preset reduction rule;
and the second updating module is used for increasing and updating the triggering probability corresponding to the current carriage volume in the probability table according to a preset increasing rule.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides a method and a device for triggering an automobile safety mechanism based on probability distribution, wherein the method comprises the following steps: acquiring the volume of a current compartment and a probability table corresponding to a current driver; when the vehicle is judged to be in the emergency road condition, acquiring the corresponding triggering probability according to the probability table to judge whether to trigger the vehicle to automatically execute a safety mechanism; when the automatic vehicle execution safety mechanism is judged not to be triggered, judging whether a driver actively triggers the automatic vehicle execution safety mechanism or not; if so, reducing the corresponding trigger probability according to a preset reduction rule and updating and storing the trigger probability; if not, according to a preset increasing rule, increasing the corresponding triggering probability and updating and storing. The method and the device can consider the difference that the judgment of different drivers on the road condition is influenced by the audio volume, and adjust the triggering probability of the safety mechanism corresponding to each driver under different audio volumes, so that the triggering of the vehicle safety mechanism can really meet the requirements of each driver.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-2, an embodiment of the present invention provides a method for triggering an automobile safety mechanism based on probability distribution, including the steps of:
s1, acquiring the volume of the current compartment and a probability table corresponding to the current driver; the probability table includes a plurality of entries, and each entry records a volume and a probability corresponding to the volume.
And S2, when the vehicle is judged to be in the emergency road condition, acquiring the triggering probability corresponding to the current carriage volume according to the probability table, and judging whether to trigger the vehicle to automatically execute a safety mechanism according to the triggering probability and a preset rule.
In the embodiment of the present invention, further, the determining method of the emergency road condition specifically includes:
acquiring the current speed of a vehicle, a preset first braking acceleration of the vehicle and the distance between the vehicle and a front vehicle; wherein the vehicle first braking acceleration is less than a vehicle maximum braking acceleration;
calculating a first braking distance according to the current vehicle speed of the vehicle and the first braking acceleration of the vehicle;
and when the first braking distance is greater than the distance between the vehicle and the front vehicle, judging that the vehicle is in an emergency road condition.
In this embodiment of the present invention, further, the obtaining, according to the probability table, a trigger probability corresponding to the current car volume includes:
judging whether a triggering probability corresponding to the current compartment volume exists in the probability table;
if yes, acquiring a trigger probability corresponding to the current carriage volume;
if not, generating a latest probability value according to a preset generation rule, taking the latest probability value as the trigger probability, and taking the latest probability value and the current carriage volume as an entry to be recorded in the probability table.
In the embodiment of the present invention, further, the generating a latest probability value according to a preset generation rule specifically includes:
when a volume item smaller than the volume of the current compartment exists in the probability table and the probability value corresponding to the volume item is larger than a preset first preset value, generating a latest probability value, wherein the latest probability value is larger than the probability value corresponding to the volume item;
when a plurality of volume entries smaller than the volume of the current compartment exist in the probability table, and the probability value corresponding to the maximum volume value in the volume entries is not larger than the preset first preset value, calculating according to preset unit step length to obtain the latest probability value;
when there is no volume entry smaller than the current car volume in the probability table, a value not greater than 0.5 is generated as the latest probability value.
In the embodiment of the present invention, further, the determining, according to the trigger probability and according to a preset rule, whether to trigger an automatic vehicle execution safety mechanism specifically includes:
generating a random value in the range of [0,1 ];
if the triggering probability is larger than or equal to the random value, triggering the vehicle to automatically execute a safety mechanism;
and if the triggering probability is smaller than the random value, not triggering the automatic execution safety mechanism of the vehicle.
S3, judging whether the driver actively triggers the vehicle to execute the safety mechanism or not when judging that the vehicle automatically executes the safety mechanism is not triggered according to the triggering probability and a preset rule;
s4, if yes, reducing the triggering probability corresponding to the current carriage volume in the probability table according to a preset reduction rule, and updating and storing the triggering probability;
and S5, if not, increasing the trigger probability corresponding to the current carriage volume in the probability table according to a preset increasing rule, and updating and storing the trigger probability.
In this embodiment of the present invention, further, the increasing and updating the trigger probability corresponding to the current car volume in the probability table according to a preset increasing rule specifically includes:
judging whether the current road condition of the vehicle reaches a preset emergency condition or not;
if so, controlling the vehicle to actively brake, increasing the trigger probability corresponding to the current carriage volume in the probability table according to a preset first increasing rule, and updating and storing the trigger probability;
and if not, increasing the triggering probability corresponding to the current carriage volume in the probability table according to a preset second increasing rule, and updating and storing the triggering probability.
In the embodiment of the present invention, further, the determining whether the current road condition of the vehicle meets a preset emergency condition specifically includes:
calculating a difference value obtained by subtracting the minimum braking distance of the vehicle from the distance between the vehicle and the front obstacle, and judging whether the difference value is smaller than a preset first distance;
if so, judging that the current road condition of the vehicle reaches a preset emergency condition;
if not, judging that the current road condition of the vehicle does not reach the preset emergency condition.
In this embodiment of the present invention, before the obtaining of the current car volume and the probability table corresponding to the current driver, the method further includes:
s6, when it is detected that the current driver is an unassociated driver, collecting information of the current driver, establishing an association relationship between the current driver and the vehicle, and establishing a probability table corresponding to the current driver.
In the embodiment of the invention, the safety mechanism comprises one or more of pausing playing the audio and prompting the road condition by voice, controlling the audio volume to be reduced to a preset range and controlling the vehicle to execute braking.
It should be noted that, according to the method for triggering the safety mechanism of the vehicle based on the probability distribution provided by the invention, different probability tables are established for different drivers, and whether the emergency situations of the different drivers at different audio volumes actively trigger the safety mechanism is detected, so that whether the different audio volumes affect the judgment of the corresponding drivers on the road condition is indirectly known, and further, the probability of triggering the safety mechanism corresponding to the different drivers at different audio volumes is adjusted, so that the triggering of the safety mechanism of the vehicle at different audio volumes can really meet the requirements of the drivers.
Based on the above scheme, in order to better explain the method for triggering the automobile safety mechanism based on probability distribution provided by the present invention, specific examples are listed below for explanation, and the method includes:
step 1: detecting whether a current driver is an associated driver or not when the vehicle runs; if not, entering the step 2; if yes, go to step 3.
Step 2: collecting information of a current driver, storing the information in a driver information base, and establishing an incidence relation between the current driver and a vehicle; and a probability table is newly established for the current driver as shown in table 1, and the process proceeds to step 3. (the number of entries of the probability table for each driver is gradually increased as the driving time of the driver increases).
TABLE 1 probability table
L (decibel)
|
P(L)
|
L1
|
P1
|
L2
|
P2
|
…
|
… |
And step 3: obtaining the current volume L in the carriagecurr;
And 4, step 4: detecting whether the current vehicle is in an emergency road condition; if not, returning to the step 3; if yes, entering step 5;
in step 4, whether the vehicle is in an emergency road condition can be detected according to the following steps 4.1-4.3:
step 4.1: acquiring the current speed of a vehicle, a preset first braking acceleration of the vehicle and a distance between the vehicle and a front vehicle;
step 4.2: calculating a first braking distance according to the current vehicle speed and the first braking acceleration; it should be noted that, considering that it is preferable to give the vehicle a buffer distance, the first braking acceleration is preferably smaller than the maximum braking acceleration of the vehicle, and thus the calculated first braking distance may be larger than the braking distance calculated according to the maximum braking acceleration, which is beneficial to provide the vehicle with a sufficient distance or time to cope with special situations;
step 4.3: and when the first braking distance is greater than the vehicle distance, judging that the vehicle is in an emergency road condition.
And 5: inquiring current volume L from probability tablecurrCorresponding probability P (L)curr) (ii) a If the current volume L does not exist in the probability tablecurrCorresponding probability P (L)curr) Then entry { L }curr,P(Lcurr)=P0Add to probability table, P0Is a preset value;
in step 5, P0Can be determined according to the following steps:
step 5.1: when there is less than current volume L in the probability tablecurrVolume L oflowAnd the volume LlowCorresponding probability P (L)low) If greater than the first predetermined value, then P0Is set to be not less than P (L)low) The value of (P (L) is the greater the volume in the vehicle is, the more the capability of the driver is affectedlow) Already large, P (L)curr) Larger only, e.g. a first preset value of 0.9, P (L)curr)=P0=1)。
Step 5.2: when there is less than current volume L in the probability tablecurrVolume L oflowAnd all volumes LlowMedian maximum value Llow-maxCorresponding probability P (L)low-max) If not greater than the first preset value, P is calculated according to a certain unit step length0E.g. unit step size of 0.01, Lcurr-Llow-maxWhen the value is 5db, P (L) is calculatedcurr)=P0=P(Llow-max)+0.01*5。
Step 5.3: when there is no less than the current volume L in the probability tablecurrVolume L oflowWhen it is, P (L) is setcurr)=P0A default value, such as 0.5, and P (L) to increase the update rate of the probabilitycurr)=P0Not exceeding 0.5 because if it exceeds 0.5, the initial probability of the current volume is higher and the vehicle is more likely to be actively performing the safety mechanism and less performing steps 7-9, resulting in slower probability updating.
Step 6: with P (L)curr) Triggers the vehicle to automatically execute the safety mechanism in 1-P (L)curr) Does not trigger the vehicle to implement a safety mechanism;
step 6 can be realized through steps 6.1-6.3:
step 6.1: randomly generating a random value epsilon within the range of [0,1 ];
step 6.2: if epsilon<=P(Lcurr) Triggering the automatic execution safety mechanism of the vehicle;
step 6.3: if epsilon>P(Lcurr) The vehicle enforcement safety mechanism is not triggered.
The safety mechanism of the vehicle can be set according to actual needs, for example, the current audio frequency is temporarily stopped, the current road condition needing attention of the driver is prompted through voice, for example, the audio frequency volume is controlled to be reduced to a preset range, or the vehicle is decelerated, avoided from surrounding objects, braked and the like, and multiple mechanisms can be combined.
And 7: if the vehicle execution safety mechanism is not triggered in the step 6, detecting whether the driver actively triggers the vehicle execution safety mechanism or not; if the driver does not actively trigger the vehicle to execute the safety mechanism, the method goes to step 8; if the driver actively triggers the vehicle to execute a safety mechanism, the method goes to step 9;
and 8: judging whether the road condition of the current vehicle reaches a preset condition, if so, forcibly controlling the vehicle to actively brake, and increasing the current volume L according to a preset first increase rulecurrCorresponding summaryRate P (L)curr) (ii) a If the road condition of the current vehicle does not reach the preset condition, increasing the current volume L according to a preset second increase rulecurrCorresponding probability P (L)curr) And returning to the steps 3-7. (considering that the safety mechanism is not triggered in the step 6 and the driver does not actively trigger the safety mechanism, if the vehicle returns to the steps 3-7, the vehicle may not have enough time to avoid a traffic accident, so the vehicle returns to the steps 3-7 when the preset condition is not reached, and if the preset condition is reached, the vehicle road condition is relatively urgent, and the vehicle is directly and actively braked).
In step 8, when the difference between the current distance between the vehicle and the object in front and the minimum braking distance of the vehicle is less than a preset distance, it is determined that the road condition of the current vehicle meets the preset condition. The minimum braking distance is a distance required for decelerating to 0 when the current vehicle speed is braked according to the maximum braking acceleration.
In "step 8", the first increasing rule may be the same as or different from the second increasing rule, for example, the first increasing rule is P' (L)curr)=P(Lcurr)*δ+1-δ,P’(Lcurr) For increased probability, δ is at [0,1]]Inner, e.g., δ 0.95; the second increasing rule is P' (L)curr)=P(Lcurr)*(1+α),α>0, α can be adjusted according to actual needs, for example, α is 0.05. Probability P' (L)curr) The upper limit value of (2) is 1.
And step 9: according to a certain reduction rule, reducing the current volume LcurrCorresponding probability P (L)curr) (ii) a (if the driver actively executes the safety mechanism in step 7, the current volume L is indicatedcurrThe judgment of the driver on the road condition is not influenced, and the P (L) in the probability table can be updatedcurr) Reducing the current volume L of the vehiclecurrProbability of triggering security mechanism down).
In step 9, the reduction rule may be P' (L)curr)=P(Lcurr)*δ。
Continuously executing the steps 1 to 9, the probability P (L) corresponding to the audio volume L which influences the response capability of the driver is increased because P corresponding to different audio volumes L tends to be stable, so that the vehicle execution safety mechanism is easier to be actively triggered in the step 6; the probability P (L) corresponding to the audio volume which does not affect the coping ability of the driver is reduced, and the audio listening of the driver is not hindered.
It should be noted that, in an embodiment, step 8 may directly increase the probability P (L) without the judgment of the preset conditioncurr) And returning to the steps 3-7.
It should be noted that, in a specific embodiment, the safety mechanism, the first increase rule, the second increase rule, and the decrease rule may be set according to actual needs, for example, the corresponding mechanism/rule is specifically set according to different vehicle models, vehicle performances, and the like.
It should be noted that, in the specific embodiment, the probability table is not limited to the form of table 1, as long as the probability corresponding to the current volume can be found. For example, the audio frequencies may be grouped by range, with each group corresponding to a probability, e.g., 50db to 60db for P1 and 60db to 70db for P2.
It should be noted that, in an embodiment, the probability table of the driver may be shared synchronously on different vehicles/platforms through a preset software/access interface, etc. to speed up the update of the probability table of the driver and facilitate the triggering of the safety mechanism on different vehicles with relatively accurate probability without repeatedly updating the probability table.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the invention provides a probability distribution-based automobile safety mechanism triggering method, which indirectly knows whether different audio volumes can influence the judgment of a driver on road conditions by detecting whether the driver actively triggers a safety mechanism under emergency conditions of different audio volumes, and further adjusts the probability of triggering the safety mechanism corresponding to different audio volumes, so that the triggering of the automobile safety mechanism under different audio volumes can really meet the requirements of the driver.
It should be noted that the above method or flow embodiment is described as a series of acts or combinations for simplicity, but those skilled in the art should understand that the present invention is not limited by the described acts or sequences, as some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are exemplary embodiments and that no single embodiment is necessarily required by the inventive embodiments.
Referring to fig. 3, to solve the same technical problem, the present invention provides a probability distribution-based triggering device for a safety mechanism of an automobile, including:
the system comprises a volume acquisition module 1, a volume acquisition module and a probability table, wherein the volume acquisition module is used for acquiring the volume of a current carriage and the probability table corresponding to a current driver; the probability table comprises a plurality of entries, and each entry records volume and probability corresponding to the volume;
the first judgment module 2 is used for acquiring the trigger probability corresponding to the current carriage volume according to the probability table when the vehicle is judged to be in the emergency road condition, and judging whether to trigger the vehicle to automatically execute a safety mechanism according to the trigger probability and a preset rule;
the second judgment module 3 is used for judging whether the driver actively triggers the vehicle to execute the safety mechanism or not when judging that the vehicle automatic execution safety mechanism is not triggered according to the trigger probability according to a preset rule;
the first updating module 4 is configured to reduce and update the trigger probability corresponding to the current car volume in the probability table according to a preset reduction rule;
and the second updating module 5 is configured to increase and update the trigger probability corresponding to the current car volume in the probability table according to a preset increase rule.
It can be understood that the above-mentioned embodiment of the apparatus item corresponds to the embodiment of the method item of the present invention, and the probability distribution-based triggering apparatus for an automobile safety mechanism provided in the embodiment of the present invention can implement the probability distribution-based triggering method for an automobile safety mechanism provided in any embodiment of the method item of the present invention.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.