Target object identification method based on high-dimensional mapping and LDA dimension reduction
Through high-dimensional mapping and LDA dimensionality reduction methods, the problem of poor accuracy and convergence rate of vehicle perception recognition algorithm in high-dimensional data processing is solved, achieving faster convergence speed and higher accuracy, which is suitable for linear network training and avoids The 'curse of dimensionality'.
Patent Information
- Application Number
- CN202410757835.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-13
AI Technical Summary
Existing vehicle perception recognition algorithms have differences in accuracy and convergence rate when processing high-dimensional structured data, and are difficult to effectively handle linearly inseparable classification problems. They usually require a large amount of data support, resulting in a large amount of calculation and the 'curse of dimensionality'.
A target object recognition method based on high-dimensional mapping and linear discriminant analysis (LDA) dimensionality reduction is adopted. The nonlinear activation function neural network is used for identification and classification, and the results are normalized for high-dimensional mapping processing, and the LDA algorithm is used to calculate the category mean vector. and scatter matrix, select the projection direction for dimensionality reduction, and obtain the dimensionally reduced data.
It improves the flatness of data and the information between features, significantly speeds up the convergence speed of linear networks, reduces training rounds, improves classification accuracy, and avoids overfitting. The convergence speed of linear networks is better than nonlinear networks.
Smart Images

