Vehicle mass estimation method and device, vehicle and storage medium
By combining inertial measurement units and multi-source fusion and filtering of wheel speeds, and utilizing a dynamic identification model and recursive least squares method, the problem of acceleration noise influence in vehicle mass estimation is solved, achieving high-precision mass estimation.
Patent Information
- Application Number
- CN202611688436.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-12-01
AI Technical Summary
In existing technologies, vehicle mass estimation methods suffer from low accuracy due to significant noise in the acceleration signals measured by inertial measurement units, especially under complex operating conditions where signal quality is difficult to guarantee.
By introducing a second acceleration determined based on wheel speed, and performing multi-source fusion and filtering with the first acceleration collected by the inertial measurement unit, mass identification is performed using a preset dynamic identification model, and the acceleration accuracy is improved by adjusting the filtering parameters. Online adaptive learning is performed using the recursive least squares method.
It improves the input accuracy and precision of vehicle mass estimation, maintains high-precision mass estimation results under complex working conditions, and adapts to real-time adjustments for load changes.
Smart Images

Figure CN123190838A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and in particular to a vehicle mass estimation method, device, vehicle, and storage medium. Background Technology
[0002] Vehicle mass plays a crucial role in functions such as longitudinal dynamics control, automatic transmission shifting, regenerative braking, and hill start assist. Therefore, accurately obtaining vehicle mass is of great significance. However, during actual vehicle operation, loads change frequently and significantly, making it impossible to directly measure the vehicle mass using onboard sensors. Consequently, accurately estimating vehicle mass during operation has become a pressing technical problem that needs to be solved.
[0003] Currently, commonly used vehicle estimation methods primarily rely on calculating vehicle mass based on driving force and acceleration. However, the acceleration signals measured by current onboard inertial measurement units contain significant noise, resulting in low accuracy of acceleration detection and consequently reducing the accuracy of vehicle mass estimation. Summary of the Invention
[0004] This invention provides a vehicle mass estimation method, apparatus, vehicle, and storage medium, aiming to improve the accuracy of vehicle mass estimation values.
[0005] In a first aspect, embodiments of the present invention provide a vehicle mass estimation method, comprising: The vehicle's first acceleration and first driving force are obtained. The first acceleration is the vehicle acceleration collected by the on-board inertial measurement unit, and the first driving force is calculated based on the vehicle's engine torque signal and transmission parameters. Based on the filtering parameters and the wheel speed of the vehicle, the second acceleration of the vehicle is determined, and multi-source fusion and filtering are performed based on the first acceleration and the second acceleration to obtain the target acceleration; Based on a preset dynamic identification model, the target acceleration and the first driving force are mass identified to obtain an estimated target mass value of the vehicle.
[0006] Secondly, embodiments of the present invention also provide a vehicle mass estimation device, comprising: At least one processor; At least one memory containing computer program code; The at least one memory, the computer program code, and the at least one processor are configured together to enable the vehicle mass estimation device to implement the vehicle mass estimation method as described in the first aspect.
[0007] Thirdly, embodiments of the present invention also provide a vehicle, the vehicle including the vehicle mass estimation device as described in the second aspect.
[0008] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the vehicle mass estimation method as described in the first aspect.
[0009] This invention provides a vehicle mass estimation method, apparatus, vehicle, and storage medium. The invention acquires a first acceleration and a first driving force of the vehicle. The first acceleration is collected by an onboard inertial measurement unit (IMU), and the first driving force is calculated based on the vehicle's engine torque signal and transmission parameters. A second acceleration is determined based on filtering parameters and the vehicle's wheel speeds. Multi-source fusion and filtering are performed on the first and second accelerations to obtain a target acceleration. Based on a preset dynamic identification model, mass identification is performed on the target acceleration and the first driving force to obtain an estimated target mass value for the vehicle. Through this method, the invention, based on the first acceleration acquired by the IMU, introduces a second acceleration determined by wheel speeds, fusing two complementary accelerations (first and second) to avoid the problem of signal quality not being guaranteed under complex operating conditions with a single acceleration source. Furthermore, by adjusting the filtering intensity using filtering parameters determined based on wheel speed, the intensity of the fused filter can be adjusted according to the vehicle's operating state corresponding to the wheel speed, further improving the accuracy of the fused acceleration, thereby improving the input accuracy of the mass estimation and ultimately improving the accuracy of the mass estimation results. Attached Figure Description
[0010] Figure 1 This is a schematic flowchart of a vehicle mass estimation method provided in an embodiment of the present invention; Figure 2 This is a flowchart illustrating the steps of another vehicle mass estimation method provided in an embodiment of the present invention; Figure 3 This is a flowchart illustrating the steps of another vehicle mass estimation method provided in this embodiment of the invention; Figure 4 This is a flowchart illustrating the steps of another vehicle mass estimation method provided in this embodiment of the invention; Figure 5 This is a schematic block diagram of a vehicle mass estimation device provided in an embodiment of the present invention; Figure 6 This is a schematic block diagram of the structure of a vehicle provided in an embodiment of the present invention. Detailed Implementation
[0011] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0012] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0013] During actual vehicle operation, loads change frequently and significantly, making it impossible to directly measure the vehicle's mass using onboard sensors. For example, the mass of a heavy commercial vehicle can vary considerably due to cargo loading / unloading and trailer connection changes. Therefore, vehicle mass parameters in the longitudinal control of heavy commercial vehicles are mostly fixed values or manually calibrated. Vehicle mass estimation methods typically calculate the vehicle mass directly based on the relationship between the vehicle's driving force and longitudinal acceleration, i.e., directly regressing the observed values of driving force and acceleration without processing the acceleration signal. This estimation method suffers from insufficient acceleration signal quality and drag interference during actual vehicle operation. The raw acceleration signal output from the Inertial Measurement Unit (IMU) contains zero bias, mounting arm coupling errors, and gravity components, and is also affected by vehicle body vibration noise. Furthermore, the acceleration calculated differentially based on wheel speed is sensitive to signal quantization and wheel slippage. Therefore, no single acceleration source can be directly used as a regression value for mass identification. Meanwhile, vehicle acceleration is also susceptible to the effects of gradient drag, rolling drag, and air drag, which can lead to errors in mass estimation if the original longitudinal acceleration is used directly. Furthermore, the calculation of driving force, acceleration control, and drag compensation in vehicle longitudinal control all depend on the total vehicle mass.
[0014] To address the aforementioned problems, embodiments of the present invention provide a vehicle mass estimation method, apparatus, vehicle, and storage medium. Based on the acquisition of a first acceleration by an inertial measurement unit, the present invention introduces a second acceleration determined based on wheel speed. This multi-source complementary fusion of the first and second accelerations avoids the problem of signal quality not being guaranteed under complex operating conditions due to a single acceleration source. This improves the accuracy of the acceleration, thus increasing the input accuracy of the mass estimation and consequently improving the accuracy of the mass estimation results.
[0015] Please see Figure 1 , Figure 1 This is a schematic diagram of the steps of a vehicle mass estimation method provided in an embodiment of the present invention.
[0016] like Figure 1 As shown, the vehicle mass estimation method can be applied to the longitudinal control system of a vehicle, such as the longitudinal control system of a heavy commercial vehicle (heavy truck or tractor). The longitudinal control system executes the steps of the vehicle estimation method during vehicle operation. The vehicle mass estimation method includes steps S101 to S103.
[0017] Step S101: Obtain the first acceleration and the first driving force of the vehicle. The first acceleration is the vehicle acceleration collected by the on-board inertial measurement unit, and the first driving force is calculated based on the engine torque signal and transmission parameters of the vehicle. In this embodiment, the first acceleration is the acceleration signal acquired by the IMU, which reflects the changes in the vehicle's motion state in inertial space and can reflect the transient longitudinal motion trend of the vehicle. However, its signal is easily interfered with and contains noise. The second acceleration is calculated based on the wheel speed and is less susceptible to interference, but it is prone to insufficient resolution and estimation errors under wheel slippage or low-speed conditions. Therefore, the accelerations from the two sources are complementary and fused.
[0018] When acquiring the raw acceleration signal corresponding to the first acceleration, the raw acceleration signal typically contains interference signals such as zero bias, installation error, and gravity component. Zero bias correction, mounting arm compensation, gravity component compensation, and coordinate transformation preprocessing can be performed on the IMU signal beforehand. In some embodiments, after obtaining the first acceleration through step S101, the method further includes: The first acceleration is preprocessed to obtain the first acceleration after correction; the preprocessing includes at least one of zero bias correction, mounting arm compensation, and gravity component compensation, so as to correct the first acceleration for zero bias, rod arm coupling error and gravity interference. For example, preprocessing the first acceleration specifically includes: The first acceleration is zero-biased and the zero-bias value of the accelerometer is subtracted from the first acceleration to obtain the zero-biased acceleration. Based on the angular velocity of the vehicle and the mounting lever vector of the inertial measurement unit, lever compensation is performed on the zero-bias correction acceleration to obtain the lever-compensated acceleration. Based on the vehicle's pitch angle, the gravity-compensated acceleration is obtained by subtracting the longitudinal component of gravity from the compensated acceleration of the lever arm. Based on the installation angle of the inertial measurement unit, the gravity-compensated acceleration is transformed from the coordinate system of the inertial measurement unit to the vehicle coordinate system to obtain the vehicle coordinate acceleration. The vehicle coordinate acceleration is protected by amplitude protection, and the acceleration value that exceeds the preset amplitude range is limited to the boundary value to obtain the acceleration after amplitude protection; The acceleration after amplitude protection is low-pass filtered to obtain the first acceleration after correction.
[0019] In this embodiment, zero bias correction is used to eliminate the constant zero bias in the acceleration output of the inertial measurement unit (IMU), that is, the corrected acceleration is equal to the collected acceleration minus the zero bias, and the zero bias can be obtained by calibrating the average value collected when the vehicle is stationary; mounting arm compensation is used to eliminate the linkage error caused by the misalignment of the IMU mounting position with the vehicle's center of gravity, that is, to compensate for the corrected acceleration based on the vehicle's angular velocity and angular acceleration and the mounting arm of the IMU relative to the vehicle's reference point; gravity component compensation is used to eliminate the projection of gravity in the vehicle's longitudinal direction, that is, to calculate the component of gravity in the vehicle coordinate system based on the vehicle's roll angle and pitch angle, and deduct it from the compensated acceleration.
[0020] Specifically, firstly, zero bias correction is performed, that is, the zero bias value obtained by static calibration is subtracted from the original reading to eliminate the DC offset error of the sensor itself, and then the mounting arm compensation is performed.
[0021] Understandably, since the inertial measurement unit (IMU) is typically not installed at the vehicle's center of gravity, when the vehicle pitches, rolls, or yaws, the linear acceleration at the mounting point includes tangential and centripetal components caused by angular velocity and angular acceleration. Without compensation, these kinematic coupling errors can be mistakenly interpreted as longitudinal acceleration or deceleration of the vehicle. This embodiment utilizes the angular velocity and angular acceleration information from the vehicle's attitude signal, combined with a preset mounting arm vector, to transform the acceleration from the IMU coordinate system to the vehicle coordinate system using a coordinate transformation matrix, and deducts the additional acceleration component generated by rotational motion. Next, gravity component compensation and coordinate transformation are performed. Based on the real-time calculated vehicle roll and pitch angles, the projection of gravitational acceleration onto the vehicle's longitudinal axis is calculated and removed from the measured values, thereby obtaining a specific force signal purely caused by vehicle dynamics.
[0022] For example, according to the zero bias correction formula a s c =a s m -b a Zero bias correction is applied to the first acceleration (i.e., the IMU triaxial acceleration). Where, a s m For the first acceleration (IMU raw acceleration), b aFor IMU acceleration zero bias, a s c This is the acceleration after zero bias correction.
[0023] According to the installation arm compensation formula a o b =R s b ·a s c -(dω / dt)×r-ω×(ω×r), vehicle angular velocity and angular acceleration are used for rod arm compensation. Where R s b Here, r is the transformation matrix from the IMU coordinate system to the vehicle coordinate system, r is the mounting arm of the IMU relative to the vehicle reference point, ω is the vehicle angular velocity, dω / dt is the vehicle angular acceleration, and a is the... o b This is the acceleration after the lever arm is compensated.
[0024] Then, according to the formula for calculating gravity projection a g b =R w b g, gravity deduction formula a e b =a o b -a g b The vehicle's roll and pitch angles are compensated for by gravity components and coordinate transformation is performed to eliminate the projection of gravity onto the vehicle's longitudinal direction. Among them, a g b Let g be the projection (component form) of the gravitational acceleration vector in the vehicle coordinate system, and R be the gravitational acceleration vector. w b Let a be the transformation matrix from the world coordinate system to the vehicle coordinate system. e b This is the equivalent acceleration in the vehicle coordinate system after deducting gravity projection, used to reflect the acceleration caused by the actual motion of the vehicle.
[0025] Then, according to the vertical component extraction formula a imu =e x T ·a e b Extract the longitudinal component of the vehicle.
[0026] Among them, e x e is the longitudinal unit vector of the vehicle body (i.e., in the vehicle body coordinate system). x T For the transpose (row vector), a imu This refers to the vehicle's longitudinal acceleration.
[0027] In addition, preprocessing may include extracting the longitudinal component and amplitude protection and fourth-order low-pass filtering. That is, after zero-bias correction, mounting arm compensation, and gravity component compensation, the vehicle's longitudinal component is further extracted from the compensated triaxial acceleration, and amplitude protection and low-pass filtering are performed on the vehicle's longitudinal component: amplitude protection limits the acceleration amplitude within a preset range to eliminate sensor outliers; low-pass filtering, for example, uses a fourth-order low-pass filter, whose cutoff frequency is higher than the effective dynamic bandwidth of the vehicle's longitudinal acceleration and lower than the main frequency of vehicle body vibration to suppress vehicle body vibration and high-frequency noise.
[0028] For example, according to amplitude protection formula a imu,sat =clip(a imu,d ,-a max ,+a max First, amplitude protection is applied to the longitudinal component. max To preset the upper limit of amplitude, a imu,sat Let a be the longitudinal acceleration after amplitude limiting. imu,d The longitudinal acceleration of the vehicle before amplitude limiting; Then, using the fourth-order low-pass filter formula a imu,f (z)=[B1(z) / A1(z)]·a imu,sat (z), suppressing vehicle body vibration and high-frequency noise, B1(z) and A1(z) are the numerator and denominator polynomials of the filter, respectively, a imu,f (z) represents the longitudinal acceleration after low-pass filtering at the filter output, a imu,sat (z) is the longitudinal acceleration sequence after amplitude limiting (filter input).
[0029] In this embodiment, before fusion, the first acceleration is sequentially corrected for zero bias, linkage coupling error, and gravity interference, and further corrected for amplitude protection and low-pass filtering. This process eliminates constant bias, installation position coupling error, static gravity projection, vibration noise, and outliers in the original signal of the inertial measurement unit, making the first acceleration participating in the fusion closer to the vehicle's true longitudinal acceleration. This reduces the numerical error of the acceleration and improves the accuracy of the mass estimation results.
[0030] Therefore, mass estimation is performed based on two parameters: acceleration and driving force, and mass estimation is also performed based on the real-time changes in the actual vehicle load, thereby improving the accuracy of the mass estimation results.
[0031] In some embodiments, before obtaining the first driving force based on step S101, the method further includes: The gear position signal of the vehicle is acquired, and the gear ratio corresponding to the gear position signal is determined in a preset gear position and gear ratio mapping relationship; The vehicle's final drive ratio, transmission efficiency, and wheel radius are obtained, and the engine torque signal is converted into the first driving force based on the gearbox ratio, the final drive ratio, transmission efficiency, and wheel radius.
[0032] In this embodiment, the preset gear and speed ratio mapping relationship is a pre-calibrated gear and speed ratio correspondence table according to the vehicle model, which can be stored in the controller; the vehicle gear signal can be collected and reported by the transmission controller. The final drive speed ratio and wheel radius are vehicle structural parameters, which are fixed mechanical parameters; the transmission efficiency is the gear transmission efficiency calibrated according to the current gear, used to characterize the power transmission loss from the engine flywheel end to the wheel end, and its value can be set as a fixed empirical value, or it can be dynamically compensated by looking up a table according to operating conditions such as speed, torque and oil temperature; the wheel radius can be the nominal rolling radius or the effective radius corrected according to tire pressure and load.
[0033] Specifically, the first driving force can be calculated by dividing the product of the engine feedback torque, the gearbox ratio, the final drive ratio, and the transmission efficiency by the wheel radius, and then the conversion result is low-pass filtered to obtain the corrected first driving force.
[0034] This embodiment corrects and converts the engine torque signal into actual driving force by using the gearbox ratio, final drive ratio, transmission efficiency, and wheel radius of the current gear. By accurately converting the engine torque into the net driving force at the wheel end and applying low-pass filtering to the conversion result, the deviation between the theoretical driving force and the actual driving force caused by the difference in gear ratio and transmission efficiency is eliminated. This makes the observation input for quality identification more accurate, thereby improving the accuracy of the quality estimation result and avoiding estimation fluctuations caused by power system vibration.
[0035] Step S102: Based on the filtering parameters and the wheel speed of the vehicle, determine the second acceleration of the vehicle, and perform multi-source fusion and filtering processing based on the first acceleration and the second acceleration to obtain the target acceleration; In this embodiment, the second acceleration is the kinematic acceleration calculated based on the wheel speed. In contrast to the first acceleration collected by the inertial measurement unit, the first acceleration has a good high-frequency response but suffers from low-frequency drift and gravity coupling error, while the second acceleration has high steady-state accuracy but is affected by wheel speed quantization noise, wheel slippage, and road surface unevenness excitation.
[0036] The filtering parameters are adjusted based on wheel speed. They can be determined either by establishing a preset relationship between the wheel speed and the preset parameters, or by looking up the wheel speed in a preset parameter mapping table. These filtering parameters determine the filtering intensity, specifically by recording the optimal combination of process noise and observation noise for different vehicle speed ranges using the preset parameter mapping table. This mapping relationship can be obtained through real-vehicle calibration or simulation optimization. By determining the filtering parameters through a lookup table, the filtering intensity can be dynamically adjusted according to the noise characteristics of the wheel speed signal corresponding to the vehicle's current speed: at low speeds, the quantization error proportion of the wheel speed signal is high, so the filtering intensity is large to suppress glitches; at high speeds, the quantization error proportion decreases, so the filtering intensity is small to ensure response speed.
[0037] Specifically, to address the issue that a single fixed-parameter filter cannot simultaneously ensure both response speed and steady-state accuracy of acceleration extraction across the entire vehicle speed domain, this embodiment performs multi-source fusion and filtering on the first and second accelerations to obtain the target acceleration. That is, under low-speed conditions, where wheel speed signal quantization effects are significant and susceptible to slippage interference, the observation noise weight is increased while the process noise weight is decreased, making the fusion result more reliable with respect to the inertial measurement unit (IMU) signal. Conversely, under high-speed cruising conditions, where the wheel speed signal-to-noise ratio increases and the risk of IMU drift accumulation increases, the parameter weights are adjusted in reverse to enhance the correction effect of the wheel speed signal.
[0038] It is understandable that although this embodiment describes an adaptive adjustment mechanism based on a parameter mapping table, in other embodiments, the determination of the filter parameters can also be extended based on other dimensions such as vehicle load state, road surface adhesion coefficient or driving mode, as long as the optimal confidence allocation of heterogeneous sensor information under different working conditions can be achieved.
[0039] Step S103: Based on a preset dynamic identification model, perform mass identification on the target acceleration and the first driving force to obtain the target mass estimate of the vehicle.
[0040] In this embodiment, the preset dynamic identification model characterizes the longitudinal dynamic relationship where the vehicle driving force is equal to the product of the vehicle mass and the longitudinal acceleration, with the target acceleration as the regression quantity and the first driving force as the observation quantity.
[0041] Specifically, a preset dynamic identification model is used to establish a linear regression relationship between the first driving force and the target acceleration, that is, the first driving force is equal to the total vehicle mass multiplied by the target acceleration plus the model residual.
[0042] As one implementation method, the quality identification process can be implemented using the Recursive Least Squares (RLS) algorithm, which continuously updates the quality estimate and covariance matrix using the accumulated information of historical data, enabling online adaptive learning without storing a large amount of original data.
[0043] When the current operating condition is determined to be valid, the RLS algorithm is used to perform gain calculation, residual update, and covariance correction. When the operating condition is invalid, the RLS algorithm skips the update and keeps the internal state unchanged. Through this recursive mechanism, the target mass estimate gradually converges to the true mass as valid samples accumulate, and automatically adjusts based on new data when the load changes. This achieves high-precision online mass identification while maintaining computational efficiency.
[0044] Since the vehicle longitudinal dynamics model (i.e., F=m*a) is only valid under specific steady-state or quasi-steady-state conditions, under non-steady-state conditions such as braking, shifting, sharp turning, high-slope crawling, or violent fluctuations in driving force, tire force nonlinearity, transmission system clearance impact, and drastic changes in vehicle attitude can lead to serious distortion of the dynamic relationship.
[0045] To address the aforementioned problems, as another implementation method, the method further includes: Effective operating condition judgment is performed on the target acceleration and the first driving force to determine whether the vehicle meets the quality update conditions at the current moment.
[0046] In this embodiment, a valid operating condition is used as a data quality control threshold. A multi-dimensional vehicle state signal is used to generate an update enable flag, allowing the quality estimate to be updated only within a time window where the dynamic relationship is reliable. Under abnormal operating conditions, the estimated state is automatically frozen, maintaining the valid value from the previous moment. This selective update mechanism significantly enhances the algorithm's robustness to complex operating environments.
[0047] In some embodiments, the method further includes: State machine checks and reassessments are performed on the target quality estimates.
[0048] In this embodiment, a state machine continuously monitors event triggering conditions such as trailer connection status, low-speed driving duration, and the validity of quality signals. When a step change in load is detected (such as trailer detachment or reattachment) or the vehicle restarts after a long period of inactivity, the original estimate becomes invalid. The state machine triggers the estimator to reinitialize, using a safe initial value and a rapid forgetting factor for a new round of quality identification, avoiding the continued use of outdated quality estimates. This further addresses the technical problem of the pure recursive algorithm's delayed response to sudden load changes.
[0049] In some embodiments, the method further includes: After performing range verification, low-pass filtering, and rate-of-change limitation on the target mass estimate, the final vehicle mass is obtained and transmitted to the longitudinal control system.
[0050] In this embodiment, range verification ensures that the output value of the target mass estimate is always between the minimum and maximum allowable mass of the vehicle, further preventing unreasonable values caused by sensor malfunctions or algorithm anomalies from being transmitted downstream. Low-pass filtering further smooths residual high-frequency noise in the estimation results. Rate of change limitation constrains the maximum variation in mass output per unit time, avoiding sudden changes in drive or braking commands due to instantaneous interference. This allows the obtained target mass estimate to be directly used for drive force conversion, air resistance compensation, and acceleration control, ensuring that the vehicle maintains consistent longitudinal dynamic response characteristics under different load conditions.
[0051] like Figure 2 As shown, the filtering parameters include process noise and observation noise. Step S102 includes: Step S1021: Based on the average wheel speed of each wheel, calculate the vehicle observation speed of the vehicle, and obtain the process noise and the observation noise corresponding to the vehicle observation speed. The process noise and the vehicle observation speed have a mapping relationship, and the observation noise and the vehicle observation speed have a mapping relationship. In this embodiment, the observed vehicle speed is the speed observation value calculated by averaging the wheel speeds of each wheel, used to characterize the average vehicle speed. For example, the observed vehicle speed of a four-wheeled vehicle is equal to one-quarter of the sum of the wheel speeds of the left front wheel, right front wheel, left rear wheel, and right rear wheel. For a six-wheeled vehicle, the average wheel speeds of each axle are first taken and then averaged. A preset parameter mapping table uses vehicle speed as an index to store the process noise and observed noise corresponding to the vehicle speed. The process noise and observed noise obtained by looking up the table are the filtering parameters at the current vehicle speed.
[0052] Step S1022: Determine the filter recursion parameters based on the process noise and the observation noise; Step S1023: Based on the first filtering model and the filtering recursive parameters, the observed vehicle speed is smoothed and recursively estimated to obtain the second acceleration.
[0053] In this embodiment, the first filtering model is a state model of vehicle speed and acceleration, whose state variables include vehicle speed and acceleration. The filtering recursive parameters are recursive intermediate quantities determined by process noise and observation noise, including prediction covariance and recursive gain. Specifically, the state variables of the previous time step are predicted according to the state transition relationship to obtain the predicted vehicle speed and predicted acceleration, and the prediction covariance is updated based on the process noise, where the process noise is used to characterize the prediction error of the state transition relationship. Then, taking the observed vehicle speed as the observation, the recursive gain is calculated according to the prediction covariance and observation noise, and the state variables are updated according to the recursive gain and the observation deviation between the observed vehicle speed and the predicted vehicle speed, where the observation noise is used to determine the weight of the observed vehicle speed in the state update. The acceleration component in the updated state variables is taken as the second acceleration. The updated vehicle speed is used as the current state variable for filtering at the next time step, realizing cross-time recursion.
[0054] For example, the filtering parameters are determined based on the wheel speed in a preset parameter mapping table, and the filtering parameters are used to determine the filtering intensity. The step of obtaining the process noise and the observed noise corresponding to the observed vehicle speed includes: By querying the parameter mapping table, the process noise and the observation noise corresponding to the observed vehicle speed are obtained.
[0055] Specifically, the second acceleration is obtained by recursively estimating the average wheel speed as the vehicle observation speed. The process noise and observation noise are determined by looking up a table according to the vehicle speed, so that the filter is smooth at low speeds and responsive at high speeds. It takes into account both the response speed and steady-state accuracy of acceleration extraction in the entire vehicle speed domain, thereby improving the accuracy of the second acceleration. At the same time, the wheel speed channel and the inertial measurement unit channel are independent of each other, and the defects of any single signal source are compensated by the other channel, further improving the accuracy of the quality identification regression quantity.
[0056] Specifically, to overcome the limitations of a single sensor, this embodiment introduces wheel speed-based kinematic acceleration as a second input. First, the average wheel speeds of four or six wheels are arithmetically averaged to obtain the observed vehicle speed, which reflects the actual motion state of the wheel contact points. Then, a two-state model of vehicle speed and acceleration is established and Kalman filtered. The state vector includes vehicle speed and longitudinal acceleration. Wheel speed Kalman acceleration is recursively estimated through state prediction and observation updates. In this embodiment, the process noise Q and observation noise R of the Kalman filter are not fixed constants but are dynamically determined by querying a preset parameter mapping table based on the observed vehicle speed. By adjusting parameters according to vehicle speed, under low-speed conditions (i.e., the quantization resolution of wheel speed signals is reduced and wheels are susceptible to slip rate fluctuations, thus decreasing the reliability of wheel speed observations), the observation noise R is automatically increased and the process noise Q is decreased, making the filter more inclined to trust the dynamic trends provided by the inertial measurement unit. Under high-speed cruising conditions (i.e., the wheel speed signal-to-noise ratio is significantly improved and the risk of integral drift of the inertial measurement unit increases), the parameter weights are adjusted in reverse to enhance the correction effect of wheel speed signals on low-frequency drift of the inertial measurement unit.
[0057] For example, the observed vehicle speed can be calculated based on the average wheel speed of four or six wheels: v w =(v fl +v fr +v rl +v rr ) / 4, where v fl v fr v rl v rr These are the wheel speeds of the front left, front right, rear left, and rear right wheels, respectively (for six-wheeled vehicles, the average wheel speed of each axle is taken).
[0058] A two-state model of vehicle speed and acceleration is established and Kalman filtering is performed. The state vector is x. k =[v k ,a k ] T , where v k a k Let v be the vehicle speed and longitudinal acceleration at time k, respectively. The state prediction equation is: v k - =v k-1 +T s ·a k-1 a k - =a k-1 The corresponding state matrix A=[[1,T s ],[0,1]],T s The sampling period is given; the prediction formula for covariance is: P k - =A·Pk-1 ·A T +Q(v w ), where Q(v) w ) represents the process noise corresponding to the average vehicle speed, v w This represents the average vehicle speed.
[0059] Using average vehicle speed as the observation: z k =v w The observation matrix H = [1, 0]. The Kalman gain and state update are: K k =P k - ·H T ·(H·P k - ·H T +R(v w )) -1 x k =x k - +K k ·(z k -H·x k - ), where R(v w ) represents the observation noise corresponding to the average vehicle speed; the second component of the state vector is taken as the wheel speed Kalman acceleration, i.e.: a kalman,k =x k (2).
[0060] In this embodiment, the noise during the process and the noise during observation are dynamically adjusted based on the vehicle speed lookup table, so that different filtering intensities are used for low-speed and high-speed states. Compared with the adaptive parameter tuning method based solely on the estimated residual or convergence state, this embodiment, based on the prior mapping of vehicle speed, can more accurately match the dynamic characteristics of the vehicle in different operating ranges, fundamentally solving the technical problem that fixed parameter filters cannot achieve satisfactory performance across the entire speed domain.
[0061] like Figure 2 As shown, step S102 further includes: Step S1024: Based on the second acceleration and the first acceleration, obtain the first acceleration difference value to correct the low-frequency error of the second acceleration based on the first acceleration; In this embodiment, the first acceleration difference is equal to the first acceleration after filtering preprocessing minus the second acceleration. This difference reflects the low-frequency deviation that was not tracked in the second acceleration.
[0062] For example, step S1024 includes: The acceleration difference between the second acceleration and the corrected first acceleration is calculated and used as the first acceleration difference to correct the low-frequency error of the second acceleration based on the corrected first acceleration.
[0063] Step S1025: Perform low-pass filtering on the first acceleration difference based on the second filtering model to obtain the filtered second acceleration difference; In this embodiment, the second filtering model is a first-order low-pass filter for error, which performs first-order low-pass filtering on the acceleration difference, extracts the low-frequency components, and then uses the filtered acceleration difference as the second acceleration difference.
[0064] Step S1026: The second acceleration difference is superimposed and fused with the second acceleration to obtain the third acceleration; In this embodiment, the second acceleration difference is superimposed on the second acceleration to obtain the third acceleration; wherein, the first acceleration is used to correct the low-frequency error of the second acceleration, and the second acceleration is used to improve the output stability of the third acceleration, and the two complement each other.
[0065] Step S1027: Based on the road surface slope, rolling resistance parameters and air resistance parameters of the vehicle, the third acceleration is subjected to driving resistance compensation and low-pass filtering to obtain the target acceleration.
[0066] In this embodiment, the road slope can be determined by the vehicle pitch angle, and the rolling resistance parameters and air resistance parameters can be calculated according to the vehicle speed and calibration parameters. The third acceleration is superimposed with the acceleration components corresponding to the slope resistance, rolling resistance and air resistance respectively, and then filtered by low pass to obtain the target acceleration. The target acceleration is used as the regression quantity for mass identification.
[0067] It is understandable that the first acceleration (inertial measurement unit signal) has excellent high-frequency dynamic response but suffers from low-frequency drift, while the second acceleration (wheel speed Kalman signal) has good steady-state accuracy but significant high-frequency noise. In this embodiment, after obtaining the second acceleration, it is not directly used as the identification input, but rather organically combined with the preprocessed first acceleration through a complementary fusion strategy. Specifically, this involves calculating the difference between the two, which mainly contains the low-frequency deviation information of the first acceleration and the high-frequency noise information of the second acceleration. By applying a first-order low-pass filter to this difference, high-frequency noise components can be filtered out, extracting only the low-frequency trend deviation of the first acceleration relative to the second acceleration. This filtered deviation is then superimposed onto the second acceleration, thus preserving the steady-state accuracy of the wheel speed signal while utilizing the high-frequency characteristics of the inertial measurement unit to compensate for the dynamic lag of the wheel speed signal, thereby obtaining a fused acceleration that combines fast response and long-term stability.
[0068] It should be understood that when the wheel speed Kalman function is shut down due to a malfunction, the longitudinal acceleration reported by the chassis can be used as a reference benchmark to ensure the continuity of the function.
[0069] For example, when the wheel speed Kalman acceleration function is enabled, select a ref =a kalman As a reference acceleration, a kalman The longitudinal acceleration is obtained after Kalman filtering; when the Kalman function is off, the longitudinal acceleration reported by the vehicle chassis is used in a degraded manner: a ref =a vehicle a vehicle This refers to the longitudinal acceleration reported by the vehicle chassis.
[0070] Calculate the error between the filtered IMU acceleration and the reference acceleration: e a (k)=a imu,f (k)-a ref (k), e a (k) represents the fusion error at time k, a imu,f (k) represents the filtered IMU acceleration; the error is first-order low-pass filtered and then superimposed onto the reference acceleration to achieve complementary fusion of the first-order low-pass error: e a,f (k)=b·e a (k)+b·e a (k-1)+a1·e a,f (k-1), a pose (k)=a ref (k)+e a,f (k). Where q = 1 / tan(π·f) c ·T s ), b=1 / (q+1), a1=(q-1) / (q+1), e a,f (k) represents the fusion error after first-order low-pass filtering at time k, a pose (k) represents the combined acceleration (i.e., the third acceleration); f c is the cutoff frequency of the error filter, and a1 and b are preset coefficients.
[0071] Therefore, the low-frequency error of the reference acceleration is corrected by using IMU acceleration, while the output stability is improved by using wheel speed Kalman results, thus balancing response speed and steady-state accuracy.
[0072] Furthermore, since the fused acceleration still includes deceleration components caused by non-driving factors such as road slope resistance, tire rolling resistance, and air resistance, if directly used for mass identification, these resistance components will be misattributed by the algorithm to the increase in vehicle inertial mass, leading to an overestimation of the estimated results.
[0073] Therefore, this embodiment calculates the corresponding resistance compensation acceleration based on the real-time sensed road slope, calibrated rolling resistance coefficient and air resistance coefficient, and superimposes it with the fused acceleration, and then performs low-pass filtering smoothing to finally obtain the mass identification acceleration.
[0074] This embodiment employs a complementary fusion method that involves low-pass filtering and superimposing the acceleration differences. This method uses the first acceleration to correct the low-frequency error of the second acceleration while retaining the high-frequency response of the second acceleration, thus balancing the response speed and steady-state accuracy of the fused output. Furthermore, by applying driving resistance compensation and low-pass filtering, the interference of road slope and driving resistance on longitudinal acceleration is eliminated, ensuring that the target acceleration only reflects the vehicle motion caused by the driving force. This eliminates systematic biases in mass identification and further improves the accuracy of mass estimation results.
[0075] For example, the fused acceleration is superimposed with the vehicle's drag compensation acceleration: a res =a slope +a roll +a air , where a slope a roll a air These are the acceleration components corresponding to slope resistance, rolling resistance, and air resistance, respectively. res To compensate for the total acceleration due to drag, we get a mass,raw =a pose +a res a mass,raw The original mass identification acceleration is obtained after adding drag compensation; then filtered by a low-pass filter (LPF) to obtain the actual mass identification acceleration used by the recursive mass estimator: a mass =LPF(a pose +a res ), where LPF() is the filter operator. From this, the longitudinal dynamic identification equation F is obtained. drive =m·a mass As a dynamic identification model, F drive The driving force of the vehicle, i.e., the primary driving force, a mass The target acceleration, which serves as the regression parameter in the RLS algorithm, is used to update the vehicle mass m online.
[0076] like Figure 3 As shown, before step S103, the method further includes: Step S104: Obtain the vehicle operating status signal of the vehicle at the first moment, and determine the current vehicle operating condition based on the vehicle operating status signal, the target acceleration and the first driving force. In this embodiment, the first moment is the current control moment for performing quality identification; the vehicle operating status signals include vehicle speed, throttle opening, braking pressure, steering angle, lateral acceleration, pitch angle, and gear shift status signals.
[0077] Step S105: If the current vehicle operating condition is normal, the estimated mass value of the vehicle is updated to identify the target acceleration and the first driving force based on a preset dynamic identification model, and the estimated target mass value of the vehicle is obtained.
[0078] In this embodiment, recursive updates are performed only under normal operating conditions where the longitudinal dynamic relationship is reliable, thus avoiding data contamination of the estimation results due to operating conditions such as braking, shifting, turning, low speed, steep gradients, and sudden changes in driving force.
[0079] Specifically, the system first collects multi-dimensional vehicle operating status signals, including vehicle speed, pedal opening, brake pressure, steering angle, lateral acceleration, pitch angle, and gear status, to comprehensively determine whether the current vehicle operating condition at the first moment meets the prerequisites for quality update. Only when all preset stability indicators meet the standards is the current vehicle operating condition considered to be in a normal state, thus allowing the dynamic identification model to update the quality estimate using the current sample; otherwise, the data at that moment is masked to prevent dirty data from non-ideal operating conditions from contaminating the estimation results. This selective update strategy based on multi-dimensional state awareness ensures the signal-to-noise ratio of the identification input from the data source, thereby improving the accuracy of online quality estimation.
[0080] In some embodiments, after step S104, the method further includes: When the current vehicle operating condition meets the preset quality update conditions, the current vehicle operating condition is determined to be the normal state, and the normal state is used to indicate that the vehicle is in a stable longitudinal driving state. The quality update conditions include: the gear is in a non-neutral state, the clutch is in an engaged state, there is no braking request, the throttle opening is in a preset throttle opening range, the steering angle is less than a preset steering angle threshold, the observed vehicle speed is in a preset vehicle speed range, the target acceleration is in a preset acceleration range, the road surface slope is less than a preset slope threshold, and the wheel slip rate is less than a preset slip rate threshold. When the current vehicle operating condition does not meet the quality update conditions, the current vehicle operating condition is determined to be an abnormal state, and the abnormal state information is used to indicate that the vehicle's driving state is changing.
[0081] If the current vehicle operating condition is in an abnormal state, the historical quality estimate corresponding to the previous moment of the first moment is obtained as the target quality estimate, so as to skip the quality update operation.
[0082] In this embodiment, the quality update conditions include, but are not limited to, the following: braking pressure is below a set threshold; target acceleration is within a identifiable range; vehicle observed speed is within a set medium speed range; the first driving force and its rate of change meet stability requirements; throttle opening or drive request reaches an effective excitation threshold; steering angle and steering angle change rate are small; lateral acceleration is below a set threshold; vehicle pitch angle is within an allowable range; and the vehicle is not in a gear shifting process and the current gear is valid. Furthermore, all of the above thresholds are determined according to vehicle model calibration.
[0083] For example, if all of the above conditions are met, an update enable signal γ is output. k =1 indicates that the current data can be used to update the quality estimate; otherwise, output γ. k =0, skipping the current data update and keeping the estimated state unchanged. This avoids contaminating the estimation results due to operating conditions such as braking, shifting, sharp turns, excessive gradients, and unstable driving forces; the update enable signal γ... k Used for update control.
[0084] In this embodiment, by jointly judging the above conditions, and when all the above conditions are met at the same time, it indicates that the longitudinal dynamic relationship of the vehicle is stable, and the mass estimate is updated. Under abnormal conditions, the mass estimate update is skipped to avoid data from unstable conditions from damaging the estimator state. Thus, unstable conditions are isolated at the data admission end, thereby avoiding the contamination of the estimation results by dirty data and improving the accuracy and reliability of the mass estimation results.
[0085] Specifically, the current vehicle operating condition is compared with preset screening conditions (such as nine joint screening conditions). If any one of the preset joint screening conditions is not met, the current vehicle operating condition is determined to be abnormal. When the current vehicle operating condition is abnormal, the quality update step is paused, and the quality estimate value from the previous moment is directly transferred to the current moment as is.
[0086] During periods when dynamic relationships are unreliable, maintaining existing optimal estimates is far safer than introducing new data with systematic biases. Compared to simple low-pass filtering or weighted averaging, this hard-switching strategy based on operating condition determination can completely block the erosion of integral states by dirty data, effectively preventing estimate divergence or jumps caused by brief, severe operating conditions (such as emergency braking or sharp turns), and enhancing the algorithm's computational capabilities in complex real-world road environments.
[0087] like Figure 4 As shown, step S103 includes: Step S1031: Obtain the vehicle quality signal of the vehicle, and determine the target forgetting factor and the initial quality estimate based on the vehicle quality signal; Step S1032: Based on the dynamic identification model, the target forgetting factor, the initial mass estimate, the target acceleration, and the first driving force, perform mass identification on the mass estimate of the vehicle to obtain the target mass estimate. The dynamic identification model is the recursive least squares (RLS) algorithm.
[0088] In this embodiment, the vehicle quality signal is the quality signal reported by the vehicle, including the signal status flag and the quality value; the target forgetting factor is the forgetting factor used in the current quality identification, which is used to determine the weight decay rate of historical data in the update; the initial quality estimate is the starting quality value of the quality identification.
[0089] Specifically, the target acceleration is used as the regressor and the first driving force as the observation. The recursive gain is determined based on the estimated covariance, target acceleration, and target forgetting factor from the previous time step. The estimated covariance characterizes the confidence level of the quality estimate. The quality estimate from the previous time step is updated based on the driving force residual between the first driving force and the predicted driving force to obtain the target quality estimate for the current time step. The predicted driving force is determined based on the quality estimate and target acceleration from the previous time step, and the recursive gain determines the weight of the driving force residual in the update. The estimated covariance is then updated again based on the recursive gain, target acceleration, and target forgetting factor. The updated estimated covariance serves as the estimated covariance from the previous time step for quality identification at the next time step, achieving cross-time step recursion.
[0090] This embodiment uses a recursive least squares algorithm to update the quality estimate and estimated covariance online, which can continuously correct the quality estimate as the driving process progresses, thereby improving the accuracy and convergence performance of the quality estimation results.
[0091] In some embodiments, acquiring the vehicle quality signal of the vehicle and determining the target forgetting factor and the initial quality estimate based on the vehicle quality signal includes: Based on preset verification conditions, the validity of the vehicle quality signal is verified. The verification conditions include at least one of the following: the signal status flag is valid, the signal value is complete, and the signal value is within a preset vehicle quality range. When the vehicle quality signal passes the validity check, the vehicle quality reference value is obtained as the initial quality estimate, and the first forgetting factor is used as the target forgetting factor. If the vehicle quality signal fails the validity check, a preset standard quality value is obtained as the initial quality estimate, and a second forgetting factor is used as the target forgetting factor, wherein the second forgetting factor is less than the first forgetting factor.
[0092] In this embodiment, the preset vehicle mass range consists of the minimum and maximum allowable mass of the vehicle (e.g., determined according to the curb weight and maximum allowable gross weight in the vehicle's announcement); the preset standard mass value is the safe mass, which can be set according to the weighted median of the curb weight and the maximum gross weight; the first forgetting factor is the normal forgetting factor (e.g., 0.995 to 0.9999), and the second forgetting factor is the rapid forgetting factor (e.g., 0.90 to 0.98).
[0093] In this embodiment, when the vehicle quality signal is valid, the reported quality is used as the initial quality estimate, making the estimation starting point close to the true quality, thus achieving faster convergence. When the quality signal is abnormal, a preset standard quality value is used as the initial quality estimate, and a smaller fast forgetting factor is switched, causing the weight of historical data to decay more quickly. This allows the estimator to get rid of erroneous initial values and converge to the true quality more quickly. Thus, in the normal phase, a normal forgetting factor close to 1 is used, and historical data is weakly forgotten, reducing steady-state estimation fluctuations. This improves the convergence speed under abnormal conditions and reduces estimation fluctuations under normal conditions, thereby improving the accuracy of the quality estimation results.
[0094] Specifically, since the recursive least squares algorithm relies on initial values and a forgetting factor, this embodiment further introduces a dual-modal adaptive mechanism based on signal validity. When the quality signal reported by the vehicle passes multiple checks, including status flags, numerical integrity, and reasonable range, the prior information is considered reliable and used as the initial quality estimate, with a relatively large first forgetting factor (e.g., 0.995 to 0.999). This large first forgetting factor allows the algorithm to retain historical data for a longer period and has lower sensitivity to new data, thus helping to suppress estimation fluctuations caused by measurement noise during steady-state cruise and obtain a smooth output.
[0095] Conversely, when vehicle quality signal verification fails (e.g., sensor malfunction, communication loss, or value exceeding limits), the system switches to a safety mode. This mode uses a preset standard quality value (e.g., vehicle curb weight or half-load weight) as the initial quality estimate and simultaneously switches to a smaller second forgetting factor (e.g., 0.95 to 0.98). The smaller forgetting factor allows historical data weights to decay more quickly, and the covariance matrix P grows rapidly, thus giving the algorithm stronger learning capabilities and greater confidence in new data.
[0096] For example, when the vehicle quality signal is valid, the estimator uses the filtered driving force F k-1 With mass identification acceleration a k (i.e., a) mass Taking m as input, perform recursive least squares (RLS) update with variable forgetting factor, and simultaneously update the estimated covariance. k Let P be the estimated vehicle mass at time k. kThe estimated covariance at time k is given by the following update formulas: Based on the longitudinal dynamic identification formula F k-1 =m k ·a k +ε k As one implementation of the dynamic identification model, F k-1 The filtered vehicle driving force from the previous moment; a k Estimate the mass acceleration at the current moment, i.e., the target acceleration; ε k Define the regressor φ as the model error. k =a k , Observation y k =F k-1 .
[0097] The recursive gain formula is K k =P k-1 ·φ k / (λ k +φ k 2 ·P k-1 ), where K k λ is the current recursive gain, used to determine the magnitude of the correction to the quality estimate from the residual at the current time step. k λ is the current forgetting factor, used to determine the rate at which the weights of historical data decay in this update. k The closer to 1, the slower the historical data is forgotten (smaller steady-state fluctuations); λ k The smaller the value, the faster it is forgotten (the faster it gets rid of incorrect initial values).
[0098] First calculate the driving force prediction residual e k =y k -φ k ·m k-1 Then update the formula m according to the quality estimation. k =m k-1 +K k ·e k Update the quality estimate and update the formula P based on the covariance. k =(1 / λ k )·(P k-1 -K k ·φ k ·P k-1 Perform covariance updates.
[0099] Segmented switching with forgetting factor λ based on the validity of vehicle quality signals. k Specifically, it includes: When the vehicle quality signal is abnormal and the system enters a fast estimation state, λ is taken. k =λ fastWhen the vehicle quality signal is normal or enters a stable estimation state, take λ. k =λ normal Because of λ fast Less than λ normal Historical data weights decay more quickly, allowing the estimator to recover from erroneous initial values more rapidly; λ normal Not actively forgetting historical data helps reduce fluctuations in quality estimation. fast Less than and λ normal All parameters are specified according to the vehicle model.
[0100] When the vehicle reports mass m vehicle Satisfy m min ≤m vehicle ≤m max When the initial mass is taken as m0=m vehicle When the vehicle quality signal is abnormal, take m0=m safe Where m min m max These are the minimum and maximum permissible masses of the vehicle, respectively, in m. safe For the preset safety quality, all parameters are calibrated according to the vehicle model; the initial covariance value P0 is also taken according to the calibration value.
[0101] By employing the above method, when prior information is unreliable, the algorithm quickly reconverges to the true mass based on the current driving force and acceleration observations, rather than slowly crawling around the erroneous initial values. Through the dynamic switching between the initial mass estimate and the target forgetting factor, both estimation stability under normal operating conditions and rapid self-recovery capability under abnormal operating conditions are ensured, further resolving the technical problem of convergence lag in traditional fixed-parameter RLS algorithms after initial value errors or sudden load changes.
[0102] In some embodiments, the method further includes: The trailer connection status signal, vehicle observation speed, and vehicle mass signal of the vehicle at the second moment are acquired. The trailer connection status signal is used to indicate whether the vehicle load has changed, the vehicle observation speed is used to indicate the vehicle's travel speed, and the vehicle mass signal is used to indicate the vehicle's load capacity. Based on the trailer connection status signal, the vehicle observed speed, and the vehicle mass signal, it is determined whether the vehicle meets the load change triggering condition at the second moment. The load change triggering condition includes at least one of the following: the trailer connection status signal is switched, the low-speed driving time exceeds a preset time threshold, or the vehicle mass signal is in a failed state. The low-speed driving time is the duration during which the vehicle observed speed is lower than the preset speed threshold. When the vehicle meets the load change triggering condition at the second moment, the estimated mass value of the vehicle is re-estimated based on the preset standard mass value and the second forgetting factor. If the vehicle does not meet the load change triggering condition at the second moment, the mass estimate value of the previous moment is used as the mass estimate value of the second moment.
[0103] In this embodiment, trailer connection status switching is used to indicate sudden load changes, low-speed parking timeout corresponds to loading and unloading operations, and quality signal failure indicates that the reference is unreliable. All three types of events trigger a re-estimation that restarts with a preset standard quality value and a rapid forgetting factor. On the one hand, this avoids the control inaccuracy caused by continuing to use expired quality, and on the other hand, it shortens the re-convergence time after load changes by using the rapid forgetting factor. This solves the technical problem of estimation results becoming invalid after load changes and improves the timeliness and accuracy of quality estimation results.
[0104] In the actual operation of heavy commercial vehicles, scenarios such as trailer detachment, cargo loading and unloading, or restarting after a long period of parking can cause sudden changes in the overall vehicle mass. If only conventional recursive updates are relied upon, the convergence time of the algorithm from the old estimate to the new true mass can be too long. During this period, if the longitudinal control system uses outdated mass parameters, it can easily lead to safety problems such as insufficient starting driving force, disordered shifting logic, or abnormal braking distance.
[0105] To further address the aforementioned issues, this embodiment triggers a forced reset of the estimator by sensing the physical characteristics of load changes. A multi-dimensional event monitoring strategy is employed when determining the load change triggering conditions.
[0106] Specifically, firstly, the switching of the trailer connection status signal is the most direct indicator of a sudden load change. The connection or disconnection of the trailer is identified by detecting the rising or falling edge of this signal; once an edge transition is detected, the trigger condition is met. Secondly, for scenarios where cargo loading / unloading or rest stops at service areas cannot be detected through trailer signals, a low-speed driving time monitoring logic is introduced. When the observed vehicle speed remains below a preset speed threshold (e.g., 5 km / h) for more than a preset duration threshold (e.g., 60 seconds), it is inferred that the vehicle may be loading / unloading or in a prolonged parking state. In this case, the confidence level of the original mass estimate decreases over time, thus automatically triggering a reassessment.
[0107] It should be understood that using low speed rather than absolute stillness as the criterion further avoids false triggers caused by sensor zero drift or GPS drift, while also covering special operational scenarios such as crawling loading and unloading. In addition, the failure state of the vehicle quality signal is also included as a trigger condition, serving as a fallback protection mechanism for the system. When the upstream load sensor fails or communication is interrupted, the estimator is forced to break away from its dependence on the failure signal and switch to autonomous re-evaluation mode.
[0108] When the vehicle determines at the second moment that any of the aforementioned load change triggering conditions are met, the estimator is immediately reinitialized. Specifically, the initial mass estimate is reset to a preset standard mass value, typically set as the vehicle's curb weight or typical half-load weight, serving as a relatively neutral safety benchmark to avoid using old estimates that may have significantly deviated from reality. Simultaneously, the target forgetting factor is forcibly switched to the second forgetting factor, and the estimated covariance matrix is reset to its initial large value or cleared to zero. Because the second forgetting factor is significantly smaller than the first forgetting factor used in normal estimation, the algorithm's memory of historical data decays rapidly in the initial reestimation phase, while assigning extremely high trust weights to the current driving force and acceleration observations. This allows the algorithm to quickly capture new mass characteristics and achieve convergence within several sampling periods.
[0109] Conversely, if the vehicle does not meet the load change trigger condition at the second time step, it indicates that the vehicle is in a normal continuous driving state and no significant load change has occurred. In this case, maintain the regular recursive update logic or keep the quality estimate from the previous time step unchanged to ensure the continuity and smoothness of the estimation results and avoid output jitter caused by frequent resets.
[0110] By combining event-driven and conventional recursion, this embodiment further solves the technical problems of pure data-driven algorithms in non-steady-state load change scenarios, further eliminates the negative impact of expired mass values on longitudinal control performance, and improves the driving safety and ride comfort of the vehicle.
[0111] In some embodiments, the method further includes output processing of the target quality estimate, specifically including: If the target mass estimate exceeds the preset vehicle mass range, the target mass estimate is replaced by the preset standard mass value to obtain the output mass value; if it does not exceed the range, the target mass estimate is used as the output mass value. The output quality value is low-pass filtered and its rate of change limited before being output to the longitudinal control system for driving force conversion, resistance compensation and acceleration control. The rate of change limit is used to limit the maximum change in quality output per unit time.
[0112] In this embodiment, outliers are eliminated by range verification, residual fluctuations are suppressed by low-pass filtering, and jumps are truncated by rate of change limitation, so that the quality curve input to the longitudinal control system is continuous and smooth, avoiding sudden changes in drive or braking commands caused by sudden changes in quality output. Thus, while improving the accuracy of quality estimation results, the smoothness and consistency of longitudinal control under different load conditions are guaranteed.
[0113] Please see Figure 5 , Figure 5 This is a schematic block diagram of the structure of a vehicle mass estimation device 110 provided in an embodiment of the present invention.
[0114] like Figure 5 As shown, the vehicle quality estimation device 110 includes at least one processor 111 and at least one memory 112 containing computer program code. The at least one processor 111 and at least one memory 112 are connected via a bus 113, such as an I2C (Inter-integrated Circuit) bus.
[0115] Specifically, processor 111 provides computing and control capabilities to support the operation of the entire vehicle mass estimation device. Processor 111 can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0116] Specifically, the memory 112 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.
[0117] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the embodiments of the present invention, and does not constitute a limitation on the vehicle weight estimation device to which the embodiments of the present invention are applied. A specific vehicle weight estimation device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0118] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to perform the following steps: The vehicle's first acceleration and first driving force are obtained. The first acceleration is the vehicle acceleration collected by the on-board inertial measurement unit, and the first driving force is calculated based on the vehicle's engine torque signal and transmission parameters. Based on the filtering parameters and the wheel speed of the vehicle, the second acceleration of the vehicle is determined, and multi-source fusion and filtering are performed based on the first acceleration and the second acceleration to obtain the target acceleration; Based on a preset dynamic identification model, the target acceleration and the first driving force are mass identified to obtain an estimated target mass value of the vehicle.
[0119] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: Based on the average wheel speed of each wheel, the observed vehicle speed is calculated, and the process noise and the observed noise corresponding to the observed vehicle speed are obtained. The process noise and the observed vehicle speed are mapped to each other. Based on the process noise and the observation noise, determine the filter recursion parameters; Based on the first filtering model and the filtering recursive parameters, the observed vehicle speed is smoothed and recursively estimated to obtain the second acceleration.
[0120] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: By querying the parameter mapping table, the process noise and the observation noise corresponding to the observed vehicle speed are obtained.
[0121] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: Based on the second acceleration and the first acceleration, a first acceleration difference is obtained to correct the low-frequency error of the second acceleration based on the first acceleration; The first acceleration difference is low-pass filtered based on the second filtering model to obtain the filtered second acceleration difference. The second acceleration difference is superimposed and fused with the second acceleration to obtain the third acceleration; Based on the vehicle's road surface slope, rolling resistance parameters, and air resistance parameters, the third acceleration is subjected to driving resistance compensation and low-pass filtering to obtain the target acceleration.
[0122] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: The first acceleration is preprocessed to obtain the first acceleration after correction; the preprocessing includes at least one of zero bias correction, mounting arm compensation, and gravity component compensation, so as to correct the first acceleration for zero bias, rod arm coupling error and gravity interference.
[0123] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: The acceleration difference between the second acceleration and the corrected first acceleration is calculated and used as the first acceleration difference to correct the low-frequency error of the second acceleration based on the corrected first acceleration.
[0124] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: The vehicle's operating status signal at a first moment is acquired, and the current vehicle operating condition is determined based on the vehicle operating status signal, the target acceleration, and the first driving force. If the current vehicle operating condition is normal, the estimated mass value of the vehicle is updated to identify the target acceleration and the first driving force based on a preset dynamic identification model, thereby obtaining the estimated target mass value of the vehicle.
[0125] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: If the current vehicle operating condition is in an abnormal state, the historical quality estimate corresponding to the previous moment of the first moment is obtained as the target quality estimate, so as to skip the quality update operation.
[0126] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: When the current vehicle operating condition meets the preset quality update conditions, the current vehicle operating condition is determined to be the normal state, and the normal state is used to indicate that the vehicle is in a stable longitudinal driving state. The quality update conditions include: the gear is in a non-neutral state, the braking pressure is lower than a preset pressure threshold, the throttle opening is within a preset throttle opening range, the steering angle is less than a preset steering angle threshold, the observed vehicle speed is within a preset vehicle speed range, the target acceleration is within a preset acceleration range, the road surface slope is less than a preset slope threshold, and the wheel slip rate is less than a preset slip rate threshold. When the current vehicle operating condition does not meet the quality update conditions, the current vehicle operating condition is determined to be an abnormal state, and the abnormal state information is used to indicate that the vehicle's driving state is changing.
[0127] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: The vehicle quality signal of the vehicle is acquired, and the target forgetting factor and the initial quality estimate are determined based on the vehicle quality signal. Based on the dynamic identification model, the target forgetting factor, the initial mass estimate, the target acceleration, and the first driving force, the mass estimate of the vehicle is identified to obtain the target mass estimate. The dynamic identification model is the recursive least squares (RLS) algorithm.
[0128] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: Based on preset verification conditions, the validity of the vehicle quality signal is verified. The verification conditions include at least one of the following: the signal status flag is valid, the signal value is complete, and the signal value is within a preset vehicle quality range. When the vehicle quality signal passes the validity check, the vehicle quality reference value is obtained as the initial quality estimate, and the first forgetting factor is used as the target forgetting factor. If the vehicle quality signal fails the validity check, a preset standard quality value is obtained as the initial quality estimate, and a second forgetting factor is used as the target forgetting factor, wherein the second forgetting factor is less than the first forgetting factor.
[0129] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: The gear position signal of the vehicle is acquired, and the gear ratio corresponding to the gear position signal is determined in a preset gear position and gear ratio mapping relationship; The vehicle's final drive ratio, transmission efficiency, and wheel radius are obtained, and the engine torque signal is converted into the first driving force based on the gearbox ratio, the final drive ratio, transmission efficiency, and wheel radius.
[0130] In some embodiments, the at least one memory 112, the computer program code, and the at least one processor 111 are configured together to enable the vehicle mass estimation device 110 to further perform the following steps: The trailer connection status signal, vehicle observation speed, and vehicle mass signal of the vehicle at the second moment are acquired. The trailer connection status signal is used to indicate whether the vehicle load has changed, the vehicle observation speed is used to indicate the vehicle's travel speed, and the vehicle mass signal is used to indicate the vehicle's load capacity. Based on the trailer connection status signal, the vehicle observed speed, and the vehicle mass signal, it is determined whether the vehicle meets the load change triggering condition at the second moment. The load change triggering condition includes at least one of the following: the trailer connection status signal is switched, the low-speed driving time exceeds a preset time threshold, or the vehicle mass signal is in a failed state. The low-speed driving time is the duration during which the vehicle observed speed is lower than the preset speed threshold. When the vehicle meets the load change triggering condition at the second moment, the estimated mass value of the vehicle is re-estimated based on the preset standard mass value and the second forgetting factor. If the vehicle does not meet the load change triggering condition at the second moment, the mass estimate value of the previous moment is used as the mass estimate value of the second moment.
[0131] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the vehicle mass estimation device described above can be referred to the corresponding process in the aforementioned vehicle mass estimation method embodiments, and will not be repeated here.
[0132] Please see Figure 6 , Figure 6 This is a schematic block diagram of the vehicle structure provided in an embodiment of the present invention.
[0133] like Figure 6As shown, vehicle 100 includes a vehicle weight estimation device 110. The vehicle weight estimation device 110 may be... Figure 5 The vehicle mass estimation device 110 in the middle.
[0134] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of the vehicle described above can be referred to the corresponding process in the aforementioned vehicle mass estimation method embodiments, and will not be repeated here.
[0135] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement any of the vehicle mass estimation methods provided in the specification of this invention.
[0136] The computer-readable storage medium can be volatile or non-volatile. The storage medium can be an internal storage unit of the vehicle as described in the foregoing embodiments, such as the vehicle's hard drive or memory. Alternatively, the storage medium can be an external storage device of the vehicle, such as a plug-in hard drive, smart media card (SMC), secure digital card (SD), flash card, etc.
[0137] Those skilled in the art will understand that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware embodiments, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0138] The sequence numbers of the above embodiments of the present invention are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The above descriptions are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for estimating vehicle mass, characterized in that, include: The vehicle's first acceleration and first driving force are obtained. The first acceleration is the vehicle acceleration collected by the on-board inertial measurement unit, and the first driving force is calculated based on the vehicle's engine torque signal and transmission parameters. Based on the filtering parameters and the wheel speed of the vehicle, the second acceleration of the vehicle is determined, and multi-source fusion and filtering are performed based on the first acceleration and the second acceleration to obtain the target acceleration; Based on a preset dynamic identification model, the target acceleration and the first driving force are mass identified to obtain an estimated target mass value of the vehicle.
2. The method as described in claim 1, characterized in that, The filtering parameters include process noise and observation noise. Determining the second acceleration of the vehicle based on the filtering parameters and the wheel speeds of the vehicle includes: Based on the average wheel speed of each wheel, the observed vehicle speed is calculated, and the process noise and the observed noise corresponding to the observed vehicle speed are obtained. The process noise and the observed vehicle speed are mapped to each other. Based on the process noise and the observation noise, determine the filter recursion parameters; Based on the first filtering model and the filtering recursive parameters, the observed vehicle speed is smoothed and recursively estimated to obtain the second acceleration.
3. The method as described in claim 2, characterized in that, The filtering parameters are determined based on the wheel speed in a preset parameter mapping table. These filtering parameters are used to determine the filtering intensity. The process noise and the observed noise corresponding to the observed vehicle speed include: By querying the parameter mapping table, the process noise and the observation noise corresponding to the observed vehicle speed are obtained.
4. The method as described in claim 1, characterized in that, The step of performing multi-source fusion and filtering based on the first acceleration and the second acceleration to obtain the target acceleration includes: Based on the second acceleration and the first acceleration, a first acceleration difference is obtained to correct the low-frequency error of the second acceleration based on the first acceleration; The first acceleration difference is low-pass filtered based on the second filtering model to obtain the filtered second acceleration difference. The second acceleration difference is superimposed and fused with the second acceleration to obtain the third acceleration; Based on the vehicle's road surface slope, rolling resistance parameters, and air resistance parameters, the third acceleration is subjected to driving resistance compensation and low-pass filtering to obtain the target acceleration.
5. The method as described in claim 4, characterized in that, After obtaining the vehicle's first acceleration, the method further includes: The first acceleration is preprocessed to obtain the first acceleration after correction; the preprocessing includes at least one of zero bias correction, mounting arm compensation, and gravity component compensation, so as to correct the first acceleration for zero bias, rod arm coupling error and gravity interference. The step of obtaining a first acceleration difference based on the second acceleration and the first acceleration, and correcting the low-frequency error of the second acceleration based on the first acceleration, includes: The acceleration difference between the second acceleration and the corrected first acceleration is calculated and used as the first acceleration difference to correct the low-frequency error of the second acceleration based on the corrected first acceleration.
6. The method as described in claim 1, characterized in that, Before obtaining the target mass estimate of the vehicle by performing mass identification on the target acceleration and the first driving force based on a preset dynamic identification model, the process includes: The vehicle's operating status signal at a first moment is acquired, and the current vehicle operating condition is determined based on the vehicle operating status signal, the target acceleration, and the first driving force. If the current vehicle operating condition is normal, the estimated mass value of the vehicle is updated to identify the target acceleration and the first driving force based on a preset dynamic identification model, thereby obtaining the estimated target mass value of the vehicle.
7. The method as described in claim 6, characterized in that, After acquiring the vehicle's operating status signal at a first moment, and determining the vehicle's current operating condition based on the vehicle's operating status signal, the target acceleration, and the first driving force, the method further includes: If the current vehicle operating condition is in an abnormal state, the historical quality estimate corresponding to the previous moment of the first moment is obtained as the target quality estimate, so as to skip the quality update operation.
8. The method as described in claim 6, characterized in that, After acquiring the vehicle's operating status signal at a first moment, and determining the vehicle's current operating condition based on the vehicle's operating status signal, the target acceleration, and the first driving force, the method further includes: When the current vehicle operating condition meets the preset quality update conditions, the current vehicle operating condition is determined to be the normal state, and the normal state is used to indicate that the vehicle is in a stable longitudinal driving state. The quality update conditions include: the gear is in a non-neutral state, the braking pressure is lower than a preset pressure threshold, the throttle opening is within a preset throttle opening range, the steering angle is less than a preset steering angle threshold, the observed vehicle speed is within a preset vehicle speed range, the target acceleration is within a preset acceleration range, the road surface slope is less than a preset slope threshold, and the wheel slip rate is less than a preset slip rate threshold. When the current vehicle operating condition does not meet the quality update conditions, the current vehicle operating condition is determined to be an abnormal state, and the abnormal state information is used to indicate that the vehicle's driving state is changing.
9. The method as described in claim 1, characterized in that, The step of performing mass identification on the target acceleration and the first driving force based on a preset dynamic identification model to obtain an estimated target mass value of the vehicle includes: The vehicle quality signal of the vehicle is acquired, and the target forgetting factor and the initial quality estimate are determined based on the vehicle quality signal. Based on the dynamic identification model, the target forgetting factor, the initial mass estimate, the target acceleration, and the first driving force, the mass estimate of the vehicle is identified to obtain the target mass estimate. The dynamic identification model is the recursive least squares (RLS) algorithm.
10. The method as described in claim 9, characterized in that, The step of acquiring the vehicle quality signal and determining the target forgetting factor and initial quality estimate based on the vehicle quality signal includes: Based on preset verification conditions, the validity of the vehicle quality signal is verified. The verification conditions include at least one of the following: the signal status flag is valid, the signal value is complete, and the signal value is within a preset vehicle quality range. When the vehicle quality signal passes the validity check, the vehicle quality reference value is obtained as the initial quality estimate, and the first forgetting factor is used as the target forgetting factor. If the vehicle quality signal fails the validity check, a preset standard quality value is obtained as the initial quality estimate, and a second forgetting factor is used as the target forgetting factor, wherein the second forgetting factor is less than the first forgetting factor.
11. The method as described in claim 1, characterized in that, Before acquiring the vehicle's first acceleration and first driving force, wherein the first acceleration is the vehicle acceleration collected by the onboard inertial measurement unit, the method further includes: The gear position signal of the vehicle is acquired, and the gear ratio corresponding to the gear position signal is determined in a preset gear position and gear ratio mapping relationship; The vehicle's final drive ratio, transmission efficiency, and wheel radius are obtained, and the engine torque signal is converted into the first driving force based on the gearbox ratio, the final drive ratio, transmission efficiency, and wheel radius.
12. The method as described in claim 1, characterized in that, The method further includes: The trailer connection status signal, vehicle observation speed, and vehicle mass signal of the vehicle at the second moment are acquired. The trailer connection status signal is used to indicate whether the vehicle load has changed, the vehicle observation speed is used to indicate the vehicle's travel speed, and the vehicle mass signal is used to indicate the vehicle's load capacity. Based on the trailer connection status signal, the vehicle observed speed, and the vehicle mass signal, it is determined whether the vehicle meets the load change triggering condition at the second moment. The load change triggering condition includes at least one of the following: the trailer connection status signal is switched, the low-speed driving time exceeds a preset time threshold, or the vehicle mass signal is in a failed state. The low-speed driving time is the duration during which the vehicle observed speed is lower than the preset speed threshold. When the vehicle meets the load change triggering condition at the second moment, the estimated mass value of the vehicle is re-estimated based on the preset standard mass value and the second forgetting factor. If the vehicle does not meet the load change triggering condition at the second moment, the mass estimate value of the previous moment is used as the mass estimate value of the second moment.
13. A vehicle mass estimation device, characterized in that, include: At least one processor; At least one memory containing computer program code; The at least one memory, the computer program code, and the at least one processor are configured together to enable the vehicle mass estimation device to implement the vehicle mass estimation method according to any one of claims 1-12.
14. A vehicle, characterized in that, include: The vehicle mass estimation device according to claim 13.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to implement the vehicle mass estimation method according to any one of claims 1-12.
