Acoustic signal multi-feature fusion-based overload truck axle type identification method

Through the multi-feature fusion of acoustic signals and the improved PSO-BP classifier, the recognition problem of video image processing methods in complex environments is solved, the recognition accuracy and robustness of overloaded truck axle types are improved, and resource consumption is reduced.

CN118629429APending Publication Date: 2024-09-10NANJING UNIV OF SCI & TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410886913.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing truck axle type classification and identification method based on video image processing is susceptible to interference from the external environment, occupies a large amount of cloud storage resources, and contains duplicate invalid data, which reduces the effectiveness and stability of data analysis. Acoustic signal detection of overloaded truck axles It is more difficult to identify types in complex environments.

Method used

Using a method based on multi-feature fusion of acoustic signals, a one-stage parallel formula is performed by extracting features such as short-time energy, linear prediction cepstrum coefficient LPCC, Mel cepstral coefficient MFCC and their first-order difference, gamma pass filter coefficient GFCC, etc. Weighted feature fusion and two-stage t-distributed random neighbor embedding feature fusion are combined with the improved PSO-BP classifier for training to realize the recognition of overloaded truck axle type.

Benefits of technology

It improves the robustness and accuracy of axle type recognition of overloaded trucks, enhances the performance of the audio processing system, reduces memory consumption and feature extraction complexity, and improves the recognition ability in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004926304070000241
    Figure BDA0004926304070000241
  • Figure FDA0004926304060000062
    Figure FDA0004926304060000062
  • Figure BDA0004926304070000071
    Figure BDA0004926304070000071
Patent Text Reader

Abstract

The invention discloses an overload truck axle type identification method based on sound multi-feature fusion and an optimization classifier. Firstly, according to GB1589-2016, the axle types of the overload trucks are divided into five types including two axles, three axles, four axles, five axles and six axles, audios of the overload trucks of different axle types under different working conditions (different overload ratios, different driving speeds and the like) are collected, and meanwhile audio signals are preprocessed. Secondly, selecting short-time energy and a linear predictive cepstrum coefficient (LPCC) as time domain features, and selecting a Mel-frequency cepstrum coefficient (MFCC) and a first-order difference thereof, and a gamma pass filter coefficient (GFCC) as frequency domain features; and thirdly, carrying out first-stage parallel weighted feature fusion and second-stage t-distributed random neighbor embedding feature fusion on the extracted time-frequency features, and finally training and testing the fused features by adopting an improved PSO-BP classifier to obtain a classification model. According to the method, the limitation of a single sound signal feature on overload truck axle type recognition is considered, different types of acoustic features are fused in a staged and multi-level mode, the synergistic effect and the distinction degree between the features are further enhanced, data redundancy and noise can be reduced, the performance of an audio processing system is enhanced in multiple levels, and the recognition accuracy of the overload truck axle type is improved. Therefore, the robustness and accuracy of overload truck axle type identification are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent traffic detection, and specifically is a method for identifying the axle type of overloaded trucks on a road based on multi-feature fusion of acoustic signals. Background Art

[0002] In recent years, the most mature method for the classification and identification of axle types of overloaded trucks in road traffic is the video image processing method based on deep neural networks. On the basis of building mainstream video image detection frameworks such as CSPNet, STMM, YOLO series or Transformer, the 2D pixel-level or 3D spatiotemporal features of various axle types are input to achieve multi-scale and multi-modal detection and identification. However, the current truck axle type classification and identification method based on video image processing is easily affected by the external environment, occupies a large amount of cloud storage resources, and has duplicated and invalid data, which greatly reduces the effectiveness and stability of data analysis.

[0003] At present, researchers have gradually formed a research direction for vehicle classification and identification based on pattern recognition, machine learning and artificial neural networks for vehicle sound signals. Acoustic features include short-time zero-crossing rate, Mel-frequency cepstral coefficients MFCC, linear prediction cepstral coefficients LPCC, etc. The acoustic signal feature library is established by improving a single feature or fusing multiple features, and traditional classifiers such as GMM, CNN, and KNN are used for classification and identification. At present, there are relatively few research applications on detecting the axle type of overloaded trucks based on acoustic signals.

[0004] The advantages of using acoustic features to identify the axle type of overloaded trucks are: (1) the deployment of acoustic sensors is flexible and efficient, and the cost of picking up sound is much lower than that of video image detection; (2) the storage space of audio streams is small, and the time-frequency features extracted by themselves are diverse. Although multiple features provide richer information, they may also increase the complexity of calculations, which may pose a challenge to real-time processing. In complex environments such as aliasing, discontinuity, multiple sources, and noise interference, it is still a difficult problem to detect the axle type of overloaded trucks using traditional sound features. Summary of the invention

[0005] The present invention proposes a method for identifying the axle type of overloaded trucks on the road based on multi-feature fusion of acoustic signals.

[0006] The technical solution to achieve the purpose of the present invention is: a method for identifying the axle type of overloaded trucks based on multi-feature fusion of acoustic signals, the specific steps are:

[0007] Step 1: Collect audio data of overloaded trucks with different axle types under different working conditions, and pre-process the audio data, including pre-emphasis, frame division, and windowing;

[0008] Step 2: Extract the time-frequency domain features of the driving sound of overloaded trucks with different axle types. The extracted time-domain features include short-time energy and linear prediction cepstral coefficients LPCC, and the extracted frequency-domain features include Mel cepstral coefficients MFCC and its first-order difference, and gamma-tone filter coefficients GFCC;

[0009] Step 3: The four types of time-frequency features extracted, namely, LPCC coefficients, MFCC coefficients, MFCC first-order differences, and GFCC coefficients, are fused in parallel with unified dimensions, and then the one-dimensional short-time energy is spliced ​​into the fused features;

[0010] Step 4: Further reduce the dimension of the first-stage fusion features in step 3 through the t-distributed stochastic nearest neighbor embedding algorithm tSNE;

[0011] Step 5: Select the fusion features of the improved PSO-BP classifier training step 4. The global optimal particle position after the training iteration is the PSO-BP optimal parameter; repeat steps 1 to 4 for the real-time audio signal to obtain the two-stage fusion features, and input the trained PSO-BP classifier to identify the axle type of overloaded trucks.

[0012] Preferably, the audio data of overloaded trucks with different axle types under different working conditions are collected, and the specific process of preprocessing the audio data is as follows:

[0013] Pre-emphasize the audio data. The specific formula is:

[0014] Y i (t) = X i (t)-αX i (t-1)

[0015] Among them, Y i (t) is the pre-emphasized speech signal of the i-th axle-type overloaded truck sound signal, t is the sampling point, α is the empirical value, X i (t) is the audio data collected at sampling point t, X i (t-1) is the audio data collected at sampling point t-1;

[0016] The pre-emphasized audio data is divided into frames, where the number of frames is:

[0017]

[0018] in, is the frame length, is the frame shift, F i is the number of frames of the sound signal of the i-th axle type overloaded truck, that is, Y i (t) After framing, we get F i Frame signal Z i,j ;

[0019] The specific formula for windowing the frame signal after framing is:

[0020] H i,j (t) = Z i,j (t)ω(t)

[0021] Among them, H i,j (t) is the frame signal of the t-th sampling point of the j-th frame of the sound signal of the i-th axle-type overloaded truck after windowing, Z i,j (t) is the tth sampling point of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, and ω(t) is the window function.

[0022] Preferably, the short-time energy is:

[0023]

[0024] Among them, E i,j is the short-time energy of the acoustic signal of the i-th axle-type overloaded truck at the beginning of windowing at the j-th frame, H i,j (t) is the frame signal of the i-th axle-type overloaded truck sound signal after windowing the t-th sampling point of the j-th frame, is the frame length.