Figure CN118644716A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle environment recognition, and in particular, relates to a target object recognition method based on high-dimensional mapping and LDA dimensionality reduction. Background Art
[0002] In the research and development of smart cars, machine learning for environmental perception plays an extremely important role. When a vehicle processes data about objects it perceives in the surrounding environment, machine learning neural networks are a common method.
[0003] In order to solve the classification problem of linearly separable and linearly inseparable, the perceptron neural network model was first proposed. This classic perceptron method uses an activation function to threshold the high-dimensional input vector, and the final output value is 0 or 1. Classification is performed by the difference between 0 and 1, but the algorithm can only handle linearly separable classification problems. Single-layer perceptrons cannot complete the classification problem of linearly inseparable vectors well. The parameters of the radial basis function (RBF) kernel of the support vector machine (SVM) are obtained through various algorithms such as particle swarm optimization, GA and GS, and are applied to identify the risks of the railway dangerous goods transportation system (RDGTS). The sensitivity of the multi-layer perceptron is analyzed and the criteria for network structure design are proposed. The multi-layer perceptron is designed and analyzed by improving the standard BP algorithm, but it only improves the convergence speed to a certain extent and prevents falling into the local minimum. The above methods solve the linearly inseparable problem by setting multiple decision lines or multiple decision surfaces, but usually have high requirements on the number of sample data sets, and require nearly infinite data to support the relevant algorithms.
[0004] After using high-dimensional mapping to mine more hidden internal relationships in data and extract more connections and nonlinear components between dimensions, the computational effort may be too large due to the higher dimensions, resulting in the "dimensionality disaster". Therefore, neural network dimensionality reduction is needed to exclude linearly related redundant information and achieve the purpose of classifying only linearly unrelated independent variables. Using neural networks for dimensionality reduction is a common and powerful nonlinear dimensionality reduction method. Neural network dimensionality reduction and the sparse autoencoders and deep neural network algorithms derived from neural network dimensionality reduction show strong accuracy advantages and fast convergence capabilities when facing extremely complex dimensionality reduction problems. By studying the dimensionality reduction background and feature extraction of neural networks, a two-step nearest neighbor search algorithm is proposed based on the neural network dimensionality reduction model, and the neural network dimensionality reduction method is further applied to the field of information retrieval, but the dimensionality increase and dimensionality reduction models are not combined, and the specific convergence effect and classification accuracy are not compared and analyzed. An Autoencoder-SVM model was proposed based on the deep learning method of the autoencoder neural network. The feature extraction ability of the autoencoder neural network and the classification ability of the SVM were used to achieve dimensionality reduction of high-dimensional and nonlinear data, further improving the classification efficiency of the SVM. However, no research was conducted on the dimensionality reduction method after dimensionality increase, so the specific convergence effect and classification accuracy were not clear enough. Summary of the invention
[0005] In view of the problem that the existing vehicle perception and recognition algorithms use a universal processing method for structured data obtained by other sensors, and their prediction accuracy and convergence rate are poor, the present invention provides a target object recognition method based on high-dimensional mapping and LDA dimensionality reduction.
[0006] In order to achieve the above technical objectives, the technical solution adopted by the present invention is as follows:
[0007] A method for identifying a target object based on high-dimensional mapping and LDA dimensionality reduction, comprising the steps of:
[0008] S1, collecting traffic environment graphics when the vehicle perceives the environment;
[0009] S2, using a neural network with a nonlinear activation function to identify and classify traffic environment graphics;
[0010] S3, performing normalized high-dimensional mapping processing on the results of the classification in step S2 to obtain nonlinear feature information of the dimension in the original data;
[0011] S4. The linear discriminant analysis algorithm is used to calculate the mean vector of the category, and the original data is projected onto the selected projection direction through mapping and dimensionality reduction to obtain the reduced-dimensional data.
[0012] Furthermore, the classification neural network with nonlinear activation function is a single hidden layer network, the number of neurons in the input layer is equal to the feature dimension of the input single sample data, sigmoid or relu nonlinear activation function is set between layers, the number of neurons in the hidden layer is preset to N, the number of neurons in the output layer is equal to the number of types of classification problems, and finally Softmax is used for probability output to obtain the result. When the environmental information data set obtained by the vehicle is linearly separable, using a single linearly connected neural network can greatly improve the calculation speed.
[0013] Furthermore, in step S3, the high-dimensional mapping is normalized to convert n data with m-dimensional features into n The new vector of dimensional features is generated, and the numerical range of all data is classified into [0,1].
[0014] Furthermore, in step S3, n m-dimensional vectors are used n represents n data, where Represents the i-th feature of the j-th data;
[0015] Normalize the data and convert the dimensional expression into a dimensionless expression:
[0016]
[0017] Using maximum value normalization, the n normalized data are represented as:
[0018]
[0019] Consider Y (j) The quadratic matrix of :
[0020]
[0021] The upper triangular part of the matrix is further transformed to obtain the vector Z (j) :
[0022]
[0023] in:
[0024]
[0025] Define a high-dimensional mapping T:Y (j) →Z (j) ,j=1,2,…,n, in the above formula, according to the upper triangular transformation of the quadratic matrix, Mapped to Finally, the normalized n m-dimensional vectors Y (j) ,j=1,2,…,n is mapped to Dimensional vector Z (j).
[0026] Furthermore, the detailed steps of the linear discriminant analysis algorithm in step S4 include:
[0027] S401, calculating the mean vector of the category: for each category, calculating the mean vector of all samples in the category;
[0028] S402, calculating the within-class scatter matrix: for each class, calculating the scatter matrix between all samples in the class and their mean vector, and summing them;
[0029] S403, calculating the between-class scatter matrix: calculating the scatter matrix between the mean vectors of all classes and the overall mean vector;
[0030] S404, calculating eigenvalues and eigenvectors: multiplying the inverse matrix of the matrix by the inter-class scatter matrix, performing eigenvalue decomposition on the obtained matrix, and obtaining eigenvalues and eigenvectors;
[0031] S405, selecting a projection direction: selecting the first k eigenvectors with the largest eigenvalues as projection directions, where k is the dimension after dimensionality reduction;
[0032] S406, projecting data: projecting the original data onto the selected projection direction to obtain dimensionally reduced data.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] When processing the existing German Traffic Sign Detection Benchmark (GTSRB) dataset, the training loss converges significantly faster on the high-dimensional mapped data and MDR data than on the original data. This is due to the fact that the processed data is flatter, providing more inter-feature information and nonlinear features, which allows simple linear networks to converge faster. In addition, the mapped data and MDR data can achieve higher accuracy in fewer rounds without overfitting. For MDR-processed data, the linear network converges faster than the nonlinear network. This is because PCA is a dimensionality reduction method based on linear transformation, which makes the processed data more consistent with linear features and more suitable for linear network training.
[0035] In addition, through a comprehensive evaluation of the convergence speed capability, it was found that the convergence speed of the mapped data was 1.07 times that of the original data, while the convergence speed of the MDR data was 1.26 times that of the original data, which was slightly better than the mapped data. For the network selection of MDR data, the convergence speed of the linear network was slightly faster than that of the nonlinear network. It can be seen that the convergence speed of the linear network of MDR data is better than that of other networks. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is an overall flow chart of a target object recognition method based on high-dimensional mapping and LDA dimensionality reduction in an embodiment of the present invention;
[0037] Figure 2 is a detailed flow chart of step S3 in an embodiment of the present invention;
[0038] Figure 3 This is a diagram of a nonlinear activation function neural network architecture in an embodiment of the present invention;
[0039] Figure 4 This is a diagram of a single linear connection neural network architecture in an embodiment of the present invention;
[0040] Figure 5 This is a flow chart of normalized high-dimensional mapping in an embodiment of the present invention;
[0041] Figure 6 This is a diagram showing the experimental results of vehicle perception of traffic sign data in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to facilitate the understanding of those skilled in the art, the present invention is further described below in conjunction with embodiments and drawings. The contents mentioned in the implementation modes are not intended to limit the present invention.
[0043] like Figure 1 As shown, this embodiment provides a method for identifying a target object based on high-dimensional mapping and LDA dimensionality reduction, including the steps of:
[0044] S1, collecting traffic environment graphics when the vehicle perceives the environment;
[0045] S2, using a neural network with a nonlinear activation function to identify and classify traffic environment graphics;
[0046] S3, performing normalized high-dimensional mapping processing on the results of the classification in step S2 to obtain nonlinear feature information of the dimension in the original data;
[0047] S4. The linear discriminant analysis algorithm is used to calculate the mean vector of the category, and the original data is projected onto the selected projection direction through mapping and dimensionality reduction to obtain the reduced-dimensional data.
[0048] Since the traffic situation is complex when the vehicle perceives the environment, in order to recognize various irregular graphics, it is usually used Figure 3The neural network with nonlinear activation function is shown in the figure for identification and classification. The classification neural network with nonlinear activation function is a single hidden layer network. The number of neurons in the input layer is equal to the feature dimension of the input single sample data. Sigmoid or relu nonlinear activation function is set between layers. The number of neurons in the hidden layer is 20. The number of neurons in the output layer is equal to the number of types of classification problems. Finally, Softmax is used for probability output to obtain the result. When the environmental information data set obtained by the vehicle is linearly separable, using a single linearly connected neural network can greatly improve the calculation speed.
[0049] When the environmental information data set obtained by the vehicle is linearly separable, using a single linearly connected neural network can greatly improve the calculation speed. Figure 4 As shown, the single linearly connected classification neural network is a single hidden layer network. The number of neurons in the input layer is equal to the feature dimension of the input single sample data. No nonlinear activation function is set between layers. Pure linear full connection is adopted. The preset number of hidden layer neurons is N. In this embodiment, N=20. The number of neurons in the output layer is equal to the number of types of classification problems. Finally, Softmax is used for probability output.
[0050] like Figure 5 As shown, in step S3, the high-dimensional mapping is normalized to convert n data with m-dimensional features into n The new vector of dimensional features is generated, and the numerical range of all data is classified into [0,1].
[0051] like Figure 2 As shown, in step S3, n m-dimensional vectors are used n represents n data, where Represents the i-th feature of the j-th data;
[0052] Normalize the data and convert the dimensional expression into a dimensionless expression:
[0053]
[0054] Using maximum value normalization, the n normalized data are represented as:
[0055]
[0056] Consider Y( j )’s quadratic matrix:
[0057]
[0058] The upper triangular part of the matrix is further transformed to obtain the vector Z (j) :
[0059]
[0060] in:
[0061]
[0062] Define a high-dimensional mapping T:Y (j) →Z (j) ,j=1,2,…,n, in the above formula, according to the upper triangular transformation of the quadratic matrix, Mapped to Finally, the normalized n m-dimensional vectors Y (j) ,j=1,2,…,n is mapped to Dimensional vector Z (j) .
[0063] The detailed steps of the linear discriminant analysis algorithm in step S4 include:
[0064] S401, calculating the mean vector of the category: for each category, calculating the mean vector of all samples in the category;
[0065] S402, calculating the within-class scatter matrix: for each class, calculating the scatter matrix between all samples in the class and their mean vector, and summing them;
[0066] S403, calculating the between-class scatter matrix: calculating the scatter matrix between the mean vectors of all classes and the overall mean vector;
[0067] S404, calculating eigenvalues and eigenvectors: multiplying the inverse matrix of the matrix by the inter-class scatter matrix, performing eigenvalue decomposition on the obtained matrix, and obtaining eigenvalues and eigenvectors;
[0068] S405, selecting a projection direction: selecting the first k eigenvectors with the largest eigenvalues as projection directions, where k is the dimension after dimensionality reduction;
[0069] S406, projecting data: projecting the original data onto the selected projection direction to obtain the reduced-dimensional data. Since the vehicle perception recognition dimensionality reduction method based on linear discriminant analysis (LDA) takes into account the category information of the data, the generated projection can better distinguish the differences between different categories of perception objects.
[0070] Compared with the prior art, the present invention has the following beneficial effects:
[0071] like Figure 6As shown, Raw Data is the raw data, Mapping Data is the mapping data, MDR Data-nonlinear is the data processing, and MDR Data-linear is the linear data processing. When processing the existing German Traffic Sign Detection Benchmark (GTSRB) dataset, the training loss convergence speed of high-dimensional mapping data and MDR data is significantly faster than that of raw data. This is because the processed data is flatter, providing more inter-feature information and nonlinear features, which makes the simple linear network converge faster. In addition, mapping data and MDR data can achieve higher accuracy in fewer rounds without overfitting. For MDR-processed data, the linear network converges faster than the nonlinear network. This is because principal component analysis is a dimensionality reduction method based on linear transformation, which makes the processed data more consistent with linear features and more suitable for linear network training.
[0072] In addition, through a comprehensive evaluation of the convergence speed capability, it was found that the convergence speed of the mapped data was 1.07 times that of the original data, while the convergence speed of the MDR data was 1.26 times that of the original data, which was slightly better than the mapped data. For the network selection of MDR data, the convergence speed of the linear network was slightly faster than that of the nonlinear network. It can be seen that the convergence speed of the linear network of MDR data is better than that of other networks.
[0073] The above is a detailed introduction to a target object recognition method based on high-dimensional mapping and LDA dimensionality reduction provided by the present application. The description of the specific embodiment is only used to help understand the method and its core idea of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. A target object recognition method based on high-dimensional mapping and LDA dimensionality reduction, characterized in that: Includes steps: S1, collecting traffic environment graphics when the vehicle perceives the environment; S2, using a neural network with a nonlinear activation function to identify and classify traffic environment graphics; S3, performing normalized high-dimensional mapping processing on the results of the classification in step S2 to obtain nonlinear feature information of the dimension in the original data; S4. The linear discriminant analysis algorithm is used to calculate the mean vector of the category, and the original data is projected onto the selected projection direction through mapping and dimensionality reduction to obtain the reduced-dimensional data.
2. The target object recognition method based on high-dimensional mapping and LDA dimensionality reduction according to claim 1, characterized in that: The classification neural network with nonlinear activation function is a single hidden layer network. The number of neurons in the input layer is equal to the feature dimension of the input single sample data. Sigmoid or relu nonlinear activation function is set between layers. The number of neurons in the hidden layer is preset to N. The number of neurons in the output layer is equal to the number of types of classification problems. Finally, Softmax is used for probability output to obtain the result.
3. The target object recognition method based on high-dimensional mapping and LDA dimensionality reduction according to claim 2 is characterized in that: In step S3, the high-dimensional mapping is normalized to convert n data with m-dimensional features into n The new vector of dimensional features is generated, and the numerical range of all data is classified into [0,1].
4. The target object recognition method based on high-dimensional mapping and LDA dimensionality reduction according to claim 3 is characterized in that: In step S3, n m-dimensional vectors are used n represents n data, where Represents the i-th feature of the j-th data; Normalize the data and convert the dimensional expression into a dimensionless expression: Using maximum value normalization, the n normalized data are represented as: Consider Y j The quadratic matrix of : The upper triangular part of the matrix is further transformed to obtain the vector Z (j) : in: Define a high-dimensional mapping T:Y j →Z (j) ,j=1,2,…,n, in the above formula, according to the upper triangular transformation of the quadratic matrix, Mapped to Finally, the normalized n m-dimensional vectors Y j ,j=1,2,…,n is mapped to Dimensional vector Z (j) .
5. The target object recognition method based on high-dimensional mapping and LDA dimensionality reduction according to claim 4 is characterized in that: The detailed steps of the linear discriminant analysis algorithm in step S4 include: S401, calculating the mean vector of the category: for each category, calculating the mean vector of all samples in the category; S402, calculating the within-class scatter matrix: for each class, calculating the scatter matrix between all samples in the class and their mean vector, and summing them; S403, calculating the between-class scatter matrix (Between-class scatter matrix): calculating the scatter matrix between the mean vectors of all categories and the overall mean vector; S404, calculating eigenvalues and eigenvectors: multiplying the inverse matrix of the matrix by the inter-class scatter matrix, performing eigenvalue decomposition on the obtained matrix, and obtaining eigenvalues and eigenvectors; S405, selecting a projection direction: selecting the first k eigenvectors with the largest eigenvalues as projection directions, where k is the dimension after dimensionality reduction; S406, projecting data: projecting the original data onto the selected projection direction to obtain dimensionally reduced data.
