Vehicle warning method, apparatus, and electronic device

By acquiring vehicle driving data and driver data, and using a rule engine and driving behavior analysis model to calculate the degree of danger, a target value is generated to issue a warning, which solves the problem of untimely warnings in existing technologies and achieves more accurate danger assessment and timely warnings.

CN115805957BActive Publication Date: 2026-11-24GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211426035.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2026-11-24
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

Existing technologies make it difficult to accurately determine the level of danger during vehicle operation, resulting in delayed warnings.

Method used

By acquiring vehicle driving data and driver driving data, and using a rule engine and driving behavior analysis model, the degree of danger of the driving environment and driving behavior is calculated. A target value is generated by combining weights and offsets, and a warning is issued when the target value exceeds the threshold.

Benefits of technology

It improves the timeliness and accuracy of vehicle warnings, ensuring that drivers are promptly alerted to safety in dangerous situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115805957B_ABST
    Figure CN115805957B_ABST
Patent Text Reader

Abstract

This application discloses a vehicle warning method, device, and electronic device. The method includes: acquiring driving data of the vehicle during driving and driving data of the driver; determining a first result value based on the driving data, the first result value representing the degree of danger of the driving environment during the vehicle's operation; determining a second result value based on the driving data, the second result value representing the degree of danger of the driver's driving behavior during the vehicle's operation; obtaining a target value based on the first result value and the second result value; and controlling the vehicle to output a warning when the target value is higher than a preset threshold. In this application, the target value combines the degree of danger of the driving environment and the degree of danger of the driving behavior, so that the target value can accurately reflect the degree of danger of the driving process, thereby enabling accurate determination of the degree of danger of the driving process and improving the timeliness of vehicle warnings.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle control technology, and more specifically, to a vehicle warning method, device, and electronic device. Background Technology

[0002] Transportation is a basic necessity for people's daily activities. With the advancement of technology and the improvement of people's living standards, the demand for vehicles is increasing. However, during the journey, vehicles may encounter dangerous road sections and adverse weather conditions, leading to traffic accidents.

[0003] Currently, vehicle sensor information can be obtained through vehicle sensors, and the presence of dangerous road sections and specific weather conditions can be determined based on this information. Then, the degree of danger during the driving process can be determined based on the presence of dangerous road sections and specific weather conditions, and whether to issue a warning to the vehicle can be determined based on the degree of danger.

[0004] However, using existing methods makes it difficult to accurately determine the degree of danger during driving, resulting in untimely warnings to vehicles. Summary of the Invention

[0005] In view of this, this application proposes a vehicle warning method, device, and electronic device to solve the above problems.

[0006] In a first aspect, embodiments of this application provide a vehicle warning method, the method comprising: acquiring driving data of the vehicle during driving and driving data of the driver; determining a first result value based on the driving data, the first result value representing the degree of danger of the driving environment of the vehicle during driving; and determining a second result value based on the driving data, the second result value representing the degree of danger of the driver's driving behavior of the vehicle during driving.

[0007] Based on the first result value and the second result value, the target value is obtained;

[0008] When the target value exceeds a preset threshold, the vehicle will output a warning.

[0009] Secondly, embodiments of this application provide a vehicle warning device, the device comprising: an acquisition module for acquiring driving data of the vehicle during driving and driving data of the driver; a first determination module for determining a first result value based on the driving data, the first result value representing the degree of danger of the driving environment during the vehicle's driving; a second determination module for determining a second result value based on the driving data, the second result value representing the degree of danger of the driver's driving behavior during the vehicle's driving; a target value determination module for obtaining a target value based on the first result value and the second result value; and a warning module for controlling the vehicle to output a warning when the target value is higher than a preset threshold.

[0010] Thirdly, embodiments of this application provide an electronic device, which includes:

[0011] One or more processors;

[0012] Memory;

[0013] One or more applications, wherein the applications are stored in memory and configured to be executed by one or more processors, and the applications are configured to perform the methods of the first aspect described above.

