Automobile UWB electronic key trajectory prediction method, system, device and storage medium

By normalizing UWB electronic key positioning data and GRU neural network prediction, the problem of positioning coordinate jump in UWB positioning is solved, and more accurate vehicle trajectory prediction and positioning are achieved.

CN118042419BActive Publication Date: 2024-09-17ANSHAN KEDA INTERNET OF THINGS SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410436949.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-09-17
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

Existing UWB technology has jumps and distortions in positioning coordinates during car key positioning, resulting in inaccurate positioning.

Method used

The vehicle UWB electronic key trajectory prediction method is used to obtain the electronic key positioning data at the current and previous moments for normalization processing, and use the pre-built GRU neural network model for prediction, and correct the positioning data to eliminate jumps and improve positioning accuracy.

Benefits of technology

It effectively eliminates the distortion of UWB measurement data, improves the accuracy and stability of positioning, and ensures the authenticity and accuracy of the trajectory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118042419B
    Figure CN118042419B
Patent Text Reader

Abstract

The present application relates to a method, system, device and storage medium for predicting the trajectory of a UWB electronic key in a car. The method obtains the electronic key positioning data at multiple moments before the current moment and the electronic key positioning data at the current moment; then the electronic key positioning data at multiple moments before the current moment are normalized to obtain normalized data; the normalized data are input into a pre-built prediction model to obtain the electronic key positioning prediction data at the current moment; the present application inputs the electronic key positioning data at multiple moments before the current moment into a pre-built prediction model, and uses the prediction model to predict the electronic key positioning prediction data at the current moment. The present application can verify the real-time positioning data based on the electronic key positioning prediction data, thereby verifying the real-time positioning data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless positioning technology, and in particular to a method, system, device and storage medium for predicting the trajectory of an automobile UWB electronic key. Background Art

[0002] Ultra-wideband wireless communication technology (UWB) is a carrier-free communication technology. Instead of using a carrier, it uses pulses with extremely short time intervals (less than 1ns) for wireless communication. The high pulse frequency allows for precise positioning indoors and underground (with an accuracy of centimeters).

[0003] UWB actually measures distance through ToF (Time Of Flight), which mainly uses the flight time of the signal between two UWB modules to measure the distance between nodes. Each module generates an independent timestamp from the start, from which the flight time of the pulse signal between the two UWB modules can be calculated, and then the distance between the two modules can be determined by multiplying it by the speed of light c.

[0004] In the prior art, UWB technology is usually used to locate the position of the car key. However, in some cases, the data measured by UWB may be distorted, resulting in a jump in the positioning coordinates, which in turn leads to inaccurate positioning. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a method, system, device and storage medium for predicting the trajectory of an automobile UWB electronic key.

[0006] The technical solution adopted by the present invention to solve the technical problem is: the automobile UWB electronic key trajectory prediction method in the present application comprises:

[0007] Acquire electronic key positioning data at multiple moments before the current moment and electronic key positioning data at the current moment, wherein the electronic key positioning data includes UWB ranging data between multiple anchor points on the vehicle and the electronic key;

[0008] Normalizing the electronic key positioning data at multiple moments before the current moment to obtain normalized data;

[0009] The normalized data is input into a pre-built prediction model to obtain the electronic key positioning prediction data at the current moment.

[0010] In one embodiment of the present application, the method for constructing the prediction model is as follows:

[0011] Acquire a training data set, wherein each of the training data sets includes a plurality of time series samples, each of which includes a plurality of electronic key positioning data as input data and a plurality of electronic key coordinate values ​​as labels;

[0012] The pre-built GRU neural network is trained based on the training data set to obtain a prediction model.

[0013] In one embodiment of the present application, a pre-built GRU neural network is trained based on the training data set to obtain a prediction model, including:

[0014] S1, normalizing the training data set to obtain a normalized training data set, wherein the normalized training data set includes a plurality of normalized time series samples;

[0015] S2, select a set of normalized time series sample training data as the current input data;

[0016] S3, inputting the training data in the current input data into a pre-built GRU neural network to obtain a predicted value;