[0025] Preferably, the specific process of calculating the LPCC coefficient is:

[0026] The linear combination of the previous p samples is used to represent the driving sound signal X of the axle-type overloaded truck. i (t) The signal H after frame division and windowing i,j (t):

[0027]

[0028] Among them, a i,j,k is the kth linear prediction coefficient LPC of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, and p is the LPC order;

[0029] Obtain LPCC coefficients based on LPC coefficients:

[0030]

[0031] Among them, C i,j,g is the linear prediction cepstrum coefficient LPCC of the jth frame of the sound signal of the i-th axle-type overloaded truck, a i,j,g is the g-th linear prediction coefficient LPC of the j-th frame of the sound signal of the i-th axle-type overloaded truck, g is the LPCC order, and p is the LPC order.

[0032] Preferably, the extraction method of Mel-frequency cepstral coefficients MFCC and its first-order difference is:

[0033] Calculate the kth power spectrum of the jth frame of the acoustic signal of the i-th axle-type overloaded truck;

[0034]

[0035] Among them, x i,j (k) is the kth power spectrum of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, H i,j (t) is the frame signal after windowing the t-th sampling point of the j-th frame of the input sound signal of the i-th axle-type overloaded truck, and N represents the number of points of Fourier transform;

[0036] According to the kth power spectrum of the jth frame of the sound signal of the i-th axle-type overloaded truck, the logarithmic energy of the mth filter group output of the jth frame of the sound signal of the i-th axle-type overloaded truck and the frequency response obtained by passing the power spectrum through the mth triangular filter are calculated:

[0037]

[0038] Among them, s i,j (m) is the logarithmic energy of the output of the mth filter bank in the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th axle-type overloaded truck sound signal, A m (k) is the frequency response of the power spectrum obtained by passing the m-th triangular filter, M is the number of Mel filters, and f(m) is the center frequency of the m-th filter;

[0039] Calculate Mel cepstral coefficients MFCC:

[0040]

[0041] Among them, C i,j (n) is the nth MFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, s i,j (m) is the logarithmic energy of the output of the mth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, M is the number of Mel filters, and L1 is the order of the MFCC coefficients;

[0042] Calculate the first-order difference of Mel cepstral coefficients MFCC:

[0043]

[0044] Among them, d i,j,t is the first-order difference coefficient of the t-th MFCC of the j-th frame of the acoustic signal of the i-th axle-type overloaded truck, C i,j,t is the tth cepstrum coefficient of the jth frame of the sound signal of the i-th axle-type overloaded truck, Q is the order of the cepstrum coefficient, K is the time difference of the first-order derivative, and K is 1 or 2.

[0045] Preferably, the specific method for extracting the gammatone filter coefficient GFCC is:

[0046] Calculate the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck:

[0047]

[0048] Among them, gfcc i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th type axle-type overloaded truck sound signal, g x (k) is the frequency response of the power spectrum obtained by passing the xth gammatone filter, α is the filter gain, δ is the filter order, ψ is the initial phase, I is the number of gammatone filters, and b x is the attenuation factor of the xth filter, f x is the center frequency of the xth filter;

[0049] The nth GFCC coefficient of the jth frame of the i-th axle-type overloaded truck sound signal is calculated according to the logarithmic energy of the xth filter group output of the jth frame of the i-th axle-type overloaded truck sound signal:

[0050]

[0051] Among them, J i,j (n) is the nth GFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, gf i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, I is the number of gamma-tone filters, and L2 is the order of the GFCC coefficient.

[0052] Preferably, the specific method of performing parallel fusion of the four types of time-frequency features of the extracted LPCC coefficients, MFCC coefficients, MFCC first-order differences and GFCC coefficients in a unified dimension is:

[0053] Assume that the number of sub-frames of the sound signal of the i-th axle-type overloaded truck is F, and obtain the F×1-order short-time energy feature vector h, the F×Q1-order LPCC coefficient matrix lp, the F×Q2-order MFCC coefficient matrix mf, the F×Q2-order MFCC first-order difference coefficient matrix Δmf, and the F×Q3-order GFCC coefficient matrix gf;

[0054] Select the minimum dimension Q among the above eigenvectors min As a dimension reduction factor, the feature dimension is greater than Q min The feature matrix of Q is obtained by using PCA dimensionality reduction method. min Dimensional features;

[0055] The elements in the corresponding positions of each coefficient matrix after dimension reduction are weighted and fused in parallel to obtain F×Qmin Dimensional weighted feature matrix:

[0056]

[0057] Among them, y i,m,n is the acoustic signal F×Q of the i-th axle type overloaded truck min The element in the mth row and nth column of the dimensional weighted feature matrix, They are the LPCC coefficient matrix of the acoustic signal of the i-th axle-type overloaded truck after dimension reduction, the MFCC coefficient matrix and its first-order difference, and the elements of the m-th row and n-th column of the GFCC coefficient, m = 1, 2, ..., F; n = 1, 2, ..., Q min , α, β, γ, is the weight vector of each feature,

[0058] Determine the sound signal of the i-th type axle type overloaded truck F×(Q min +1)-dimensional one-stage fusion vector:

[0059] Z i =[y i ,h i ]

[0060] Among them, Z i is the sound signal of the i-th type axle type overloaded truck F×(Q min +1)-dimensional one-stage fusion vector, y i F×Q is the sound signal of the i-th axle type overloaded truck min dimensional weighted feature matrix, h i is the F×1-dimensional short-time energy of the acoustic signal of the i-th axle-type overloaded truck.

[0061] Preferably, the specific method of further reducing the dimension of the first-stage fusion features in step 3 by using the t-distributed stochastic nearest neighbor embedding algorithm tSNE is:

[0062] Step 1: Normalize the first-stage concatenated vector Z to get Z' and calculate each element z' i The similarity between them is obtained according to Gaussian distribution:

[0063]

[0064] Among them, P j|i For z' i With z' j The conditional probability, σ i is the variance of the Gaussian distribution;

[0065] Calculate the similarity matrix:

[0066]

[0067] Among them, R i,j is the similarity matrix of the high-dimensional feature space Z', and F is the number of frames;

[0068] Step 2: Initialize the second-stage fusion feature S, with a dimension of n. If the fusion feature S is visualized, define n = 2 or 3;

[0069] Step 3: Calculate the similarity of each element in S, according to the t distribution:

[0070]

[0071] Among them, P' j|i For i With s j The conditional probability of , calculate the similarity matrix:

[0072]

[0073] Among them, R' i,j is the similarity matrix of the low-dimensional feature space S, and F is the number of frames;

[0074] Step 4: Set the loss function to optimize the initial low-dimensional space S:

[0075]

[0076] Among them, KL is the loss function, R i,j is the similarity matrix of the high-dimensional feature space Z', R' i,j is the similarity matrix of the low-dimensional feature space S;

[0077] Step 5: Use the gradient descent method to iteratively update S to minimize the KL loss function. The iterative formula is:

[0078]

[0079] Among them, S (t) is the two-stage fusion feature of the t-th iteration, α(t) is the momentum parameter of the t-th iteration, and T is the maximum number of iterations. After T iterations, the two-stage fusion feature space S is obtained. f .

[0080] Preferably, the fusion features of the improved PSO-BP classifier training step 4 are selected, and the specific method of obtaining the global optimal particle position after the training iteration is the optimal parameter of PSO-BP is:

[0081] Step 1: The feature space S after fusion of different axis types f Label and use One-hot encoding, randomly mix and divide 70% as training set and 30% as test set;

[0082] Define the number of input layers of the BP neural network as In, the number of single hidden layers as Hid, and the number of output layers as Out. For a given neuron, its output is applied to the weighted input and bias calculation through the activation function f, and the forward propagation process is:

[0083]

[0084] Among them, x i is the value of the i-th node in the input layer, w i,j is the weight from the i-th input node to the j-th hidden node, b j is the bias of the jth hidden layer node, a j is the output of the jth node in the hidden layer, w j,k is the weight from the jth hidden node to the kth output node, b k is the bias of the kth output layer node, p k It is the output of the kth node in the output layer, and the activation function of f(x) is customized as Softmax;

[0085] Step 2: Improve the PSO particle swarm algorithm to optimize the BP neural network weights and biases:

[0086] (1) Define a single particle as the concatenation vector of each weight and bias of the BP neural network, with dimension L = Hid*In+Hid+Hid*Out+Out; the population size is M, the M×L order particle position matrix G is initialized, the individual learning factor c1 = 2, the social learning factor c2 = 2, and the maximum inertia weight W max , minimum inertia weight W min , the number of iterations T max , initialize the M×L velocity matrix v, the maximum velocity v max ;

[0087] (2) Initialize the global optimal particle position, traverse all population positions and fused feature vectors, calculate the fitness in turn, and select the position corresponding to the minimum fitness as the global optimal particle initial position gb (0) ; Initialize the individual historical optimal position, and let the initialized particle position G be the particle individual historical optimal position pb (0) ;

[0088] (3) Determine the fitness function as the focal loss function of the forward propagation:

[0089]

[0090] Among them, fl is the focal loss function, M is the total number of test set samples, α i is the balance factor corresponding to the true label of the i-th sample, γ is the modulation factor, and pi is the forward propagation prediction probability corresponding to the true label of the i-th sample;

[0091] Step 3: PSO-BP classifier algorithm loop iteration:

[0092] (1) Let the number of iterations t = 1 and calculate the nonlinear descent inertia weight:

[0093]

[0094] Among them, W (t) is the inertia weight of the tth iteration, W max is the maximum inertia weight, W min is the minimum inertia weight, T max is the number of iterations;

[0095] (2) Update particle speed and position:

[0096]

[0097] in, is the velocity vector of the ith particle at the tth iteration, W (t) is the inertia weight of the t-th iteration, c1 is the individual learning factor and takes 2, c2 is the social learning factor and takes 2, r1 and r2 are random parameters between 0 and 1, is the individual optimal position of the ith particle in the tth iteration, gb (t) is the global optimal particle position of the tth iteration, is the position of the ith particle at the tth iteration, is the jth velocity component of the ith particle at the t+1th iteration, v max is the maximum speed;

[0098] (3) Update the optimal individual particle position pb and the global optimal particle position gb:

[0099] The two-stage fusion feature training set is used as the input of the BP neural network and the following are calculated: gb (t-1) and the updated The corresponding fitness fl(gb (t-1) ), The iteration process is as follows:

[0100]

[0101] (4) After updating pb and gb, repeat (1) for t+1 iterations until the global optimal fitness function fl(gb (t) ) converges to the preset value or satisfies the Tth maxThe training is stopped after iterations; the global optimal particle position gb after the iteration is completed is used as the optimal parameter of the PSO-BP classifier, and the test set is input to obtain the classification accuracy of overloaded trucks with different axle types.

[0102] Compared with the prior art, the present invention has the following significant advantages: the present invention takes into account the limitations of a single acoustic signal feature in identifying the axle type of overloaded trucks, and on the basis of the original axle type recognition technology, integrates different types of acoustic features in stages and at multiple levels, thereby enhancing the synergy and discrimination between features. The performance of the audio processing system can be enhanced at multiple levels, such as real-time performance, memory consumption, and feature extraction accuracy, thereby improving the robustness and accuracy of overloaded truck axle type recognition.

[0103] Since different characteristic signals have different recognition accuracy for different axis types, the present invention comprehensively considers the time domain and frequency domain factors, selects two types of time domain features (short-time energy, linear prediction cepstral coefficients LPCC) and three types of frequency domain features (Mel cepstral coefficients MFCC and its first-order difference, gamma-tone filter coefficients GFCC), and performs one-stage parallel weighted feature fusion and two-stage t-distributed random neighbor embedding feature fusion on the extracted time and frequency domain features. Finally, the improved PSO-BP classifier is used to train and test the fused features to obtain a classification model.

[0104] The present invention is described in further detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0105] Figure 1 A flowchart of a method for identifying the axle type of an overloaded truck based on multi-feature fusion of acoustic signals provided in an embodiment of the present invention.

[0106] Figure 2 A flow chart of a two-stage multi-feature fusion algorithm provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0107] A method for identifying the axle type of an overloaded truck based on multi-feature fusion of acoustic signals comprises the following steps:

[0108] Step 1: Collect audio of overloaded trucks with different axle types under different working conditions (different overload ratios, different driving speeds, etc.), set the sampling rate, save it in wav format, and pre-process the driving sound data of overloaded trucks with different axle types, including pre-emphasis, framing, and windowing. i (t), sampling rate f s , the audio length is unified as L.

[0109] Specifically, the specific formula for pre-emphasis is:

[0110] Y i (t) = Xi (t)-αX i (t-1)

[0111] Among them, Y i (t) is the audio data of the tth sampling point after pre-emphasis of the sound signal of the i-th axle-type overloaded truck, t is the sampling point, and α is generally taken as 0.95 or 0.97.

[0112] Specifically, the specific formula for framing is:

[0113]

[0114] in, is the frame length, is the frame shift, F i is the number of frames of the sound signal of the i-th axle type overloaded truck, that is, Y i (t) After framing, we get F i Frame signal Z i,j , to ensure the continuity of the voice signal.

[0115] Specifically, the windowing steps are:

[0116] H i,j (t) = Z i,j (t)ω(t)

[0117] Among them, H i,j (t) is the frame signal of the t-th sampling point of the j-th frame of the sound signal of the i-th axle-type overloaded truck after windowing, Z i,j (t) is the tth sampling point of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, and ω(t) is the window function.

[0118] Step 2: Extract the sound features of different axle types of overloaded trucks. According to the preprocessed sound signal, extract the time domain features, which include short-time energy and linear prediction cepstral coefficients LPCC; according to the preprocessed sound signal, extract the frequency domain features, which include Mel cepstral coefficients MFCC, MFCC first-order difference coefficients, and gamma filter coefficients GFCC.

[0119] Specifically, the short-time energy is:

[0120]

[0121] Among them, E i,j is the short-time energy of the acoustic signal of the i-th axle-type overloaded truck at the beginning of windowing at the j-th frame, H i,j (t) is the frame signal of the i-th axle-type overloaded truck sound signal after windowing the t-th sampling point of the j-th frame, is the frame length.

[0122] Specifically, the linear prediction cepstral coefficient LPCC is:

[0123] According to the principle of linear prediction of acoustic signals, the driving sound signal X i (t) The signal H after frame division and windowing i,j (t) can be represented by a linear combination of the previous p samples:

[0124]

[0125] Among them, a i,j,k is the kth linear prediction coefficient LPC of the jth frame of the sound signal of the i-th axle type overloaded truck, and p is the LPC order. Usually, the LPCC coefficient is derived from the LPC coefficient:

[0126]

[0127] Among them, C i,j,g is the linear prediction cepstrum coefficient LPCC of the jth frame of the sound signal of the i-th axle-type overloaded truck, a i,j,g is the g-th linear prediction coefficient LPC of the j-th frame of the sound signal of the i-th axle-type overloaded truck, g is the LPCC order, and p is the LPC order.

[0128] Specifically, the MFCC coefficients are:

[0129] 1) Perform fast Fourier transform (FFT) on the preprocessed axle sound signal to obtain the frequency domain power spectrum:

[0130]

[0131] Among them, x i,j (k) is the kth power spectrum of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, H i,j (t) is the frame signal after windowing the t-th sampling point of the j-th frame of the input i-th axle-type overloaded truck sound signal, and N represents the number of Fourier transform points.

[0132] 2) Through a set of Mel-scale triangular filters A m (k) for the spectrum x i,j (k) is smoothed and the logarithmic energy of the output of the mth filter bank is calculated as:

[0133]

[0134] Among them, s i,j (m) is the logarithmic energy of the output of the mth filter bank in the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th axle-type overloaded truck sound signal, A m(k) is the frequency response of the power spectrum obtained by passing the m-th triangular filter, M is the number of Mel filters, and f(m) is the center frequency of the m-th filter.

[0135] 3) Calculate the Mel cepstral coefficient MFCC:

[0136]

[0137] Among them, C i,j (n) is the nth MFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, s i,j (m) is the logarithmic energy of the output of the mth filter group in the jth frame of the sound signal of the i-th axle-type overloaded truck, M is the number of Mel filters, and L1 is the MFCC coefficient order, which is usually 12-16.

[0138] 4) Calculate the MFCC first-order dynamic difference coefficient:

[0139]

[0140] Among them, d i,j,t is the first-order difference coefficient of the t-th MFCC of the j-th frame of the acoustic signal of the i-th axle-type overloaded truck, C i,j,t is the tth cepstrum coefficient of the jth frame of the sound signal of the i-th axle-type overloaded truck, Q is the order of the cepstrum coefficient, K is the time difference of the first-order derivative, and K is 1 or 2.

[0141] Specifically, the GFCC coefficient is:

[0142] 1) Through a group of gamma-tone filters g x (k) for the spectrum x i,j (k) Smoothing is performed and the logarithmic energy of the x-th filter bank output is calculated as:

[0143]

[0144] Among them, gfcc i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th type axle-type overloaded truck sound signal, g x (k) is the frequency response of the power spectrum obtained by passing the xth gammatone filter, α is the filter gain, δ is the filter order, ψ is the initial phase, I is the number of gammatone filters, and b x is the attenuation factor of the xth filter, f x is the center frequency of the xth filter.

[0145] 2) Calculate the gammatone filter cepstral coefficient GFCC:

[0146]

[0147] Among them, J i,j (n) is the nth GFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, gf i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, I is the number of gamma-tone filters, and L2 is the order of the GFCC coefficient.

[0148] Step 3: One-stage parallel multi-feature fusion, the four types of time-frequency features after extraction, LPCC coefficients, MFCC coefficients, MFCC first-order differences and GFCC coefficients are fused in parallel with unified dimensions, and then the one-dimensional short-time energy is spliced ​​into the fusion feature. Assuming that the number of sub-frames of the sound signal of the i-th axle-type overloaded truck is F, we can get the F×1-order short-time energy feature vector h, the F×Q1-order LPCC coefficient matrix lp, the F×Q2-order MFCC coefficient matrix mf, the F×Q2-order MFCC first-order difference coefficient matrix Δmf, and the F×Q3-order GFCC coefficient matrix gf. Select the minimum dimension Q among the above feature vectors min As a dimension reduction factor, the feature dimension is greater than Q min The feature matrix of Q is obtained by using PCA dimensionality reduction method. min Dimensional features.

[0149] Specifically, the PCA dimensionality reduction method comprises the following steps:

[0150] Assume n dimensions (n>Q min )’s characteristic matrix X=(x (1) ,x (2) ,…,x (n) ), decentralize all feature elements:

[0151]

[0152] Among them, x (i) is the eigenvector of the i-th dimension. The decentralized feature matrix is ​​X k ', find the covariance matrix C k :

[0153]

[0154] The covariance matrix C k Perform eigenvalue decomposition to obtain the eigenvalue λ i ,i=1,2,...,m and the corresponding normalized eigenvector y (i) ,i=1,2,…,m, take out the largest Q min The eigenvectors corresponding to the eigenvalues ​​form an eigenvector matrix Then the feature matrix Y after dimension reduction is:

[0155] Y=W T X

[0156] Specifically, the parallel feature fusion splicing is:

[0157] Considering the different importance of various features for axle recognition, the elements at the corresponding positions in each coefficient matrix after dimensionality reduction are weighted and fused in parallel to obtain F×Q min Dimensional weighted feature matrix:

[0158]

[0159] Among them, y i,m,n is the acoustic signal F×Q of the i-th axle type overloaded truck min The element in the mth row and nth column of the dimensional weighted feature matrix, They are the LPCC coefficient matrix of the acoustic signal of the i-th axle-type overloaded truck after dimension reduction, the MFCC coefficient matrix and its first-order difference, and the elements of the m-th row and n-th column of the GFCC coefficient, m=1,2,...,F; n=1,2,...,Q min α, β, γ, is the weight vector of each feature,

[0160] Z i =[y i ,h i ]

[0161] Among them, Z i Q is the sound signal of the i-th axle type overloaded truck min +1-dimensional one-stage fusion vector, y i F×Q is the sound signal of the i-th axle type overloaded truck min dimensional weighted feature matrix, h i is the F×1-dimensional short-time energy of the acoustic signal of the i-th axle-type overloaded truck.

[0162] Step 4: Two-stage t-distributed random neighbor embedding tSNE feature fusion.

[0163] Step 1: Normalize the first-stage concatenated vector Z to get Z' and calculate each element z' i The similarity between them is obtained according to Gaussian distribution:

[0164]

[0165] Among them, P j|i For z' i With z' j The conditional probability, σ i is the variance of the Gaussian distribution. Calculate the similarity matrix:

[0166]

[0167] Among them, R i,j is the similarity matrix of the high-dimensional feature space Z', and F is the number of frames.

[0168] Step 2: Initialize the second-stage fusion feature S with a dimension of n. If the fusion feature S is visualized, define n = 2 or 3.

[0169] Step 3: Calculate the similarity of each element in S, according to the t distribution:

[0170]

[0171] Among them, P' j|i For i With s j The conditional probability of , calculate the similarity matrix:

[0172]

[0173] Among them, R' i,j is the similarity matrix of the low-dimensional feature space S, and F is the number of frames.

[0174] Step 4: Set the loss function to optimize the initial low-dimensional space S:

[0175]

[0176] Among them, KL is the loss function, R i,j is the similarity matrix of the high-dimensional feature space Z', R' i,j is the similarity matrix of the low-dimensional feature space S.

[0177] Step 5: Use the gradient descent method to iteratively update S to minimize the KL loss function. The iterative formula is:

[0178]

[0179] Among them, S (t) is the two-stage fusion feature of the t-th iteration, α(t) is the momentum parameter of the t-th iteration, and T is the maximum number of iterations. After T iterations, the two-stage fusion feature S is obtained. f .

[0180] Step 5: Classification and recognition. Given the two-stage fusion feature S f In low-dimensional space, there is no need to build a complex neural network model, so this step uses the improved PSO-BP lightweight classifier training, imports the test set for testing, and obtains the recognition accuracy. fThe data are labeled and encoded using One-hot encoding, and then randomly mixed and divided into 70% as a training set and 30% as a test set.

[0181] Specifically, the BP single hidden layer neural network:

[0182] Define the number of input layers of the BP neural network as In, the number of single hidden layers as Hid, and the number of output layers as Out. For a given neuron, its output can be calculated by applying the activation function f to the weighted input and bias. The forward propagation process is:

[0183]