[0014] This application provides an electronic device warning method, apparatus, and electronic device. Based on driving data, a first result value characterizing the degree of danger of the driving environment during the vehicle's driving process is determined, and based on driving data, a second result value characterizing the degree of danger of the driver's driving behavior during the vehicle's driving process is determined. Then, based on the first result value and the second result value, a target value is obtained. The target value combines the degree of danger of the driving environment and the degree of danger of the driving behavior, so that the target value can accurately reflect the degree of danger of the driving process, thereby enabling accurate determination of the degree of danger of the driving process and improving the timeliness of vehicle warnings.

[0015] These or other aspects of this application will become more apparent in the following description of the embodiments. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A schematic diagram illustrating the application scenario applicable according to the embodiments of this application is shown.

[0018] Figure 2 A flowchart of a vehicle warning method according to an embodiment of this application is shown.

[0019] Figure 3 A flowchart of a vehicle warning method according to yet another embodiment of this application is shown.

[0020] Figure 4 A flowchart of a training method for a driving behavior analysis model in an embodiment of this application is shown.

[0021] Figure 5 A schematic diagram of a vehicle warning process according to an embodiment of this application is shown.

[0022] Figure 6 A structural block diagram of a vehicle warning device according to an embodiment of this application is shown.

[0023] Figure 7 A structural block diagram of an electronic device provided in an embodiment of this application is shown.

[0024] Figure 8 A structural block diagram of a computer-readable storage medium provided in an embodiment of this application is shown. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0026] like Figure 1 As shown, the application scenarios applicable to this application embodiment include vehicle 10 and cloud 20, which are connected via wired or wireless network communication. Vehicle 10 can be a sedan, SUV, bus, or truck, etc.

[0027] Cloud 20 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Cloud 20 can be used to provide services for applications running on vehicle 10.

[0028] Vehicle 10 can send driving data and driver data during the driving process to cloud 20. Cloud 20 can determine a target value based on the driving data. When the target value is higher than a preset threshold, cloud 20 receives a warning and sends the warning to vehicle 10, which then outputs a warning.

[0029] In another embodiment, the vehicle 10 can acquire driving data and driver data during the driving process. The vehicle 10 itself determines a target value based on the driving data and driver data. When the target value is higher than a preset threshold, the vehicle 10 directly outputs a warning.

[0030] For ease of explanation, the following embodiments will be described using the example of vehicle warnings being executed by electronic devices.

[0031] Reference Figure 2 , Figure 2 A flowchart of a vehicle warning method according to an embodiment of this application is shown. The method can be used with an electronic device, which may be... Figure 1 Vehicle 10 or cloud 20, methods include:

[0032] S110. Acquire vehicle driving data and driver driving data during the driving process.

[0033] During the driving process, the vehicle's controller (such as the vehicle's control center or MCU) can control the vehicle's various sensors to acquire driving data. Driving data can include the driver's personal information, the vehicle's current location latitude and longitude information, external road information, external environmental information (including temperature, humidity, and weather, etc.), etc. Driving data can also be called embedded data.

[0034] The vehicle can be set to have a sampling period, and the vehicle will automatically acquire driving data when each sampling period is completed.

[0035] When the electronic device is a vehicle, after the vehicle acquires driving data, it sends the driving data to the vehicle controller, which then performs data analysis. When the electronic device is in the cloud, after the vehicle acquires driving data, it can send the driving data to Kafka in the cloud. The cloud leverages Flink's real-time processing capabilities to load the driving data from Kafka for analysis.

[0036] Vehicle driving data can refer to driving images during vehicle operation. During the driving process, the vehicle can acquire driving video information through the built-in camera (such as a dashcam); then the driving video information is processed by frame segmentation to obtain driving images, which are used as driving data.

[0037] When the electronic device is a vehicle, the vehicle can perform frame-by-frame conversion on the driving video information to obtain a driving image; when the electronic device is the cloud, the vehicle can send the driving video information to the cloud, and the cloud can then perform frame-by-frame conversion on the driving video information to obtain a driving image.

[0038] S120. Based on the driving data, determine the first result value, which characterizes the degree of danger of the driving environment during the driving process.

