A millimeter wave radar angle calibration method, system and platform based on GAN
The GAN-based Tiny-GAN network learns and generates fake data from a small amount of measured data, solving the problem of nonlinear errors in millimeter-wave radar angle measurement and achieving high-precision angle calibration and productivity improvement.
Patent Information
- Application Number
- CN202311795606.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-12-25
AI Technical Summary
Existing millimeter-wave radar systems have nonlinear errors in angle measurement, which prevents them from achieving the required accuracy. In addition, neural network training requires a large number of samples, which affects production capacity.
A GAN-based method is used to learn data distribution from a small amount of measured data through the Tiny-GAN network, conduct data enhancement training, and generate fake data to fit and compensate for the nonlinear error of radar angle measurement.
It achieves high-precision calibration of millimeter-wave radar angles during the R&D and trial production stage, reduces training sample acquisition time, improves production capacity, and trains neural networks through data enhancement technology to achieve effective calibration of nonlinear errors.
Smart Images

Figure CN117784046B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of angle calibration processing, and specifically relates to a GAN-based millimeter-wave radar angle calibration method, system and platform. Background Art
[0002] At present, millimeter-wave radar is a key sensor in ADAS systems, and its basic functions include measuring distance, speed and angle (including horizontal angle and pitch angle). With the continuous iteration of millimeter-wave radar technology, mainstream automotive millimeter-wave radars now have very high requirements for angle accuracy, usually less than ±0.2°. In existing millimeter-wave radar on-chip systems, even after conventional (antenna) array element position, initial phase calibration, and point-by-point calibration, there will still be nonlinear errors in the angle measurement; the existence of nonlinear errors will inevitably affect the millimeter-wave radar angle measurement and cannot obtain the required accuracy.
[0003] Using a neural network to fit and compensate for nonlinear errors is a very good method. Since the angle measurement value and the calibration value are one-dimensional data, a relatively simple neural network can achieve good results. However, the neural network needs to learn a certain number of training samples in advance to achieve convergence in order to achieve a better fitting effect. In the actual development of automotive millimeter-wave radars, there is only an opportunity to obtain a considerable number of training samples during mass production (the neural network used to fit the nonlinear error must be trained before mass production and burned into the radar during the production stage). And because the time-consuming acquisition of training samples will seriously affect production capacity, it is obviously not advisable to train the neural network for angle calibration compensation during the mass production stage.
[0004] Therefore, in view of the above technical problems and defects, it is urgent to design and develop a GAN-based millimeter-wave radar angle calibration method, system and platform. Summary of the invention
[0005] In order to overcome the shortcomings and difficulties of the above-mentioned prior art, the purpose of the present invention is to provide a GAN-based millimeter-wave radar angle calibration method, system, platform and storage medium to address the technical defect that the existence of nonlinear errors will inevitably affect the millimeter-wave radar angle measurement and cannot obtain the required accuracy, so as to realize the training of neural networks based on a small number of R&D and trial production samples to perform (angle) calibration of radar angle measurement.
[0006] The first object of the present invention is to provide a millimeter-wave radar angle calibration method based on GAN; the second object of the present invention is to provide a millimeter-wave radar angle calibration system based on GAN; the third object of the present invention is to provide a millimeter-wave radar angle calibration platform based on GAN; the fourth object of the present invention is to provide a computer-readable storage medium.
[0007] The first object of the present invention is achieved in that the method comprises the following steps:
[0008] Acquire first angle data corresponding to the millimeter wave radar in real time, and generate comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data;
[0009] According to the comma separated value format file data, and in combination with the GAN model, second angle data corresponding to the first angle data is processed and generated; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data;
[0010] According to the second angle data, the real-time calibration supplements the processing of the nonlinear error data corresponding to the millimeter-wave radar angle measurement.
[0011] Further, the real-time acquisition of first angle data corresponding to the millimeter wave radar and the generation of comma separated value format file data corresponding to the first angle data also include:
[0012] According to the acquired first angle data, a two-dimensional matrix corresponding to the first angle data is generated.
[0013] Further, the real-time acquisition of first angle data corresponding to the millimeter wave radar and the generation of comma separated value format file data corresponding to the first angle data also include:
[0014] Generate a data set corresponding to the comma-separated value format file data according to the comma-separated value format file data; wherein the data set includes a training data set and a test data set;
[0015] Generate label data corresponding to the data set according to the data set; wherein the label data is angle value data corresponding to the millimeter wave radar and preset and calibrated.
[0016] Further, according to the comma separated value format file data, in combination with the GAN model, processing and generating second angle data corresponding to the first angle data also includes:
[0017] According to the loss function and combined with the GAN model, the corresponding loss error evaluation true and false probability data is generated;
[0018] The true and false probability data is evaluated according to the loss error and combined with the second angle data to generate distribution data corresponding to the first angle data.
[0019] Furthermore, the loss function is combined with the GAN model to determine and generate the corresponding loss error evaluation true and false probability data. The specific calculation formula is as follows:
[0020]
[0021] Among them, x and y represent two samples respectively, and N represents the number of features of the sample.
[0022] Further, according to the comma separated value format file data, in combination with the GAN model, processing and generating second angle data corresponding to the first angle data also includes:
[0023] Generate and obtain random data that conforms to the Gaussian distribution and corresponds to the preset, and sequentially expand and shrink the dimensions of the random data.
[0024] The second object of the present invention is achieved in that the system comprises:
[0025] A data acquisition and generation unit, used for acquiring first angle data corresponding to the millimeter wave radar in real time, and generating comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data;
[0026] A data processing and generating unit, configured to process and generate second angle data corresponding to the first angle data according to the comma separated value format file data and in combination with a GAN model; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data;
[0027] The data calibration processing unit is used to calibrate and supplement the nonlinear error data corresponding to the millimeter wave radar angle measurement in real time according to the second angle data.
[0028] Furthermore, the data acquisition generation unit further includes:
[0029] A first generating module, configured to generate a two-dimensional matrix corresponding to the first angle data according to the acquired first angle data;
[0030] And / or, the data acquisition generation unit further includes:
[0031] A second generating module is used to generate a data set corresponding to the comma-separated value format file data according to the comma-separated value format file data; wherein the data set includes a training data set and a test data set;
[0032] A third generating module is used to generate label data corresponding to the data set according to the data set; wherein the label data is angle value data corresponding to the millimeter wave radar and preset calibration;
[0033] And / or, the data processing and generating unit further includes:
[0034] The fourth generation module is used to determine and generate corresponding loss error evaluation true and false probability data based on the loss function and in combination with the GAN model;
[0035] a fifth generating module, configured to generate distribution data corresponding to the first angle data based on the true and false probability data of the loss error evaluation and in combination with the second angle data;
[0036] According to the loss function and combined with the GAN model, the corresponding loss error evaluation true and false probability data is determined and generated. The specific calculation formula is as follows:
[0037]
[0038] Among them, x and y represent two samples respectively, and N represents the number of features of the sample;
[0039] And / or, the data processing and generating unit further includes:
[0040] The sixth generation module is used to generate and obtain random data that conforms to the Gaussian distribution and corresponds to the preset, and to expand and shrink the dimensions of the random data in turn.
[0041] The third object of the present invention is achieved as follows: it includes a processor, a memory and a GAN-based millimeter-wave radar angle calibration platform control program; wherein the GAN-based millimeter-wave radar angle calibration platform control program is executed in the processor, the GAN-based millimeter-wave radar angle calibration platform control program is stored in the memory, and the GAN-based millimeter-wave radar angle calibration platform control program implements the GAN-based millimeter-wave radar angle calibration method.
[0042] The fourth object of the present invention is achieved as follows: the computer-readable storage medium stores a GAN-based millimeter-wave radar angle calibration platform control program, and the GAN-based millimeter-wave radar angle calibration platform control program implements the GAN-based millimeter-wave radar angle calibration method.
[0043] The present invention obtains first angle data corresponding to a millimeter-wave radar in real time through a method, and generates comma-separated value format file data corresponding to the first angle data; according to the comma-separated value format file data, in combination with a GAN model, second angle data corresponding to the first angle data is processed and generated; according to the second angle data, nonlinear error data corresponding to the millimeter-wave radar angle measurement is calibrated and supplemented in real time, as well as a system, platform and storage medium corresponding to the method, so as to realize training a neural network based on a small amount of R&D trial production samples, and perform (angle) calibration on the radar angle measurement.
[0044] That is to say, the scheme of the present invention can learn data distribution from a relatively small amount of millimeter-wave darkroom measured data through a self-trained Tiny-GAN network, and then use the GAN generator to perform data enhancement to train the neural network to fit and compensate for the nonlinear error of radar angle measurement. That is, the neural network can be trained by performing data enhancement on a relatively small number of measured samples obtained in the research and development stage, thereby realizing the calibration and supplementation of the nonlinear error of millimeter-wave radar angle measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] Figure 1 This is a data enhancement-assisted radar angle calibration flow chart of an embodiment of a millimeter-wave radar angle calibration method based on GAN of the present invention;
[0047] Figure 2 It is a schematic diagram of the overall operation of an embodiment of a millimeter wave radar angle calibration method based on GAN of the present invention;
[0048] Figure 3 It is a schematic diagram of the network architecture of the Tiny-GAN part of an embodiment of a GAN-based millimeter-wave radar angle calibration method of the present invention;
[0049] Figure 4 It is a schematic diagram of a single training cycle flow of Tiny-GAN in an embodiment of a GAN-based millimeter-wave radar angle calibration method of the present invention;
[0050] Figure 5 It is a schematic diagram of a flow chart of a GAN-based millimeter wave radar angle calibration method of the present invention;
[0051] Figure 6 This is a schematic diagram of the architecture of a millimeter-wave radar angle calibration system based on GAN in the present invention;
[0052] Figure 7 This is a schematic diagram of the architecture of a millimeter-wave radar angle calibration platform based on GAN in the present invention;
[0053] Figure 8 A schematic diagram of a computer-readable storage medium architecture in an embodiment of the present invention;
[0054] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0055] In order to better understand the purpose, technical solutions and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0056] The present invention may also be implemented or applied through other different specific examples, and the details in this specification may also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0057] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0058] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. Secondly, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0059] Preferably, a GAN-based millimeter wave radar angle calibration method of the present invention is applied in one or more terminals or servers. The terminal is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.
[0060] The terminal can be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal can interact with the client through a keyboard, a mouse, a remote control, a touch pad, or a voice control device.
[0061] The present invention is to realize a GAN-based millimeter-wave radar angle calibration method, system, platform and storage medium.
[0062] like Figure 5 , which is a flow chart of a millimeter-wave radar angle calibration method based on GAN provided in an embodiment of the present invention.
[0063] In this embodiment, the GAN-based millimeter-wave radar angle calibration method can be applied to a terminal with a display function or a fixed terminal. The terminal is not limited to a personal computer, a smart phone, a tablet computer, a desktop computer or an all-in-one computer equipped with a camera, etc.
[0064] The GAN-based millimeter wave radar angle calibration method can also be applied to a hardware environment consisting of a terminal and a server connected to the terminal through a network. The network includes but is not limited to: a wide area network, a metropolitan area network or a local area network. The GAN-based millimeter wave radar angle calibration method of the embodiment of the present invention can be executed by a server, or by a terminal, or by both a server and a terminal.
[0065] For example, for a terminal that needs to perform GAN-based millimeter-wave radar angle calibration, the GAN-based millimeter-wave radar angle calibration function provided by the method of the present invention can be directly integrated on the terminal, or a client for implementing the method of the present invention can be installed. For another example, the method provided by the present invention can also be run on a server or other device in the form of a software development kit (SDK), and an interface for the GAN-based millimeter-wave radar angle calibration function is provided in the form of an SDK. The terminal or other device can implement the GAN-based millimeter-wave radar angle calibration function through the provided interface. The present invention is further described below in conjunction with the accompanying drawings.
[0066] like Figure 1-Figure 5 As shown, the present invention provides a millimeter wave radar angle calibration method based on GAN, and the method comprises the following steps:
[0067] S1. Acquire first angle data corresponding to the millimeter wave radar in real time, and generate comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data;
[0068] S2. According to the comma separated value format file data, and in combination with the GAN model, processing and generating second angle data corresponding to the first angle data; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data;
[0069] S3. Based on the second angle data, perform real-time calibration and supplementary processing on the nonlinear error data corresponding to the millimeter-wave radar angle measurement.
[0070] The real-time acquisition of first angle data corresponding to the millimeter wave radar and the generation of comma separated value format file data corresponding to the first angle data also include:
[0071] S11. Generate a two-dimensional matrix corresponding to the first angle data according to the acquired first angle data.
[0072] The real-time acquisition of first angle data corresponding to the millimeter wave radar and the generation of comma separated value format file data corresponding to the first angle data also include:
[0073] S12, generating a data set corresponding to the comma-separated value format file data according to the comma-separated value format file data; wherein the data set includes a training data set and a test data set;
[0074] S13. Generate label data corresponding to the data set according to the data set; wherein the label data is angle value data corresponding to the millimeter wave radar and preset and calibrated.
[0075] According to the comma separated value format file data, and in combination with the GAN model, processing and generating second angle data corresponding to the first angle data also includes:
[0076] S21. According to the loss function and in combination with the GAN model, determine and generate corresponding loss error evaluation true and false probability data;
[0077] S22. Evaluate the true and false probability data according to the loss error, and generate distribution data corresponding to the first angle data in combination with the second angle data.
[0078] According to the loss function and combined with the GAN model, the corresponding loss error evaluation true and false probability data is determined and generated. The specific calculation formula is as follows:
[0079]
[0080] Among them, x and y represent two samples respectively, and N represents the number of features of the sample.
[0081] According to the comma separated value format file data, and in combination with the GAN model, processing and generating second angle data corresponding to the first angle data also includes:
[0082] S23, generating and acquiring random data that conforms to Gaussian distribution and corresponds to a preset value, and sequentially performing expansion and contraction processing on the dimensions of the random data.
[0083] Specifically, in the embodiment of the present invention, Figure 1 As shown, it is a block diagram of the implementation system corresponding to the solution of the present invention, which is specifically described as follows: Darkroom radar production system (darkroom for short): The darkroom environment is a common interference-free test environment for millimeter-wave radars. In addition to the darkroom, the darkroom production test system mainly includes millimeter-wave radar target simulators, horizontal and pitch motor shafts, production test sequences and other hardware and software components. In the solution of the present invention, it is necessary to load the millimeter-wave radar through the darkroom production test system, and control the turntable stepper motor to rotate to 151 angles between positive and negative 75° horizontally and 25 specified angle positions between positive and negative 12° in pitch at intervals of 1°; when the turntable feedback has been rotated to the specified position, the radar return angle measurement value is obtained in real time through CAN communication and recorded. The angle measurement data recorded in the darkroom is organized into the format of [productID, profileID, HAngle, VAngle] M×178 ; Where M represents the test round, and also represents M measured samples; productID identifies the specific radar device ID of the test; profileID identifies the waveform configuration of this type of radar; HAngle / VAngle represents the horizontal / pitch measured angle values obtained from the darkroom system, and 151+25 angle values can be obtained for each test; together with productID and profileID, M test data constitutes a two-dimensional matrix of M*178, which is saved as a csv file by the darkroom generation system. Among them, productID is only used to distinguish the radar device of the data source, and profileID / HAngle / VAngle is actually used for model training. The abbreviation [1,178] in the scheme of the present invention represents a sample, which contains 178 features.
[0084] Tiny-GAN: GAN (Generative Adversarial Network) is a neural network that implements deep learning based on the idea of adversarial games. The adversarial process of GAN is reflected in the generator-discriminator mechanism, which is represented as GAN-G and GAN-D in the figure and the scheme of the present invention respectively; the data generated by the initially untrained GAN-G is invalid, and GAN-D tells the generator what kind of data should be generated (adversarial game process) by judging the probability that the generated data is real data (the true and false probability is evaluated by calculating the loss error through the loss function), and uses this mechanism to force the generator to imitate the data and continuously approach the distribution of the required real data. In the scheme of the present invention, the goal is to generate imitated data of the actual angle distribution of the radar darkroom by training GAN-G, and to replace the actual measured data obtained by large-scale testing (cost) of the darkroom system with imitated data to train the NerualNetwork (i.e., data enhancement technology); the trained NerualNetwork is converted into ParamsTable as a parameter lookup table and solidified into the radar to compensate for the nonlinear error of angle measurement. The specific design and practice process are as follows:
[0085] Small sample collection and data set production: The csv file collected by the darkroom system during the R&D and trial production stage is the small sample referred to in the scheme of the present invention. Compared with the measured data that can be obtained in the mass production stage, it is small in magnitude and easy to obtain (the time difference between testing hundreds of radars and testing tens of thousands of radars in the darkroom system, the impact on production capacity, etc.). The scheme of the present invention adopts the pytorch development environment, and extracts [profileID, HAngle, VAngle]Mx178 from the csv file saved by the darkroom generation test system; organizes it into a data set dataset according to the dataloader format of pytorch; and divides it into a training set train_dataset and a test set test_dataset at a ratio of 4:1 through the train_test_split of the machine learning library sklearn. The label of the data set is the preset calibration angle value of the darkroom system.
[0086] Tiny-GAN structure design: The generator and discriminator parts of the Tiny-GAN structure are respectively called Tiny-GAN-G and Tiny-GAN-D in the present invention.
[0087] ①Tiny-GAN-G part: The input of the Tiny-GAN-G generator is designed to be N random numbers that conform to the Gaussian distribution. Figure 2Marked as [1, N]. The dimension of the Tiny-GAN-G network is expanded from N to 256, 512 in sequence through the fully connected layer (Fully-Connected-Layer1 / 2), and the final Fully-Connected-Layer3 shrinks the dimension to the same dimension as the darkroom data [1, 178] (the purpose of the generator is to imitate the measured data, so the output data format of the generator must be consistent with the measured data obtained by the darkroom system), Figure 2 is abbreviated as [1, 178]. Among them, Figure 2 In the above example, rain / test_data is a training / testing data set, which is a common term for training neural networks; *.pt files are model files. Sufficient imitation data can be generated on the PC side for training NeuralNetwork, thus eliminating the cost of obtaining actual test samples through a large number of tests in a darkroom system.
[0088] ②Tiny-GAN-D part: The input data format of the Tiny-GAN-D discriminator is consistent with the generated data format output by Tiny-GAN-G (the purpose of the discriminator is to compete with the generator and judge the probability of the data generated by the generator being true or false, so the input data format of the discriminator is the output data format of the generator), that is, a vector of [1, 178]. The output value of the discriminator is fixed to a single probability value p, that is, the probability of judging whether the current input is real data or fake data, with a value range of [0-1]. The internal network of the Tiny-GAN-D discriminator is designed to be mirror-symmetric with the Tiny-GAN-G structure: the input feature dimension of [1, 178] is expanded to 512, 256 (Fully-Connected-Layer1 / 2) through the fully connected layer in turn, and finally the feature output [1, 1] is shrunk to a probability p. The activation function of the discriminator is different from that of the generator, and leakyReLU is selected; the last layer is used as a true / false probability judgment to obtain the probability p using the commonly used sigmoid function.
[0089] Tiny-GAN training process
[0090] ① Loss function: The training loss of Tiny-GAN in the solution of the present invention is calculated and evaluated using the BCELoss binary cross entropy loss function. The loss function is used to calculate the gap (size) between evaluation samples; the larger the loss, the larger the gap between the two samples, and vice versa. The calculation formula of BCELoss is as follows, x, y represent two samples, and N represents the number of features of the sample:
[0091]
[0092] ② Back propagation: During the training process, the neural network calculates the predicted value (forward propagation process), evaluates the difference between the predicted value and the training label (actual value) through the loss function (loss value), and then reversely calculates and updates the parameters in the network based on the loss value. In this way, continuous training makes the predicted value of the neural network closer and closer to the actual value (loss reduction), achieving network convergence. The solution of the present invention uses the commonly used Adam optimizer to perform the network parameter update process. Among them, Figure 3 In , ReLU / leakyReLU / Tanh / Sigmoid are commonly used activation functions.
[0093] ③ Training process: The single training process of Tiny-GAN is as follows Figure 4 As shown: Load the training samples from train_dataset and input Tiny-GAN-D to get the output DX; since the input is a real measured sample, the training label of D is p=1 (informing the discriminator that the input is real data, the same below), calculate the loss lossDx and back propagate to update the network weights of D. Among them, Figure 4 In the example, BatchNum means that the samples input during training of the neural network are input together in batches of BatchNum.
[0094] Generate a random number [1, N] and input it into Tiny-GAN-G. At this time, G generates "fake" sample data (not actually obtained, but triggered by random numbers, and fake samples generated by G), abbreviated as G-Fake. For G-Fake, first freeze the network weights of G and input it into Tiny-GAN-D to obtain output DF1. Since G-Fake is "fake" data, the label of lossDF1 is p=0. According to lossDF1, the parameters of D are updated in reverse (G is frozen and will not be updated at this time); then unfreeze the network weights of G and input G-Fake into Tiny-GAN-D to obtain output DF2. Since the training goal of GAN is to make the data simulated by G close to the input sample, the training label of lossDF2 is p=1 at this time (loss represents the difference between the fake data G-Fake and the real sample at this time); finally, update the parameters of G by back-propagation according to loss=lossDF1+lossDF2. The back propagation of loss will make the G-Fake generated by G closer to the real training sample during the next training.
[0095] Multiple training rounds can reduce the loss continuously and the network gradually converges, that is, G-Fake is more and more indistinguishable from the real thing. At the end of each round of training, all network parameters of Tiny-GAN-G / D are frozen, and the current overall accuracy of the current Tiny-GAN model is evaluated using test_dataset. The scheme of the present invention takes 95% accuracy as the preset target, that is, when the accuracy of Tiny-GAN on test_dataset reaches 92% or above, stop training the model and save the model file; if the accuracy is less than 92%, unfreeze the Tiny-GAN-G / D model parameters to continue the next round of training.
[0096] Tiny-GAN-G generator effect test: The trained Tiny-GAN-G generator will be used separately. By inputting random numbers, radar angle measurement data that imitates actual measured data can be generated; the simulated radar angle measurement data can be used to replace the actual measured values collected by the dark box to train the Neural Network that fits the radar angle measurement error. The process of Tiny-GAN-G making training samples can be completed on the PC side, which saves a lot of time and economic costs compared to obtaining samples for training NeuralNetwork in a dark room.
[0097] NeuralNetwork: In the solution of the present invention, it refers to the neural network used to fit and compensate for the nonlinear error of millimeter-wave radar angle measurement. It can be a simple fully connected layer with several layers or a slightly more complex one such as GRNN. Due to the different angle measurement indicators and accuracy requirements of different models of radars, the corresponding accuracy of nonlinear error compensation is different. It is necessary to adapt the specific architecture of the Neural Network and train it according to the radar indicator requirements.
[0098] Params Table: Due to the limited computing power of the millimeter-wave radar SOC, the fitting results of the neural network NeuralNetwork are simplified into a lookup table and solidified inside the radar, and angle calibration compensation is performed through lookup operations. Compensation calibration principle: The radar has obtained the angle measurement value θ through internal calculations before nonlinear compensation is performed. The compensation value Δθ is found in the ParamsTable through the angle measurement value θ index (Δθ is generated by NerualNetwork in advance on the PC side, solidified in the radar in the form of a lookup table, and loaded when the radar is running). The final angle measurement value calculated by the radar is the sum of the two θ+Δθ. Using a lookup table can avoid the large number of floating-point multiplication operations and time-consuming neural network reasoning, thereby improving operating efficiency.
[0099] To achieve the above object, the present invention also provides a millimeter wave radar angle calibration system based on GAN, such as Figure 6 As shown, the system specifically includes:
[0100] A data acquisition and generation unit, used for acquiring first angle data corresponding to the millimeter wave radar in real time, and generating comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data;
[0101] A data processing and generating unit, configured to process and generate second angle data corresponding to the first angle data according to the comma separated value format file data and in combination with a GAN model; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data;
[0102] The data calibration processing unit is used to calibrate and supplement the nonlinear error data corresponding to the millimeter wave radar angle measurement in real time according to the second angle data.
[0103] The data acquisition generation unit further includes:
[0104] A first generating module, configured to generate a two-dimensional matrix corresponding to the first angle data according to the acquired first angle data;
[0105] And / or, the data acquisition generation unit further includes:
[0106] A second generating module is used to generate a data set corresponding to the comma-separated value format file data according to the comma-separated value format file data; wherein the data set includes a training data set and a test data set;
[0107] A third generating module is used to generate label data corresponding to the data set according to the data set; wherein the label data is angle value data corresponding to the millimeter wave radar and preset calibration;
[0108] And / or, the data processing and generating unit further includes:
[0109] The fourth generation module is used to determine and generate corresponding loss error evaluation true and false probability data based on the loss function and in combination with the GAN model;
[0110] a fifth generating module, configured to generate distribution data corresponding to the first angle data based on the true and false probability data of the loss error evaluation and in combination with the second angle data;
[0111] According to the loss function and combined with the GAN model, the corresponding loss error evaluation true and false probability data is determined and generated. The specific calculation formula is as follows:
[0112]
[0113] Among them, x and y represent two samples respectively, and N represents the number of features of the sample;
[0114] And / or, the data processing and generating unit further includes:
[0115] The sixth generation module is used to generate and obtain random data that conforms to the Gaussian distribution and corresponds to the preset, and to expand and shrink the dimensions of the random data in turn.
[0116] In the system solution embodiment of the present invention, the method steps involved in the GAN-based millimeter-wave radar angle calibration have been described above in detail. That is to say, the functional modules in the system are used to implement the steps or sub-steps in the above method embodiment, which will not be repeated here.
[0117] To achieve the above objectives, the present invention also provides a millimeter wave radar angle calibration platform based on GAN, such as Figure 7 As shown, it includes a processor, a memory, and a GAN-based millimeter-wave radar angle calibration platform control program; wherein, the GAN-based millimeter-wave radar angle calibration platform control program is executed in the processor, the GAN-based millimeter-wave radar angle calibration platform control program is stored in the memory, and the GAN-based millimeter-wave radar angle calibration platform control program implements the GAN-based millimeter-wave radar angle calibration method steps. For example:
[0118] S1. Acquire first angle data corresponding to the millimeter wave radar in real time, and generate comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data;
[0119] S2. According to the comma separated value format file data, and in combination with the GAN model, processing and generating second angle data corresponding to the first angle data; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data;
[0120] S3. Based on the second angle data, perform real-time calibration and supplementary processing on the nonlinear error data corresponding to the millimeter-wave radar angle measurement.
[0121] The specific details of the steps have been explained above and will not be repeated here.
[0122] In the embodiment of the present invention, the GAN-based millimeter-wave radar angle calibration platform has a built-in processor, which can be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor uses various interfaces and lines to connect various components, and executes or executes programs or units stored in the memory, and calls data stored in the memory to perform various functions and process data for the GAN-based millimeter-wave radar angle calibration;
[0123] The memory is used to store program codes and various data. It is installed in the GAN-based millimeter-wave radar angle calibration platform and can realize high-speed and automatic access to programs or data during operation.
[0124] The memory includes read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electronically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0125] To achieve the above object, the present invention also provides a computer readable storage medium, such as Figure 8 As shown, the computer-readable storage medium stores a GAN-based millimeter-wave radar angle calibration platform control program, and the GAN-based millimeter-wave radar angle calibration platform control program implements the GAN-based millimeter-wave radar angle calibration method steps, for example:
[0126] S1. Acquire first angle data corresponding to the millimeter wave radar in real time, and generate comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data;
[0127] S2. According to the comma separated value format file data, and in combination with the GAN model, processing and generating second angle data corresponding to the first angle data; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data;
[0128] S3. Based on the second angle data, perform real-time calibration and supplementary processing on the nonlinear error data corresponding to the millimeter-wave radar angle measurement.
[0129] The specific details of the steps have been explained above and will not be repeated here.
[0130] In the description of the embodiments of the present invention, it should be noted that any process or method description in the flowchart or otherwise described herein may be understood as representing a module, fragment or portion of a code comprising one or more executable instructions for implementing steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations, in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0131] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM).
[0132] In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0133] In an embodiment of the present invention, in order to achieve the above-mentioned purpose, the present invention further provides a chip system, wherein the chip system includes at least one processor, and when the program instructions are executed in the at least one processor, the chip system performs the steps of the GAN-based millimeter wave radar angle calibration method, for example:
[0134] S1. Acquire first angle data corresponding to the millimeter wave radar in real time, and generate comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data;
[0135] S2. According to the comma separated value format file data, and in combination with the GAN model, processing and generating second angle data corresponding to the first angle data; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data;
[0136] S3. Based on the second angle data, perform real-time calibration and supplementary processing on the nonlinear error data corresponding to the millimeter-wave radar angle measurement.
[0137] The specific details of the steps have been explained above and will not be repeated here.
[0138] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0139] The present invention obtains first angle data corresponding to a millimeter-wave radar in real time through a method, and generates comma-separated value format file data corresponding to the first angle data; according to the comma-separated value format file data, in combination with a GAN model, second angle data corresponding to the first angle data is processed and generated; according to the second angle data, nonlinear error data corresponding to the millimeter-wave radar angle measurement is calibrated and supplemented in real time, as well as a system, platform and storage medium corresponding to the method, so as to realize training a neural network based on a small amount of R&D trial production samples, and perform (angle) calibration on the radar angle measurement.
[0140] That is to say, the scheme of the present invention can learn data distribution from a relatively small amount of millimeter-wave darkroom measured data through a self-trained Tiny-GAN network, and then use the GAN generator to perform data enhancement to train the neural network to fit and compensate for the nonlinear error of radar angle measurement. That is, the neural network can be trained by performing data enhancement on a relatively small number of measured samples obtained in the research and development stage, thereby realizing the calibration and supplementation of the nonlinear error of millimeter-wave radar angle measurement.
[0141] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A millimeter wave radar angle calibration method based on GAN, characterized in that: The method comprises the steps of: Acquire first angle data corresponding to the millimeter wave radar in real time, and generate comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data; According to the comma separated value format file data, and in combination with the GAN model, second angle data corresponding to the first angle data is processed and generated; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data; According to the second angle data, real-time calibration and supplementary processing of nonlinear error data corresponding to the millimeter-wave radar angle measurement; The method of acquiring first angle data corresponding to the millimeter wave radar in real time and generating comma separated value format file data corresponding to the first angle data further includes: generating a two-dimensional matrix corresponding to the first angle data according to the acquired first angle data; The real-time acquisition of first angle data corresponding to the millimeter-wave radar and the generation of comma-separated value format file data corresponding to the first angle data also include: generating a data set corresponding to the comma-separated value format file data according to the comma-separated value format file data; wherein the data set includes a training data set and a test data set; generating label data corresponding to the data set according to the data set; wherein the label data is angle value data corresponding to the millimeter-wave radar and preset and calibrated; The processing of generating second angle data corresponding to the first angle data according to the comma separated value format file data and in combination with the GAN model also includes: determining and generating corresponding loss error evaluation true and false probability data according to the loss function and in combination with the GAN model; generating distribution data corresponding to the first angle data according to the loss error evaluation true and false probability data and in combination with the second angle data; According to the loss function and combined with the GAN model, the corresponding loss error evaluation true and false probability data is determined and generated. The specific calculation formula is as follows: Among them, x and y represent two samples respectively, N represents the number of features of the sample, and BCELoss is the binary cross entropy loss function.
2. According to the GAN-based millimeter wave radar angle calibration method of claim 1, it is characterized in that: According to the comma separated value format file data, and in combination with the GAN model, processing and generating second angle data corresponding to the first angle data also includes: Generate and obtain random data that conforms to the Gaussian distribution and corresponds to the preset, and sequentially expand and shrink the dimensions of the random data.
3. A millimeter wave radar angle calibration system based on GAN, characterized in that: The system comprises: A data acquisition and generation unit, used for acquiring first angle data corresponding to the millimeter wave radar in real time, and generating comma separated value format file data corresponding to the first angle data; wherein the first angle data is measured angle data; A data processing and generating unit, configured to process and generate second angle data corresponding to the first angle data according to the comma separated value format file data and in combination with a GAN model; wherein the second angle data is simulated data corresponding to the distribution of the measured angle data; A data calibration processing unit, configured to calibrate and supplement the nonlinear error data corresponding to the millimeter wave radar angle measurement in real time according to the second angle data; The data acquisition and generation unit further includes: a first generation module, configured to generate a two-dimensional matrix corresponding to the first angle data according to the acquired first angle data; The data acquisition generation unit further includes: a second generation module, used to generate a data set corresponding to the comma separated value format file data according to the comma separated value format file data; wherein the data set includes a training data set and a test data set; a third generation module, used to generate label data corresponding to the data set according to the data set; wherein the label data is angle value data corresponding to the millimeter wave radar and preset calibration; The data processing and generating unit further includes: a fourth generating module, which is used to determine and generate corresponding loss error evaluation true and false probability data according to the loss function and in combination with the GAN model; a fifth generating module, which is used to generate distribution data corresponding to the first angle data according to the loss error evaluation true and false probability data and in combination with the second angle data; According to the loss function and combined with the GAN model, the corresponding loss error evaluation true and false probability data is determined and generated. The specific calculation formula is as follows: Among them, x and y represent two samples respectively, N represents the number of features of the sample; BCELoss is the binary cross entropy loss function.
4. The millimeter wave radar angle calibration system based on GAN according to claim 3 is characterized in that: And / or, the data processing and generating unit further includes: The sixth generation module is used to generate and obtain random data that conforms to the Gaussian distribution and corresponds to the preset, and to expand and shrink the dimensions of the random data in turn.
5. A GAN-based millimeter wave radar angle calibration platform, characterized in that: It includes a processor, a memory and a GAN-based millimeter-wave radar angle calibration platform control program; wherein the GAN-based millimeter-wave radar angle calibration platform control program is executed in the processor, the GAN-based millimeter-wave radar angle calibration platform control program is stored in the memory, and the GAN-based millimeter-wave radar angle calibration platform control program implements the GAN-based millimeter-wave radar angle calibration method as described in any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a GAN-based millimeter-wave radar angle calibration platform control program, and the GAN-based millimeter-wave radar angle calibration platform control program implements the GAN-based millimeter-wave radar angle calibration method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Vehicle-mounted millimeter wave radar installation angle self-calibration method and device and storage medium
CN111157965A
Data set establishing method, vehicle and storage medium
CN111830502A
Through-the-wall radar feature enhancement method and system based on GAN and Attention U-NET structures
CN115861085A
Radar data processing result inspection method, device, equipment and medium
CN116224338A
Super-resolution angle estimation method based on millimeter wave radar
CN116256715A