[0017] S4, calculating the loss between the predicted value and the label value of the current input data based on a pre-constructed cost function;

[0018] S5, adjust the GRU neural network parameters to reduce the loss;

[0019] S6, select the next set of normalized time series samples as the current input data, and repeat S3-S5 to obtain multiple loss values, use the mean square error to evaluate the multiple loss values, and when the loss values ​​tend to converge, the training is completed and the prediction model is obtained.

[0020] In one embodiment of the present application, the calculation formula for normalizing the electronic key positioning data at multiple moments before the current moment, or normalizing the training data in the training data set is:

[0021] The calculation formula for normalizing the labels in the training data set is:

[0022]

[0023] Wherein, d 'is the normalized data, d is the data before normalization, d_min is the minimum distance value in the electronic key positioning data or the training data set at multiple moments before the current moment, and d_max is the maximum distance value in the electronic key positioning data or the training data set at multiple moments before the current moment.

[0024] In one embodiment of the present application, the output of the GRU neural network is further provided with a fully connected neural network for converting the electronic key positioning data into two-dimensional coordinate data.

[0025] In one embodiment of the present application, the multiple anchor points on the vehicle include a lower left corner anchor point of the vehicle, a lower right corner anchor point of the vehicle, an upper left corner anchor point of the vehicle, and an upper right corner anchor point of the vehicle, and the two-dimensional coordinate data is data located in a pre-constructed two-dimensional coordinate system, and the two-dimensional coordinate system takes the lower left corner anchor point of the vehicle as the origin.

[0026] In one embodiment of the present application, it also includes:

[0027] When there is a jump between the electronic key location data at the current time and the electronic key location data at a plurality of times before the current time, the electronic key location data at the current time is corrected based on the electronic key location prediction data at the current time.

[0028] This application also provides a car UWB electronic key trajectory prediction system, including:

[0029] An acquisition module, used to acquire electronic key positioning data at multiple moments before the current moment and the electronic key positioning data at the current moment, wherein the electronic key positioning data includes UWB ranging data between multiple anchor points on the vehicle and the electronic key;

[0030] A preprocessing module, used for normalizing the electronic key positioning data at multiple moments before the current moment to obtain normalized data;

[0031] The prediction module is used to input the normalized data into a pre-built prediction model to obtain the electronic key positioning prediction data at the current moment.

[0032] The present application also provides an electronic device, the electronic device comprising:

[0033] one or more processors;

[0034] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the above-mentioned automobile UWB electronic key trajectory prediction method.

[0035] The present application also 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 is enabled to execute the above-mentioned automobile UWB electronic key trajectory prediction method.

[0036] Beneficial effects of the present invention: The automobile UWB electronic key trajectory prediction method, system, device and storage medium in the present application obtain the electronic key positioning data of multiple moments before the current moment and the electronic key positioning data of the current moment; then normalize the electronic key positioning data of multiple moments before the current moment to obtain normalized data; input the normalized data into a pre-built prediction model to obtain the electronic key positioning prediction data of the current moment; the present application inputs the electronic key positioning data of multiple moments before the current moment into the pre-built prediction model, and uses the prediction model to predict the electronic key positioning prediction data of the current moment. The present application can verify the real-time positioning data based on the electronic key positioning prediction data, thereby verifying the real-time positioning data. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of the process of predicting the trajectory of a UWB electronic key for a car according to the present application;

[0038] Figure 2 A schematic diagram of the electronic key positioning data in this application;

[0039] Figure 3 This is a schematic diagram of the structure of the GRU network model in this application;

[0040] Figure 4 This is a schematic diagram of the structure of the automotive UWB electronic key trajectory prediction system of the present application;

[0041] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] 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.

[0043] 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.

[0044] Example

[0045] like Figure 1 As shown, the automobile UWB electronic key trajectory prediction method in this application includes:

[0046] S100, acquiring electronic key positioning data at multiple moments before the current moment and the electronic key positioning data at the current moment, wherein the electronic key positioning data includes UWB ranging data between multiple anchor points on the vehicle and the electronic key;