[0039] After obtaining the driving data, it can be analyzed to obtain a first result value, which can then be used to determine the degree of danger of the driving environment during the driving process.

[0040] It should be noted that before analyzing the driving data, the driving data can be processed by ETL (extract, transform, and load) to obtain processed driving data. Then, the processed driving data can be analyzed to obtain the first result value.

[0041] Extraction can refer to extracting valid data, such as extracting valid temperature, humidity, and weather data. Transformation can refer to converting the extracted data into a unified format and cleaning the data to remove useless data in order to facilitate data analysis. Loading can refer to loading the transformed data so that the loaded data can be analyzed after loading.

[0042] As one implementation method, S120 may include: obtaining the risk coefficient of each environmental information in the corresponding driving data in the rule engine; calculating the sum of the risk coefficients of each environmental information as the first result value.

[0043] Driving data can include multiple environmental information items, such as road information, accident location information, or weather information. The rule engine can set risk coefficients for various environmental information items. For example, the rule engine can include risk coefficients for different roads (e.g., the risk coefficients for curves and slopes), the risk coefficients for accident locations, and the risk coefficients for different weather conditions. For the same type of road, different road details can result in different risk coefficients; for example, curves with large angles have lower risk coefficients, while curves with small angles have higher risk coefficients. For accident locations, different accident frequencies can result in different risk coefficients; for example, accident locations with more frequent accidents have higher risk coefficients. For the same type of weather, different weather conditions result in different risk coefficients; for example, light rain has a lower risk coefficient, while heavy rain has a higher risk coefficient.

[0044] Information such as road signs, vehicle sensors, and network platforms can be used to obtain road information, accident location information, or weather information.

[0045] In the rule engine, the environmental information corresponding to each environmental information is determined as the target environmental information, and the risk coefficient corresponding to the target environmental information is used as the risk coefficient of each environmental information.

[0046] For example, the environmental information of driving data includes a curve angle of 30°, light rain, and 3 accidents. In the rule engine, the curve angle range [20°, 40°], the number of accidents less than 5, and light rain are determined as the target environmental information. The risk coefficients of 0.2 for the curve angle range [20°, 40°], 0.2 for the number of accidents less than 5, and 0.1 for light rain are obtained and used as the risk coefficients for a curve angle of 30°, 3 accidents, and light rain, respectively.

[0047] After obtaining the risk coefficients of each environmental information, the risk coefficients of each environmental information are summed to obtain the first result value: r1=c1+…+cn, where r1 is the first result value and cn is the risk coefficient of a certain environmental information n.

[0048] S130. Based on the driving data, determine the second result value, which characterizes the degree of danger of the driver's driving behavior during the vehicle's operation.

[0049] After obtaining the driving data, the driving data (i.e., driving images) can be analyzed to obtain a second result value, which can then be used to determine the degree of danger of the driver's driving behavior during the vehicle's operation.

[0050] In one implementation, S130 may include: inputting a driving image into a driving behavior analysis model to obtain the prediction probabilities of multiple preset driving behaviors predicted by the driving behavior analysis model, wherein the prediction probability of each preset driving behavior represents the probability that the driving image includes the preset driving behavior; and calculating the sum of the prediction probabilities of the multiple preset driving behaviors as a second result value.

[0051] In this application, the preset driving behaviors may include lateral vehicle acceleration for overtaking, emergency merging into the same lane, and sudden braking ahead. The driving image is processed using a driving behavior analysis model to obtain the predicted probabilities of each of the multiple preset driving behaviors. These predicted probabilities are then summed to obtain a second result value. The driving behavior analysis model can be obtained by training models such as YOLOv3, YOLOv5, or ResNet50.

[0052] S140. Obtain the target value based on the first result value and the second result value.

[0053] After obtaining the first result value and the second result value, perform calculations on the first result value and the second result value to obtain the target value. For example, perform a weighted sum on the first result value and the second result value to obtain the target value. Alternatively, directly sum the first result value and the second result value to obtain the target value.

