Vehicle, airbag controller and ignition prediction method thereof
Through the combination of filtering and logistic regression models, the problem of insufficient ignition control accuracy of the airbag controller under frontal collision conditions is solved, the calibration process is simplified, and the system performance and efficiency are improved.
Patent Information
- Application Number
- CN202410666202.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-23
AI Technical Summary
Existing airbag controllers are difficult to meet the ignition timing requirements under frontal collision conditions. The calibration process is complex and relies on engineer experience, resulting in unstable performance and excessive consumption of computing resources.
The first and second filters are used to filter the actual vehicle collision data to determine whether to start ignition prediction, and output the ignition command through the logistic regression model to reduce the algorithm selection and calibration process.
The ignition control accuracy of the airbag controller is improved, the development time and the influence of external factors are reduced, and the development efficiency and system robustness are improved.
Smart Images

Figure CN118528968A
Abstract
Description
Technical Field
[0001] The present application is applicable to the field of vehicle control technology, and in particular relates to a vehicle, an airbag controller and an ignition prediction method thereof. Background Art
[0002] Automobile airbags are a passive safety device in the automobile passive safety system. They provide a supplementary safety measure and are often used as the last resort in collision accidents. Because they are directly related to the life safety of drivers and passengers, it is particularly important whether they can be detonated at the right time. This mainly depends on whether the airbag controller can make a reasonable judgment at the right time and send out an ignition current to detonate the airbag.
[0003] At present, when a frontal collision occurs in a car, the airbag control unit (ACU) receives the acceleration signal from the front collision sensor and analyzes it in combination with the acceleration signal of the built-in sensor. Without user intervention, it sends an ignition command to the restraint system devices such as the airbag and seat belt warning, and triggers the fuel and power-off device to cut off the fuel system circuit and the electrical system circuit, thereby achieving the purpose of protecting personnel and system safety. The above process is mainly based on whether the acceleration signal and related physical quantities exceed the threshold line to distinguish different working conditions. For example, the adaptive displacement algorithm based on integration calculates the integral value of the acceleration in the driving direction in the electronic control unit (ECU), and combines the acceleration of the front collision sensor and the ECU at the corresponding time to determine whether it is necessary to trigger each ignition circuit. In the actual calibration process, this single and overly simple calibration method is often difficult to fully meet the ignition time requirements (Required Time to Fire, RTTF) required by each working condition, especially the frontal collision condition.
[0004] In order to allow the controller to distinguish as many working conditions as possible and meet RTTF as much as possible, calibration engineers often have to select appropriate auxiliary algorithms from a huge algorithm library, or filter out suitable features from a large number of features. This places high demands on engineers, increasing their workload and taking a long time to calibrate the process. It also makes the performance of the airbag controller more susceptible to the experience and level of engineers. In addition, the use of a large number of auxiliary algorithms increases the overall complexity of the model, which may reduce the robustness of the ignition algorithm and increase the consumption of computing resources. The computing resources and storage resources in the ECU may be unable to support too many auxiliary algorithms.
[0005] Therefore, how to improve the ignition control calculation of the airbag controller to improve the accuracy of ignition control has become an urgent problem to be solved. Summary of the invention
[0006] In view of this, an embodiment of the present application provides an ignition prediction method for a vehicle and an airbag controller thereof to solve the problem of how to improve the ignition control calculation of the airbag controller to improve the accuracy of the ignition control.
[0007] In a first aspect, an embodiment of the present application provides an ignition prediction method for an airbag controller, the ignition prediction method for an airbag controller comprising:
[0008] Acquire real vehicle collision data at the current moment, wherein the collision data includes acceleration detected at a preset position of the vehicle;
[0009] Using a first filter and a second filter to filter the real vehicle collision data respectively to obtain first real vehicle data and second real vehicle data, wherein a cutoff frequency of the first filter is less than a cutoff frequency of the second filter;
[0010] According to the first real vehicle data, determining whether to start the ignition prediction at the current moment, and if the ignition prediction is started at the current moment, performing feature extraction on the second real vehicle data to obtain a real vehicle feature vector;
[0011] The real vehicle feature vector is input into a logistic regression model, and a prediction result representing whether ignition is on or not is output, wherein the prediction result is used to enable the airbag controller to output an airbag ignition instruction when the prediction result represents ignition.
[0012] In a second aspect, an embodiment of the present application provides an airbag controller, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the ignition prediction method described in the first aspect when executing the computer program.
[0013] In a third aspect, an embodiment of the present application provides a vehicle, comprising the airbag controller described in the second aspect.
[0014] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the present application obtains the real vehicle collision data at the current moment, and uses the first filter and the second filter to filter the real vehicle collision data respectively to obtain the first real vehicle data and the second real vehicle data, and judges whether to start the ignition prediction at the current moment according to the first real vehicle data; if the ignition prediction is started at the current moment, the second real vehicle data is subjected to feature extraction to obtain a real vehicle feature vector, and the real vehicle feature vector is input into the logistic regression model to output a prediction result representing whether the ignition is on or not, and the prediction result is used to enable the airbag controller to output the airbag ignition instruction when the characterization is ignition, thereby realizing the output ignition control using the logistic regression model, without the need for complex algorithm selection and calibration, thereby improving the development efficiency of the airbag controller and reducing the impact of external factors on the development of the airbag controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0016] Figure 1 This is a schematic diagram of the distribution of a sensor and an ECU for vehicle collision detection provided in Example 1 of the present application;
[0017] Figure 2 It is a flow chart of an ignition prediction method of an airbag controller provided in Embodiment 2 of the present application;
[0018] Figure 3 It is a flowchart of algorithm modularization in an airbag controller provided in Embodiment 2 of the present application;
[0019] Figure 4 It is a flow chart of an ignition prediction method of an airbag controller provided in Embodiment 3 of the present application;
[0020] Figure 5 It is a flow chart of an ignition prediction method of an airbag controller provided in Embodiment 4 of the present application;
[0021] Figure 6 This is a schematic diagram of a modular model training process provided in Example 4 of the present application;
[0022] Figure 7 This is a structural schematic diagram of an airbag controller provided in Example 5 of the present application. DETAILED DESCRIPTION
[0023] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0024] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0027] It should be understood that the size of the serial numbers of the steps in the following embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0028] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0029] See also Figure 1 , is a distribution diagram of a sensor and ECU for vehicle collision detection provided in the first embodiment of the present application. Among them, left and right front collision sensors, left and right door pressure sensors, left and right B-pillar sensors, and left and right C-pillar sensors can be distributed in the vehicle to detect the collision information of the vehicle, such as acceleration data, pressure data, etc. In addition, the ECU can also be connected with corresponding acceleration sensors, inertial sensors, etc. to obtain the driving acceleration and lateral acceleration of the vehicle in the direction of travel. The airbag controller can connect sensors, ECUs, etc. through the vehicle controller area network (Controller Area Network, CAN) bus or hard wires to obtain corresponding real-time data, which is used for subsequent airbag ignition judgment.
[0030] See also Figure 2 , is a flow chart of an ignition prediction method for an airbag controller provided in Embodiment 2 of the present application. The ignition prediction method is applied in the airbag controller. Specifically, a corresponding data processing module needs to be deployed in the airbag controller to execute the following steps: Figure 2 The steps shown are as follows:
[0031] Step S201, obtaining the actual vehicle collision data at the current moment.
[0032] The collision data includes acceleration detected at a preset position of the vehicle, for example, Figure 1 The acceleration detected by the sensors arranged on the vehicle body. In addition to acceleration, real vehicle collision data can also include sensor signals such as pressure data and inertia data to achieve better airbag ignition control effect.
[0033] Step S202: Use the first filter and the second filter to filter the real vehicle collision data respectively to obtain first real vehicle data and second real vehicle data.
[0034] Among them, the cutoff frequency of the first filter is less than the cutoff frequency of the second filter. The purpose of using two medium frequency filters is to reasonably filter the real vehicle collision data, so as to obtain two real vehicle data. For example, the cutoff frequency of the first filter is 14Hz, and the cutoff frequency of the second filter is 60Hz. Using 14Hz as the cutoff frequency of the first filter can make the first real vehicle data obtained, which can retain the authenticity of the data and avoid data fluctuations, so as to accurately characterize the state of the vehicle. Using 60Hz as the cutoff frequency of the second filter can make the second real vehicle data obtained, compared with the configured sampling frequency (for example, 2000Hz), effectively reduce the amount of data, and it has been verified by experiments that when the cutoff frequency is 60Hz, it can contain rich real vehicle features. A cutoff frequency higher than 60Hz will not have much impact on the accuracy of model training, but the amount of calculation brought about is greatly increased.
[0035] The above filters are all low-pass filters, that is, the data below the cutoff frequency are filtered to obtain filtered data.
[0036] Optionally, the filter may use a second-order low-pass filter, which can better filter the sensor signal in the vehicle and improve the signal quality.
[0037] The first filter and the second filter used in this stage are set the same as the filters used when training the logistic regression model using the data, so as to improve the accuracy of the prediction of the data input into the logistic regression model.
[0038] Step S203, judging whether to start the ignition prediction at the current moment according to the first real vehicle data, if the ignition prediction is started at the current moment, performing feature extraction on the second real vehicle data to obtain a real vehicle feature vector.
[0039] Among them, the first real vehicle data is low-frequency data compared to the unfiltered data and the second real vehicle data, and the data fluctuation is small, which can more accurately characterize the state of the vehicle, that is, the first real vehicle data can accurately determine whether the vehicle has a collision, etc., so as to give a conclusion on whether to start the ignition prediction at the current moment. For the second real vehicle data, compared with the first real vehicle data, the data fluctuation is larger, and it can contain more data features, which can be used to improve the accuracy of data feature analysis, and compared with the unfiltered data, the data volume is reduced, so the efficiency of calculation and analysis can be effectively improved.
[0040] Therefore, the first real vehicle data is used to determine whether to start the ignition prediction, wherein each data in the first real vehicle data can be analyzed separately to determine whether the conditions for starting the ignition prediction are met. After starting the ignition prediction, the stage of using the model for ignition prediction is entered. Not starting the ignition prediction indicates that there is no need to enter the ignition prediction stage, and the process exits or returns to step S201 to continuously monitor the real vehicle data.
[0041] Perform feature extraction on the second real vehicle data to obtain a real vehicle feature vector. Specifically, use a feature extraction encoder to perform vector encoding on the second real vehicle data to obtain a corresponding real vehicle feature vector, wherein the feature extraction encoder has the same architecture, parameters, etc. as the feature extraction module when using the data to train the logistic regression model, so as to ensure consistency of the data during training and use.
[0042] Optionally, the acceleration at the preset position of the vehicle includes: the collision acceleration of the left front side, the collision acceleration of the right front side, the driving acceleration of the vehicle and / or the lateral acceleration of the vehicle. The above accelerations can be used as effective data to predict whether the airbag is ignited or not, and the combination of all accelerations can be accurately used to predict whether the airbag is ignited or not in the frontal collision condition of the vehicle. Of course, in actual use, it is not limited to the above acceleration data, and corresponding acceleration data can be added according to different collision conditions.
[0043] Optionally, judging whether to start ignition prediction at the current moment according to the first real vehicle data includes:
[0044] Comparing the left front collision acceleration, the right front collision acceleration and the vehicle's running acceleration with corresponding start thresholds respectively;
[0045] If the collision acceleration of the left front side is greater than the corresponding start threshold, the collision acceleration of the right front side is greater than the corresponding start threshold, or the driving acceleration of the vehicle is greater than the corresponding start threshold, it is determined to start the ignition prediction at the current moment;
[0046] If the left front collision acceleration is not greater than the corresponding start threshold, the right front collision acceleration is not greater than the corresponding start threshold, and the vehicle's driving acceleration is not greater than the corresponding start threshold, it is determined that the ignition prediction is not started at the current moment.
[0047] Among them, taking the collision acceleration of the left front side of the vehicle, the collision acceleration of the right front side, the driving acceleration of the vehicle and the lateral acceleration of the vehicle as examples, that is, the actual vehicle collision data is represented by a matrix composed of four accelerations arranged in sequence. Correspondingly, the format of the first actual vehicle data is the same as the above matrix. Therefore, based on the first three accelerations, they can be compared with the corresponding starting thresholds respectively. If one of the accelerations exceeds the corresponding starting threshold, it can be determined to start the ignition prediction. If none of them is greater than, the ignition prediction will not be started.
[0048] After starting, if the three accelerations are all less than the corresponding exit thresholds within the duration interval, the ignition prediction is exited and the prediction process is ended. Before the ignition prediction, the ignition prediction is started, and the ignition prediction result can be obtained more accurately through a double judgment method, wherein the collision acceleration of the left front side, the collision acceleration of the right front side, the vehicle's driving acceleration and the vehicle's lateral acceleration are compared with the corresponding thresholds to simply and accurately reflect whether the vehicle is in a collision, thereby realizing the judgment of whether to start the ignition.
[0049] Step S204, input the real vehicle feature vector into the logistic regression model, and output a prediction result representing whether the ignition is on or not.
[0050] The prediction result is used to enable the airbag controller to output an airbag ignition command when the prediction result is ignition. When the prediction result is ignition, the airbag controller outputs an ignition command to control the corresponding airbag ignition. For example, if the above-mentioned real vehicle collision data corresponds to a vehicle forward rigid collision condition, at least the airbag in front of the driver and the passenger should be controlled to ignite and pop out to reduce personal injury.
[0051] Among them, when training the logistic regression model, the input data is the feature vector, and the output data is the predicted value representing whether the ignition is on or not. Therefore, the logistic regression model is used to calculate the feature vector of the actual vehicle to obtain the predicted value. For example, the predicted value is 0 or 1, 0 represents no ignition, 1 represents ignition, if the predicted value is 1, the predicted result is no ignition, if the predicted value is 1, the predicted result is ignition, and for another example, the predicted value can be a confidence value representing ignition, wherein when the confidence value is greater than a certain preset threshold, the prediction that the ignition is reliable is represented, that is, the prediction result is determined to be ignition, and when the confidence value is less than the preset threshold, the prediction that the ignition is unreliable is represented, that is, the prediction result is determined to be no ignition.
[0052] In actual use, in the airbag controller, the first filter and the second filter in the above embodiment can be combined into a low-pass filter component, the function of starting ignition prediction can form an algorithm trigger and exit module, the feature extraction process can form a feature extraction module, and the logistic regression model is configured in a logistic regression model prediction module. Therefore, Figure 3 As shown, it is a modularized flow chart of the above steps.
[0053] The present application obtains the real vehicle collision data at the current moment, and uses the first filter and the second filter to filter the real vehicle collision data respectively to obtain the first real vehicle data and the second real vehicle data, and judges whether to start the ignition prediction at the current moment according to the first real vehicle data. If the ignition prediction is started at the current moment, the second real vehicle data is feature extracted to obtain the real vehicle feature vector, and the real vehicle feature vector is input into the logistic regression model to output the prediction result representing whether the ignition is on or not. The prediction result is used to enable the airbag controller to output the airbag ignition instruction when the characterization is ignition, so as to realize the output ignition control using the logistic regression model, and two kinds of real vehicle data are obtained by filtering, one of which is used to determine whether the ignition is started or not, and the other is used to determine whether the ignition is on or not. A set of determined model prediction methods is adopted, and there is no need for complex algorithm selection and calibration, thereby improving the development efficiency of the airbag controller and reducing the impact of external factors on the development of the airbag controller.
[0054] See also Figure 4 , is a flow chart of an ignition prediction method for an airbag controller provided in Embodiment 3 of the present application. Figure 4 As shown, the training of the logistic regression model in the above step S204 includes the following steps:
[0055] Step S401, obtaining calibrated collision data under K target working conditions and ignition calibration data corresponding to the target working conditions.
[0056] The collision data includes the acceleration detected at a preset position of the vehicle within a preset continuous sampling time period, the ignition calibration data includes the ignition requirement and the optimal ignition time, and K is an integer greater than zero.
[0057] For example, the acceleration data of the front collision sensor (including the x-axis direction at both ends) and the acceleration sensor in the ECU (including the x-axis and y-axis) are collected for calibration under the frontal collision condition. The x-axis represents the driving direction of the vehicle, and the y-axis represents the lateral direction of the vehicle. The sampling interval is 200ms before the collision to 500ms after the collision, and the data is downsampled to 2000Hz to adapt to the calculation frequency of the processor in the airbag controller. In addition, a reasonable RTTF designed by engineers is required, including ignition requirements and optimal ignition time (i.e., as ignition calibration data). As follows:
[0058] Sraw,k =[a l,k ,a r,k ,a x,k ,a y,k ]∈i T×4 , where S raw,k represents the collision data matrix of the kth working condition, in which the columns represent the sampling time points, the rows represent different sensor signals, and a l,k Indicates the left front collision sensor acceleration, a r,k Indicates the acceleration of the right front collision sensor, a x,k Indicates the acceleration in the x-axis direction in the ECU, a y,k Indicates the acceleration in the y-axis direction in the ECU.
[0059] Step S402 , for any target working condition, preprocessing the calibrated collision data of the target working condition to obtain preprocessed data, and filtering the preprocessed data using a first filter and a second filter respectively to obtain first filtered data and second filtered data.
[0060] Among them, preprocessing may include processing operations such as enriching the data to enhance the robustness of the commission model. For the processed data, filtering processing is performed using the same filtering method as the above-mentioned step S202, thereby dividing the data into two types, namely the first filtered data and the second filtered data. For details, please refer to the description of the above-mentioned step S202, which will not be repeated here.
[0061] The cutoff frequency of the first filter is 14 Hz, and the cutoff frequency of the second filter is 60 Hz. The same specification parameters as those in the above step S202 are used to ensure the consistency of data during training and actual use.
[0062] Step S403, taking any time point in the preset continuous sampling time period as the processing moment, judging whether to start the ignition prediction at the processing moment according to the first filtered data, if the ignition prediction is started at the processing moment, performing feature extraction on the data value corresponding to the processing moment in the second filtered data to obtain a sample feature vector.
[0063] The above-mentioned calibrated collision data is not data of a single moment, but data of a preset continuous sampling time period. For any time point, the time point is used as the processing moment to execute subsequent steps until all time points are traversed and subsequent steps are executed.
[0064] Whether to start ignition prediction is determined by the data corresponding to the processing time in the first filtered data, and after starting ignition prediction, feature extraction is performed on the data value corresponding to the processing time in the second filtered data. The judgment process and feature extraction process are the same as the judgment process and feature extraction process of the above step S203.
[0065] Step S404, based on the ignition calibration data, determine the sample label that characterizes whether the ignition is on at the processing moment, construct a training sample based on the sample feature vector and the sample label, traverse all processing moments and all target working conditions, and obtain all training samples to form a training data set.
[0066] Among them, according to the RTTF designed by the above-mentioned engineers, it is determined whether the sample label corresponding to the data at the processing moment is ignition, and then the sample feature vector at the processing moment and the sample label are formed into a training sample, thereby realizing the generation of samples and the construction of training data sets. It can be seen that the above-mentioned steps S401 to S404 complete the sample generation process.
[0067] Optionally, determining a sample label representing whether the ignition is on or off at the processing time according to the ignition calibration data includes:
[0068] If the ignition requirement in the ignition calibration data is ignition, then the detection processing time is within the optimal ignition time in the ignition calibration data;
[0069] If it is detected that the processing time is within the optimal ignition time, the sample label of the processing time is determined to be ignition;
[0070] If it is detected that the processing time exceeds the optimal ignition time, it is determined that the sample feature vector corresponding to the processing time is not a training sample;
[0071] If it is detected that the processing time is less than the optimal ignition time, the sample label of the processing time is determined to be no ignition.
[0072] Optionally, determining a sample label representing whether the ignition is on or off at the processing time according to the ignition calibration data includes:
[0073] If the ignition requirement in the ignition calibration data is no ignition, the sample label at the processing time is determined to be no ignition.
[0074] Among them, when RTTF requires no ignition, the labels of the vectors of the data corresponding to all time points in the calibrated collision data are all 0, and 0 represents no ignition. When RTTF requires ignition, the processing time needs to be compared with the optimal ignition time. The data corresponding to the processing time exceeding the optimal ignition time is no longer of research significance. Therefore, this part of the data is not synthesized into samples. The labels of the vectors of the data corresponding to the processing time within the optimal ignition time are all 1, which represents ignition. The labels of the vectors of the data corresponding to the processing time that does not reach the optimal ignition time are all 0.
[0075] Step S405: training the model according to the training data set to obtain a logistic regression model.
[0076] Among them, the feature vector in the training data set is the input data, and the sample label is the label value of the corresponding feature vector, so as to realize the supervised training of the model, and finally realize the training of the model with the loss or the number of iterations as the condition. Through the above steps S401 to S405, the data collection and preprocessing can be realized, and then the preprocessed data is constructed into a training set in the same manner as the above steps S202 and S203, and used for model training to obtain a logistic regression model, and the logistic regression model can be adapted to the above step S204, because the accuracy of the trained logistic regression model is improved, the accuracy of the ignition prediction is determined to be higher.
[0077] In this embodiment, a logistic regression model can be used to construct a binary classification algorithm, and cross entropy is selected as the loss function:
[0078]
[0079] Where N is the total number of samples, y n represents the label of the nth sample, p n Indicates the probability that the nth sample output by the model belongs to the positive class, p n There are the following expressions:
[0080]
[0081] Among them, μ and b are model parameters, x n is the feature vector of the nth sample. The Newton-Raphson method is used to minimize the loss function on the training data set to update the model parameters until the loss function meets the convergence condition or reaches the maximum number of iterations, and the model parameters are output.
[0082] See also Figure 5 , is a flow chart of an ignition prediction method for an airbag controller provided in Embodiment 4 of the present application. Figure 5 As shown, in the above step S402, the calibrated collision data of the target working condition is preprocessed to obtain preprocessed data, which may specifically include the following steps:
[0083] Step S501 , mirroring the calibrated collision data of the target working condition to obtain mirrored collision data.
[0084] Step S502 : scaling the calibration collision data and the mirror collision data according to the ignition calibration data, and obtaining scaled data corresponding to different scaling ratios as pre-processed data.
[0085] Among them, if the calibrated collision data includes the lateral acceleration of the vehicle, then in the case of lateral displacement of the vehicle, whether it is to the left or to the right, the control of airbag ignition is essentially the same, that is, if ignition is required, the lateral acceleration that is offset to the left can be mirrored to obtain the lateral acceleration that is offset to the right, and vice versa. At this time, the mirrored data is essentially the same as the original data, which can increase the number of samples of the original data.
[0086] Scaling processing is to perform dot multiplication on the data at a certain scaling ratio. In this embodiment, different scaling ratios are set. The purpose of scaling the signal is to improve the robustness of the model. When the data is scaled within a certain range, the trained model can still maintain the properties in the set RTTF.
[0087] Optionally, scaling processing is performed on the calibration collision data and the mirror collision data according to the ignition calibration data, including:
[0088] If the ignition requirement in the ignition calibration data is ignition, a first scaling parameter is determined from 0 to 1, and scaling is performed on the calibration collision data and the mirror collision data according to the first scaling parameter;
[0089] If the ignition requirement in the ignition calibration data is no ignition, a second scaling parameter is determined from a positive number not less than 1, and scaling processing is performed on the calibration collision data and the mirror collision data according to the second scaling parameter.
[0090] Among them, when RTTF requires ignition, the value of the scaling ratio r should be less than 1, and the recommended parameters are 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1; when RTTF requires no ignition, the value of the scaling ratio r should be greater than 1, and the recommended parameters are 1, 1.05, 1.1, 1.15, 1.2, 1.25, 1.3; the above scaling ratios can be adjusted according to the needs of engineers. For the ignition requirement of ignition, the scaling parameter determined from 0 to 1 is used to scale the data, which can limit the scaling of the data to within 1 times. At this time, the data can effectively correspond to the requirement of "ignition". For the ignition requirement of no ignition, the scaling parameter of more than 1 is used to scale the data, which can limit the scaling of the data to more than 1 times. At this time, the data can correspond to the requirement of "no ignition", thereby better realizing the distinction between data features in ignition and no ignition, which helps to improve the prediction effect of the model.
[0091] In summary, the main parts of the above model training process are the training data generation module and the logistic regression model training module. The training data generation module uses the collision data of relevant working conditions (including the acceleration of the front collision sensor, the acceleration of the x-axis and y-axis in the ECU) and the RTTF provided by the engineer to output a training data set containing positive and negative samples (labeled as 0 or 1). The logistic regression model training module uses the generated training data set to update the parameters. The parameters output after the training can be used for model prediction.
[0092] like Figure 6 As shown, a schematic diagram of a modular model training process provided by an embodiment of the present application, wherein the training data generation module includes a data mirroring module, a residual construction module, a low-pass filter, an algorithm triggering and exiting module, a feature extraction module and a label generation module. It can be seen from the above-mentioned embodiment 2 that the model prediction process includes a low-pass filter, an algorithm triggering and exiting module, a feature extraction module and a logistic regression model prediction module. Among them, the parameters in the first three modules must be consistent with the modules in the training data generation module.
[0093] The description of the module is as follows:
[0094] 1. The data mirroring module does not contain control conditions and parameters.
[0095] 2. The parameter of the residual construction module is the scaling ratio r.
[0096] 3. The low-pass filter module contains two second-order low-pass filters, and the control parameters are the cut-off frequencies, which are 60Hz and 14Hz respectively.
[0097] 4. The control parameters of the algorithm trigger and exit module are the trigger threshold, exit threshold and exit duration. The algorithm will be started when the acceleration in the x direction of the current collision sensor or ECU is greater than the trigger threshold; if the acceleration in the x direction of the current collision sensor and ECU is lower than the exit threshold for a period of time greater than the duration, the exit algorithm will not perform feature extraction calculations.
[0098] 5. The feature extraction module does not contain control conditions and parameters.
[0099] 6. The control parameter of the label generation module is the extension time t exp If the ignition interval required by RTTF is [t1, t2], the label generation module will convert [max(t1-t exp ,0),t2+t exp ] time as the positive class.
[0100] 7. The parameters of the logistic regression model training module include learning rate and maximum number of iterations. The learning rate is the step size of each parameter update, and the recommended value is 0.01. The maximum number of iterations is 1000.
[0101] like Figure 6 As shown in Figure 2, the process of the training data generation module is as follows:
[0102] 1.1 S raw,k =[a l,k ,a r,k ,a x,k ,a y,k ] is input into the data mirror module, and the mirror data matrix S mir,k =[a l,k ,a r,k ,a x,k ,-a y,k ], output original data and mirror data
[0103] 1.2 Input the data obtained from the data mirror module into the residual construction module, which determines the scaling ratio r according to RTTF. If the residual construction module receives the collision data matrix S, it will output the scaling ratio according to the ratio Scale the data and output a data matrix set
[0104] 1.3 Traverse the collision data matrix in the data matrix set output by the residual construction module, and use a low-pass filter to filter the collision data matrix S, with cutoff frequencies of 14 Hz and 60 Hz respectively. The obtained data are recorded as S trig and S filt ;
[0105] 1.4 Traverse the time points and convert S trig The value S at the processing time t trig,t Input to the algorithm trigger and exit module, where S trig,t Can be a row vector of length 4. If S trig,t If one of the first three values exceeds the given start threshold, the algorithm starts; if the algorithm is in the start state at processing time t, and within the duration interval S trig,t If the first three values of are all lower than the exit threshold, the algorithm is closed. The algorithm trigger and exit module will output the algorithm status at processing time t. If the algorithm is in the closed state at processing time t, it will enter the calculation of the next moment.
[0106] 1.5 If the algorithm is in the startup state at processing time t, S filt The value S at the processing time t filt,t Input to the feature extraction module, which uses Sfilt,t And the characteristics of the stored data calculation processing time t. filt,t =[a 1,t ,a 2,t ,a 3,t ,a 4,t ], then the extracted feature vector x t for:
[0107]
[0108] The feature vector is a column vector containing 30 values, where lnta 1,t It means that from the algorithm start time t0 to the current processing time t, for a 1,t The value to be accumulated, that is lnta 2,t and lnta 3,t Has the same definition, but the accumulated object is a 2,t and a 3,t , |·| represents the absolute value.
[0109] 1.6 The label generation module will determine whether a sample needs to be generated at processing time t and the label of the sample based on the input RTTF. Specifically, when RTTF requires no firing, the feature x at all times t Both require synthetic samples, and the sample labels y t is 0; if RTTF requires the ignition circuit to ignite within the interval [t1, t2] after the collision occurs, then the processing time t is within the interval [max(t1-t exp ,0),t2+t exp ] sample label y t is 1, the processing time t is less than max(t1-t exp ,0)’s sample label y t If the data is 0, the data at other times will not be synthesized into samples. If no data synthesis is required at the processing time t, the calculation will proceed to the next time.
[0110] 1.7 The feature x generated by the feature extraction module t The label y generated by the label generation module t Combined together, it constitutes a training sample (x t ,y t ), add the training sample to the training data set. Traverse the collision data set and time points, and finally obtain a training data set containing a large number of positive and negative class (labeled 1 or 0) samples.
[0111] Finally, the training data set generated above is input into the logistic regression model training module. Since there are 30 features in the training data, the number of model parameters is 30+1=31. Figure 3 The content shown performs ignition prediction.
[0112] The embodiment of the present application improves the recognition accuracy of frontal collisions and reduces the occurrence of conflicts under different working conditions without increasing computing and storage resources. Unlike the traditional rule-based calibration algorithm, this technology can more efficiently extract features that can distinguish different working conditions from the generated training samples through a machine learning algorithm. Unlike the traditional calibration process of screening features and defining threshold lines based on the experience of engineers themselves, this technology has a clearer and more certain process and a higher degree of automation, which can not only save the labor cost required for calibration, but also reduce the impact of the level of the calibration engineer on the performance of the controller, thereby improving the overall collision safety performance. In addition, in the model training process of the present application, the data is first collected and preprocessed, and then the training set is constructed for the preprocessed data by filtering processing, and is used for model training to obtain a logistic regression model. Since the training set is constructed using the same configuration as the actual use, the accuracy of the trained logistic regression model can be improved, thereby making the accuracy of the ignition prediction higher.
[0113] like Figure 7 FIG. 1 is a schematic diagram of the structure of an airbag controller provided in Embodiment 5 of the present application. The airbag controller includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the ignition prediction method described in the above embodiment is implemented. In addition, the present application also provides a vehicle, which includes the airbag controller in the above embodiment.
[0114] Those skilled in the art will understand that Figure 7 This is merely an example of an airbag controller and does not constitute a limitation on the computer device. The computer device may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0115] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0116] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory may be the memory of a computer device, and the internal memory provides an environment for the operation of an operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments may also be an external storage device of a computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on a computer device. Further, the memory may also include both an internal storage unit of a computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0117] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0118] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0119] In the embodiments provided in the present application, it should be understood that the disclosed devices / control equipment and methods can be implemented in other ways. For example, the device / control equipment embodiments described above are merely schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0120] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0121] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An ignition prediction method for an airbag controller, It is characterized in that The ignition prediction method of the airbag controller includes: Acquire real vehicle collision data at the current moment, wherein the collision data includes acceleration detected at a preset position of the vehicle; Using a first filter and a second filter to filter the real vehicle collision data respectively to obtain first real vehicle data and second real vehicle data, wherein a cutoff frequency of the first filter is less than a cutoff frequency of the second filter; According to the first real vehicle data, determining whether to start the ignition prediction at the current moment, and if the ignition prediction is started at the current moment, performing feature extraction on the second real vehicle data to obtain a real vehicle feature vector; The real vehicle feature vector is input into a logistic regression model, and a prediction result representing whether ignition is on or not is output, wherein the prediction result is used to enable the airbag controller to output an airbag ignition instruction when the prediction result represents ignition.
2. The ignition prediction method of the airbag controller according to claim 1, It is characterized in that The acceleration at the preset position of the vehicle includes: a collision acceleration of the left front side, a collision acceleration of the right front side, a driving acceleration of the vehicle, and / or a lateral acceleration of the vehicle.
3. The ignition prediction method of the airbag controller according to claim 2, It is characterized in that The determining, based on the first real vehicle data, whether to start the ignition prediction at the current moment includes: comparing the left front collision acceleration, the right front collision acceleration and the vehicle travel acceleration with corresponding start thresholds respectively; If the collision acceleration of the left front side is greater than the corresponding start threshold, the collision acceleration of the right front side is greater than the corresponding start threshold, or the driving acceleration of the vehicle is greater than the corresponding start threshold, determining to start the ignition prediction at the current moment; If the left front collision acceleration is not greater than the corresponding start threshold, the right front collision acceleration is not greater than the corresponding start threshold, and the vehicle's driving acceleration is not greater than the corresponding start threshold, it is determined that the ignition prediction is not started at the current moment.
4. The ignition prediction method of the airbag controller according to claim 1, It is characterized in that The training of the logistic regression model includes: Acquire calibrated collision data under K target operating conditions and ignition calibration data corresponding to the target operating conditions, the collision data including acceleration detected at a preset position of the vehicle within a preset continuous sampling time period, the ignition calibration data including ignition requirements and optimal ignition time, and K is an integer greater than zero; For any target working condition, preprocessing the calibrated collision data of the target working condition to obtain preprocessed data, and filtering the preprocessed data using the first filter and the second filter respectively to obtain first filtered data and second filtered data; Taking any time point in the preset continuous sampling time period as a processing moment, judging whether to start ignition prediction at the processing moment according to the first filtering data, and if ignition prediction is started at the processing moment, performing feature extraction on the data value corresponding to the processing moment in the second filtering data to obtain a sample feature vector; According to the ignition calibration data, a sample label representing whether the ignition is on or off at the processing moment is determined, and a training sample is constructed according to the sample feature vector and the sample label, and all processing moments and all target working conditions are traversed to obtain all training samples to form a training data set; The model is trained according to the training data set to obtain the logistic regression model.
5. The ignition prediction method of the airbag controller according to claim 4, It is characterized in that The preprocessing of the calibrated collision data of the target working condition to obtain preprocessed data includes: Performing mirror processing on the calibrated collision data of the target working condition to obtain mirror collision data; The calibration collision data and the mirror collision data are scaled according to the ignition calibration data, and the scaled data corresponding to different scaling ratios are obtained as pre-processed data.
6. The ignition prediction method of the airbag controller according to claim 5, It is characterized in that The scaling process of the calibration collision data and the mirror collision data according to the ignition calibration data includes: If the ignition requirement in the ignition calibration data is ignition, determining a first scaling parameter from 0 to 1, and scaling the calibration collision data and the mirror collision data according to the first scaling parameter; If the ignition requirement in the ignition calibration data is no ignition, a second scaling parameter is determined from a positive number not less than 1, and scaling processing is performed on the calibration collision data and the mirror collision data according to the second scaling parameter.
7. The ignition prediction method of the airbag controller according to claim 4, It is characterized in that The step of determining, according to the ignition calibration data, a sample label representing whether the ignition is on at the processing time, comprises: If the ignition requirement in the ignition calibration data is ignition, detecting whether the processing time is within the optimal ignition time in the ignition calibration data; If it is detected that the processing moment is within the optimal ignition time, determining the sample label of the processing moment as ignition; If it is detected that the processing time exceeds the optimal ignition time, determining that the sample feature vector corresponding to the processing time is not a training sample; If it is detected that the processing time is less than the optimal ignition time, the sample label of the processing time is determined to be no ignition.
8. The ignition prediction method of the airbag controller according to claim 4, It is characterized in that The step of determining, according to the ignition calibration data, a sample label representing whether the ignition is on at the processing time, comprises: If the ignition requirement in the ignition calibration data is no ignition, then the sample label at the processing time is determined to be no ignition.
9. An air bag controller, It is characterized in that The airbag controller includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the ignition prediction method according to any one of claims 1 to 8 when executing the computer program.
10. A vehicle, It is characterized in that The vehicle includes the air bag controller as claimed in claim 9.