[0184] Among them, x i is the value of the i-th node in the input layer, w i,j is the weight from the i-th input node to the j-th hidden node, b j is the bias of the jth hidden layer node, a j is the output of the jth node in the hidden layer, w j,k is the weight from the jth hidden node to the kth output node, b k is the bias of the kth output layer node, p k It is the output of the kth node in the output layer. The activation function of f(x) can be customized as Softmax (for multi-classification problems) or Sigmoid (for binary classification problems).

[0185] Specifically, the improved PSO particle swarm algorithm optimizes the BP neural network weights and bias steps as follows:

[0186] (1) Define a single particle as the concatenation vector of each weight and bias of the BP neural network, with dimension L = Hid*In+Hid+Hid*Out+Out. The population size is M, and the M×L order particle position matrix G is initialized, with individual learning factor c1 = 2, social learning factor c2 = 2, and maximum inertia weight W max , minimum inertia weight W min , the number of iterations T max , initialize the M×L velocity matrix v, the maximum velocity v max .

[0187] (2) Initialize the global optimal particle position, traverse all population positions and fused feature vectors, calculate the fitness in turn, and select the position corresponding to the minimum fitness as the global optimal particle initial position gb (0) ; Initialize the individual historical optimal position, and let the initialized particle position G be the particle individual historical optimal position pb (0) .

[0188] (3) The fitness function is the forward propagation focal loss function, which is used to solve the problem of unbalanced acoustic signal samples of different axle types of overloaded trucks.

[0189]

[0190] Among them, fl is the focal loss function, M is the total number of test set samples, α i is the balance factor corresponding to the true label of the i-th sample, γ is the modulation factor, generally ranging from 1 to 5, and p i is the forward propagation predicted probability corresponding to the true label of the i-th sample.

[0191] Specifically, the PSO-BP classifier algorithm iterates cyclically:

[0192] (1) Let the number of iterations t = 1 and calculate the nonlinear descent inertia weight:

[0193]

[0194] Among them, W (t) is the inertia weight of the tth iteration, W max is the maximum inertia weight, W min is the minimum inertia weight, T max is the number of iterations

[0195] (2) Update particle speed and position:

[0196]

[0197] in, is the velocity vector of the ith particle at the tth iteration, W (t) is the inertia weight of the t-th iteration, c1 is the individual learning factor and takes 2, c2 is the social learning factor and takes 2, r1 and r2 are random parameters between 0 and 1, is the individual optimal position of the ith particle in the tth iteration, gb (t) is the global optimal particle position of the tth iteration, is the position of the ith particle at the tth iteration, is the jth velocity component of the ith particle at the t+1th iteration, v max is the maximum speed.

[0198] (3) Update the optimal individual particle position pb and the global optimal particle position gb:

[0199] The two-stage fusion feature training set is used as the input of the BP neural network and the following are calculated: gb (t-1) and the updated The corresponding fitness fl(gb (t-1) ), The iteration process is as follows:

[0200]

[0201] (4) After updating pb and gb, repeat (1) for t+1 iterations until the global optimal fitness function fl(gb (t) ) converges to the preset value or satisfies the Tth max The training is stopped after iterations. The global optimal particle position gb after the iteration is taken as the optimal parameter of the PSO-BP classifier, and the test set is input to obtain the classification accuracy of different axle types of overloaded trucks.

[0202] Example

[0203] According to GB1589-2016, overloaded trucks are divided into five categories: two-axle, three-axle, four-axle, five-axle and six-axle. The sounds of overloaded trucks with different axle types under different working conditions (different overload ratios, different driving speeds, etc.) are collected and saved as wav audio files. Assuming that overloaded truck detection is accompanied by interference from other environmental noises, it is necessary to classify the audio based on two-stage feature fusion PSO-BP.

[0204] Step 1: Preprocessing of the driving sound data of overloaded trucks with different axle types, including pre-emphasis, framing and windowing. The two-axle truck is labeled 1, the three-axle truck is labeled 2, the four-axle truck is labeled 3, the five-axle truck is labeled 4, and the six-axle truck is labeled 5. The original audio X i (t), sampling rate f s It is 44.1kHz, and the audio length is unified as L.

[0205] Specifically, the specific formula for pre-emphasis is:

[0206] Y i (t) = X i (t)-αX i (t-1)

[0207] Among them, Y i (t) is the audio data of the t-th sampling point after pre-emphasis of the acoustic signal of the i-th axle-type overloaded truck, and α is 0.97.

[0208] Specifically, the specific formula for framing is:

[0209]

[0210] in, is the frame length, is the frame shift, F iis the number of frames of the sound signal of the i-th axle type overloaded truck, that is, Y i (t) After framing, we get F i Frame signal Z i,j , to ensure the continuity of the voice signal.

[0211] Specifically, the windowing steps are:

[0212] H i,j (t) = Z i,j (t)ω(t)

[0213] Among them, H i,j (t) is the frame signal of the t-th sampling point of the j-th frame of the sound signal of the i-th axle-type overloaded truck after windowing, Z i,j (t) is the tth sampling point of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, and ω(t) is the Hamming window function.

[0214] Step 2: Extract the sound features of different axle types of overloaded trucks. According to the preprocessed sound signal, extract the time domain features, which include short-time energy and linear prediction cepstral coefficients LPCC; according to the preprocessed sound signal, extract the frequency domain features, which include Mel cepstral coefficients MFCC, MFCC first-order difference coefficients, and gamma filter coefficients GFCC.

[0215] Specifically, the short-time energy is:

[0216]

[0217] Among them, E i,j is the short-time energy of the acoustic signal of the i-th axle-type overloaded truck at the beginning of windowing at the j-th frame, H i,j (t) is the frame signal of the i-th axle-type overloaded truck sound signal after windowing the t-th sampling point of the j-th frame, is the frame length.

[0218] Specifically, the linear prediction cepstral coefficient LPCC is:

[0219] According to the principle of linear prediction of acoustic signals, the driving sound signal X i (t) The signal H after frame division and windowing i,j (t) can be represented by a linear combination of the previous p samples:

[0220]

[0221] Among them, a i,j,k is the kth linear prediction coefficient LPC of the jth frame of the sound signal of the i-th axle type overloaded truck, and p is the LPC order. Usually, the LPCC coefficient is derived from the LPC coefficient:

[0222]

[0223] Among them, C i,j,g is the linear prediction cepstrum coefficient LPCC of the jth frame of the sound signal of the i-th axle-type overloaded truck, a i,j,g is the g-th linear prediction coefficient LPC of the j-th frame of the sound signal of the i-th axle-type overloaded truck, g is the LPCC order, and p is the LPC order.

[0224] Specifically, the MFCC coefficients are:

[0225] 1) Perform fast Fourier transform (FFT) on the preprocessed axle sound signal to obtain the frequency domain power spectrum:

[0226]

[0227] Among them, x i,j (k) is the kth power spectrum of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, H i,j (t) is the frame signal after windowing the t-th sampling point of the j-th frame of the input i-th axle-type overloaded truck sound signal, and N represents the number of Fourier transform points.

[0228] 2) Through a set of Mel-scale triangular filters A m (k) for the spectrum x i,j (k) is smoothed and the logarithmic energy of the output of the mth filter bank is calculated as:

[0229]

[0230] Among them, s i,j (m) is the logarithmic energy of the output of the mth filter bank in the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th axle-type overloaded truck sound signal, A m (k) is the frequency response of the power spectrum obtained by passing the m-th triangular filter, M is the number of Mel filters, and f(m) is the center frequency of the m-th filter.

[0231] 3) Calculate the Mel cepstral coefficient MFCC:

[0232]

[0233] Among them, C i,j (n) is the nth MFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, s i,j (m) is the logarithmic energy of the output of the mth filter group in the jth frame of the sound signal of the i-th axle-type overloaded truck, M is the number of Mel filters, and L1 is the MFCC coefficient order, which is usually 12-16.

