Wind resistance prediction method and system, electronic equipment and storage medium
The deep learning model processes vehicle point cloud data and generates a wind resistance prediction model, which solves the problems of low efficiency, low accuracy and high cost of existing wind resistance prediction methods, and achieves fast and accurate wind resistance prediction and batch prediction capabilities.
Patent Information
- Application Number
- CN202410674201.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-23
AI Technical Summary
Existing wind resistance prediction methods have low efficiency, low accuracy and high cost, mainly due to complicated CAD model preprocessing, slow simulation solution and high demand for hardware resources, and there are differences between the design appearance and actual simulation calculations.
Using deep learning models, especially convolutional neural networks, by obtaining sample point cloud data under different vehicle appearance shapes, simplifying the processing and then conducting model training to generate a target wind resistance prediction model, replacing traditional simulation software for wind resistance prediction, achieving fast and accurate wind resistance prediction.
It improves the efficiency and accuracy of wind resistance prediction, reduces costs, can predict the wind resistance values of vehicles with different appearance shapes in batches, and saves computing resources and software costs.
Smart Images

Figure CN118536668A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wind resistance prediction, and in particular to a wind resistance prediction method, system, electronic device and storage medium. Background Art
[0002] Wind resistance, also known as air resistance, refers to the resistance effect caused by the interaction between the vehicle body and the surrounding air during driving. It is one of the main external resistances encountered by the vehicle during driving. In the design and development process of modern automobile industry, wind resistance directly affects multiple key performance indicators such as fuel efficiency, driving stability and noise control of the vehicle. Therefore, accurate prediction of vehicle wind resistance is a crucial step, which is extremely important for guiding the design of automobile appearance, improving aerodynamic performance and improving the overall quality of the vehicle.
[0003] In the related art, the wind resistance determination method mainly relies on CFD (Computational Fluid Dynamics) simulation technology, and simulates and predicts through fluid mechanics differential equations. The main architecture is: 1. Make vehicle geometry files, and prepare vehicle model files made by CAD (Computer Aided Design); 2. Set conditions, and set wind tunnel parameters, yaw angle, chassis height, and vehicle speed in CFD simulation software; 3. Generate grid data, and set grid parameters to generate better grid data; 4. Motion simulation solution: It is necessary to rely on the simulation solver built into the CFD software to continuously solve and obtain wind resistance. However, this method has significant limitations in implementation: first, the original geometric model obtained from CAD needs to undergo a series of complicated preprocessing work, and secondly, the mesh data outside the vehicle body often needs to be trimmed twice before being used for simulation calculations. Then, the motion simulation solution process of the built-in solver of the simulation software is slow and has high requirements for hardware resources. In addition, there are differences between the designed appearance and the actual simulation calculation, which leads to low efficiency, low accuracy, and high cost in predicting wind resistance. Summary of the invention
[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0005] In view of the shortcomings of the prior art described above, the present application discloses a wind resistance prediction method, system, electronic device and storage medium, which are used to solve the technical problems of low efficiency and low accuracy of wind resistance prediction in the above-mentioned prior art.
[0006] In a first aspect, the present application provides a wind resistance prediction method, the method comprising: obtaining sample point cloud data of a vehicle under different appearance shapes, the sample point cloud data being represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, and the shape represented by the three-dimensional coordinate points of each type of the sample being associated with the corresponding wind resistance value; constructing a deep learning model, the deep learning model being a convolutional neural network model; inputting the sample point cloud data into the deep learning model, simplifying the number of sample points and the three-dimensional coordinate points of each type of the sample to obtain four-dimensional tensor data, and performing model training through a convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model; and using the target wind resistance prediction model to predict the wind resistance of a target vehicle.
[0007] In an embodiment of the present application, the simplification process of the number of sample points and the three-dimensional coordinate points of each type of the samples to obtain four-dimensional tensor data includes: dividing the sample points of each type of the samples into selected sampling points and to-be-selected sampling points to form a selected sampling point set and a to-be-selected sampling point set, wherein the selected sampling point set includes a first number of target sampling points; calculating the distance between each point in the to-be-selected sampling point set and each of the target sampling points, and adding the point in the to-be-selected sampling point set corresponding to the maximum distance to the selected sampling point set; continuing the distance calculation until the number of the target sampling points changes from the first number to the second number; aggregating the sample points according to each of the target sampling points to obtain a third number of target neighboring points, wherein the target neighboring points corresponding to each of the target sampling points are all the third number; generating the four-dimensional tensor data according to the samples, the target sampling points, the target neighboring points, and the three-dimensional coordinate points of the target sampling points and the target neighboring points.
[0008] In one embodiment of the present application, the aggregating the sample points according to each of the target sampling points to obtain a third number of target neighboring points includes: determining a fourth number of neighboring points within a preset radius with each of the target sampling points as the center, and comparing the fourth number with the third number; if the fourth number is equal to the third number, determining the neighboring point as the target neighboring point; if the fourth number is greater than the third number, determining the third number of points from the neighboring points as the target neighboring point; if the fourth number is less than the third number, calculating the difference between the fourth number and the third number, and resampling the neighboring points based on the difference to obtain the target neighboring point.
[0009] In one embodiment of the present application, the model training is performed on the convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model, including: compressing the feature dimension of the four-dimensional tensor data through a multi-layer two-dimensional convolutional network architecture of the convolutional neural network to obtain two-dimensional tensor data, wherein the two-dimensional tensor data includes the feature vector dimensions of the sample and each type of the sample; compressing the feature dimension of the two-dimensional tensor data through a fully connected layer of the convolutional neural network to generate single-dimensional tensor data until the deep learning model converges to obtain an initial wind resistance prediction model; optimizing the initial wind resistance prediction model to obtain the target wind resistance prediction model.
[0010] In one embodiment of the present application, the initial wind resistance prediction model is optimized to obtain the target wind resistance prediction model, including: obtaining a verification set, and inputting each verification point cloud data in the verification set into the initial wind resistance prediction model to obtain a first wind resistance prediction value; calculating the mean square error loss based on the first wind resistance prediction value and the first actual wind resistance value corresponding to each verification point cloud data; updating the model parameters using a back propagation algorithm to optimize the mean square error loss; when a preset stop optimization condition is reached, the target wind resistance prediction model is obtained, wherein the stop optimization condition includes an optimization times threshold and a mean square error threshold.
[0011] In one embodiment of the present application, the use of the target wind resistance prediction model to predict the wind resistance of the target vehicle includes: obtaining simulation data of the target vehicle and exporting the simulation data as initial mesh data, wherein the simulation data is CFD simulation data; simplifying the initial mesh data by a quadratic error measurement algorithm to obtain target mesh data; extracting vertex coordinate information from the target mesh data to generate target point cloud data; and inputting the target point cloud data into the target wind resistance prediction model to obtain a second wind resistance prediction value.
[0012] In one embodiment of the present application, after using the wind resistance prediction model to predict the wind resistance of the target vehicle, it also includes: verifying the second wind resistance prediction value to determine whether the second difference between the second wind resistance prediction value and the second wind resistance actual value is within a preset difference; if not, using the target point cloud data and the second wind resistance actual value as a set of incremental training data; when the accumulated incremental training data reaches a preset number, an incremental training set is formed, and the target wind resistance prediction model is incrementally trained according to the incremental training set.
[0013] In the second aspect, the present application provides a wind resistance prediction system, which includes: an acquisition module for acquiring sample point cloud data of a vehicle under different appearance shapes, the sample point cloud data being represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, and the shape represented by the three-dimensional coordinate points of each type of the sample is associated with the corresponding wind resistance value; a construction module for constructing a deep learning model, which is a convolutional neural network model; a training module for inputting the sample point cloud data into the deep learning model, simplifying the number of sample points and the three-dimensional coordinate points of each type of the sample, obtaining four-dimensional tensor data, and performing model training through a convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model; a prediction module for using the target wind resistance prediction model to predict the wind resistance of a target vehicle.
[0014] In a third aspect, the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the wind resistance prediction method as described in the first aspect.
[0015] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the wind resistance prediction method described in the first aspect.
[0016] As described above, the wind resistance prediction method, system, electronic device and storage medium provided by the embodiments of the present application have the following beneficial effects:
[0017] Firstly, sample point cloud data of the vehicle under different appearance shapes are obtained, wherein the sample point cloud data is represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, and the shape represented by the three-dimensional coordinate points of each type of sample is associated with the corresponding wind resistance value. Then, a deep learning model is constructed, and the sample point cloud data is input. The number of sample points and the three-dimensional coordinate points of each type of sample are simplified to obtain four-dimensional tensor data. The model is further trained through a convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model. Finally, the target wind resistance prediction model is used to predict the wind resistance of the target vehicle. The deep learning model is used to replace the traditional simulation prediction, and there is no need to use simulation software, which saves costs. By simplifying the number of points in the point cloud data and the three-dimensional coordinate points, the point cloud data of the vehicle's external structure is used to realize the rapid prediction of the vehicle's wind resistance, which not only improves the prediction efficiency, but also improves the prediction accuracy. Moreover, based on the wind resistance prediction model, batch prediction of the wind resistance of vehicles with different appearance shapes can be achieved.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1 is a schematic diagram of an implementation environment of a wind resistance prediction system shown in an exemplary embodiment of the present application;
[0021] Figure 2 is a flow chart of a wind resistance prediction method shown in an exemplary embodiment of the present application;
[0022] Figure 3 is a schematic diagram of a vehicle point cloud visualization shown in an exemplary embodiment of the present application;
[0023] Figure 4 is a schematic diagram of initial grid data visualization shown in an exemplary embodiment of the present application;
[0024] Figure 5 is a schematic diagram of a target grid data visualization shown in an exemplary embodiment of the present application;
[0025] Figure 6 is a flowchart of incremental model training shown in an exemplary embodiment of the present application;
[0026] Figure 7 is a schematic diagram of the structure of a model service shown in an exemplary embodiment of the present application;
[0027] Figure 8 is a block diagram of a wind resistance prediction system shown in an exemplary embodiment of the present application;
[0028] Fig. 9 It is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0030] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0031] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0032] Wind resistance is critical to many key performance indicators such as fuel efficiency, driving stability and noise control of automobiles. Therefore, accurate prediction of vehicle wind resistance is extremely important for guiding automobile exterior design, improving aerodynamic performance and improving the overall quality of the vehicle. In the existing technology, the wind resistance determination method mainly relies on CFD simulation technology, and the main architecture is: 1. Make vehicle geometry files, which requires preparing vehicle model files made by CAD; 2. Set conditions, which requires setting wind tunnel parameters, yaw angle, chassis height and vehicle speed in CFD simulation software; 3. Generate grid data, which requires setting grid parameters to generate better grid data; 4. Motion simulation solution: It is necessary to rely on the simulation solver built into the CFD software to continuously solve and obtain wind resistance.
[0033] However, the inventors of this application have found that the above method still has the following problems: first, the original geometric model obtained from CAD needs to undergo a series of complicated preprocessing work; second, the mesh data outside the vehicle body often needs to be trimmed twice before it can be used for simulation calculations; then, the motion simulation solution process of the built-in solver of the simulation software is slow and has high requirements for hardware resources. In addition, there are also differences between the designed appearance and the actual simulation calculation, which leads to low efficiency, low accuracy and high cost in the prediction of wind resistance.
[0034] Therefore, see Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a wind resistance prediction system shown in an exemplary embodiment of the present application. Figure 1 As shown, the implementation environment may include a drag prediction system 101 and a computer device 102. The drag prediction system 101 may be set in the computer device 102 to predict the drag of the vehicle. The computer device 102 may be at least one of a desktop graphics processing unit (GPU) computer, a GPU computing cluster, a neural network computer, etc. Through the drag prediction system 101, a deep learning model is used to replace the traditional simulation prediction, and there is no need to use simulation software, which saves costs. By simplifying the number of points in the point cloud data and the three-dimensional coordinate points, the point cloud data of the external structure of the vehicle is used to achieve rapid prediction of the vehicle's drag, which improves the prediction efficiency and the prediction accuracy. Moreover, based on the drag prediction model, batch prediction of the drag of vehicles with different appearance shapes can be achieved.
[0035] See also Figure 2 , Figure 2 is a flow chart of a wind resistance prediction method shown in an exemplary embodiment of the present application. The method can be applied to Figure 1 The implementation environment shown is a schematic diagram. It should be understood that the method may also be applicable to other exemplary implementation environments, and this embodiment does not limit the implementation environment to which the method is applicable.
[0036] like Figure 2 As shown, in an exemplary embodiment, the wind resistance prediction method includes at least steps S210 to S240, which are described in detail as follows:
[0037] Step S210, obtaining sample point cloud data of the vehicle under different appearance shapes, the sample point cloud data is represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, and the shape represented by the three-dimensional coordinate points of each type of sample is associated with the corresponding wind resistance value.
[0038] In an embodiment of the present application, point cloud data of a vehicle under different appearance shapes is obtained as training samples, i.e., sample point cloud data, wherein the sample point cloud data is represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, i.e., the model has an input part with a shape of [B, N, C] dimensions, i.e., the above-mentioned three-dimensional tensor data, B is batch_size, i.e., samples, which can represent the number of samples, N is the number of sample points, which can represent the number of point clouds in each type of sample, and C is a three-dimensional coordinate point, which can represent the (x, y, z) coordinates of each point.
[0039] It should be noted that the sample point cloud data is a collection of point cloud data of vehicles in different appearance shapes. In this point cloud data collection, the point cloud data of vehicles in a certain appearance shape is a type of sample. In [B, N, C], B represents each type of sample, N represents the number of point clouds of each type of sample, and C represents the three-dimensional coordinates of each point in each type of sample. Figure 3 , Figure 3 It is a schematic diagram of a vehicle point cloud visualization shown in an exemplary embodiment of the present application, that is, the vehicle shape represented by the three-dimensional coordinate points of a class of samples.
[0040] In addition, the shape represented by the three-dimensional coordinate points of each type of sample is associated with the corresponding wind resistance value. In this way, based on the various types of samples in the sample point cloud data, deep learning of the correlation between the point cloud data and the wind resistance value can be achieved.
[0041] Step S220, constructing a deep learning model, where the deep learning model is a convolutional neural network model.
[0042] In an embodiment of the present application, a deep learning model is constructed, which is a convolutional neural network model, and deep learning of the correlation between point cloud data and wind resistance value is performed through the convolutional neural network.
[0043] The following is part of the deep learning model constructed:
[0044]
[0045] In step S230, the sample point cloud data is input into the deep learning model, the number of sample points and the three-dimensional coordinate points of each type of sample are simplified to obtain four-dimensional tensor data, and a convolutional neural network and the four-dimensional tensor data are used for model training to obtain a target wind resistance prediction model.
[0046] It should be noted that the deep learning model is a convolutional neural network model embedded with a data simplification algorithm. The data simplification algorithm is used to simplify the number of sample points and three-dimensional coordinate points of each type of sample. In this way, the convolutional neural network can better focus on the local features of the point cloud data, reduce the amount of calculation in the model learning process, and improve the model training efficiency.
[0047] Specifically, the number of sample points and three-dimensional coordinate points of each type of sample are simplified to obtain four-dimensional tensor data, including: dividing the sample points of each type of sample into selected sampling points and to-be-selected sampling points to form a selected sampling point set and a to-be-selected sampling point set, wherein the selected sampling point set includes a first number of target sampling points; calculating the distance between each point in the to-be-selected sampling point set and each target sampling point, and adding the point in the to-be-selected sampling point set corresponding to the maximum distance value to the selected sampling point set; continuing the distance calculation until the number of target sampling points changes from the first number to the second number; aggregating the sample points according to each target sampling point to obtain a third number of target neighboring points, wherein each target sampling point corresponds to the third number of target neighboring points; generating four-dimensional tensor data according to the samples, the target sampling points, the target neighboring points, and the three-dimensional coordinate points of the target sampling points and the target neighboring points.
[0048] The first number, the second number and the third number are all preset number thresholds, and the second number is greater than the first number, and there is no restriction on the size relationship between the third number and the first number and the second number.
[0049] In this embodiment, the sample points of each type of sample are divided into selected sampling points and to-be-selected sampling points, that is, a first number of target sampling points are selected from the point cloud of each type of sample. It should be noted that the target sampling points are randomly selected. After determining the first number of target sampling points, the second number of target sampling points are determined by the farthest point sampling algorithm. In this way, it can be ensured that the selected target sampling points are spread over the vehicle body, rather than concentrated in a local part of the vehicle body, which is more conducive to the training of the deep learning model. In addition, after determining the second number of target sampling points, each target sampling point is aggregated. In this way, for each local part of the vehicle body, it can be ensured that a sufficient number of points are selected, thereby ensuring the accuracy of model learning.
[0050] It should also be noted that the input data, that is, the data with the feature shape dimension of [B, N, C], will be downsampled by the farthest point sampling algorithm in the model, reducing the number of points N to a smaller scale N1, and obtaining data with the feature shape dimension of [B, N1, C]. At this time, C represents the three-dimensional coordinates of the target sampling point. After obtaining the third number of target zero points, after simplifying the number of sample points and the three-dimensional point coordinates, the data with the feature shape dimension of [B, N1, C] becomes [B, N1, K, C], where K is the number of target neighboring points corresponding to each target sampling point in each type of sample. At this time, C represents the three-dimensional coordinates of the target sampling point and the target neighboring points.
[0051] In one embodiment, the sample points are aggregated according to each target sampling point to obtain a third number of target neighboring points, including: taking each target sampling point as the center, determining a fourth number of neighboring points within a preset radius, and comparing the fourth number with the third number; if the fourth number is equal to the third number, determining the neighboring point as the target neighboring point; if the fourth number is greater than the third number, determining the third number of points from the neighboring points as the target neighboring points; if the fourth number is less than the third number, calculating the difference between the fourth number and the third number, and resampling the neighboring points based on the difference to obtain the target neighboring point.
[0052] In this embodiment, an aggregation algorithm is adopted. Through the query_ball_point function in the algorithm, each point in N1 is selected, a radius r is defined, and points within the radius ball are found as target neighboring points. In order to ensure the consistency of the number of target neighboring points, that is, the number of points in each local area of the vehicle body centered on the target sampling point is the same, a threshold value for the number of target neighboring points is set, that is, the third number. In this way, the number of points in each local area can be ensured to be the same, so that the model can learn the data features of each local area to the same extent, and can also better focus on the data features of the local area of the vehicle body, thereby ensuring the reliability of the target wind resistance prediction model.
[0053] If the third number is set to K, it is considered that the number of points found within the radius sphere may be greater than K or less than K. If it is greater than K, preferably, the third number of points are determined from the neighboring points as the target neighboring points, that is, the first K points closest to the target sampling point are directly taken as the target neighboring points; if it is less than K, the neighboring points are resampled based on the difference, that is, the neighboring points of the difference number are selected for resampling as the target neighboring points. Preferably, if the difference is k, the neighboring points of the difference number are selected as the first k neighboring points closest to the target sampling point for resampling.
[0054] Specifically, a convolutional neural network and four-dimensional tensor data are used to perform model training to obtain a target wind resistance prediction model, including: compressing the feature dimension of the four-dimensional tensor data through a multi-layer two-dimensional convolutional network architecture of the convolutional neural network to obtain two-dimensional tensor data, wherein the two-dimensional tensor data includes the sample and the feature vector dimension of each type of sample; compressing the feature dimension of the two-dimensional tensor data through a fully connected layer of the convolutional neural network to generate single-dimensional tensor data until the deep learning model converges to obtain an initial wind resistance prediction model; optimizing the initial wind resistance prediction model to obtain a target wind resistance prediction model.
[0055] In this embodiment, the feature shape dimension is [B, N1, K, C], and the point cloud data is converted into structural data with a width and height of N1xK and a channel number of C. After multiple layers of 2D convolution operations, the feature dimension becomes two-dimensional tensor data, that is, [B, dim], where dim is the feature vector dimension of each type of sample, that is, the final hidden layer dimension. The model training target is a regression problem, and it continues to pass through the fully connected layer to generate single-dimensional tensor data, that is, the dim dimension is reduced to 1. During the training process, the loss function is used to converge the deep learning model, and the structural features of the point cloud data of the vehicle under different appearance shapes are learned, so as to obtain the initial wind resistance prediction model, and optimize it to obtain the target wind resistance prediction model.
[0056] In one embodiment, the initial wind resistance prediction model is optimized to obtain a target wind resistance prediction model, including: obtaining a verification set, and inputting each verification point cloud data in the verification set into the initial wind resistance prediction model to obtain a first wind resistance prediction value; calculating the mean square error loss according to the first wind resistance prediction value and the first actual wind resistance value corresponding to each verification point cloud data; updating the model parameters using a back propagation algorithm to optimize the mean square error loss; and obtaining the target wind resistance prediction model when a preset stop optimization condition is reached, wherein the stop optimization condition includes an optimization times threshold and a mean square error threshold.
[0057] In this embodiment, by calculating the mean square error loss, for example, using MSELoss (i.e., mean square error loss function), the average of the sum of squares of the differences between the first wind resistance prediction value and the first actual wind resistance value is calculated, and the model parameters are updated through the back propagation algorithm, thereby gradually reducing the mean square error loss, so as to iteratively train the model and improve model performance.
[0058] Step S240, predicting the wind resistance of the target vehicle using the target wind resistance prediction model.
[0059] That is, the target point cloud data corresponding to the target vehicle is input into the target wind resistance prediction model, and the wind resistance prediction value of the vehicle is output through the target wind resistance prediction model.
[0060] In one embodiment, the wind resistance of the target vehicle is predicted using a target wind resistance prediction model, including: obtaining simulation data of the target vehicle, and exporting the simulation data as initial mesh data, wherein the simulation data is CFD simulation data; simplifying the initial mesh data using a quadratic error measurement algorithm to obtain target mesh data; extracting vertex coordinate information from the target mesh data to generate target point cloud data; and inputting the target point cloud data into the target wind resistance prediction model to obtain a second wind resistance prediction value.
[0061] It should be noted that the point cloud data of the vehicle under different appearance shapes is obtained by converting the CFD simulation data of the vehicle under different appearance shapes, wherein the CFD simulation data of the vehicle under different appearance shapes is configured when the vehicle leaves the factory and can be obtained from the relevant database. The stored CFD simulation data can be directly exported as mesh data.
[0062] In this embodiment, the initial mesh data is obj format data, which stores the geometric data of the 3D model, including vertices, edges, faces and texture coordinate information. Before converting the mesh data into point cloud data, the mesh data needs to be simplified, that is, the obj format data is simplified by QEM (Quadric Error Metrics). In this way, the body shape does not change much, and the points are reduced from hundreds of thousands to tens of thousands or thousands, which greatly reduces the pressure in the model calculation process. After the simplified mesh data is converted into point cloud data, it can be used for model training and inference, which can better analyze the data and adjust the model to better extract features for wind resistance prediction.
[0063] In addition, the model can predict the wind resistance of a single vehicle model in seconds and can make batch predictions. Unlike CFD simulation software, there is no need to purchase computing resources and genuine software. This model only involves computing resources and has lower requirements, saving prediction costs.
[0064] See also Figure 4 , Figure 4 is a schematic diagram of initial grid data visualization shown in an exemplary embodiment of the present application, such as Figure 4 The figure shows the visual appearance of the target vehicle represented by the original initial mesh data without simplification. Figure 5 , Figure 5 is a schematic diagram of a target grid data visualization shown in an exemplary embodiment of the present application, such as Figure 5 As shown in FIG. 1 , the visualized target vehicle appearance shape represented by the simplified target mesh data. The visualized target vehicle appearance shape represented by the transformed target point cloud data is as follows: Figure 3 shown.
[0065] It should be noted that for the stored CFD simulation data, some directly exported mesh data is in stl format. It is necessary to convert the stl format data into obj format data first to facilitate the subsequent conversion into point cloud data.
[0066] It should also be noted that before model training, the sample point cloud data of the vehicle under different appearance shapes are also obtained by converting the CFD simulation data of the vehicle under different appearance shapes. The conversion method is the same as the above-mentioned conversion steps and will not be repeated here.
[0067] In one embodiment, after using the wind resistance prediction model to predict the wind resistance of the target vehicle, it also includes: verifying the second wind resistance prediction value to determine whether the second difference between the second wind resistance prediction value and the second wind resistance actual value is within a preset difference; if not, using the target point cloud data and the second wind resistance actual value as a set of incremental training data; when the accumulated incremental training data reaches a preset number, an incremental training set is formed, and the target wind resistance prediction model is incrementally trained according to the incremental training set.
[0068] In this embodiment, by comparing the predicted results with the actual results, if there is a large error, the group of point cloud data is used as incremental training data. After the incremental training data accumulates to a certain threshold amount, incremental model training is performed to continuously improve the generalization ability of the model.
[0069] See also Figure 6 , Figure 6 is a flowchart of model incremental training shown in an exemplary embodiment of the present application, such as Figure 6 As shown, by acquiring the CFD simulation data of the vehicle, converting it into mesh data, then simplifying the mesh data and converting it into point cloud data, the obtained point cloud data is input into the target wind resistance prediction model to obtain the wind resistance value, and by comparing the wind resistance value results, incremental training data is formed according to the comparison results to perform incremental training on the target wind resistance prediction model. It should be understood that incremental training is a cyclical process.
[0070] The above-mentioned wind resistance prediction method first obtains sample point cloud data of the vehicle under different appearance shapes, wherein the sample point cloud data is represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, and the shape represented by the three-dimensional coordinate points of each type of sample is associated with the corresponding wind resistance value, and then a deep learning model is constructed, the sample point cloud data is input, the number of sample points and the three-dimensional coordinate points of each type of sample are simplified to obtain four-dimensional tensor data, and the model is further trained through a convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model, and finally the target wind resistance prediction model is used to predict the wind resistance of the target vehicle, and the deep learning model is used to replace the traditional simulation prediction, and there is no need to use simulation software, which saves costs. By simplifying the number of points in the point cloud data and the three-dimensional coordinate points, the point cloud data of the external structure of the vehicle is used to realize the rapid prediction of the vehicle wind resistance, which not only improves the prediction efficiency, but also improves the prediction accuracy. Moreover, based on the wind resistance prediction model, batch prediction of the wind resistance of vehicles with different appearance shapes can be realized.
[0071] See also Figure 7 , Figure 7 FIG. 1 is a schematic diagram of the structure of a model service shown in an exemplary embodiment of the present application. Figure 7 As shown, in a possible embodiment, a model service is generated based on the target wind resistance prediction model. The model service can be embedded in a mobile terminal or a web page. The online service is divided into two sections. One is to provide an online prediction service to predict wind resistance at any time. The user only needs to upload the stl file of the vehicle model to be predicted on the mobile terminal or the web page, that is, the grid data of the vehicle model's outer contour is saved. After the upload is completed, the prediction result will be fed back to the user after a short time (seconds); the second is to provide an online training service. When the prediction result is significantly different from the actual result, the user can feed back the stl file and the actual wind resistance value to the online training service through the mobile terminal or the web page to accumulate incremental training data. After accumulating a certain number of thresholds, online training is started. After the training is completed, the model is automatically updated to the prediction service, ensuring the continuous generalization ability of the model. It should be noted that the pre-step of the model service will convert the stl file into point cloud data first, so as to perform online training or online prediction.
[0072] See also Figure 8 , Figure 8 is a block diagram of a wind resistance prediction system shown in an exemplary embodiment of the present application. The system can be applied to Figure 1 It should be understood that the present application does not limit the implementation environment of the system. Figure 8 As shown, in an exemplary embodiment, the wind resistance prediction system 800 includes at least an acquisition module 810, a construction module 820, a training module 830 and a prediction module 840, which are described in detail as follows:
[0073] An acquisition module 810 is used to acquire sample point cloud data of the vehicle under different appearance shapes. The sample point cloud data is represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points. The shape represented by the three-dimensional coordinate points of each type of sample is associated with the corresponding wind resistance value.
[0074] A construction module 820 is used to construct a deep learning model, where the deep learning model is a convolutional neural network model;
[0075] The training module 830 is used to input the sample point cloud data into the deep learning model, simplify the number of sample points and the three-dimensional coordinate points of each type of sample, obtain four-dimensional tensor data, and perform model training through a convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model;
[0076] The prediction module 840 is used to predict the wind resistance of the target vehicle using the target wind resistance prediction model.
[0077] It should be noted that the wind resistance prediction system provided in the above embodiment and the wind resistance prediction method provided in the above embodiment belong to the same concept, wherein the contents of the operations performed by each module have been described in detail in the method embodiment and will not be repeated here.
[0078] See also Fig. 9 , Fig. 9 It is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of the present application. Fig. 9 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Fig. 9 The computer system 900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0079] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 909 to the random access memory (RAM) 903, such as executing the method in the above embodiment. In the RAM 903, various programs and data required for system operation are also stored. The CPU 901, ROM 902 and RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0080] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.
[0081] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.
[0082] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the wind resistance prediction method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0083] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0084] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0085] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0086] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A wind resistance prediction method, characterized in that: The method comprises: Acquire sample point cloud data of the vehicle under different appearance shapes, wherein the sample point cloud data is represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, and the shape represented by the three-dimensional coordinate points of each type of the sample is associated with the corresponding wind resistance value; Constructing a deep learning model, wherein the deep learning model is a convolutional neural network model; Inputting the sample point cloud data into the deep learning model, simplifying the number of sample points and the three-dimensional coordinate points of each type of the sample to obtain four-dimensional tensor data, and performing model training with a convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model; The target wind resistance prediction model is used to predict the wind resistance of the target vehicle.
2. The wind resistance prediction method according to claim 1, characterized in that: The simplification process of the number of sample points and the three-dimensional coordinate points of each type of the sample to obtain four-dimensional tensor data includes: Dividing the sample points of each type of the samples into selected sampling points and to-be-selected sampling points to form a selected sampling point set and a to-be-selected sampling point set, wherein the selected sampling point set includes a first number of target sampling points; Calculate the distance between each point in the candidate sampling point set and each target sampling point, and add the point in the candidate sampling point set corresponding to the maximum distance to the selected sampling point set; Continue to calculate the distance until the number of the target sampling points changes from the first number to a second number; Aggregating the sample points according to each of the target sampling points to obtain a third number of target neighboring points, wherein the target neighboring points corresponding to each of the target sampling points are all the third number; The four-dimensional tensor data is generated according to the sample, the target sampling point, the target neighboring point, and the three-dimensional coordinate points of the target sampling point and the target neighboring point.
3. The wind resistance prediction method according to claim 2, characterized in that: The step of aggregating the sample points according to each of the target sampling points to obtain a third number of target neighboring points includes: Taking each of the target sampling points as the center, determining a fourth number of neighboring points within a preset radius, and comparing the fourth number with the third number; If the fourth number is equal to the third number, determining the neighboring point as the target neighboring point; If the fourth number is greater than the third number, determining the third number of points from the neighboring points as the target neighboring points; If the fourth number is smaller than the third number, a difference between the fourth number and the third number is calculated, and based on the difference, the neighboring points are resampled to obtain the target neighboring points.
4. The wind resistance prediction method according to claim 1, characterized in that: The method of performing model training on the convolutional neural network and the four-dimensional tensor data to obtain a target wind resistance prediction model includes: Through the multi-layer two-dimensional convolutional network architecture of the convolutional neural network, the four-dimensional tensor data is compressed in feature dimension to obtain two-dimensional tensor data, wherein the two-dimensional tensor data includes the feature vector dimensions of the sample and each type of the sample; Through the fully connected layer of the convolutional neural network, the two-dimensional tensor data is compressed in feature dimension to generate single-dimensional tensor data until the deep learning model converges to obtain an initial wind resistance prediction model; The initial wind resistance prediction model is optimized to obtain the target wind resistance prediction model.
5. The wind resistance prediction method according to claim 4, characterized in that: The optimizing the initial wind resistance prediction model to obtain the target wind resistance prediction model includes: Acquire a verification set, and input each verification point cloud data in the verification set into the initial wind resistance prediction model to obtain a first wind resistance prediction value; Calculating a mean square error loss according to the first wind resistance prediction value and the first actual wind resistance value corresponding to each verification point cloud data; Using a back propagation algorithm to update the model parameters and optimize the mean square error loss; When a preset optimization stop condition is reached, the target wind resistance prediction model is obtained, wherein the optimization stop condition includes an optimization times threshold and a mean square error threshold.
6. The wind resistance prediction method according to any one of claims 1 to 5, characterized in that: The method of using the target wind resistance prediction model to predict the wind resistance of the target vehicle includes: Acquire simulation data of the target vehicle, and export the simulation data as initial grid data, wherein the simulation data is CFD simulation data; Simplifying the initial grid data by using a quadratic error measurement algorithm to obtain target grid data; Extracting vertex coordinate information from the target mesh data to generate target point cloud data; The target point cloud data is input into the target wind resistance prediction model to obtain a second wind resistance prediction value.
7. The wind resistance prediction method according to claim 6, characterized in that: After the wind resistance prediction model is used to predict the wind resistance of the target vehicle, the method further includes: Verifying the second wind resistance prediction value to determine whether a second difference between the second wind resistance prediction value and the second wind resistance actual value is within a preset difference; If not, taking the target point cloud data and the second wind resistance actual value as a set of incremental training data; When the accumulated incremental training data reaches a preset amount, an incremental training set is formed, and incremental training is performed on the target wind resistance prediction model according to the incremental training set.
8. A wind resistance prediction system, characterized in that: The system comprises: An acquisition module is used to acquire sample point cloud data of the vehicle under different appearance shapes, wherein the sample point cloud data is represented by three-dimensional tensor data formed by samples, the number of sample points and three-dimensional coordinate points, and the shape represented by the three-dimensional coordinate points of each type of the sample is associated with the corresponding wind resistance value; A construction module, used to construct a deep learning model, wherein the deep learning model is a convolutional neural network model; A training module, used for inputting the sample point cloud data into the deep learning model, simplifying the number of sample points and the three-dimensional coordinate points of each type of the sample to obtain four-dimensional tensor data, and performing model training on the four-dimensional tensor data through a convolutional neural network to obtain a target wind resistance prediction model; The prediction module is used to predict the wind resistance of the target vehicle using the target wind resistance prediction model.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the wind resistance prediction method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the wind resistance prediction method according to any one of claims 1 to 7.
Citation Information
Cited By
Soil moisture content prediction analysis method and system
CN119106774A
Multi-parameter automobile body flow field prediction method and device and server
CN119720393A
Vehicle point cloud wind resistance coefficient prediction method and system based on multi-scale learning and convolution
CN120409269A
Whole vehicle point cloud wind resistance coefficient prediction method and system based on multi-scale learning and convolution
CN120409269B
Model training method and device, parameter determination method and device, equipment and medium
CN120429647A
