An electric vehicle active sound generation method and system based on shift strategy migration

The GRU-RNN model predicts the rotation speed and sound pressure level of electric vehicles, synthesizes active sound sources, solves the problem of electric vehicles lacking a shifting strategy sound field, realizes a simulated transmission internal combustion engine sound field, and improves the driving experience.

CN112298031BActive Publication Date: 2024-09-06COLSONIC SUZHOU ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011179860.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-29
Publication Date
2024-09-06
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

Electric vehicles lack sound feedback that matches the motion state, resulting in a poor driving experience. Existing technologies are mainly based on traditional internal combustion engine sound quality research and fail to effectively simulate the sound field of electric vehicles' shifting strategies.

Method used

A deep learning network based on the GRU-RNN model is used to predict the rotation speed and sound pressure level through vehicle body parameters, synthesize the corresponding active sound source, and play it through the speaker to simulate the in-car sound field environment of a transmission internal combustion engine model.

Benefits of technology

It is possible to simulate a realistic in-vehicle sound field environment of transmission internal combustion engine models on electric vehicles, which improves driving pleasure and reduces work difficulty. There is no need to artificially build approximate models, and the shifting strategy is decoupled from the sound style, allowing the same vehicle to have different The vehicle's sound style and shifting strategy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112298031B
    Figure CN112298031B
Patent Text Reader

Abstract

The present invention discloses an active sound generation method and system for electric vehicles based on shift strategy migration. An active sound generation method for electric vehicles based on shift strategy migration comprises the following steps: collecting body parameters of the electric vehicle; sending the body parameters to a pre-trained GRU-RNN model, predicting the number of revolutions and the sound pressure level through the GRU-RNN model; and synthesizing a corresponding active sound source according to the number of revolutions, adjusting the amplitude of the active sound source according to the sound pressure level, and playing it through an in-vehicle speaker. The present invention can simulate a realistic in-vehicle sound field environment of a transmission internal combustion engine vehicle model, and experience better driving pleasure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of active sound generation of electric vehicles, and relates to an active sound generation method and system of electric vehicles based on shift strategy migration. Background Art

[0002] As environmental standards become increasingly stringent, new energy electric vehicles will gradually become mainstream, and with the development of acoustic technology, the acoustic environment inside electric vehicles is becoming quieter and quieter. But at the same time, more and more car owners also hope that there will be sounds in the car that match the movement state, with sound feedback, and a better driving experience.

[0003] Because the sound of traditional internal combustion engines, which symbolizes vitality and is deep and powerful, has been widely accepted by the public, the current mainstream research is based on the sound quality of traditional internal combustion engines. Through the sound quality research of traditional internal combustion engines, similar styles of sounds are synthesized on electric vehicles. However, in addition to sound quality, shifting strategy is also a relatively important part. Through complex shifting strategies, more charming sounds can be matched.

[0004] Unlike traditional fuel vehicles, electric vehicles do not have the concept of speed shifting. In view of this, a method and system for actively making sounds in electric vehicles that takes into account a virtual shifting strategy is needed. Summary of the invention

[0005] The purpose of the present invention is to provide an electric vehicle active sound generation method and system based on shift strategy migration, which can simulate a realistic in-vehicle sound field environment of an internal combustion engine vehicle and provide a better driving experience.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is:

[0007] An active sound generation method for an electric vehicle based on a shift strategy migration comprises the following steps:

[0008] Collect body parameters of electric vehicles;

[0009] The vehicle body parameters are fed into a pre-trained GRU-RNN model, and the number of revolutions and the sound pressure level are predicted by the GRU-RNN model; and

[0010] A corresponding active sound source is synthesized according to the number of revolutions, the amplitude of the active sound source is adjusted according to the sound pressure level, and the sound is played through a speaker in the vehicle.

[0011] In one embodiment, the GRU-RNN model is pre-trained by the following steps:

[0012] a. Select the traditional internal combustion engine model to be studied;

[0013] b. Collecting the vehicle body data of the selected internal combustion engine vehicle model under various operating conditions and the sound pressure level at the ears of the occupants of the vehicle, wherein the vehicle body data includes the number of revolutions;

[0014] c. The vehicle body data except the number of revolutions and the mode depending on the traditional internal combustion engine vehicle model are used as input signals, and the number of revolutions and the sound pressure level are used as output signals, and are sent to the GRU-RNN model for training.