[0047] The multiple anchor points on the vehicle in the present application include a lower left corner anchor point of the vehicle, a lower right corner anchor point of the vehicle, an upper left corner anchor point of the vehicle and an upper right corner anchor point of the vehicle. The two-dimensional coordinate data is data located in a pre-constructed two-dimensional coordinate system, and the two-dimensional coordinate system takes the lower left corner anchor point of the vehicle as the origin.

[0048] Figure 2 This is a schematic diagram of the electronic key positioning data in this application, such as Figure 2 As shown, the present application establishes a coordinate system with A1, the lower left corner of the vehicle, as the origin. If the length and width of the vehicle are known, the coordinates of the four anchor points are known; the distances between the electronic key Tag and the four points A1, A2, A3, and A4 are measured through UWB's ToF (Time OfFlight), which are d1, d2, d3, and d4 respectively. It can be seen that each set of distances [d1 d2 d3 d4] can determine a unique Tag coordinate (x, y).

[0049] S200, normalizing the electronic key positioning data at multiple moments before the current moment to obtain normalized data;

[0050] S300, inputting the normalized data into a pre-built prediction model to obtain the electronic key location prediction data at the current moment;

[0051] S400, when there is a jump between the electronic key location data at the current time and the electronic key location data at a plurality of times before the current time, correct the electronic key location data at the current time based on the electronic key location prediction data at the current time.

[0052] Among them, whether there is a jump can be determined by a differential method, a moving window method, a statistical method, etc. No further details are given here. When there is a jump in the electronic key positioning data at the current moment of the actual measurement, there may be a situation where the measurement data is distorted. Therefore, the electronic key positioning prediction data at the previous moment obtained by this application is replaced to complete the smoothing process and replace the distorted data points. Make the overall trajectory more real and accurate.

[0053] In one embodiment of the present application, the method for constructing the prediction model is as follows:

[0054] Acquire a training data set, wherein each of the training data sets includes a plurality of time series samples, each of which includes a plurality of electronic key positioning data as input data and a plurality of electronic key coordinate values ​​as labels;

[0055] In this application, it is assumed that the original positioning data is as shown in Table 1:

[0056]

[0057] Since the motion trajectory of a person is a time series, the position at the current moment is related to the position at the previous moment. If time_step (time step, when time_step=n, it is considered that each value is related to its previous n values) is set to 2, the input data will generate the following time series samples, as shown in Table 2:

[0058] The data dimension is [3, 2, 4]. The first dimension represents 3 time series samples, the second dimension represents the data at 2 moments (the value of time_step), and the third dimension represents the feature dimension 4 of each data.

[0059] Similarly, the output data (x, y) is also constructed into the above time series sample sequence.

[0060] The pre-built GRU neural network is trained based on the training data set to obtain a prediction model.

[0061] Generally, UWB modules are deployed at the four corners of the car, and UWB is also used on the electronic key, so that the distance between the electronic key and the four corners of the vehicle can be obtained. A batch of training samples are constructed, each of which includes both input features, that is, the four distances reported by UWB, and corresponding outputs, that is, the corresponding key fob coordinates. When the model sees enough samples, it can summarize some of the rules and train to obtain the best parameters.

[0062] The trajectory coordinates of the electronic key depend on the user's motion trajectory. The coordinates at the current moment have a strong relationship with the previous trajectory, so it is more appropriate to use RNN (recurrent neural network). However, the standard RNN will have gradient disappearance or gradient explosion, so RNN variants LSTM and GRU are generally used. Compared with GRU and LSTM, the model is simpler than the standard LSTM model, has fewer parameters, occupies less memory, and has similar effects, making it more suitable for embedded development.

[0063] Figure 3 For a schematic diagram of the structure of the GRU network model in this application, please refer to Figure 3 And the following formula:

[0064]

[0065]

[0066]

[0067]