[0054] In one implementation, S140 may include: obtaining an offset, a first weight for a first result value, and a second weight for a second result value; performing a weighted summation on the first result value and the second result value according to the first weight and the second weight to obtain a summation result; and calculating the summation result and the offset as a target value.

[0055] The offset, the first weight for the first result value, and the second weight for the second result value can be set by the user based on their needs, or they can be obtained by analyzing driving data. For example, target category data can be obtained from driving data and driving data, and the first weight, second weight, and offset can be determined based on the obtained target category data. The target category can include vehicle visual data (such as visibility in the weather and driver's driving behavior) and vehicle sensor data (such as weather and road information).

[0056] The process of determining the target value is expressed by the following formula: f = w1*r1 + w2 + r2 + b. Where w1 is the first weight, w2 is the second weight, f is the target value, r1 is the first result value, r2 is the second result value, and b is the offset.

[0057] S150: When the target value is higher than the preset threshold, control the vehicle to output a warning.

[0058] The preset threshold can be determined based on information such as demand, actual vehicle model, and road type of the current road segment (road type can be such as highway, urban road, etc.). When the target value is higher than the preset threshold, it indicates that the possibility of an accident during driving is high, and the driver needs to be reminded to pay attention to safety. At this time, a warning is output.

[0059] When the target value is not higher than the preset threshold, it indicates that the possibility of an accident during driving is low, and the driver does not need to be reminded. In this case, no warning needs to be output.

[0060] When the electronic device is a vehicle, the vehicle will directly output a warning when it determines that the target value is higher than the preset threshold. When the electronic device is a cloud device, the cloud will receive a warning when it determines that the target value is higher than the preset threshold, and send the warning to the vehicle, which will then output the warning.

[0061] In this embodiment, a first result value representing the degree of danger of the driving environment during the driving process is determined based on driving data, and a second result value representing the degree of danger of the driver's driving behavior during the driving process is determined based on driving data. Then, a target value is obtained based on the first result value and the second result value. The target value combines the degree of danger of the driving environment and the degree of danger of the driving behavior, so that the target value can accurately reflect the degree of danger of the driving process, thereby enabling accurate determination of the degree of danger of the driving process and improving the timeliness of vehicle warnings.

[0062] Please see Figure 3 , Figure 3 A flowchart of a vehicle warning method according to yet another embodiment of this application is shown. The method can be used with an electronic device, which may be... Figure 1 Vehicle 10 or cloud 20, methods include:

[0063] S210. Obtain vehicle driving data and driver driving data during the driving process; determine a first result value based on the driving data; determine a second result value based on the driving data.

[0064] The description of S210 is the same as that of S110-S130 above, and will not be repeated here.

[0065] S220. Obtain target category data from driving data and driving data as first target data; based on the first target data, determine the first initial weight corresponding to the first weight, the second initial weight corresponding to the second weight, and the initial offset corresponding to the offset.

[0066] After obtaining the driving data and vehicular data, the target category data (i.e., the vehicle visual data and vehicle sensor data mentioned above) is extracted from the driving data and vehicular data and used as the first target data. Then, based on the obtained first target data, the first initial weight corresponding to the first weight, the second initial weight corresponding to the second weight, and the initial offset corresponding to the offset are determined.

[0067] S230. Obtain the error value; based on the error value, adjust the initial offset, the first initial weight, and the second initial weight to obtain the offset, the first weight, and the second weight.

[0068] After obtaining the first initial weight corresponding to the first weight, the second initial weight corresponding to the second weight, and the initial offset corresponding to the offset, the error value is obtained. The error value may include the prior error value and the posterior error value. Then, based on the error value, the initial offset, the first initial weight, and the second initial weight are adjusted to obtain the offset, the first weight, and the second weight.

[0069] In this application, the method for obtaining the error value may include: obtaining target category data from historical driving data and historical driving data as second target data, wherein the historical driving data and historical driving data are data from the time preceding the target time; predicting the data at the target time based on the second target data to obtain predicted target data; and obtaining the error value based on the predicted target data and the first target data.

[0070] The target category data is obtained from historical driving data and historical driving data as the second target data. Then, based on the second target data, the data at the target time is predicted to obtain the predicted target data, which is the data of the target category.

[0071] After obtaining the predicted target data and the first target data, the error value is determined based on the predicted target data and the first target data.

[0072] Understandably, for each current moment, the current moment is taken as the target moment. The driving data and driving data of the current moment are obtained. Based on the driving data and driving data of the current moment, the first target data is determined. Then, based on the first target data, the first initial weight, the second initial weight, and the initial offset of the current moment are determined. After that, based on the historical driving data and historical driving data of the previous moment of the target moment, the second target data is obtained, and the predicted target data is predicted based on the second target data. Then, based on the predicted target data and the first target data, the first initial weight, the first initial weight, and the initial offset are adjusted to obtain the offset, the first weight, and the second weight of the current moment.

[0073] It is understood that in this application, the process of adjusting the first initial weight, the first initial weight and the initial offset is essentially a process of using the Kalman filter method to update the first initial weight, the first initial weight and the initial offset in real time, so that the updated offset, the first weight and the second weight have high accuracy.

[0074] S240. Based on the first weight and the second weight, the first result value and the second result value are weighted and summed to obtain the summation result; the summation result and the offset are calculated as the target value; when the target value is higher than the preset threshold, the vehicle is controlled to output a warning.

[0075] The description of S240 is the same as that of S140-S150 above, and will not be repeated here.

[0076] In this embodiment, for each current moment, the initial offset, the first initial weight, and the second initial weight are adjusted to obtain the adjusted offset, the first weight, and the second weight. This makes the accuracy of the offset, the first weight, and the second weight higher, thereby making the accuracy of the determined target value higher and improving the timeliness of the warning.

[0077] Please see Figure 4 , Figure 4 The flowchart illustrates a training method for a driving behavior analysis model according to an embodiment of this application. The method can be used with an electronic device, which may be... Figure 1 Vehicle 10 or cloud 20, methods include:

[0078] S310. Obtain training samples and test samples. The training samples include training images for each preset driving behavior and the label for each training image. The test samples include test images for each preset driving behavior and the label for each test image.

[0079] The system can analyze driving images of each vehicle at historical moments to determine the pre-defined driving behaviors for those moments. Labels corresponding to these pre-defined behaviors are then added to the historical driving images, which are subsequently divided into training and testing samples. These historical driving images can be stored on a NAS drive in the cloud. The system retrieves these images from the NAS drive and analyzes them to obtain the training and testing samples.

[0080] The number of training epochs, batch size, non-maximum suppression, and other parameters can be determined. By setting these parameters, the initial model can be configured. The initial model can be a deep model such as YOLOv3, YOLOv5, or ResNet50.

[0081] S320. Train the initial model using each training image and its label to obtain the trained model.

[0082] After configuring the initial model, each training image under each preset driving behavior can be input into the initial model to obtain the probability that each training image under each preset driving behavior includes the preset driving behavior. Based on the probability that each training image under each preset driving behavior includes the preset driving behavior and the label of the preset driving behavior, the loss value is determined. The initial model is then trained using the loss value to obtain the trained model.

[0083] S330. Input each test image under each preset driving behavior into the trained model to obtain the probability that each test image under each preset driving behavior includes the preset driving behavior as predicted by the trained model; determine the evaluation result of the trained model based on the probability that each test image under each preset driving behavior includes the preset driving behavior and the label of the preset driving behavior.

[0084] After obtaining the trained model, test samples are acquired. Each test image under each preset driving behavior in the test samples is input into the trained model to obtain the probability that each test image under each preset driving behavior includes the preset driving behavior predicted by the trained model. Based on the probability that each test image under each preset driving behavior includes the preset driving behavior and the label of the preset driving behavior, the evaluation result of the trained model is determined. The evaluation result of the trained model is used to characterize the effect of the trained model.

[0085] A higher evaluation result indicates a better-performing trained model, while a lower result indicates a worse-performing model. Evaluation results can include metrics such as AUC (area under the ROC curve).

[0086] S340. When the evaluation results meet the preset conditions, obtain the trained model as the driving behavior analysis model.

[0087] In this application, the preset condition can be that the evaluation result reaches a predetermined evaluation threshold. When the evaluation result meets the preset condition, the trained model performs well and is used as the driving behavior analysis model. When the evaluation result does not meet the preset condition, the trained model performs poorly, and the training process of S320 above continues until the evaluation result meets the preset condition, and the trained model is obtained as the driving behavior analysis model.

[0088] In this application, an initial model is trained to obtain a trained model. When the evaluation result of the trained model meets the preset conditions, it is used as a driving behavior analysis model. The driving behavior analysis model performs well, making the second result value obtained from the driving behavior analysis model more accurate, thereby improving the accuracy of the target value and the timeliness of vehicle warnings.

[0089] To more clearly explain the solution of this application, the vehicle warning method of this application will be explained below with reference to an exemplary scenario. In this scenario, the road is a curve, the weather is light rain, and the number of accidents is 6.

[0090] like Figure 5 As shown, the vehicle's sensors collect driving data, and at the same time, the vehicle's dashcam acquires driving video information. Then, the vehicle sends the driving data and driving video information to the cloud.

[0091] After receiving the driving data, the cloud analyzes the data and determines the risk coefficient corresponding to each environmental information of the driving data. Among them, the risk coefficient of the curve is 0.2, the risk coefficient of the light rain is 0.2, and the risk coefficient of 6 accidents is 0.4. Based on the risk coefficient of each environmental information, the first result value is determined to be 0.8, thereby realizing the judgment of the cloud rule engine.

[0092] Meanwhile, the cloud processes the driving video information to obtain driving images. Then, through the driving behavior analysis model deployed in the cloud, the predicted probability of each preset driving behavior is obtained. Based on the predicted probability of each preset driving behavior, the predicted probability of a vehicle accelerating to overtake from the side is 0.6 and the probability of emergency braking in front is 0.7. Based on the predicted probability of each preset driving behavior, the second result value is 1.3, thus realizing the judgment of the cloud algorithm model.

[0093] After completing the above two judgment processes, the target value is determined based on the judgment result of the rule engine (first result value) and the judgment result of the algorithm model (second result value): the first weight is 0.5, the second weight is 0.5 and the offset is 0.3. Based on the first weight and the second weight, the first result value and the second result value are weighted and summed to obtain a sum of 1.05. Then, the sum is summed with the offset to obtain the target value of 1.35.

[0094] Next, the cloud determines whether the target value is higher than a preset threshold. When the target value of 1.35 is determined to be higher than the preset threshold of 1, a warning is issued, which reads "Please drive with caution." The cloud sends the warning to the vehicle, and the vehicle outputs the warning. The vehicle can issue the warning via voice.

[0095] Reference Figure 6 , Figure 6 This diagram illustrates a structural block diagram of a vehicle warning device according to an embodiment of this application. The device 600 is used with an electronic device, which may be... Figure 1 The vehicle 10 or cloud 20, device 600 includes:

[0096] The acquisition module 610 is used to acquire vehicle driving data and driver driving data during the driving process.

[0097] The first determining module 620 is used to determine a first result value based on driving data. The first result value characterizes the degree of danger of the driving environment during the driving process.

[0098] The second determining module 630 is used to determine a second result value based on driving data. The second result value characterizes the degree of danger of the driver's driving behavior during the vehicle's operation.

[0099] The target value determination module 640 is used to obtain the target value based on the first result value and the second result value;

[0100] The warning module 650 is used to control the vehicle to output a warning when the target value is higher than a preset threshold.

[0101] Optionally, the target value determination module 640 is further configured to obtain an offset, a first weight for the first result value, and a second weight for the second result value; perform a weighted summation on the first result value and the second result value according to the first weight and the second weight to obtain a summation result; and calculate the sum of the summation result and the offset as the target value.

[0102] Optionally, the target value determination module 640 is further configured to obtain target category data from driving data and driving data as first target data; determine a first initial weight corresponding to the first weight, a second initial weight corresponding to the second weight, and an initial offset corresponding to the offset based on the first target data; obtain an error value; and adjust the initial offset, the first initial weight, and the second initial weight based on the error value to obtain the offset, the first weight, and the second weight.

[0103] Optionally, the target value determination module 640 is further configured to obtain target category data from historical driving data and historical driving data as second target data, wherein the historical driving data and historical driving data are data from the moment preceding the target time; predict the data at the target time based on the second target data to obtain predicted target data; and obtain an error value based on the predicted target data and the first target data.

[0104] Optionally, the first determining module 620 is further configured to obtain the risk coefficient of each environmental information in the corresponding driving data in the rule engine; and calculate the sum of the risk coefficients of each environmental information as the first result value.

[0105] Optionally, the second determining module 630 is further configured to input the driving image into the driving behavior analysis model, obtain the prediction probability of each of the multiple preset driving behaviors predicted by the driving behavior analysis model, wherein the prediction probability of each preset driving behavior represents the probability that the driving image includes the preset driving behavior; and calculate the sum of the prediction probabilities of the multiple preset driving behaviors as the second result value.

[0106] Optionally, the device 600 further includes a training module for acquiring training samples and test samples. The training samples include training images for each preset driving behavior and labels for each training image. The test samples include test images for each preset driving behavior and labels for each test image. The initial model is trained using each training image and its label to obtain a trained model. Each test image for each preset driving behavior is input into the trained model to obtain the probability predicted by the trained model that each test image for each preset driving behavior includes the preset driving behavior. The evaluation result of the trained model is determined based on the probability that each test image for each preset driving behavior includes the preset driving behavior and the label of the preset driving behavior. When the evaluation result meets preset conditions, the trained model is obtained as a driving behavior analysis model.

[0107] Optionally, the device 600 further includes an image acquisition module for acquiring driving video information of the vehicle during driving; and performing frame-slicing and conversion processing on the driving video information to obtain driving images.

[0108] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0109] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0110] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0111] Please see Figure 7 This diagram illustrates a structural block diagram of an electronic device 700 provided in an embodiment of this application. The electronic device 700 in this application is... Figure 1 Vehicle 10 or cloud 20.