[0015] In one embodiment, the GRU-RNN model has five input layer units corresponding to vehicle speed, throttle, torque, gear position and mode. The mode is used to distinguish and simulate the shift strategies of different vehicle models or the shift strategies of different styles of the same vehicle. In the electric vehicle active sound system, it is a parameter that the user needs to set.

[0016] In one embodiment, the GRU-RNN model has at least three hidden layers, and the activation function of the hidden layer is relu.

[0017] In one embodiment, the GRU-RNN model has two output layer units corresponding to the rotation speed and the sound pressure level respectively, and the activation function of the output layer is sigmoid.

[0018] In one embodiment, the vehicle body parameters include the speed, throttle, torque, and gear of the electric vehicle. The speed, throttle, and torque are respectively normalized and sent to a pre-trained GRU-RNN model.

[0019] In one embodiment, the vehicle body data also includes the vehicle speed, throttle, torque, and gear of a traditional internal combustion engine vehicle. The vehicle speed, the throttle, the torque, the gear, the number of revolutions, and the sound pressure level are normalized and sent to the GRU-RNN model for training.

[0020] In one embodiment, in step c, the GRU-RNN model is trained by a BP algorithm until convergence.

[0021] In one embodiment, the step of synthesizing a corresponding active sound source according to the rotation number specifically includes:

[0022] S1, obtaining the amplitude and phase of 1, 2, ..., R subharmonics at multiple frequency points of a sound source, and storing them as a frequency amplitude phase parameter table;

[0023] S2, converting the corresponding fundamental frequency f according to the rotation speed;

[0024] S3, searching the position of the fundamental frequency f in the frequency amplitude phase parameter table;

[0025] S4. According to the position of the fundamental frequency f, the amplitude and phase of all harmonics at the fundamental frequency point are obtained by interpolation;

[0026] S5. Synthesize the in-vehicle active sound signal according to the fundamental frequency f, the amplitude and phase of each order harmonic.

[0027] Preferably, the step S1 specifically includes:

[0028] S11, obtaining a sound of pure acceleration or pure deceleration of the engine as a sound source, and converting the sound source into a frequency spectrum;

[0029] S12, obtaining a set of candidate frequency points and corresponding spectrum amplitudes of a frame of data in the spectrum graph;

[0030] S13, selecting a set of candidate frequency points for the next frame of data and corresponding spectrum amplitudes based on the candidate frequency points obtained for the previous frame of data;

[0031] Repeat step S13 until the candidate frequency point sets and corresponding spectrum amplitudes of all frames are obtained;

[0032] S14, respectively connect the frequency points of all frames corresponding to the same j value and different i values ​​into lines, multiply the obtained lines with the corresponding spectrum amplitude values, and select the line with the largest multiplication result as the base frequency line, where j is the subscript of a certain frequency point in the candidate frequency point set to which it belongs, and i is the frame number;

[0033] S15. In the spectrum diagram, according to the fundamental frequency line, respectively obtain the amplitude and phase of the 1st, 2nd, ..., Rth harmonics.

[0034] Preferably, the step S12 further comprises:

[0035] S12-1, intercepting the first frame data x(n), where n is a discrete time subscript, satisfying n=0, ..., L1-1, and L1 is a preset length of the first frame data;

[0036] S12-2. Calculate the autocorrelation function R(m) of the intercepted data according to formula (1), where m is the subscript in the autocorrelation domain.

[0037]

[0038] Select the subscripts corresponding to the largest N peaks in R(m) within a specified preset search interval, where N is the preset number of candidate frequency points, convert the corresponding frequency points according to the subscripts corresponding to the peaks in the autocorrelation domain, and calculate the spectrum amplitudes of these candidate frequency points by discrete Fourier transform;

[0039] S12-3, according to formula (2), calculate the SHC function of the intercepted data,

[0040]

[0041] Where f is the frequency, X(f) is the discrete Fourier transform of x(n), r = 1, ..., H, H is the total number of preset harmonics, and f' = -L f ,…,L f , L f is a preset frequency range; the frequencies corresponding to the largest N peaks are selected from SHC(f) within the specified preset search interval, and the spectrum amplitudes corresponding to these candidate frequency points are obtained by discrete Fourier transform;

[0042] S12-4, shortening the first frame data x(n) by half, and on this basis, obtaining corresponding candidate frequency points and corresponding spectrum amplitudes according to steps S12-2 and S12-3 respectively;