[0068] in is the input information at the current moment, that is, [d1 d2 d3 d4] in the training sample, It is the hidden state of multiple moments before the current moment. The hidden state acts as the memory of the neural network and contains the data information seen by the previous node. is the hidden state passed to the next moment. To reset the gate, it can help capture short-term dependencies in the sequence; For the update gate, it can help preserve long-term dependencies in the sequence.

[0069] The GRU model can set the number of neurons in the hidden layer hidden_size and the number of layers in the hidden layer num_layers. In theory, a larger number of hidden layer units can improve the expressiveness of the model and better fit the data, but it will also lead to a larger number of parameters and a larger memory footprint, so parameter adjustment is required.

[0070] Since the input is [d1 d2 d3 d4] and the output is [x,y], the data is not in one dimension, so a fully connected neural network is connected after the GRU to map it into two-dimensional data [x,y].

[0071] In one embodiment of the present application, a pre-built GRU neural network is trained based on the training data set to obtain a prediction model, including:

[0072] S1, normalizing the training data set to obtain a normalized training data set, wherein the normalized training data set includes a plurality of normalized time series samples;

[0073] S2, select a set of normalized time series sample training data as the current input data;

[0074] S3, inputting the training data in the current input data into a pre-built GRU neural network to obtain a predicted value;

[0075] S4, calculating the loss between the predicted value and the label value of the current input data based on a pre-constructed cost function;

[0076] S5, adjust the GRU neural network parameters to reduce the loss;

[0077] S6, select the next set of normalized time series samples as the current input data, and repeat S3-S5 to obtain multiple loss values, use the mean square error to evaluate the multiple loss values, and when the loss values ​​tend to converge, the training is completed and the prediction model is obtained.

[0078] In the above process, the training samples include both model input and corresponding model target value. The forward propagation of the neural network will obtain the predicted value of the model, and a cost function is used to evaluate the difference between the predicted value and the target value of the neural network, that is, the corresponding loss function. The mean square error (MSE) is used as the loss function to evaluate the effectiveness of the model, and the gradient descent algorithm is used for optimization. The value of the error term is reduced again and again by gradient descent until it converges, so as to obtain the training parameters Weight and bias, thereby training the entire neural network.

[0079] In an embodiment of the present application, data normalization and standardization are methods of feature scaling and are key steps in data preprocessing. After the original data is normalized, each indicator is at the same order of magnitude, which is suitable for comprehensive comparative evaluation.

[0080] Since the distance reported by UWB is a non-negative value, all input data is scaled to the (0, 1) interval. The implementation is as follows:

[0081]

[0082] The above formula is used to normalize the electronic key positioning data at multiple moments before the current moment, or to normalize the training data in the training data set.

[0083] The user's motion trajectory may be on the left or right side of the car, so the output coordinate values ​​may be positive or negative. Therefore, all input data are scaled to the (-1, 1) interval. The implementation method is as follows:

[0084]

[0085] The above formula is used to normalize the labels in the training data set.

[0086] Wherein, d 'is the normalized data, d is the data before normalization, d_min is the minimum distance value in the electronic key positioning data or the training data set at multiple moments before the current moment, and d_max is the maximum distance value in the electronic key positioning data or the training data set at multiple moments before the current moment.

[0087] This application relies on the powerful learning ability of the GRU neural network. When the model sees enough samples, it can summarize the rules and then use the electronic key positioning data at multiple moments before the current moment to predict the electronic key positioning data at the current moment. In terms of functional expansion, what GRU learns depends entirely on the input and output data fed to it. When the prerequisites for UWB trajectory positioning change, only the changed dimensions need to be added to the sample data, and the built network model can still be reused.

[0088] In terms of performance, the error in calculating coordinates caused by the error in the distance reported by UWB can be avoided (as long as the erroneous distance in the training data corresponds to the correct coordinates).