[0112] Electronic device 700 may include one or more of the following components: processor 710, memory 720, and one or more application programs, wherein the one or more application programs may be stored in memory 720 and configured to be executed by one or more processors 710, and the one or more programs are configured to perform the methods as described in the foregoing method embodiments.

[0113] The processor 710 may include one or more processing cores. The processor 710 connects to various parts of the vehicle 700 via various interfaces and lines, and performs various functions and processes data of the vehicle 700 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and by calling data stored in the memory 720. Optionally, the processor 710 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 710 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 710 and may be implemented separately through a communication chip.

[0114] The memory 720 may include random access memory (RAM) or read-only memory (ROM). The memory 720 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 720 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the vehicle 700 during use (such as phonebooks, audio and video data, chat log data, etc.).

[0115] refer to Figure 8 , Figure 8 This diagram illustrates a structural block diagram of a computer-readable storage medium according to an embodiment of this application. The computer-readable storage medium 800 stores program code that can be called by a processor to execute the methods described in the above method embodiments.

[0116] The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code 810 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 810 may, for example, be compressed in a suitable form.

[0117] In summary, the calibration pattern generation method, calibration pattern registration method, apparatus, and vehicle provided in this application, after acquiring a calibration scene, obtain a pseudo-random array corresponding to the calibration scene, and generate a calibration pattern based on the pseudo-random array and various graphic primitives. The pseudo-random array is used to determine the position of the graphic primitives in the calibration pattern. This method allows for the generation of different pseudo-random arrays for different calibration scenes, and thus different calibration patterns based on different pseudo-random arrays, thereby improving the accuracy of sensor calibration under different calibration scenes.