[0043] S12-5, merge the candidate frequency points obtained from step S12-2 to step S12-4. If the ratio of two candidate frequency points is less than a preset value δ, merge them. The new candidate frequency point is the average value of the two frequency points, and the spectrum amplitude is the maximum value of the corresponding amplitudes of the two frequency points. Sort the candidate frequency points after merging according to the corresponding spectrum amplitude values ​​from large to small. If the number of candidate frequency points after merging is greater than 2N, remove the candidate frequency point with the smallest corresponding spectrum amplitude value until the number of candidate frequency points after merging is equal to 2N. At the same time, a counter is equipped for each frequency point, and the initial value is the preset value integer C. max .

[0044] Preferably, the step S13 further comprises:

[0045] S13-1, based on the previous frame, move the FRAME_LEN point as the starting position of the current frame, where FRAME_LEN is a preset parameter value, and determine the length L of the current frame according to the candidate frequency points of the previous frame i =α*T max , where i is the current frame index, T max is the period length corresponding to the minimum frequency point of the candidate frequency points in the previous frame, and α is a preset multiple;

[0046] S13-2. Obtain the frequency point set F of the current frame c and the corresponding spectrum amplitude.

[0047] S13-3, sequentially according to the candidate frequency point set F of the previous frame i-1 The frequency in F c The closest point is selected from the set F, which satisfies the frequency point ratio less than the preset value δ and serves as the candidate frequency point set F for the current frame. i ;

[0048] S13-4, if in F c There is no F i-1 At a certain frequency point f i-1,j The corresponding frequency point, where j is the subscript in the set; then in f i-1,j Search the SHC value in the preset vicinity, and select the frequency point corresponding to the maximum SHC value as the new frequency point f i,j , and record the corresponding spectrum amplitude, and reduce the corresponding counter value by 1;

[0049] S13-5, check the counters corresponding to each candidate frequency, if the value of the counter is 0, replace this frequency, after replacing the frequency, reset the corresponding counter value to the preset initial value C max ;

[0050] S13-6. Obtain the candidate frequency point set F of the current frame i , the corresponding spectrum amplitude and the corresponding counter value.

[0051] Another technical solution adopted by the present invention is:

[0052] An electric vehicle active sound system based on shift strategy migration, comprising:

[0053] A body parameter acquisition module, which is used to obtain body parameters of the electric vehicle;

[0054] A prediction model, which is used to predict the number of revolutions and the sound pressure level according to the vehicle body parameters;

[0055] An active sound source synthesis module, which is used to synthesize the corresponding active sound source according to the rotation number, and adjust the amplitude of the active sound source according to the sound pressure level;

[0056] A loudspeaker is used to play sound according to the active sound source generated by the active sound source synthesis module.

[0057] In one embodiment, the prediction model is a GRU-RNN model, which is pre-trained by the following steps:

[0058] a. Select the traditional internal combustion engine model to be studied;

[0059] b. Collecting the vehicle body data of the selected internal combustion engine vehicle model under various operating conditions and the sound pressure level at the ears of the occupants of the vehicle, wherein the vehicle body data includes the number of revolutions;

[0060] c. The vehicle body data except the number of revolutions and the mode depending on the traditional internal combustion engine vehicle model are used as input signals, and the number of revolutions and the sound pressure level are used as output signals, and are sent to the GRU-RNN model for training.

[0061] In one embodiment, the vehicle body parameter acquisition module includes a CAN bus for communicating with the electric vehicle.

[0062] The present invention adopts the above solution, which has the following advantages compared with the prior art:

[0063] The present invention adopts an RNN deep learning network based on a GRU structure, which can better simulate the current number of revolutions according to the vehicle body parameters. Because the deep learning network is highly nonlinear, the corresponding shifting strategy can be directly learned from the data, and there is no need to manually establish an approximate model, which reduces the difficulty of the work. The shifting strategy is decoupled from the sound style, and they are designed independently with clear division of labor. In this way, the sound style of the traditional internal combustion engine model A and the shifting strategy of the traditional internal combustion engine model B can be simultaneously used on the same electric vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0065] Figure 1 A schematic diagram of a GRU-RNN model used according to an embodiment of the present invention;

[0066] Figure 2 for Figure 1 Schematic diagram of the GRU structure of the GRU-RNN model shown;

[0067] Figure 3 is the short-time Fourier transform spectrum;

[0068] Figure 4 is the multi-line frequency tracked;