[0234] 4) Calculate the MFCC first-order dynamic difference coefficient:

[0235]

[0236] Among them, d i,j,t is the first-order difference coefficient of the t-th MFCC of the j-th frame of the acoustic signal of the i-th axle-type overloaded truck, C i,j,t is the tth cepstrum coefficient of the jth frame of the sound signal of the i-th axle-type overloaded truck, Q is the order of the cepstrum coefficient, K is the time difference of the first-order derivative, and K is 1 or 2.

[0237] Specifically, the GFCC coefficient is:

[0238] 1) Through a group of gamma-tone filters g x (k) for the spectrum x i,j (k) Smoothing is performed and the logarithmic energy of the x-th filter bank output is calculated as:

[0239]

[0240] Among them, gfcc i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th type axle-type overloaded truck sound signal, g x (k) is the frequency response of the power spectrum obtained by passing the xth gammatone filter, α is the filter gain, δ is the filter order, ψ is the initial phase, I is the number of gammatone filters, and b x is the attenuation factor of the xth filter, f x is the center frequency of the xth filter.

[0241] 2) Calculate the gammatone filter cepstral coefficient GFCC:

[0242]

[0243] Among them, J i,j (n) is the nth GFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, gf i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, I is the number of gamma-tone filters, and L2 is the order of the GFCC coefficient.

[0244] Step 3: One-stage parallel multi-feature fusion, the four types of time-frequency features after extraction, LPCC coefficients, MFCC coefficients, MFCC first-order differences and GFCC coefficients are fused in parallel with unified dimensions, and then the one-dimensional short-time energy is spliced ​​into the fusion feature. Assuming that the number of sub-frames of the sound signal of the i-th axle-type overloaded truck is F, we can get the F×1-order short-time energy feature vector h, the F×Q1-order LPCC coefficient matrix lp, the F×Q2-order MFCC coefficient matrix mf, the F×Q2-order MFCC first-order difference coefficient matrix Δmf, and the F×Q3-order GFCC coefficient matrix gf. Select the minimum dimension Q among the above feature vectors min As a dimension reduction factor, the feature dimension is greater than Q min The feature matrix of Q is obtained by using PCA dimensionality reduction method. min Dimensional features.

[0245] Specifically, the PCA dimensionality reduction method comprises the following steps:

[0246] Assume n dimensions (n>Q min )’s characteristic matrix X=(x (1) ,x (2) ,…,x (n) ), decentralize all feature elements:

[0247]

[0248] Among them, x (i) is the eigenvector of the i-th dimension. The decentralized feature matrix is ​​X k ', find the covariance matrix C k :

[0249]

[0250] The covariance matrix C k Perform eigenvalue decomposition to obtain the eigenvalue λ i ,i=1,2,…,m and the corresponding normalized feature vector y (i) ,i=1,2,…,m, take out the largest Q min The eigenvectors corresponding to the eigenvalues ​​form an eigenvector matrix Then the feature matrix Y after dimension reduction is:

[0251] Y=W T X

[0252] Specifically, the parallel feature fusion splicing is:

[0253] Considering the different importance of various features for axle recognition, the elements at the corresponding positions in each coefficient matrix after dimensionality reduction are weighted and fused in parallel to obtain F×Q min Dimensional weighted feature matrix:

[0254]

[0255] Among them, y i,m,n is the acoustic signal F×Q of the i-th axle type overloaded truck min The element in the mth row and nth column of the dimensional weighted feature matrix, They are the LPCC coefficient matrix of the acoustic signal of the i-th axle-type overloaded truck after dimension reduction, the MFCC coefficient matrix and its first-order difference, and the elements of the m-th row and n-th column of the GFCC coefficient, m = 1, 2, ..., F; n = 1, 2, ..., Q min α, β, γ, is the weight vector of each feature,

[0256] Z i =[y i ,h i ]

[0257] Among them, Z i Q is the sound signal of the i-th axle type overloaded truck min +1-dimensional one-stage fusion vector, y i F×Q is the sound signal of the i-th axle type overloaded truck min dimensional weighted feature matrix, h i is the F×1-dimensional short-time energy of the i-th axle sound signal.

[0258] Step 4: Two-stage t-distributed random neighbor embedding tSNE feature fusion.

[0259] Step 1: Normalize the first-stage concatenated vector Z to get Z' and calculate each element z' i The similarity between them is obtained according to Gaussian distribution:

[0260]

[0261] Among them, P j|i For z' i With z' j The conditional probability, σ i is the variance of the Gaussian distribution. Calculate the similarity matrix:

[0262]

[0263] Among them, R i,j is the similarity matrix of the high-dimensional feature space Z', and F is the number of frames.

[0264] Step 2: Initialize the second-stage fusion feature S with a dimension of n. If the fusion feature S is visualized, define n = 2 or 3.

[0265] Step 3: Calculate the similarity of each element in S, according to the t distribution:

[0266]

[0267] Among them, P' j|i For i With s j The conditional probability of , calculate the similarity matrix:

[0268]

[0269] Among them, R' i,j is the similarity matrix of the low-dimensional feature space S, and F is the number of frames.

[0270] Step 4: Set the loss function to optimize the initial low-dimensional space S:

[0271]

[0272] Among them, KL is the loss function, R i,j is the similarity matrix of the high-dimensional feature space Z', R' i,j is the similarity matrix of the low-dimensional feature space S.

[0273] Step 5: Use the gradient descent method to iteratively update S to minimize the KL loss function. The iterative formula is:

[0274]

[0275] Among them, S (t) is the two-stage fusion feature of the t-th iteration, α(t) is the momentum parameter of the t-th iteration, and T is the maximum number of iterations. After T iterations, the two-stage fusion feature S is obtained. f .

[0276] Step 5: Classification and recognition. Given the two-stage fusion feature S f In low-dimensional space, there is no need to build a complex neural network model, so this step uses the improved PSO-BP lightweight classifier training, imports the test set for testing, and obtains the recognition accuracy. f The data are labeled and encoded using One-hot encoding, and then randomly mixed and divided into 70% as a training set and 30% as a test set.

[0277] Specifically, the BP single hidden layer neural network:

[0278] Define the number of input layers of the BP neural network as In, the number of single hidden layers as Hid, and the number of output layers as Out. For a given neuron, its output can be calculated by applying the activation function f to the weighted input and bias. The forward propagation process is:

[0279]

[0280] Among them, x i is the value of the i-th node in the input layer, w i,j is the weight from the i-th input node to the j-th hidden node, b j is the bias of the jth hidden layer node, a j is the output of the jth node in the hidden layer, w j,k is the weight from the jth hidden node to the kth output node, b k is the bias of the kth output layer node, p k It is the output of the kth node in the output layer. The activation function of f(x) can be customized as Softmax (for multi-classification problems) or Sigmoid (for binary classification problems).

[0281] Specifically, the improved PSO particle swarm algorithm optimizes the BP neural network weights and bias steps as follows:

[0282] (2) Define a single particle as the concatenation vector of each weight and bias of the BP neural network, with dimension L = Hid*In+Hid+Hid*Out+Out. The population size is M, and the M×L order particle position matrix G is initialized, with individual learning factor c1 = 2, social learning factor c2 = 2, and maximum inertia weight W max , minimum inertia weight W min , the number of iterations T max , initialize the M×L velocity matrix v, the maximum velocity v max .

[0283] (2) Initialize the global optimal particle position, traverse all population positions and fused feature vectors, calculate the fitness in turn, and select the position corresponding to the minimum fitness as the global optimal particle initial position gb (0) ; Initialize the individual historical optimal position, and let the initialized particle position G be the particle individual historical optimal position pb (0) .