[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A vehicle warning method, characterized in that, The method includes: Acquire vehicle driving data and driver data at the target time during the driving process; Based on the driving data, a first result value is determined, which characterizes the degree of danger of the driving environment during the driving process. Based on the driving data, a second result value is determined, which characterizes the degree of danger of the driver's driving behavior during the vehicle's operation. The first result value and the second result value are weighted and summed according to a first weight for the first result value and a second weight for the second result value to obtain a summation result. The first weight, the second weight, and the offset are obtained by adjusting the initial offset, the first initial weight, and the second initial weight with an error value. The error value is the difference between the predicted target data and the first target data. The first target data is the target category data in the driving data and the driving data. The predicted target data is obtained by predicting the data at the target time based on the second target data. The second target data is the target category data in the historical driving data and the historical driving data. The historical driving data and the historical driving data are the data at the time before the target time. The summation result and the offset are calculated and used as the target value; When the target value exceeds a preset threshold, the vehicle is controlled to output a warning.

2. The method according to claim 1, characterized in that, Before the step of weighted summing of the first result value and the second result value according to a first weight for the first result value and a second weight for the second result value to obtain the summation result, the method further includes: Data of the target category is obtained from the driving data and the driving data, and used as the first target data; Based on the first target data, determine the first initial weight corresponding to the first weight, the second initial weight corresponding to the second weight, and the initial offset corresponding to the offset.

3. The method according to claim 1, characterized in that, The step of determining the first result value based on the driving data includes: The risk coefficients of various environmental information corresponding to the driving data are obtained from the rule engine; The sum of the risk coefficients of each of the environmental information items is calculated and used as the first result value.

4. The method according to claim 1, characterized in that, The driving data includes driving images; determining the second result value based on the driving data includes: The driving image is input into the driving behavior analysis model to obtain the prediction probability of each of the multiple preset driving behaviors predicted by the driving behavior analysis model. The prediction probability of each preset driving behavior represents the probability that the driving image includes the preset driving behavior. The sum of the predicted probabilities of each of the multiple preset driving behaviors is calculated as the second result value.

5. The method according to claim 4, characterized in that, The training method for the driving behavior analysis model includes: Acquire training samples and test samples, wherein the training samples include training images for each preset driving behavior and labels for each training image, and the test samples include test images for each preset driving behavior and labels for each test image; The initial model is trained using each training image and its label to obtain the trained model. Each test image under each preset driving behavior is input into the trained model to obtain the probability predicted by the trained model that each test image under each preset driving behavior includes the preset driving behavior; The evaluation result of the trained model is determined based on the probability of the preset driving behavior and the label of the preset driving behavior in each test image under each preset driving behavior; When the evaluation results meet the preset conditions, the trained model is obtained as the driving behavior analysis model.

6. The method according to claim 4, characterized in that, The method for acquiring the driving image includes: Obtain driving video information of the vehicle during the driving process; The driving video information is processed by frame segmentation to obtain the driving image.

7. A vehicle warning device, characterized in that, The device includes: The acquisition module is used to acquire vehicle driving data and driver driving data at a target time during the driving process; The first determining module is used to determine a first result value based on the driving data, wherein the first result value characterizes the degree of danger of the driving environment of the vehicle during the driving process; The second determining module is used to determine a second result value based on the driving data, wherein the second result value characterizes the degree of danger of the driver's driving behavior during the driving process of the vehicle; The target value determination module is used to perform a weighted summation of the first result value and the second result value based on a first weight for the first result value and a second weight for the second result value, to obtain a summation result; the first weight, the second weight, and the offset are obtained by adjusting the initial offset, the first initial weight, and the second initial weight with an error value, wherein the error value is the difference between the predicted target data and the first target data, and the first target data is the target category data in the driving data and the driving data; the predicted target data is obtained by predicting the data at the target time based on the second target data, wherein the second target data is the target category data in the historical driving data and the historical driving data, and the historical driving data and the historical driving data are the data at the time preceding the target time; the summation result and the offset are calculated as the target value; The warning module is used to control the vehicle to output a warning when the target value is higher than a preset threshold.

8. An electronic device, characterized in that, The electronic device includes: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Prompting method and related device

    CN109389863A

  • Driving behavior warning method and device based on video analysis, equipment and medium

    CN114005093A