[0089] The automobile UWB electronic key trajectory prediction method in the present application obtains the electronic key positioning data of multiple moments before the current moment and the electronic key positioning data of the current moment; then the electronic key positioning data of multiple moments before the current moment is normalized to obtain normalized data; the normalized data is input into a pre-built prediction model to obtain the electronic key positioning prediction data of the current moment; the present application inputs the electronic key positioning data of multiple moments before the current moment into a pre-built prediction model, and uses the prediction model to predict the electronic key positioning prediction data of the current moment. The present application can verify the real-time positioning data based on the electronic key positioning prediction data, thereby verifying the real-time positioning data. In addition, the present application can also effectively smooth the motion trajectory generated by the UWB electronic key positioning, and when the measurement data is distorted, the trajectory position point can be corrected in a timely and effective manner, thereby obtaining a more accurate electronic key motion trajectory.

[0090] like Figure 4 As shown, the present application also provides a vehicle UWB electronic key trajectory prediction system, including:

[0091] An acquisition module, used to acquire electronic key positioning data at multiple moments before the current moment and the electronic key positioning data at the current moment, wherein the electronic key positioning data includes UWB ranging data between multiple anchor points on the vehicle and the electronic key;

[0092] A preprocessing module, used for normalizing the electronic key positioning data at multiple moments before the current moment to obtain normalized data;

[0093] The prediction module is used to input the normalized data into a pre-built prediction model to obtain the electronic key positioning prediction data at the current moment.

[0094] The automobile UWB electronic key trajectory prediction system in the present application obtains the electronic key positioning data of multiple moments before the current moment and the electronic key positioning data of the current moment; then normalizes the electronic key positioning data of multiple moments before the current moment to obtain normalized data; inputs the normalized data into a pre-built prediction model to obtain the electronic key positioning prediction data of the current moment; the present application inputs the electronic key positioning data of multiple moments before the current moment into a pre-built prediction model, and uses the prediction model to predict the electronic key positioning prediction data of the current moment. The present application can verify the real-time positioning data based on the electronic key positioning prediction data, thereby verifying the real-time positioning data. In addition, the present application can also effectively smooth the motion trajectory generated by the UWB electronic key positioning, and when the measurement data is distorted, the trajectory position points can be corrected in a timely and effective manner, thereby obtaining a more accurate electronic key motion trajectory.

[0095] Figure 5 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: Figure 5 The computer system 500 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.

[0096] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0097] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0098] 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 part 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0099] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may 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 may 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, which carries a computer-readable computer program. This propagated data signal may 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.

[0100] 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.

[0101] 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.

[0102] Another aspect of the present application 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 above method. 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.

[0103] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in each of the above embodiments.

[0104] The above embodiments are only preferred embodiments for fully illustrating the present application, and the protection scope of the present application is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present application is within the protection scope of the present application.

Claims

1. A method for predicting the trajectory of a UWB electronic key for an automobile, characterized in that: include: Acquire electronic key positioning data at multiple moments before the current moment and electronic key positioning data at the current moment, wherein the electronic key positioning data includes UWB ranging data between multiple anchor points on the vehicle and the electronic key; Normalizing the electronic key positioning data at multiple moments before the current moment to obtain normalized data; The normalized data is input into a pre-built prediction model to obtain the electronic key positioning prediction data at the current moment. The prediction model is constructed as follows: obtain a training data set, wherein the training data set includes multiple groups of time series samples, each time series sample includes multiple groups of electronic key positioning data as input data and multiple groups of electronic key coordinate values ​​as labels; based on the training data set, a pre-built GRU neural network is trained to obtain a prediction model; based on the training data set, a pre-built GRU neural network is trained to obtain a prediction model, including: S1, normalizing the training data set to obtain a normalized training data set, wherein the normalized training data set includes multiple normalized time series samples; S2, selecting a group of normalized The training data of the time series samples after the current input data is used as the current input data; S3, the training data in the current input data is input into the pre-constructed GRU neural network to obtain the predicted value; S4, the loss between the predicted value and the label value of the current input data is calculated based on the pre-constructed cost function; S5, the GRU neural network parameters are adjusted to reduce the loss; S6, the next group of normalized time series samples is selected as the current input data, and S3-S5 are repeated to obtain multiple loss values, and the multiple loss values ​​are evaluated using the mean square error. When the loss value tends to converge, the training is completed and the prediction model is obtained; the calculation formula for normalizing the electronic key positioning data at multiple moments before the current moment, or the calculation formula for normalizing the training data in the training data set is: d'=(d-d_min) / (d_max-d_min) The calculation formula for normalizing the labels in the training data set is: d'=((d-d_min) / (d_max-d_min))*2-1 Wherein, d' is the normalized data, d is the data before normalization, d_min is the minimum distance value in the electronic key positioning data or the training data set at multiple times before the current moment, and d_max is the maximum distance value in the electronic key positioning data or the training data set at multiple times before the current moment; When there is a jump between the electronic key location data at the current time and the electronic key location data at a plurality of times before the current time, the electronic key location data at the current time is corrected based on the electronic key location prediction data at the current time.