[0069] Figure 5 The figure is a block diagram of an active sound generation system for an electric vehicle according to an embodiment of the present invention.

[0070] in:

[0071] 1. Vehicle body parameter acquisition module; 2. Prediction model; 3. Active sound source synthesis module; 31. Frequency phase parameter module; 32. Interpolation module; 33. Synthesis module; 4. Sound field control module; 5. Driving amplifier; 6. Speaker. DETAILED DESCRIPTION

[0072] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0073] Training the GRU-RNN model

[0074] 1. Select a model that matches the traditional internal combustion engine model.

[0075] 2. Collect vehicle body data under various operating conditions through the CAN bus: vehicle speed, throttle, torque, gear position and number of revolutions, and record the corresponding sound pressure level at the driver's ear in the car through acoustic measurement equipment.

[0076] 3. The vehicle speed data is normalized according to the maximum vehicle speed designed for the vehicle, the throttle data is normalized according to the maximum throttle number, the torque data is normalized according to the maximum torque data, the gear data only records the P gear, N gear, R gear and D gear (if the D gear is further subdivided, it is uniformly processed as the D gear), and the P gear is assigned to 0, the N gear is 1, the R gear is 2, and the D gear is 3. The speed data is normalized according to the maximum speed data, and the sound pressure level data (in dB) is normalized according to the maximum sound pressure level.

[0077] 4. Use vehicle speed, throttle, torque, gear as input signals, plus a mode as input signal. The significance of the mode signal is that if there are multiple benchmark models, a set of parameters can be shared. Therefore, the mode code represents different models, and non-negative integers are used to represent different models. If there is only one benchmark model, the mode input value is always 0. Use the number of revolutions and sound pressure level as output signals. Send the collected data to the prediction model for training through the BP algorithm until convergence.

[0078] Specifically, the prediction model is an RNN model based on the GRU structure (GRU-RNN model). In practice, it is observed that the shift strategy is not only related to the current input parameters, but also to the state at the previous time, so the GRU-RNN model is used to match this nonlinear process.

[0079] like Figure 1 As shown in the figure, the number of RNN input layer units is 5, corresponding to vehicle speed, throttle, torque, gear position and mode respectively. There are three hidden layers, each with N units, N is a preset value, and the activation function of the hidden layer is the relu function. The number of output layer units is 2, corresponding to the number of revolutions and sound pressure level, and the output layer activation function is sigmoid. The mathematical expressions of the above activation functions relu and sigmoid are: y = max(0,x), y = 1 / (1+e-x ).

[0080] The GRU structure is as follows Figure 2 As shown. Among them:

[0081] z t =sigmoid(W z ·[h t-1 , x t ])

[0082] r t =sigmoid(W r ·[h t-1 , xt])

[0083]

[0084]

[0085] Where W z and W r is the corresponding weight function, x t is the hidden layer input, h t is the hidden layer output, h t-1 is the hidden layer output at the previous time.

[0086] Prediction through GRU-RNN model

[0087] In new energy electric vehicles, vehicle body parameters such as vehicle speed, throttle, torque, gear, etc. are collected through CAN and normalized, and the normalized data is sent to the above-mentioned trained prediction model (i.e., GRU-RNN model). The corresponding normalized speed and sound pressure level are predicted through the network model. According to the normalized speed, the corresponding active sound source is synthesized (such as sine wave synthesis or waveform splicing methods), and the amplitude of the synthesized sound source is adjusted according to the sound pressure level, and played through the speakers in the car.

[0088] Active sound generation method for electric vehicles

[0089] This embodiment also provides a specific method for actively generating sound in an electric vehicle, comprising the following steps:

[0090] S1. The amplitude and phase of the 1st, 2nd, ..., Rth harmonics at multiple frequency points of a sound source are obtained in advance by the following multi-scale multi-line fundamental frequency analysis algorithm, and stored as a frequency amplitude phase parameter table;

[0091] S2, obtaining the body parameters of the electric vehicle and converting them into the corresponding fundamental frequency f according to the body parameters;

[0092] S3, searching the frequency amplitude phase parameter table for the position of the fundamental frequency f (e.g., f n<f<f n+1 );

[0093] S4. According to the position of the fundamental frequency f, the amplitude A of all harmonics at the fundamental frequency point is obtained by interpolation. k and phase φ k ;

[0094] S5. Synthesize the corresponding engine signal