[0284] (3) The fitness function is the forward propagation focal loss function, which is used to solve the problem of unbalanced acoustic signal samples of different axle types of overloaded trucks.

[0285]

[0286] Among them, fl is the focal loss function, M is the total number of test set samples, α i is the balance factor corresponding to the true label of the i-th sample, γ is the modulation factor, generally ranging from 1 to 5, and p iis the forward propagation predicted probability corresponding to the true label of the i-th sample.

[0287] Specifically, the PSO-BP classifier algorithm iterates cyclically:

[0288] (1) Let the number of iterations t = 1 and calculate the nonlinear descent inertia weight:

[0289]

[0290] Among them, W (t) is the inertia weight of the tth iteration, W max is the maximum inertia weight, W min is the minimum inertia weight, T max is the number of iterations

[0291] (2) Update particle speed and position:

[0292]

[0293] in, is the velocity vector of the ith particle at the tth iteration, W (t) is the inertia weight of the t-th iteration, c1 is the individual learning factor and takes 2, c2 is the social learning factor and takes 2, r1 and r2 are random parameters between 0 and 1, is the individual optimal position of the ith particle in the tth iteration, gb (t) is the global optimal particle position of the tth iteration, G i (t) is the position of the ith particle at the tth iteration, is the jth velocity component of the ith particle at the t+1th iteration, v max is the maximum speed.

[0294] (3) Update the optimal individual particle position pb and the global optimal particle position gb:

[0295] The two-stage fusion feature training set is used as the input of the BP neural network and the following are calculated: gb (t-1) and the updated The corresponding fitness fl(gb (t-1) ), The iteration process is as follows:

[0296]

[0297] (4) After updating pb and gb, repeat (1) for t+1 iterations until the global optimal fitness function fl(gb (t) ) converges to the preset value or satisfies the Tthmax The training is stopped after iterations. The global optimal particle position gb after the iteration is taken as the optimal parameter of the PSO-BP classifier, and the test set is input to obtain the classification accuracy of different axle types of overloaded trucks.

Claims

1. A method for identifying the axle type of overloaded trucks based on multi-feature fusion of acoustic signals, characterized in that: The specific steps are: Step 1: Collect audio data of overloaded trucks with different axle types under different working conditions, and pre-process the audio data, including pre-emphasis, frame division, and windowing; Step 2: Extract the time-frequency domain features of the driving sound of overloaded trucks with different axle types. The extracted time-domain features include short-time energy and linear prediction cepstral coefficients LPCC, and the extracted frequency-domain features include Mel cepstral coefficients MFCC and its first-order difference, and gamma-tone filter coefficients GFCC; Step 3: The four types of time-frequency features extracted, namely, LPCC coefficients, MFCC coefficients, MFCC first-order differences, and GFCC coefficients, are fused in parallel with unified dimensions, and then the one-dimensional short-time energy is spliced ​​into the fused features; Step 4: Further reduce the dimension of the first-stage fusion features in step 3 through the t-distributed stochastic nearest neighbor embedding algorithm tSNE; Step 5: Select the fusion features of the improved PSO-BP classifier training step 4. The global optimal particle position after the training iteration is the PSO-BP optimal parameter; repeat steps 1 to 4 for the real-time audio signal to obtain the two-stage fusion features, and input the trained PSO-BP classifier to identify the axle type of overloaded trucks.

2. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The specific process of collecting audio data under different working conditions of overloaded trucks with different axle types and preprocessing the audio data is as follows: Pre-emphasize the audio data. The specific formula is: Y i (t)=X i (t)-αX i (t-1) Among them, Y i (t) is the pre-emphasized speech signal of the i-th axle-type overloaded truck sound signal, t is the sampling point, α is the empirical value, X i (t) is the audio data collected at sampling point t, X i (t-1) is the audio data collected at sampling point t-1; The pre-emphasized audio data is divided into frames, where the number of frames is: in, is the frame length, is the frame shift, F i is the number of frames of the sound signal of the i-th axle type overloaded truck, that is, Y i (t) After framing, we get F i Frame signal Z i,j ; The specific formula for windowing the frame signal after framing is: H i,j (t)=Z i,j (t)ω(t) Among them, H i,j (t) is the frame signal of the t-th sampling point of the j-th frame of the sound signal of the i-th axle-type overloaded truck after windowing, Z i,j (t) is the tth sampling point of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, and ω(t) is the window function.

3. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The short-time energy is: Among them, E i,j is the short-time energy of the acoustic signal of the i-th axle-type overloaded truck at the beginning of windowing at the j-th frame, H i,j (t) is the frame signal of the i-th axle-type overloaded truck sound signal after windowing the t-th sampling point of the j-th frame, is the frame length.

4. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The specific process of calculating the LPCC coefficient is: The linear combination of the previous p samples is used to represent the driving sound signal X of the axle-type overloaded truck. i (t) The signal H after frame division and windowing i,j (t): Among them, a i,j,k is the kth linear prediction coefficient LPC of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, and p is the LPC order; Obtain LPCC coefficients based on LPC coefficients: Among them, C i,j,g is the linear prediction cepstrum coefficient LPCC of the jth frame of the sound signal of the i-th axle-type overloaded truck, a i,j,g is the g-th linear prediction coefficient LPC of the j-th frame of the sound signal of the i-th axle-type overloaded truck, g is the LPCC order, and p is the LPC order.

5. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The extraction method of Mel cepstral coefficient MFCC and its first-order difference is: Calculate the kth power spectrum of the jth frame of the acoustic signal of the i-th axle-type overloaded truck; Among them, x i,j (k) is the kth power spectrum of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, H i,j (t) is the frame signal after windowing the t-th sampling point of the j-th frame of the input i-th axle-type overloaded truck sound signal, and N represents the number of points of Fourier transform; According to the kth power spectrum of the jth frame of the sound signal of the i-th axle-type overloaded truck, the logarithmic energy of the mth filter group output of the jth frame of the sound signal of the i-th axle-type overloaded truck and the frequency response obtained by passing the power spectrum through the mth triangular filter are calculated: Among them, s i,j (m) is the logarithmic energy of the output of the mth filter bank in the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th axle-type overloaded truck sound signal, A m (k) is the frequency response of the power spectrum obtained by passing the m-th triangular filter, M is the number of Mel filters, and f(m) is the center frequency of the m-th filter; Calculate the Mel cepstral coefficient MFCC: Among them, C i,j (n) is the nth MFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, s i,j (m) is the logarithmic energy of the output of the mth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, M is the number of Mel filters, and L1 is the order of the MFCC coefficients; Calculate the first-order difference of Mel cepstral coefficients MFCC: Among them, d i,j,t is the first-order difference coefficient of the t-th MFCC of the j-th frame of the acoustic signal of the i-th axle-type overloaded truck, C i,j,t is the tth cepstrum coefficient of the jth frame of the sound signal of the i-th axle-type overloaded truck, Q is the order of the cepstrum coefficient, K is the time difference of the first-order derivative, and K is 1 or 2.

6. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The specific method for extracting the gamma filter coefficient GFCC is: Calculate the logarithmic energy of the x-th filter bank output of the j-th frame of the i-th axle-type overloaded truck sound signal: Among them, gfcc i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, x i,j (k) is the kth power spectrum of the jth frame signal of the i-th type axle-type overloaded truck sound signal, g x (k) is the frequency response of the power spectrum obtained by passing the xth gammatone filter, α is the filter gain, δ is the filter order, ψ is the initial phase, I is the number of gammatone filters, and b x is the attenuation factor of the xth filter, f x is the center frequency of the xth filter; The nth GFCC coefficient of the jth frame of the i-th axle-type overloaded truck sound signal is calculated according to the logarithmic energy of the xth filter group output of the jth frame of the i-th axle-type overloaded truck sound signal: Among them, J i,j (n) is the nth GFCC coefficient of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, gf i,j (x) is the logarithmic energy of the output of the xth filter bank of the jth frame of the acoustic signal of the i-th axle-type overloaded truck, I is the number of gamma-tone filters, and L2 is the order of the GFCC coefficient.

7. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The specific method for parallel fusion of the four types of time-frequency features of the extracted LPCC coefficients, MFCC coefficients, MFCC first-order differences and GFCC coefficients in unified dimensions is as follows: Assume that the number of sub-frames of the sound signal of the i-th axle-type overloaded truck is F, and obtain the F×1-order short-time energy feature vector h, the F×Q1-order LPCC coefficient matrix lp, the F×Q2-order MFCC coefficient matrix mf, the F×Q2-order MFCC first-order difference coefficient matrix Δmf, and the F×Q3-order GFCC coefficient matrix gf; Select the minimum dimension Q among the above eigenvectors min As a dimension reduction factor, the feature dimension is greater than Q min The feature matrix of Q is obtained by using PCA dimensionality reduction method. min Dimensional features; The elements in the corresponding positions of each coefficient matrix after dimension reduction are weighted and fused in parallel to obtain F×Q min Dimensional weighted feature matrix: Among them, y i,m,n is the acoustic signal F×Q of the i-th axle type overloaded truck min The element in the mth row and nth column of the dimensional weighted feature matrix, They are the LPCC coefficient matrix of the acoustic signal of the i-th axle-type overloaded truck after dimension reduction, the MFCC coefficient matrix and its first-order difference, and the elements of the m-th row and n-th column of the GFCC coefficient, m = 1, 2, ..., F; n = 1, 2, ..., Q min , α, β, γ, is the weight vector of each feature, Determine the sound signal of the i-th type axle type overloaded truck F×(Q min +1)-dimensional one-stage fusion vector: Z i =[y i ,h i ] Among them, Z i is the sound signal of the i-th type axle type overloaded truck F×(Q min +1)-dimensional one-stage fusion vector, y i F×Q is the sound signal of the i-th axle type overloaded truck min dimensional weighted feature matrix, h i is the F×1-dimensional short-time energy of the acoustic signal of the i-th axle-type overloaded truck.

8. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The specific method of further reducing the dimension of the first-stage fusion features in step 3 by using the t-distributed stochastic nearest neighbor embedding algorithm tSNE is as follows: Step 1: Normalize the first-stage concatenated vector Z to get Z' and calculate each element z i 'The similarity between them is obtained according to Gaussian distribution: Among them, P j|i For z' i With z' j The conditional probability, σ i is the variance of the Gaussian distribution; Calculate the similarity matrix: Among them, R i,j is the similarity matrix of the high-dimensional feature space Z', and F is the number of frames; Step 2: Initialize the second-stage fusion feature S, with a dimension of n. If the fusion feature S is visualized, define n = 2 or 3; Step 3: Calculate the similarity of each element in S, according to the t distribution: Among them, P j ' |i For i With s j The conditional probability of , calculate the similarity matrix: Among them, R i ' ,j is the similarity matrix of the low-dimensional feature space S, and F is the number of frames; Step 4: Set the loss function to optimize the initial low-dimensional space S: Among them, KL is the loss function, R i,j is the similarity matrix of the high-dimensional feature space Z', R i ' ,j is the similarity matrix of the low-dimensional feature space S; Step 5: Use the gradient descent method to iteratively update S to minimize the KL loss function. The iterative formula is: Among them, S (t) is the two-stage fusion feature of the t-th iteration, α(t) is the momentum parameter of the t-th iteration, and T is the maximum number of iterations. After T iterations, the two-stage fusion feature space S is obtained. f .

9. The method for identifying axle type of overloaded trucks based on multi-feature fusion of acoustic signals according to claim 1 is characterized in that: The specific method of selecting the fusion features of the improved PSO-BP classifier training step 4 and the global optimal particle position after the training iteration is completed, which is the optimal parameter of PSO-BP, is: Step 1: The feature space S after fusion of different axis types f Label and use One-hot encoding, randomly mix and divide 70% as training set and 30% as test set; Define the number of input layers of the BP neural network as In, the number of single hidden layers as Hid, and the number of output layers as Out. For a given neuron, its output is applied to the weighted input and bias calculation through the activation function f, and the forward propagation process is: Among them, x i is the value of the i-th node in the input layer, w i,j is the weight from the i-th input node to the j-th hidden node, b j is the bias of the jth hidden layer node, a j is the output of the jth node in the hidden layer, w j,k is the weight from the jth hidden node to the kth output node, b k is the bias of the kth output layer node, p k It is the output of the kth node in the output layer, and the activation function of f(x) is customized as Softmax; Step 2: Improve the PSO particle swarm algorithm to optimize the BP neural network weights and biases: (1) Define a single particle as the concatenation vector of each weight and bias of the BP neural network, with dimension L = Hid*In+Hid+Hid*Out+Out; the population size is M, the M×L order particle position matrix G is initialized, the individual learning factor c1 = 2, the social learning factor c2 = 2, and the maximum inertia weight W max , minimum inertia weight W min , the number of iterations T max , initialize the M×L velocity matrix v, the maximum velocity v max ; (2) Initialize the global optimal particle position, traverse all population positions and fused feature vectors, calculate the fitness in turn, and select the position corresponding to the minimum fitness as the global optimal particle initial position gb (0) ; Initialize the individual historical optimal position, and let the initialized particle position G be the particle individual historical optimal position pb (0) ; (3) Determine the fitness function as the focal loss function of the forward propagation: Among them, fl is the focal loss function, M is the total number of test set samples, α i is the balance factor corresponding to the true label of the i-th sample, γ is the modulation factor, and p i is the forward propagation prediction probability corresponding to the true label of the i-th sample; Step 3: PSO-BP classifier algorithm loop iteration: (1) Let the number of iterations t = 1 and calculate the nonlinear descent inertia weight: Among them, W (t) is the inertia weight of the tth iteration, W max is the maximum inertia weight, W min is the minimum inertia weight, T max is the number of iterations; (2) Update particle speed and position: in, is the velocity vector of the ith particle at the tth iteration, W (t) is the inertia weight of the t-th iteration, c1 is the individual learning factor and takes 2, c2 is the social learning factor and takes 2, r1 and r2 are random parameters between 0 and 1, is the individual optimal position of the ith particle in the tth iteration, gb (t) is the global optimal particle position of the tth iteration, is the position of the ith particle at the tth iteration, is the jth velocity component of the ith particle at the t+1th iteration, v max is the maximum speed; (3) Update the optimal individual particle position pb and the global optimal particle position gb: The two-stage fusion feature training set is used as the input of the BP neural network and the following are calculated: gb (t-1) and the updated The corresponding fitness fl(gb (t-1) ), The iteration process is as follows: (4) After updating pb and gb, repeat (1) for t+1 iterations until the global optimal fitness function fl(gb (t) ) converges to the preset value or satisfies the Tth max The training is stopped after iterations; the global optimal particle position gb after the iteration is completed is used as the optimal parameter of the PSO-BP classifier, and the test set is input to obtain the classification accuracy of overloaded trucks with different axle types.

Citation Information

Cited By

  • Intelligent shaft type identification method and device, electronic equipment and storage medium

    CN119164473A

  • Physical constraint and deep learning collaborative truck graded load inversion method

    CN122571074A

  • Truck load rating inversion method based on physical constraint and deep learning

    CN122571074B