2. The method for predicting the trajectory of a UWB electronic key for an automobile according to claim 1, characterized in that: The output of the GRU neural network is also provided with a fully connected neural network for converting the electronic key positioning data into two-dimensional coordinate data.

3. The method for predicting the trajectory of a UWB electronic key for an automobile according to claim 2, characterized in that: The multiple anchor points on the vehicle include a lower left corner anchor point, a lower right corner anchor point, an upper left corner anchor point and an upper right corner anchor point of the vehicle. The two-dimensional coordinate data is data located in a pre-constructed two-dimensional coordinate system, and the two-dimensional coordinate system takes the lower left corner anchor point of the vehicle as the origin.

4. Automobile UWB electronic key trajectory prediction system, characterized by: include: An acquisition module, used to acquire electronic key positioning data at multiple moments before the current moment and the electronic key positioning data at the current moment, wherein the electronic key positioning data includes UWB ranging data between multiple anchor points on the vehicle and the electronic key; A preprocessing module, used for normalizing the electronic key positioning data at multiple moments before the current moment to obtain normalized data; The prediction module is used to input the normalized data into a pre-built prediction model to obtain the electronic key positioning prediction data at the current moment, and the prediction model is constructed as follows: obtain a training data set, wherein the training data set includes multiple groups of time series samples, each time series sample includes multiple groups of electronic key positioning data as input data and multiple groups of electronic key coordinate values ​​as labels; based on the training data set, a pre-built GRU neural network is trained to obtain a prediction model; based on the training data set, a pre-built GRU neural network is trained to obtain a prediction model, including: S1, normalizing the training data set to obtain a normalized training data set, wherein the normalized training data set includes multiple normalized time series samples; S2, selecting a group The normalized training data of the time series samples is used as the current input data; S3, the training data in the current input data is input into the pre-constructed GRU neural network to obtain a predicted value; S4, the loss between the predicted value and the label value of the current input data is calculated based on the pre-constructed cost function; S5, the GRU neural network parameters are adjusted to reduce the loss; S6, the next set of normalized time series samples is selected as the current input data, and S3-S5 are repeated to obtain multiple loss values, and the multiple loss values ​​are evaluated using the mean square error. When the loss value tends to converge, the training is completed and the prediction model is obtained; the calculation formula for normalizing the electronic key positioning data at multiple moments before the current moment, or the calculation formula for normalizing the training data in the training data set is: d'=(d-d_min) / (d_max-d_min) The calculation formula for normalizing the labels in the training data set is: d'=((d-d_min) / (d_max-d_min))*2-1 Wherein, d' is the normalized data, d is the data before normalization, d_min is the minimum distance value in the electronic key positioning data or the training data set at multiple times before the current moment, and d_max is the maximum distance value in the electronic key positioning data or the training data set at multiple times before the current moment; The correction module is used to correct the electronic key positioning data at the current moment based on the electronic key positioning prediction data at the current moment when there is a jump between the electronic key positioning data at the current moment and the electronic key positioning data at multiple moments before the current moment.

5. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement the automotive UWB electronic key trajectory prediction method as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is enabled to execute the automobile UWB electronic key trajectory prediction method according to any one of claims 1 to 3.