[0095] In the above formula, K is the effective harmonic order, k=1…K, and t is time.

[0096] Step S1 is specifically as follows:

[0097] S11. Obtain a pure accelerated or decelerated sound source, which can be obtained by downloading from the Internet or re-recording. Figure 3 The short-time Fourier transform spectrum diagram of the sound source selected in this embodiment is shown.

[0098] S12, initialization phase (first frame):

[0099] S12.0, intercepting the first frame data x(n), where n is a discrete time subscript, satisfying n=0, ..., L1-1, L1 is the preset length of the first frame data;

[0100] S12.1. Find the autocorrelation function R(m) of the intercepted data, where m is the subscript in the autocorrelation domain.

[0101]

[0102] Select the subscripts corresponding to the largest N peaks in R(m) within the specified preset search interval (if there are no N peaks, select the subscript corresponding to the actual peak; if no peak exists, select the subscript corresponding to the maximum value), where N is the preset number of candidate frequency points, convert the corresponding frequency points according to the subscripts corresponding to the peaks in the autocorrelation domain, and calculate the spectral amplitudes of these candidate frequency points through discrete Fourier transform.

[0103] S12.2. Calculate the SHC (Spectral Harmonics Correlation) function of the intercepted data

[0104]

[0105] Where f is the frequency, X(f) is the discrete Fourier transform of x(n), r = 1, ..., H is the subscript of the number of harmonics, H is the total number of preset harmonics, and f' = -L f ,…,L f is the frequency range subscript, L fis the preset frequency range. The frequencies corresponding to the largest N peaks are selected from SHC(f) within the specified preset search interval (if there are no N peaks, the frequencies corresponding to the actual peaks are selected; if no peaks exist, the frequencies corresponding to the maximum values ​​are selected), and the spectrum amplitudes corresponding to these candidate frequency points are obtained by discrete Fourier transform.

[0106] S12.3, shorten the first frame data x(n) by half, and on this basis, obtain the corresponding candidate frequency points and the corresponding spectrum amplitudes according to steps S12.1 and S12.2 respectively. In the interval where the speed changes rapidly, some fundamental frequency points may be submerged due to the excessive length. By shortening the length, these fundamental frequency points can be obtained on different time scales.

[0107] S12.4, merge the candidate frequency points obtained in steps S12.1-12.3. If the ratio of two candidate frequency points is less than the preset value δ, merge them. The new candidate frequency point is the average value of the two frequency points, and the spectrum amplitude is the maximum value of the corresponding amplitudes of the two frequency points. Sort the candidate frequency points after merging according to the corresponding spectrum amplitude values ​​from large to small. If the number of candidate frequency points after merging is greater than 2N, remove the candidate frequency point with the smallest corresponding spectrum amplitude value until the number of candidate frequency points after merging is equal to 2N. At the same time, a counter is equipped for each frequency point, and the initial value is the preset value integer C. max

[0108] S13, tracking phase:

[0109] S13.1. Based on the previous frame, move the FRAME_LEN point as the starting position of the current frame, where FRAME_LEN is a preset parameter value, and determine the length L of the current frame based on the candidate frequency points of the previous frame. i =α*T max , where i is the current frame index, T max is the period length corresponding to the minimum frequency point of the candidate frequency points in the previous frame, and α is a preset multiple.

[0110] S13.2. Obtain the frequency point set F according to steps S12.1-12.4 c and the corresponding spectrum amplitude.

[0111] S13.3. According to the candidate frequency point set F of the previous frame i-1 The frequency in F c The closest point is selected from the set F, which satisfies the frequency point ratio less than the preset value δ and serves as the candidate frequency point set F for the current frame. i .

[0112] S13.4. Follow S13.3 if F cThere is no F i-1 At a certain frequency point f i-1,j The corresponding frequency point, where j is the subscript in the set. Then in f i-1,j Search the SHC value in the preset vicinity, and select the frequency point corresponding to the maximum SHC value as the new frequency point f i,j , and record the corresponding spectrum amplitude, and reduce the corresponding counter value by 1.

[0113] Sometimes at certain speeds, the fundamental frequency value may not be prominent or disappear, so it cannot be immediately determined that the fundamental frequency value has disappeared.

