Vehicle three-urgency detection method and system, vehicle and storage medium
By obtaining acceleration and angular velocity data in the vehicle, calibrating and calibration of the equipment, and using complementary filtering and fusing data to determine the three emergency states of the vehicle, solving the problem of dependence on high-precision positioning data in the prior art, realizing the low-end equipment The accuracy of the three emergency state judgments is improved.
Patent Information
- Application Number
- CN202411309700.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, the judgment of the three emergency states of vehicles requires combining sensor data and high-precision positioning data, which leads to the inability to adapt to low-end devices and the method of simply using sensor data has a large error, so it is impossible to accurately judge the three emergency states.
By obtaining the acceleration and angular velocity data of the on-board equipment, the equipment is calibrated and calibrated, and the data is fused by complementary filtering to determine the three emergency states of the vehicle, without high-precision positioning data, it is adapted to low-end equipment, and the accuracy of state recognition is improved.
It reduces equipment costs and adapts to low-end equipment with gyroscopes, improves the accuracy of three emergency states and reduces the speed floating of the equipment in a static drift state.
Smart Images

Figure CN119064030A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle detection technology, and in particular to a vehicle three-emergency detection method, system, vehicle and storage medium. Background Art
[0002] The on-board recorder contains a 6-axis gyroscope. How to accurately judge the three emergency states through gsensor data (Gravity Sensor Data) and thus evaluate the driver's driving habits is a basic function of the current smart recorder.
[0003] The current conventional implementation methods are: First, by obtaining gsensor data and combining it with high-precision gps data (Global Positioning System Data) to determine the three emergency states of the vehicle, but this method requires the introduction of high-precision gps data and cannot be adapted to low-end devices. Second, leaving aside the gps speed, simply using gsensor data, and simply judging the three emergency states through accelerometer data, this method brings large errors and cannot accurately determine.
[0004] That is, in the existing technical solutions, high-precision GPS data is required, which cannot be adapted to low-end devices; the method of simply using gsensor data has large errors and cannot accurately determine the three emergency states.
[0005] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0006] The main purpose of this application is to provide a vehicle three-emergency detection method, system, vehicle and storage medium, aiming to solve the problem in the prior art that it is necessary to combine sensor data and high-precision positioning data to judge the three-emergency status of vehicle-mounted equipment, and the three-emergency status judgment based solely on sensor data leads to large errors.
[0007] A first aspect of an embodiment of the present application provides a vehicle three-emergency detection method, which includes the following steps: acquiring acceleration data and angular velocity data of a vehicle-mounted device; calibrating the device according to the acceleration data and the angular velocity data to obtain benchmark data of the vehicle-mounted device; obtaining the vehicle's three-emergency status according to the acceleration data, the angular velocity data and the benchmark data; and notifying the vehicle driver according to a preset strategy based on the three-emergency status.
[0008] Optionally, in one embodiment of the present application, the vehicle three-emergency detection method also includes: acquiring the acceleration and angular velocity of the vehicle-mounted equipment, calibrating the acceleration, and obtaining an updated acceleration; calculating the static drift value corresponding to the vehicle-mounted equipment, and calculating the difference between the angular velocity and the static drift value to obtain an updated angular velocity; using a complementary filtering method to fuse the updated acceleration and the updated angular velocity to obtain fused data; based on the fused data, calibrating the pitch angle, yaw angle and roll angle of the vehicle-mounted equipment to obtain calibrated pitch angle, yaw angle and roll angle.
[0009] Optionally, in one embodiment of the present application, the device calibration is performed according to the acceleration data and the angular velocity data to obtain the benchmark data of the vehicle-mounted device, specifically including: obtaining the static initial value of the vehicle-mounted device and the standard value of the standard device; aligning the static initial value with the standard value to obtain the benchmark data of the vehicle-mounted device.
[0010] Optionally, in one embodiment of the present application, the pitch angle, yaw angle and roll angle of the vehicle-mounted equipment are calibrated according to the fusion data to obtain calibrated pitch angle, yaw angle and roll angle, which specifically includes: updating the quaternion according to the fusion data to obtain updated quaternion data; converting the updated quaternion data to obtain calibrated pitch angle, yaw angle and roll angle.
[0011] Optionally, in one embodiment of the present application, the vehicle three-emergency detection method also includes: obtaining abnormal values of the vehicle-mounted equipment, and judging the uphill and downhill states of the vehicle-mounted equipment based on the abnormal values; recalibrating the vehicle-mounted equipment based on the uphill and downhill states to obtain abnormal state reference data, so as to use the abnormal state reference data as the reference data for three-emergency state judgment.
[0012] Optionally, in one embodiment of the present application, the acceleration data is a forward and backward acceleration change value and a lateral acceleration change value within a preset time, the angular velocity data includes a pitch angle change value, a yaw angle change value and a roll angle change value within a preset time, the benchmark data includes a first acceleration benchmark value, a first angle benchmark value, a second acceleration benchmark value, a second angle benchmark value, a third acceleration benchmark value and a third angle benchmark value, and the three emergency states include a sudden acceleration state, a sudden deceleration state and a sudden turn state; the three emergency states of the vehicle are obtained according to the acceleration data, the angular velocity data and the benchmark data, Specifically, it includes: if the absolute value of the fore-and-aft acceleration change value is greater than the first acceleration reference value, and the pitch angle change value is greater than the first angle reference value, it is determined that the vehicle is in a rapid deceleration state; if the fore-and-aft acceleration change value is greater than the second acceleration reference value, and the pitch angle change value is greater than the second angle reference value, it is determined that the vehicle is in a rapid acceleration state; if the lateral acceleration change value is greater than the third acceleration reference value, and the weighted sum of the yaw angle change value and the roll angle change value is greater than the third angle reference value, it is determined that the vehicle is in a sharp turn state.
[0013] Optionally, in one embodiment of the present application, the preset strategy includes a sudden deceleration response strategy, a sudden acceleration response strategy and a sharp turn response strategy; the notifying the vehicle driver according to the preset strategy based on the three sudden states specifically includes: when the vehicle is in the sudden deceleration state, reminding the vehicle driver according to the sudden deceleration response strategy; when the vehicle is in the sudden acceleration state, reminding the vehicle driver according to the sudden acceleration response strategy; when the vehicle is in the sharp turn state and the deceleration state at the same time, reminding the vehicle driver according to the sharp turn response strategy.
[0014] The second aspect of the embodiment of the present application further provides a vehicle three-emergency detection system, wherein the vehicle three-emergency detection system comprises:
[0015] A data acquisition module, used to acquire acceleration data and angular velocity data of the vehicle-mounted equipment;
[0016] A device calibration module, used to perform device calibration according to the acceleration data and the angular velocity data to obtain reference data of the vehicle-mounted device;
[0017] A state judgment module, used for obtaining the three emergency states of the vehicle according to the acceleration data, the angular velocity data and the reference data;
[0018] The detection reminder module is used to notify the vehicle driver according to the three emergency states and in accordance with a preset strategy.
[0019] The third aspect of an embodiment of the present application also provides a vehicle, wherein the vehicle includes: a memory, a processor, and a vehicle three-emergency detection program stored on the memory and executable on the processor, wherein the vehicle three-emergency detection program implements the steps of the vehicle three-emergency detection method as described above when executed by the processor.
[0020] The fourth aspect of an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a vehicle three-emergency detection program, and when the vehicle three-emergency detection program is executed by a processor, the steps of the vehicle three-emergency detection method as described above are implemented.
[0021] Beneficial effects: The present application provides a vehicle three-emergency detection method, system, vehicle and storage medium. The method makes judgments through acceleration and angular velocity, does not require high-precision positioning data, reduces equipment costs, can be adapted to low-end devices with gyroscopes, and improves the accuracy of state recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 It is a flow chart of a preferred embodiment of the vehicle three-emergency detection method of the present application;
[0024] Figure 2 It is a structural diagram of a preferred embodiment of the vehicle three-emergency detection system of the present application;
[0025] Figure 3 This is a structural diagram of a preferred embodiment of the vehicle of the present application.
[0026] Description of reference numerals:
[0027] 10. Vehicle three-emergency detection system; 100. Data acquisition module; 200. Equipment calibration module; 300. Status judgment module; 400. Detection reminder module.
[0028] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical scheme and effect of the present application clearer and more specific, the technical scheme in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. The described embodiments are only possible technical implementations of the present application, not all possible implementations. Based on the embodiments in the present application, those skilled in the art can completely combine the embodiments of the present application to obtain other embodiments without creative work, and these embodiments are also within the scope of protection of the present application.
[0030] First, the system architecture of the embodiment of the present application is introduced.
[0031] The vehicle-mounted device is a device installed in the vehicle. The vehicle-mounted device has a six-axis gyroscope. The six-axis gyroscope is a sensor that integrates a three-axis accelerometer and a three-axis gyroscope. It can sense the changes in the vehicle's linear velocity (through the accelerometer) and angular velocity (through the gyroscope) in the three axes of X, Y, and Z. In the vehicle, the six-axis gyroscope is usually used as part of the inertial measurement unit (IMU) to monitor the vehicle's motion state in real time. It can provide the vehicle's pitch angle (the angle of the front of the vehicle tilted around the Y axis), heading angle (the angle of the body rotating around the Z axis) and roll angle (the angle of the side wheel lifted around the X axis), thereby helping the vehicle control system to make corresponding adjustments to ensure driving safety and stability.
[0032] Secondly, the nouns involved in the embodiments of the present application are introduced:
[0033] gsensor data (Gravity Sensor Data): Gravity sensor data refers to the data measured by the accelerometer, which is used to detect the acceleration and gravity direction of the device in space.
[0034] GPS data (Global Positioning System Data): Global Positioning System data, which provides geographic location, speed and time information through satellite signals.
[0035] Pitch (PitchAngle): Pitch angle, which indicates the rotation angle of an object around its horizontal axis (usually the X-axis), and is used to describe the degree to which the object's head is tilted upward or downward.
[0036] Yaw (YawAngle): Yaw angle, which indicates the rotation angle of an object around its vertical axis (usually the Z axis), and is used to describe the rotation or turning of an object on the horizontal plane.
[0037] Roll (RollAngle): Roll angle, which indicates the rotation angle of an object around its longitudinal axis (usually the Y axis), and is used to describe the lateral tilt of an object.
[0038] Three emergencies: refers to three emergency conditions during vehicle driving, namely sudden acceleration, sudden deceleration and sharp turns, which are used to evaluate the driver's driving habits and vehicle performance.
[0039] The following describes the vehicle three-emergency detection method, system, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problem that the above-mentioned related technologies need to combine sensor data and high-precision positioning data to judge the three-emergency status of vehicle-mounted equipment, and the three-emergency status judgment error is large due to sensor data alone, the present application provides a vehicle three-emergency detection method. In this method, the judgment is made by acceleration and angular velocity, and no high-precision positioning data is required, which reduces the equipment cost, can be adapted to low-end devices with gyroscopes, and improves the accuracy of status recognition. As a result, it solves the technical problem that the related technologies need to combine sensor data and high-precision positioning data to judge the three-emergency status of vehicle-mounted equipment, and the three-emergency status judgment error is large due to sensor data alone.
[0040] The embodiments of the present application have the following advantages: it is free from the high-precision GPS speed requirement, reduces the speed fluctuation of the device in the static drift state, and also reduces the device cost. With the help of gsensor data, different devices can be adapted through alignment and calibration. Relying solely on gsensor data, plus multiple logical judgments, the judgment speed is at the millisecond level, which improves the accuracy of identifying the three urgent states.
[0041] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0042] The vehicle three-emergency detection method described in the preferred embodiment of the present application is as follows: Figure 1 As shown, the vehicle three-emergency detection method includes the following steps:
[0043] In step S101 , acceleration data and angular velocity data of the vehicle-mounted device are acquired.
[0044] It is understandable that real-time gsensor data collection on the device is the basis of the entire process, and it is necessary to obtain real-time raw acceleration (gsensor data) and angular velocity data from the 6-axis gyroscope. These data are the basis for all subsequent judgments.
[0045] Specifically, before data collection, the 6-axis gyroscope needs to be initialized. This includes configuring the relevant parameters of the sensor, such as sampling rate, working mode, etc., to ensure that it can collect data normally and accurately. After the gyroscope starts working, it collects acceleration and angular velocity data in real time according to the set sampling rate. These data correspond to the acceleration and angular velocity information of the device in the three axes of X, Y, and Z. Since the original sensor data may contain noise, filtering is required to improve the data quality. Common filtering methods include sliding window filtering, Kalman filtering, etc. The filtered data is smoother and can more accurately reflect the actual motion state of the device. In order to obtain more accurate device attitude information, the data of the accelerometer and gyroscope are fused. Data fusion can be achieved through complementary filtering, Kalman filtering and other algorithms. The fused data can more accurately describe the dynamic and static states of the device. Finally, the real-time attitude of the device is calculated by the fused acceleration and angular velocity data. The attitude is usually expressed by quaternion or Euler angle, which reflects the orientation of the device relative to the standard coordinate system.
[0046] In step S102, equipment calibration is performed according to the acceleration data and the angular velocity data to obtain reference data of the vehicle-mounted equipment.
[0047] It should be noted that static calibration and alignment are performed to first obtain the initial value of the device in a static state, that is, the value when the data does not fluctuate much. This initial value is set as the baseline value of the current device, and then aligned with the initial value under the standard device. This is to ensure the accuracy and consistency of the data and reduce errors in subsequent calculations.
[0048] In a possible implementation, a static initial value of the vehicle-mounted device and a standard value of a standard device are obtained; the static initial value is aligned with the standard value to obtain reference data of the vehicle-mounted device.
[0049] Specifically, obtain the static initial value, ensure that the device is in a completely static state, and obtain data from sensors (such as a 6-axis gyroscope). These data should be stable values with small fluctuations. These initial values represent the inherent deviation of the device and the influence of environmental factors. The data in the static state is used as the initial value of the device. This is to establish a reference point for subsequent data comparison and correction. Ensuring that the initial value is accurate and reliable is the basis of the entire calibration process. The initial value obtained is compared and aligned with the standard device or known accurate data. The purpose is to eliminate the device-specific system error and ensure that the data output of all devices is at the same accuracy level. Alignment usually involves data conversion and rotation to make the two data sets as close as possible. Through static calibration, errors introduced by the characteristics of the device itself can be eliminated and the measurement accuracy can be improved. During calibration, variables need to be controlled to ensure that no external factors affect the data except the device itself.
[0050] That is, the embodiments of the present application can provide more accurate and consistent data, which is particularly important for high-precision applications. Static calibration and alignment is not just a one-time process. Depending on the environment and frequency of use of the device, regular recalibration may be required to ensure its performance.
[0051] In a possible implementation, the acceleration and angular velocity of the vehicle-mounted equipment are obtained, and the acceleration is calibrated to obtain an updated acceleration; the static drift value corresponding to the vehicle-mounted equipment is calculated, and the difference between the angular velocity and the static drift value is calculated to obtain an updated angular velocity; the updated acceleration and the updated angular velocity are fused by complementary filtering to obtain fused data; the quaternion is updated according to the fused data to obtain updated quaternion data; the updated quaternion data is converted to obtain calibrated pitch angle, yaw angle and roll angle.
[0052] It should be noted that the pitch, yaw, and roll angles are calibrated, and the aligned acceleration is used as the initial value of the current device. The angular velocity value is subtracted from the static drift value. The pitch (pitch angle), yaw (yaw angle), and roll (roll angle) are calibrated through complementary filtering. This is to further optimize the data and ensure the accuracy of the angle data, thereby more accurately reflecting the actual motion state of the device.
[0053] Specifically, real-time acceleration and angular velocity data are obtained from the 6-axis gyroscope, and the calibrated acceleration is used as the initial value of the device, which reflects the baseline state of the device in a stationary state. The static drift values of the accelerometer and gyroscope are calculated. The static drift value refers to the non-zero reading caused by sensor errors, environmental noise and other factors when the device is in a completely stationary state. Accurately calculating and subtracting these static drift values is a key step to ensure the accuracy of sensor data. Complementary filtering processing: The complementary filtering algorithm is applied to fuse the acceleration and angular velocity data. The core idea of complementary filtering is to combine the advantages of the accelerometer and gyroscope, and by adjusting the weights of their respective filters, the purpose of suppressing high-frequency noise and compensating low-frequency drift is achieved. Quaternion update: The filtered data is used to update the quaternion of the device. Quaternion is a mathematical tool that can effectively avoid the gimbal deadlock problem. It can continuously and without singularity represent any three-dimensional rotation. Through quaternions, the real-time posture of the device can be accurately calculated. Euler angle conversion: The updated quaternion is converted into three Euler angles: pitch, yaw, and roll. These three angles describe the rotation angles of the device around its X, Y, and Z axes, respectively, and intuitively reflect the device's posture in space. Dynamic posture representation: Through the above steps, it can be ensured that the calibration of pitch, yaw, and roll angles is both accurate and real-time, so that the device can effectively reflect its dynamic changes in three-dimensional space.
[0054] The embodiment of the present application comprehensively utilizes the stability of the accelerometer and the dynamic response characteristics of the gyroscope, and effectively improves the accuracy and reliability of attitude solution through a complementary filtering algorithm.
[0055] In one possible implementation, an abnormal value of the vehicle-mounted equipment is obtained, and the uphill and downhill states of the vehicle-mounted equipment are judged based on the abnormal value; based on the uphill and downhill states, the vehicle-mounted equipment is recalibrated to obtain abnormal state benchmark data, and the abnormal state benchmark data is used as the benchmark data for three emergency state judgment.
[0056] It should be noted that the abnormal value distortion processing method of the equipment is to determine whether the equipment is in the process of going up or downhill when the distortion value of the equipment continues to change regularly. If so, the system will recalibrate the equipment, obtain the average value of the distortion value within the duration, and use it as the abnormal state reference value of the equipment, and use it to make three-emergency logic judgments. This step is to deal with data anomalies of the equipment in special states and ensure the accuracy of judgment.
[0057] Specifically, the equipment needs to be continuously monitored to find out whether there are continuous distortion values. These distortion values may be manifested as data that is continuously high or low, and the change pattern is obvious. When continuous distortion values are detected, it is necessary to determine whether the equipment is in the process of going up or downhill. This is achieved by analyzing the acceleration data of the equipment, because up and downhill will cause the acceleration data to present a specific pattern. After confirming that the equipment is in the process of going up or downhill, the equipment needs to be recalibrated. This is because the actual use environment of the equipment may be different from its calibration environment, resulting in data distortion. In the process of recalibrating the equipment, it is necessary to obtain the average distortion value within the duration as the abnormal state reference value of the equipment. This reference value will be used for subsequent three-urgent (emergency) logic judgment. : According to the recalibrated equipment and abnormal state reference value, the three-urgent logic judgment is performed to ensure that the equipment can respond accurately in an emergency and avoid misjudgment caused by data distortion. After recalibrating and updating the abnormal state reference value, the equipment needs to be verified to ensure that the processing effect meets expectations. This can be achieved through the equipment startup inspection and operation test. After the exception is handled, the entire process is archived and evaluated, and information such as the time, cause, solution and handling process of the exception is recorded for future reference.
[0058] The embodiments of the present application can effectively deal with the problem of abnormal value distortion of the device, ensuring that the device can accurately reflect its motion state under various conditions, thereby improving the reliability and safety of the device.
[0059] In step S103, the three emergency states of the vehicle are obtained according to the acceleration data, the angular velocity data and the reference data.
[0060] In a possible implementation, the acceleration data is a forward and backward acceleration change value and a lateral acceleration change value within a preset time, the angular velocity data includes a pitch angle change value, a yaw angle change value and a roll angle change value within a preset time, the reference data includes a first acceleration reference value, a first angle reference value, a second acceleration reference value, a second angle reference value, a third acceleration reference value and a third angle reference value, and the three emergency states include a rapid acceleration state, a rapid deceleration state and a sharp turn state. In the process of judging the three emergency states of the vehicle, if the absolute value of the forward and backward acceleration change value is greater than the first acceleration reference value, and the pitch angle change value is greater than the first angle reference value, it is determined that the vehicle is in a rapid deceleration state; if the forward and backward acceleration change value is greater than the second acceleration reference value, and the pitch angle change value is greater than the second angle reference value, it is determined that the vehicle is in a rapid acceleration state; if the lateral acceleration change value is greater than the third acceleration reference value, and the weighted sum of the yaw angle change value and the roll angle change value is greater than the third angle reference value, it is determined that the vehicle is in a sharp turn state.
[0061] Specifically, during the rapid deceleration state judgment process, the absolute value of the front-to-back acceleration change detected by its sensor (in this case, a 6-axis gyroscope including an accelerometer) is greater than 7.0 m / s for 500 milliseconds continuously. 2 This indicates that the vehicle's speed has changed significantly in a very short period of time, suggesting a sharp deceleration. Check if the device's pitch angle changes by more than 2.3 degrees during these 500 milliseconds. An increase in the pitch angle indicates that the front of the vehicle is lifted relative to the horizontal plane, which is a common phenomenon during a sharp deceleration. If both of the above conditions are met, the system determines that the vehicle is in a state of sharp deceleration.
[0062] During the rapid acceleration state judgment process, when the device is in normal driving, the forward and backward acceleration (a x ) is greater than the set standard value, for example, greater than -2.5m / s 2 , which indicates that the vehicle's speed has increased rapidly in a very short period of time. Check whether the pitch angle of the device changes negatively during the same period of time, and the change amplitude is greater than the preset first judgment reference value. The decrease in pitch angle indicates that the rear of the vehicle is lifted relative to the horizontal plane, which is a common phenomenon during rapid acceleration. If both conditions are met, the system determines that the vehicle is in a rapid acceleration state.
[0063] During the sharp turn state judgment process, if the lateral acceleration (a y ) has a large change range, and the absolute value is greater than the set first reference value for sharp turns, such as 2.8 m / s 2 , indicating that the vehicle is undergoing a rapid change of direction. The weighted sum of the angular velocities of the device's x and z axes, i.e., w1r z +w2r x If the weighted sum is greater than the second reference value for sharp turns, it indicates that the vehicle is indeed making a sharp turn. When these conditions are met, the system determines that the vehicle is in a sharp turn state.
[0064] Understandably, r x Refers to the angular velocity of the device rotating around the X axis, r z It refers to the angular velocity of the device rotating around the Z axis. w1 and w2 are weight coefficients used to adjust r z (angular velocity about the Z axis) and r x The contribution of (angular velocity around the X axis) to the final weighted sum. The choice of weight depends on the specific application scenario and requirements, and is usually determined through experiments or experience. z +w2r xThe value of is used to further confirm whether the device is in a sharp turn state. By properly selecting the weight coefficients w1 and w2, the impact of the device's rotation around the Z axis and X axis on the sharp turn state can be comprehensively considered.
[0065] That is to say, the embodiment of the present application realizes real-time monitoring and judgment of the vehicle's rapid acceleration, rapid deceleration and sharp turning status through comprehensive analysis of accelerometer and gyroscope data. This is the core part of the entire technical solution, providing a real-time warning function for driving safety.
[0066] In step S104, according to the three emergency conditions, the vehicle driver is notified according to a preset strategy.
[0067] It should be noted that the detection interval and priority logic set the reporting interval for status detection. When the three emergency states occur, the interval is set after the driver is reminded. Rapid acceleration and rapid deceleration are mutually exclusive and do not require priority judgment. There is a possibility of intersection between sharp turns and rapid deceleration. Therefore, when rapid deceleration and sharp turns coexist, the sharp turn state is prioritized. This step is to reasonably set the detection frequency and handle the priority issues when multiple states coexist to ensure the efficient operation and accuracy of the system.
[0068] In a possible implementation, the preset strategy includes a sudden deceleration response strategy, a sudden acceleration response strategy, and a sharp turn response strategy. When the vehicle is in the sudden deceleration state, the vehicle driver is reminded according to the sudden deceleration response strategy; when the vehicle is in the sudden acceleration state, the vehicle driver is reminded according to the sudden acceleration response strategy; when the vehicle is in the sharp turn state and the deceleration state at the same time, the vehicle driver is reminded according to the sharp turn response strategy.
[0069] Specifically, when the system detects one of the three emergency conditions (sudden acceleration, sudden deceleration or sharp turn), it will immediately remind the driver. This is to inform the driver in time that the current driving state may be dangerous so that the driver can take appropriate measures. After reminding the driver, the system will set a broadcast interval. This interval is to avoid frequent reminders to the driver in a short period of time, causing trouble and anxiety to the driver. At the same time, it also gives the driver a certain amount of time to adjust the driving state to avoid continuous dangerous situations.
[0070] It should be noted that sudden acceleration and sudden deceleration are mutually exclusive: sudden acceleration and sudden deceleration are two opposite driving states that cannot occur at the same time. Therefore, when the system detects one of the states, it ignores the existence of the other state, which means that there is no need to make a priority judgment between sudden acceleration and sudden deceleration because they will not appear at the same time. The intersection of sharp turns and sudden deceleration: sharp turns and sudden deceleration are two driving states that may occur at the same time. For example, in an emergency, the driver may need to make sharp turns and sudden deceleration at the same time to avoid obstacles or respond to emergencies. When the system detects the coexistence of sudden deceleration and sharp turns, it will prioritize the sharp turn state. This is because in this case, a sharp turn is usually more urgent and critical than a sudden deceleration, requiring the driver to respond immediately. At the same time, a sharp turn may also cause the vehicle to lose stability, so it needs to be handled as a priority.
[0071] There is a possibility of intersection between sharp turns and sudden acceleration. When a vehicle is driving on the road, it may encounter a situation where it needs to make a sharp turn and a sudden acceleration at the same time. For example, when avoiding an obstacle in an emergency or passing a curve quickly under complex road conditions, the driver may need to make a sharp turn and a sudden acceleration at the same time. In this case, the priority judgment depends on the specific traffic conditions and safety requirements. If the sharp turn is more urgent, such as an obstacle suddenly appears in front and needs to be avoided immediately, then the sharp turn state should be handled first. Because the sharp turn is directly related to the driving direction and stability of the vehicle, if the turn is not completed in time and correctly, it may cause the vehicle to lose control or collide with other vehicles. On the other hand, if the sudden acceleration is more urgent, such as the need to quickly increase the speed to keep up with the vehicle in front or avoid being rear-ended by the vehicle behind, then the sudden acceleration state should be handled first. Because sudden acceleration can quickly increase the speed of the vehicle, it helps to maintain a safe distance from surrounding vehicles and avoid accidents such as rear-end collisions. In other words, when the sharp turn and sudden acceleration states coexist, it is necessary to determine which state is more urgent based on the actual situation and give priority to that state.
[0072] In the embodiment of the present application, the design of the detection interval and priority logic is to ensure that the system can timely and accurately remind the driver of the current driving status and give a reasonable priority judgment when multiple states coexist. This helps to improve driving safety and reduce the occurrence of traffic accidents.
[0073] The specific implementation of this application is described below in conjunction with a specific application scenario.
[0074] K1. Real-time gsensor data collection on the device:
[0075] Get real-time raw acceleration and angular velocity data based on the 6-axis gyroscope.
[0076] K2. Static calibration and alignment:
[0077] Get the static initial value of the device, that is, the data when the data fluctuation is not large, as the initial value of the current device, and then align it with the initial value of the standard device as the benchmark value.
[0078] K3. Calibrate pitch, yaw and roll angles:
[0079] The aligned acceleration is used as the initial value of the current device. After the static drift value is subtracted from the angular velocity value, the pitch, yaw, and roll are calibrated through complementary filtering.
[0080] K4. Equipment abnormal value distortion processing method:
[0081] When the device has a continuous distortion value and changes regularly, determine whether the device is in the process of going up or downhill. When this state occurs, recalibrate the device, obtain the average distortion value within the duration as the abnormal state benchmark value of the device, and then perform three-emergency logic judgment.
[0082] K5, Three urgent status judgment:
[0083] K51, rapid deceleration:
[0084] For example, when the absolute value of the front-to-back acceleration change of the device is greater than 7.0m / s^2 within 500ms, it is preliminarily determined that the device has entered the rapid deceleration logic. Then, if the pitch change of the device exceeds 2.3 within this 500ms, it is determined that the angular velocity of the device around the x-axis is increasing, the device is in a momentary forward tilt state, and the acceleration is greater than the assumed value, then it is determined to be in a rapid deceleration state.
[0085] K52, rapid acceleration:
[0086] During normal driving of the device, within 500ms, when the ax of the device is greater than the set standard value, for example, greater than -2.5m / s^2, the device will enter the judgment of rapid acceleration. When the pitch change of the device is negative during the duration, and the change amplitude is greater than the set first judgment reference value, when the device pitch decreases during the continuous event, and the decrease amplitude is large, it means that the device is in a backward tilt state, and it is judged as a rapid acceleration state.
[0087] K53, sharp turn:
[0088] During normal driving of the device, if the ay of the device suddenly changes greatly and its absolute value is greater than the set first reference value of a sharp turn (e.g. 2.8m / s^2), the device is judged to be in a sharp turn, and then the weighted sum of the angular velocities of the device's x and z axes, i.e. w1*rz+w2*rx, is calculated. When the weighted sum is greater than the second reference value of a sharp turn, the current device is judged to be in a sharp turn state.
[0089] K6, detection interval and priority logic:
[0090] The reporting interval of the status detection is set. When the three emergency states occur, the driver is reminded and the interval is set. Rapid acceleration and rapid deceleration are mutually exclusive and no priority judgment is required. Sharp turns and rapid deceleration may overlap, so when rapid deceleration and sharp turns coexist, the sharp turn state is prioritized.
[0091] Next, the vehicle three-emergency detection system proposed according to the embodiment of the present application is described with reference to the accompanying drawings.
[0092] Figure 2 It is a block diagram of a vehicle three-emergency detection system according to an embodiment of the present application.
[0093] like Figure 3 As shown, the vehicle three-emergency detection system 10 includes: a data acquisition module 100, a device calibration module 200, a state judgment module 300 and a detection reminder module 400.
[0094] Specifically, the data acquisition module 100 is used to acquire acceleration data and angular velocity data of the vehicle-mounted device;
[0095] The device calibration module 200 is used to perform device calibration according to the acceleration data and the angular velocity data to obtain reference data of the vehicle-mounted device;
[0096] A state judgment module 300, for obtaining three emergency states of the vehicle according to the acceleration data, the angular velocity data and the reference data;
[0097] The detection reminder module 40 is used to notify the vehicle driver according to the three emergency states according to a preset strategy.
[0098] Figure 3 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0099] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0100] When the processor 502 executes the program, the vehicle three emergency detection method provided in the above embodiment is implemented.
[0101] Furthermore, the vehicle also includes:
[0102] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0103] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0104] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0105] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EIS) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0106] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0107] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0108] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned vehicle three-emergency detection method is implemented.
[0109] One embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the present application Figure 1 The vehicle three emergency detection method provided in any embodiment of the corresponding embodiment.
[0110] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0111] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0112] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0113] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or N wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer memory.
[0114] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0115] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0116] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0117] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0118] It should be understood that the application of the present application is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to this application.
[0119] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A vehicle three-emergency detection method, characterized in that: The vehicle three-emergency detection method comprises: Obtain acceleration data and angular velocity data of vehicle-mounted equipment; Performing equipment calibration according to the acceleration data and the angular velocity data to obtain reference data of the vehicle-mounted equipment; Obtaining three emergency states of the vehicle according to the acceleration data, the angular velocity data and the reference data; According to the three emergency conditions, the vehicle driver is notified according to a preset strategy.
2. The vehicle three-emergency detection method according to claim 1, characterized in that: The vehicle three-emergency detection method also includes: Acquire the acceleration and angular velocity of the vehicle-mounted device, calibrate the acceleration, and obtain an updated acceleration; Calculating a static drift value corresponding to the vehicle-mounted device, and calculating a difference between the angular velocity and the static drift value to obtain an updated angular velocity; Using complementary filtering to fuse the updated acceleration and the updated angular velocity to obtain fused data; The pitch angle, yaw angle and roll angle of the vehicle-mounted device are calibrated according to the fused data to obtain the calibrated pitch angle, yaw angle and roll angle.
3. The vehicle three-emergency detection method according to claim 1, characterized in that: The performing of equipment calibration according to the acceleration data and the angular velocity data to obtain reference data of the vehicle-mounted equipment specifically includes: Obtaining a static initial value of the vehicle-mounted device and a standard value of a standard device; The static initial value is aligned with the standard value to obtain the reference data of the vehicle-mounted device.
4. The vehicle three-emergency detection method according to claim 2, characterized in that: The step of calibrating the pitch angle, yaw angle, and roll angle of the vehicle-mounted device according to the fusion data to obtain the calibrated pitch angle, yaw angle, and roll angle specifically includes: Performing quaternion updating according to the fused data to obtain updated quaternion data; The updated quaternary data are converted to obtain calibrated pitch angle, yaw angle and roll angle.
5. The vehicle three-emergency detection method according to claim 1, characterized in that: The vehicle three-emergency detection method also includes: Acquire an abnormal value of the vehicle-mounted device, and determine an uphill or downhill state of the vehicle-mounted device according to the abnormal value; According to the uphill and downhill conditions, the vehicle-mounted equipment is recalibrated to obtain abnormal state reference data, so as to use the abnormal state reference data as the reference data for three emergency state judgments.
6. The vehicle three-emergency detection method according to claim 1, characterized in that: The acceleration data are the forward and backward acceleration change values and the lateral acceleration change values within a preset time, the angular velocity data include the pitch angle change values, the yaw angle change values and the roll angle change values within a preset time, the reference data include a first acceleration reference value, a first angle reference value, a second acceleration reference value, a second angle reference value, a third acceleration reference value and a third angle reference value, and the three emergency states include an emergency acceleration state, an emergency deceleration state and an emergency turn state; The obtaining of the three emergency states of the vehicle according to the acceleration data, the angular velocity data and the reference data specifically includes: If the absolute value of the forward and backward acceleration change value is greater than the first acceleration reference value, and the pitch angle change value is greater than the first angle reference value, it is determined that the vehicle is in a rapid deceleration state; If the forward and backward acceleration change value is greater than the second acceleration reference value, and the pitch angle change value is greater than the second angle reference value, it is determined that the vehicle is in a rapid acceleration state; If the lateral acceleration change value is greater than the third acceleration reference value, and the weighted sum of the yaw angle change value and the roll angle change value is greater than the third angle reference value, it is determined that the vehicle is in a sharp turn state.
7. The vehicle three-emergency detection method according to claim 6, characterized in that: The preset strategies include a sudden deceleration response strategy, a sudden acceleration response strategy and a sharp turn response strategy; The method of notifying the vehicle driver according to the three emergency states and a preset strategy specifically includes: When the vehicle is in the sudden deceleration state, reminding the vehicle driver according to the sudden deceleration response strategy; When the vehicle is in the sudden acceleration state, reminding the vehicle driver according to the sudden acceleration response strategy; When the vehicle is in the sharp turn state and the deceleration state at the same time, the vehicle driver is reminded according to the sharp turn coping strategy.
8. A vehicle three-emergency detection system, characterized in that: The vehicle three-emergency detection system comprises: A data acquisition module, used to acquire acceleration data and angular velocity data of the vehicle-mounted equipment; A device calibration module, used to perform device calibration according to the acceleration data and the angular velocity data to obtain reference data of the vehicle-mounted device; A state judgment module, used for obtaining the three emergency states of the vehicle according to the acceleration data, the angular velocity data and the reference data; The detection reminder module is used to notify the vehicle driver according to the three emergency states and in accordance with a preset strategy.
9. A vehicle, characterized in that: The vehicle includes: a memory, a processor, and a vehicle three-emergency detection program stored in the memory and executable on the processor. When the vehicle three-emergency detection program is executed by the processor, the steps of the vehicle three-emergency detection method as described in any one of claims 1-7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a vehicle three-emergency detection program, and when the vehicle three-emergency detection program is executed by a processor, the steps of the vehicle three-emergency detection method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Vehicle rapid acceleration behavior identification method and device and storage medium
CN119459739A
Method and circuit for frequency compensation, storage medium, and electronic device
US12474485B2
Method and circuit for frequency compensation, storage medium, and electronic device
US20240036215A1