[0114] S13.5. Based on S13.4, check the counters corresponding to each candidate frequency. If the value of any counter is 0, replace this frequency. The replacement rule is: A. If F c If the frequency point with the largest spectrum amplitude is not selected in step S13.3-13.4, then select this frequency point; B. If condition A is not met, then select the frequency point in F c Select the frequency point closest to the current frequency. After replacing the frequency, reset the corresponding counter value to the preset initial value C max .

[0115] S13.6. Obtain the candidate frequency point set F of the current frame according to the above steps i , the corresponding spectrum amplitude and the corresponding counter value.

[0116] S14, after calculating the candidate frequency points of all frames, f i,j Connect a line corresponding to the same j value and different i values, multiply the spectrum amplitude values ​​corresponding to this line, and select the line with the largest multiplication result as the final base frequency line, such as Figure 4 shown.

[0117] Because multiple continuous lines may be searched, the fundamental frequency line may not be dominant in some local areas, but may be dominant in the overall area. Therefore, it will be more reliable to select the results in a global way.

[0118] S15. In the short-time Fourier transform spectrum, according to the candidate frequency point line, the amplitudes and phases of the 1st, 2nd, ..., Rth harmonics are obtained respectively.

[0119] In step S2, the collected body parameters of the electric vehicle, such as the throttle, speed, and pedal, are normalized and input into the pre-trained GRU-RNN model to predict the speed and sound pressure level, and obtain the corresponding fundamental frequency f through the speed.

[0120] In step S5, the weight coefficients of harmonics of various orders are adjusted according to the sound pressure level obtained in step S2 to obtain the expected amplitude and phase of the total harmonics.

[0121] Electric vehicle active sound system

[0122] This embodiment also provides a specific electric vehicle active sound system. Figure 5 As shown, the active sound system of the electric vehicle includes: a vehicle body parameter acquisition module 1, a prediction model 2, an active sound source synthesis module 3, a sound field control module 4, a driving amplifier 5 and an in-vehicle speaker 6.

[0123] The body parameter acquisition module 1 is used to acquire the body parameters of the electric vehicle. In this embodiment, a CAN bus for communicating with the electric vehicle is specifically used. The body parameters are specifically vehicle speed, throttle, torque, and gear position.

[0124] Prediction model 2 is used to predict the speed and sound pressure level according to the vehicle body parameters. In this embodiment, the GRU-RNN model pre-trained by the training method described above is specifically used, and the normalized vehicle speed, throttle, torque, and gear are input into the trained GRU-RNN model to predict and output the speed and sound pressure level.

[0125] The active sound source synthesis module 3 is used to synthesize the corresponding active sound source according to the number of revolutions, and adjust the amplitude of the active sound source according to the sound pressure level. Specifically, the active sound source synthesis module 3 includes a frequency phase parameter module 31, an interpolation module 32 and a synthesis module 33. The frequency phase parameter module 31 receives a sound source of pure acceleration or pure deceleration, and analyzes the amplitude and phase of the 1, 2, ..., R harmonics at multiple frequency points according to the multi-scale multi-line fundamental frequency analysis algorithm mentioned above, and stores them as a frequency amplitude phase parameter table. One input end of the interpolation module 32 is electrically connected to the output end of the frequency phase parameter module 31 to obtain the frequency amplitude phase parameter table, and the other input end of the interpolation module 32 is electrically connected to the output end of the prediction model 2 to obtain the predicted number of revolutions and sound pressure level, and finds its position in the frequency amplitude phase parameter table according to the fundamental frequency corresponding to the speed, and obtains the amplitude and phase of all harmonics at the fundamental frequency point through the interpolation algorithm. The input end of the synthesis module 33 is electrically connected to the output end of the interpolation module 32, and is used to obtain the amplitude and phase of all harmonics at the fundamental frequency point. The corresponding engine signal is synthesized, and the weight coefficients of each order of harmonics are adjusted according to the sound pressure level to obtain the expected amplitude and phase of the total harmonics, and the active sound source signal is output.

[0126] The input end of the sound field control module 4 is electrically connected to the output end of the synthesis module 33 for debugging the in-vehicle sound field through the sound field control debugging technology.

[0127] The input end of the driving amplifier 5 is electrically connected to the output end of the sound field control module 4 to convert the synthesized active sound source signal into an analog signal and feed it to the speaker 6 in the car for playback. When the speaker 6 in the car is a digital speaker 6, the input end of the speaker 6 is directly electrically connected to the synthesis module without the driving amplifier 5.

[0128] The active sound generation method and system of electric vehicles in this embodiment can maintain the inheritance of the sound DNA of traditional internal combustion engine car brands. Although the active sound source can be completely redesigned, it is difficult to gain user recognition due to its strong subjectivity and individuality. The internal combustion engine sounds of some existing models with a long history have been recognized by the public, and the use of this method can maintain the original sound characteristics and make it easier to enter the market. Only a sound source of continuous acceleration and continuous deceleration is required, because the sound source of continuous acceleration or deceleration contains all the speed information, which can avoid recording a lot of time and manpower. There are many acceleration or deceleration sound sources of different internal combustion engine models on the Internet. Through our high-precision analysis algorithm, there is no need to obtain the speed signal through CAN, and the corresponding fundamental frequency can be better estimated. Further, the corresponding sound source parameters can be obtained, thereby avoiding re-recording the sound source and saving a lot of time and manpower.

[0129] The above embodiment is only for illustrating the technical concept and features of the present invention, and is a preferred embodiment. Its purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and it cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. An electric vehicle active sound generation method based on shift strategy migration, characterized in that: The steps include: Collect body parameters of electric vehicles; The vehicle body parameters are fed into a pre-trained GRU-RNN model, and the GRU-RNN model is used to predict the number of revolutions and the sound pressure level; and A corresponding active sound source is synthesized according to the rotation number, the amplitude of the active sound source is adjusted according to the sound pressure level, and the sound is played through a speaker in the vehicle.

2. The electric vehicle active sound generation method according to claim 1, characterized in that: The GRU-RNN model is pre-trained through the following steps: a. Select the traditional internal combustion engine model to be studied; b. Collecting vehicle body data of the selected internal combustion engine vehicle under various operating conditions and sound pressure levels at the ears of vehicle occupants, wherein the vehicle body data includes revolutions; c. The vehicle body data excluding the number of revolutions and the mode depending on the traditional internal combustion engine vehicle model are used as input signals, and the number of revolutions and the sound pressure level are used as output signals, which are fed into the GRU-RNN model for training.

3. The electric vehicle active sound generation method according to claim 1 or 2, characterized in that: The GRU-RNN model has five input layer units corresponding to vehicle speed, throttle, torque, gear position and mode respectively.

4. The electric vehicle active sound generation method according to claim 1 or 2, characterized in that: The GRU-RNN model has at least three hidden layers, and the activation function of the hidden layer is relu.

5. The electric vehicle active sound generation method according to claim 1 or 2, characterized in that: The GRU-RNN model has two output layer units corresponding to the rotation speed and the sound pressure level respectively, and the activation function of the output layer is sigmoid.

6. The electric vehicle active sound generation method according to claim 2, characterized in that: The vehicle body parameters include the speed, throttle, torque, and gear of the electric vehicle, and the speed, throttle, and torque are normalized and then fed into a pre-trained GRU-RNN model; and / or The vehicle body data also includes the vehicle speed, throttle, torque, and gear of a traditional internal combustion engine vehicle. The vehicle speed, throttle, torque, gear, revolutions, and sound pressure level are normalized and then fed into the GRU-RNN model for training.

7. The electric vehicle active sound generation method according to claim 2, characterized in that: In the step c, the GRU-RNN model is trained by the BP algorithm until convergence.

8. An electric vehicle active sound system based on shift strategy migration, characterized in that: include: A body parameter acquisition module, which is used to obtain the body parameters of the electric vehicle; A prediction model, configured to predict the speed and sound pressure level based on the vehicle body parameters; an active sound source synthesis module, which is used to synthesize a corresponding active sound source according to the number of revolutions and adjust the amplitude of the active sound source according to the sound pressure level; A loudspeaker is used to play sound according to the active sound source generated by the active sound source synthesis module.

9. The electric vehicle active sound system according to claim 8, characterized in that: The prediction model is a GRU-RNN model, which is pre-trained by the following steps: a. Select the traditional internal combustion engine model to be studied; b. Collecting vehicle body data of the selected internal combustion engine vehicle under various operating conditions and sound pressure levels at the ears of vehicle occupants, wherein the vehicle body data includes revolutions; c. Sending the vehicle body data except the revolutions and the mode depending on the traditional internal combustion engine vehicle model as input signals, and the revolutions and the sound pressure level as output signals to the GRU-RNN model for training.

10. The electric vehicle active sound system according to claim 8, characterized in that: The vehicle body parameter acquisition module includes a CAN bus that communicates with the electric vehicle.