Hyperspectral tree species high-precision feature extraction method and system based on improved BP neural network
Feature extraction and fusion of hyperspectral data are carried out through the improved BP neural network structure, which solves the problem of inaccurate feature extraction and low precision in tree species classification and identification of hyperspectral data, achieves high-precision monitoring of trees around transmission lines, and improves Monitoring efficiency and accuracy.
Patent Information
- Application Number
- CN202410629047.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-17
AI Technical Summary
Existing hyperspectral data tree species classification and identification technology has problems such as inaccurate feature extraction, low classification accuracy, and high computational complexity, and cannot meet the needs of high-precision monitoring of trees around transmission lines.
Using an improved BP neural network structure, by preprocessing and feature extraction of hyperspectral data, using activation functions and backpropagation algorithms to optimize network parameters, combined with feature fusion and model optimization, high-precision tree species identification is achieved.
It achieves high-precision identification and monitoring of trees around transmission lines, improves the accuracy and efficiency of monitoring, reduces the impact of human factors on classification results, and has strong generalization ability and adaptability.
Smart Images

Figure CN118657952A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of hyperspectral image processing and tree species classification and recognition, and in particular to a hyperspectral tree species high-precision feature extraction method and system based on an improved BP neural network. Background Art
[0002] Hyperspectral remote sensing technology is a remote sensing technology that can obtain spectral information of multiple continuous bands on the surface of objects. It has the advantages of obtaining rich spectral information from hyperspectral data and extracting rich features of objects. It has broad application prospects in forest resource management, environmental monitoring, agricultural production and other fields. However, hyperspectral data has the characteristics of high dimensionality, large amount of information and large amount of data. How to effectively use hyperspectral data for tree species classification and identification has become a challenge.
[0003] At present, tree species classification and identification technology based on hyperspectral data has made certain research progress, mainly including methods based on feature extraction and machine learning classification. Traditional methods often use manually designed feature extraction methods, which have problems such as inaccurate feature extraction and low classification accuracy. The development of deep learning technology has provided new ideas for hyperspectral tree species classification and identification. However, the application effect of traditional deep learning models such as convolutional neural networks (CNN) on hyperspectral data is limited, and there are problems such as information loss and high computational complexity.
[0004] Traditional methods often use manual inspections, which have problems such as low efficiency, high cost, and inability to monitor in real time. With the development of hyperspectral remote sensing technology, the use of hyperspectral images for tree species classification and identification has become a potential solution. However, traditional hyperspectral tree species classification and identification methods have problems such as inaccurate feature extraction and low classification accuracy, which cannot meet the needs of high-precision monitoring of trees around transmission lines. It is mainly reflected in the inaccuracy of feature extraction: the existing technology often finds it difficult to fully utilize the information of hyperspectral data in the feature extraction process, resulting in inaccurate extracted features; limited classification accuracy: due to the inadequacy of feature extraction and the limitations of classification algorithms, the existing technology has certain limitations in the accuracy of tree species classification and identification; high computational complexity: some algorithms in the existing technology have high computational complexity when processing large-scale hyperspectral data, resulting in low processing efficiency; high data requirements: the existing technology has certain requirements on the quality and acquisition method of hyperspectral data, and is not flexible enough to adapt to the needs of different environments. Therefore, in order to identify and monitor trees around transmission lines, it is necessary to design an efficient and accurate tree species classification and identification method to improve the accuracy and efficiency of monitoring. This patented technology proposes a high-precision feature extraction method for hyperspectral tree species based on an improved BP neural network. By optimizing the network structure and training algorithm, it achieves high-precision identification and monitoring of trees around transmission lines, providing an effective technical means for the safe management of transmission lines. Summary of the invention
[0005] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0006] In view of the above existing problems, the present invention is proposed. Therefore, the present invention provides a high-precision feature extraction method for high-spectral tree species based on an improved BP neural network to solve the problem of how to achieve high-precision identification and monitoring of trees around power transmission lines.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In a first aspect, the present invention provides a method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network, comprising:
[0009] Acquire hyperspectral data and perform preprocessing;
[0010] Improve the BP neural network structure, including input layer, hidden layer and output layer, to extract features from pre-processed hyperspectral data. In each layer of the network, the data is nonlinearly transformed through the activation function, the input data is mapped into a high-dimensional space, and the network parameters are optimized through the back propagation algorithm.
[0011] Based on the feature extraction, the features extracted from different levels are fused to obtain a fused feature vector;
[0012] The classification model is optimized and evaluated, and the fused feature vector is input into the classification model to obtain tree species classification and recognition results.
[0013] As a preferred solution of the method for extracting high-precision features of hyperspectral tree species based on improved BP neural network described in the present invention, obtaining the hyperspectral data and preprocessing it includes:
[0014] Collect hyperspectral image data of different tree species, including infrared, visible light and near-infrared bands;
[0015] Preprocessing the hyperspectral data includes removing noise, correcting inconsistencies between bands, and removing atmospheric scattering;
[0016] The preprocessed data is divided into a training set, a validation set, and a test set, each sample in the training set is labeled with a corresponding tree species category, and the hyperspectral image data is converted into a tensor format required for network input;
[0017] The training set is subjected to data enhancement, and the enhanced data is loaded into the model for training and verification.
[0018] As a preferred solution of the method for extracting high-precision features of high-spectral tree species based on an improved BP neural network according to the present invention, the improved BP neural network structure includes:
[0019] Determine the number of neurons in the input layer according to the hyperspectral data, wherein the number of neurons in the input layer corresponds to the number of bands in the hyperspectral data, and extract features through a hidden layer;
[0020] Select an activation function and an output layer structure. The number of neurons in the output layer should correspond to the number of tree species to be classified, and the softmax function is used as the activation function of the output layer;
[0021] Optimize the network structure, adjust the number and size of hidden layers, select through cross-validation, add regularized Dropout layers, and evaluate through different activation functions combined with experimental results;
[0022] Initialize the parameters and update the network weight parameters through the optimizer.
[0023] As a preferred solution of the method for extracting high-precision features of hyperspectral tree species based on improved BP neural network described in the present invention, the feature extraction includes:
[0024] The preprocessed hyperspectral image data is input into the improved neural network and the data is sent into the input layer, where each neuron corresponds to a band of the hyperspectral data;
[0025] Through the back propagation algorithm, the error between the output layer and the target value is calculated according to the loss function, and the weight parameters of the network are updated layer by layer through back propagation. The data is passed to the hidden layer layer by layer, and the output of each hidden layer is obtained through the ReLU or LeakyReLU activation function, which is expressed as:
[0026] O y =f x (α y *I y +γ)
[0027] Among them, O y represents the hidden layer output, f x represents the activation function, α y represents the hidden layer weight, I y represents the hidden layer input, γ represents the hidden layer bias;
[0028] Hyperspectral data are passed through the neural network layer by layer, and activation functions are applied to each hidden layer to finally obtain the feature representation of the output layer.
[0029] As a preferred solution of the method for extracting high-precision features of hyperspectral tree species based on improved BP neural network described in the present invention, the feature fusion includes:
[0030] Through the feature extraction, each layer of the neural network outputs a set of feature representations;
[0031] Feature fusion is performed through feature concatenation, where features extracted at different levels are concatenated according to channels or feature dimensions to form a longer feature vector, and the fused feature vector is normalized.
[0032] As a preferred solution of the method for extracting high-precision features of hyperspectral tree species based on improved BP neural network described in the present invention, the tree species classification and recognition results are obtained including:
[0033] The classification model is trained using the training set, and the model parameters are optimized through repeated iterations, and the hyperparameters in the training process are tuned, including the learning rate, the regularization coefficient, and the network structure. The best hyperparameter combination is selected through a cross-validation method to obtain a trained classification model;
[0034] Use the test set to evaluate the trained classification model and calculate the classification accuracy, recall rate and F1 score indicators;
[0035] Analyze the classification results of the classification model and optimize the model or adjust the algorithm based on the analysis results;
[0036] The feature vector after the feature fusion is input into the optimized classification model for tree species classification and identification to obtain a tree species classification and identification result.
[0037] As a preferred solution of the method for extracting high-precision features of hyperspectral tree species based on improved BP neural network described in the present invention, the model optimization includes:
[0038] Performing hyperparameter tuning on the classification model, adjusting the learning rate according to the classification verification result of the classification model on the verification set, and determining the optimal learning rate through a learning rate decay strategy or grid search;
[0039] By adjusting the value of the regularization parameter and the number of nodes in the hidden layer, the network structure is adjusted, and the optimal regularization parameter is determined through cross-validation;
[0040] The training set is data augmented and divided into K subsets. Each subset is used as a validation set in turn, and the remaining K-1 subsets are used as training sets. The classification model is evaluated through multiple cross-validation.
[0041] In a second aspect, the present invention provides a high-precision feature extraction system for high-spectral tree species based on an improved BP neural network, comprising:
[0042] Collection module, used to acquire hyperspectral data and perform preprocessing;
[0043] The feature extraction module is used to improve the BP neural network structure, including the input layer, hidden layer and output layer, to extract features from the pre-processed hyperspectral data. In each layer of the network, the data is nonlinearly transformed through the activation function, the input data is mapped to a high-dimensional space, and the network parameters are optimized through the back propagation algorithm;
[0044] A feature fusion module is used to fuse the features extracted from different levels based on the feature extraction to obtain a fused feature vector;
[0045] The identification module is used to optimize and evaluate the classification model, input the fused feature vector into the classification model, and obtain tree species classification and identification results.
[0046] In a third aspect, the present invention provides an electronic device, comprising:
[0047] Memory and processor;
[0048] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the high-precision feature extraction method for high-spectral tree species based on the improved BP neural network are implemented.
[0049] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network.
[0050] Compared with the prior art, the present invention has the following beneficial effects: the present invention can make full use of the rich information in the hyperspectral image data, extract more discriminative and representative features from the original data in a data-driven manner, and through the learning and training process of the neural network, the model can automatically learn the feature representation of the data from a large amount of data, without the need for manual feature extraction, thus avoiding the tediousness and subjectivity of feature engineering; the feature extraction method based on the neural network can realize the rapid processing and analysis of the hyperspectral image data, has a faster processing speed and real-time performance, and provides users with timely and accurate information support; at the same time, through the automated feature extraction method, the influence of human factors on the classification results is reduced, the deviations and errors caused by subjective factors are avoided, the distribution characteristics of the data can be learned from a large amount of data, and it has a strong generalization ability, so that the model is more adaptable to different data sets and environments, and the classification results are more stable and reliable. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0052] Figure 1 It is a schematic diagram of the overall process of a method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network according to an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of a BP network model of a method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network according to an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of the BP algorithm execution process of the method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network according to an embodiment of the present invention;
[0055] Figure 4 This is a schematic diagram of the mean square error of the BP training network of the method for extracting high-precision features of hyperspectral tree species based on the improved BP neural network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0057] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0058] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0059] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0060] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0061] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0062] Example 1
[0063] Reference Figure 1-4 , is an embodiment of the present invention, which provides a high-precision feature extraction method for hyperspectral tree species based on an improved BP neural network, such as Figure 1 ,include:
[0064] S101, acquiring hyperspectral data and performing preprocessing.
[0065] Specifically, we collect hyperspectral image data of different tree species, including infrared, visible light and near-infrared band data. These data can be obtained through aerial photography, satellite remote sensing and other methods to ensure the quality and integrity of the data and ensure that the data set contains a variety of typical tree samples to cover the changes and characteristics of different tree species and avoid interference factors such as shadows and clouds in remote sensing images.
[0066] Preprocessing the hyperspectral data includes removing noise, correcting inconsistencies between bands, removing atmospheric scattering, etc., to improve the quality and usability of the data. Preferably, preprocessing methods such as smoothing and filtering are used;
[0067] The preprocessed data is divided into a training set, a validation set, and a test set. 70-80% of the data is used as a training set, 10-15% of the data is used as a validation set, and the remaining data is used as a test set for model training, tuning, and evaluation. The training set is labeled, that is, each sample in the training set is labeled with the corresponding tree species category. This can be done manually or automatically. The data is converted into a format that the model can process, that is, the hyperspectral image data is converted into the tensor format required for network input;
[0068] Perform data augmentation on the training set to expand the training data set and improve the generalization ability of the model. Preferably, the data augmentation methods include rotation, flipping, scaling, etc. The augmented data is loaded into the model for training and verification. Tools such as data loaders can be used to manage and load data.
[0069] S102, such as Figure 2-4,The BP neural network structure is improved, including the input layer, hidden layer and output layer, and the features of the preprocessed hyperspectral data are extracted. In each layer of the network, the data is nonlinearly transformed through the activation function, the input data is mapped to the high-dimensional space, and the network parameters are optimized through the back-propagation algorithm to learn more discriminative features.
[0070] Further, the improved BP neural network structure includes:
[0071] Determine the input layer and hidden layer structure, and determine the number of neurons in the input layer according to the hyperspectral data. The number of neurons in the input layer corresponds to the number of bands in the hyperspectral data. For example, if the hyperspectral data contains 200 bands, the input layer should have 200 neurons. And extract features through the hidden layer. Preferably, different hidden layer depths and widths are tested to achieve the best feature extraction effect, and pay attention to avoid network overfitting;
[0072] Select the activation function and output layer structure. The number of neurons in the output layer should correspond to the number of tree species to be classified. The softmax function is used as the activation function of the output layer.
[0073] According to the actual situation, the network structure is optimized, the number and size of hidden layers are adjusted, and selection is made through cross-validation. At the same time, a regularized Dropout layer is added to prevent overfitting, and different activation functions are used to evaluate combined with experimental results;
[0074] For parameter initialization, preferably, Xavier initialization and He initialization methods are selected to ensure that the network has a good training effect in the initial state, and the weight parameters of the network are updated through the optimizer. Preferably, considering the convergence speed and stability, Adam and RMSprop optimizers are selected to update the weight parameters of the network, and the learning rate is set, and a constant learning rate or a learning rate decay strategy is adopted to ensure the stability and convergence of the network training.
[0075] Furthermore, feature extraction includes:
[0076] The preprocessed hyperspectral image data is input into the improved neural network and the data is sent into the input layer, where each neuron corresponds to a band of the hyperspectral data;
[0077] Through the back propagation algorithm, the error between the output layer and the target value is calculated according to the loss function, and the weight parameters of the network are updated layer by layer through back propagation. The data is passed to the hidden layer layer by layer, and the activation function is applied after the output of each hidden layer to introduce nonlinear fitting capabilities. The output of each hidden layer is obtained through the ReLU or LeakyReLU activation function, which is expressed as:
[0078] O y=f x (α y *I y +γ)
[0079] Among them, O y represents the hidden layer output, f x represents the activation function, α y represents the hidden layer weight, I y represents the hidden layer input, γ represents the hidden layer bias;
[0080] The activation function is preferably a ReLU or LeakyReLU function, which are expressed as:
[0081] F(x)=max(0,x)
[0082] f(x)=x(x>0), f(x)=0.01x(x≤0)
[0083] Hyperspectral data are passed through the neural network layer by layer, and activation functions are applied to each hidden layer to finally obtain the feature representation of the output layer.
[0084] It should be noted that in each layer of the neural network, the output of the neuron can be regarded as an abstract representation of the input data, which can be understood as the feature extraction process of the input data. The features extracted by the neural network are used to represent each sample. These features can be pixel values, color histograms, texture features, etc. of hyperspectral images. As the number of network layers increases, the neural network can gradually learn more advanced and abstract features. In the initial layer of the network, neurons may perform simple detection of the basic features of the input data, such as edges or colors; as the network gradually goes deeper into the back layer, neurons will combine these basic features to learn more complex and abstract features, such as shape or texture; finally, in the deepest layer of the network, neurons may learn representative features of the entire input data set, which can be effectively used in the classification or regression tasks of the network. This hierarchical feature extraction process enables the neural network to learn a higher level of abstract representation from the raw data, thereby improving the network's recognition and generalization capabilities for complex data patterns.
[0085] Through the back propagation algorithm, the neural network can calculate the error between the output layer and the target value according to the loss function, and back propagate the update weight parameters of the network layer by layer. In the process of back propagation, the network continuously adjusts the weight parameters to minimize the loss function so that the output of the network is as close to the true value as possible. The feature representations extracted at different levels of the network can be fused to obtain richer and more discriminative features. In this embodiment, preferably, the feature fusion method includes feature splicing and weighted averaging. These methods can be applied at different levels of the network to fuse features from different levels, thereby improving the network's ability to characterize input data. Feature splicing is to connect features from different levels in a certain order to form a more comprehensive feature vector, so that the feature information extracted from each level can be retained, so that the fused features are richer; weighted averaging is to weighted sum features from different levels according to certain weights to obtain a weighted average feature. By adjusting the weights of features at different levels, the influence of features at different levels in the final fused features can be controlled, thereby better balancing the contribution of features at different levels. These feature fusion methods can help neural networks better learn and represent complex data patterns and improve the performance and generalization ability of the network.
[0086] S103, based on feature extraction, fusing features extracted from different levels to obtain a fused feature vector;
[0087] Furthermore, through feature extraction, each layer of the neural network outputs a set of feature representations;
[0088] According to the selected feature fusion method, the extracted features are subjected to corresponding fusion operations. In the present embodiment, preferably, feature fusion is performed by feature splicing, and the features extracted at different levels are spliced according to the channel or feature dimension to form a longer feature vector, and the fused feature vector is normalized to ensure the scale consistency of the features and reduce the influence of different feature dimensions.
[0089] It should be noted that by extracting features from hyperspectral image data through a designed neural network, each layer of the neural network will output a set of feature representations with different levels of abstraction and expression capabilities. According to actual needs and data characteristics, the preferred feature fusion methods include: feature concatenation, weighted average, and feature addition. Feature concatenation: concatenate features extracted from different levels according to channel or feature dimensions to form a longer feature vector. Weighted average: perform weighted average on features extracted from different levels, and assign different weights according to the importance of features at different levels. Feature addition: add features extracted from different levels element by element to obtain a comprehensive feature vector. Feature multiplication: multiply features extracted from different levels element by element to obtain a comprehensive feature vector.
[0090] S104, optimizing and evaluating the classification model, inputting the fused feature vector into the classification model, and obtaining tree species classification and recognition results.
[0091] Furthermore, the tree species classification and identification results include:
[0092] Use the training set to train the classification model. Optimize the model parameters through repeated iterations so that the model can fit the training set to the greatest extent and achieve good generalization performance on the validation set. Tune the hyperparameters during the training process, including the learning rate, regularization coefficient, and network structure. Select the best hyperparameter combination through the cross-validation method to obtain a trained classification model.
[0093] Use the test set to evaluate the trained classification model and calculate the classification accuracy, recall rate and F1 score indicators. The evaluation results can reflect the performance and generalization ability of the model.
[0094] Analyze the classification results of the classification model, including the reasons for misclassification, the advantages and disadvantages of the model, etc., and optimize the model or adjust the algorithm based on the analysis results;
[0095] The feature vector after feature fusion is input into the optimized classification model for tree species classification and identification to obtain the tree species classification and identification results.
[0096] In this embodiment, a suitable classification model is selected according to the size of the data set and the complexity of the task. Preferably, the classification model includes support vector machine (SVM), random forest, convolutional neural network (CNN), etc. The trained model is deployed in practical applications for tree classification and identification tasks. In practical applications, real-time data can be obtained through hyperspectral remote sensing technology or sensors, and the trained model can be used for tree classification and identification.
[0097] Furthermore, model optimization includes:
[0098] Perform hyperparameter tuning on the classification model, adjust the learning rate based on the classification verification results of the model on the verification set, and determine the optimal learning rate through the learning rate decay strategy or grid search;
[0099] By adjusting the values of regularization parameters (such as L1 regularization and L2 regularization) and the number of nodes in the hidden layer, the network structure is adjusted to avoid overfitting, and the optimal regularization parameters are determined through cross-validation;
[0100] Among them, according to the performance and complexity of the model, adjusting the number of nodes in the hidden layer, including increasing the number of nodes, can enhance the expressiveness of the model. According to the performance of the model on the validation set, the number of hidden layers can be appropriately increased or decreased to obtain better performance;
[0101] Feature engineering and ensemble learning: According to the importance of features, select features that contribute more to model performance, use feature importance evaluation methods (such as feature importance evaluation of random forest) to select features, combine different features to generate new features to improve the expressiveness of the model, and fuse the outputs of multiple different models to reduce prediction errors and improve generalization ability. Preferably, model fusion methods include voting method, stacking method, etc.
[0102] Perform data enhancement on the training set, divide the training set into K subsets, use each subset as the validation set in turn, and use the remaining K-1 subsets as the training set. Evaluate the classification model through multiple cross-validations to avoid model bias caused by uneven data distribution. When the performance of the classification model on the validation set no longer improves, stop training in time to avoid overfitting. Perform data enhancement on the training set to increase data diversity and improve the generalization ability of the model. Use interpretable analysis methods (such as SHAP value, LIME method, etc.) to analyze the prediction results of the model, understand the decision-making process of the model, discover potential problems of the model and make improvements.
[0103] The method of the present invention can make full use of the rich information in the hyperspectral image data, extract more discriminative and representative features from the original data in a data-driven manner, and through the learning and training process of the neural network, the model can automatically learn the feature representation of the data from a large amount of data, without the need for manual feature extraction, thereby avoiding the tediousness and subjectivity of feature engineering; the feature extraction method based on the neural network can realize the rapid processing and analysis of the hyperspectral image data, has a faster processing speed and real-time performance, and provides users with timely and accurate information support; at the same time, through the automated feature extraction method, the influence of human factors on the classification results is reduced, the deviations and errors caused by subjective factors are avoided, the distribution characteristics of the data can be learned from a large amount of data, and it has a strong generalization ability, so that the model is more adaptable to different data sets and environments, and the classification results are more stable and reliable.
[0104] This method is not only suitable for tree species classification and identification, but can also be applied to image recognition tasks in the fields of agriculture, ecological environment, urban planning, etc., such as crop classification, land use classification, etc., and has broad application prospects and versatility. In addition, this method can also be used for the processing and analysis of hyperspectral image data obtained by platforms such as drones and satellite remote sensing to meet the needs of different application scenarios.
[0105] High-precision tree species classification and identification results provide important intelligent support for decision-making in forest resource management, ecological environment monitoring, etc., helping decision makers to better understand information such as forest vegetation distribution and ecological environment status. This intelligent decision support can improve the scientificity and accuracy of decision-making, help formulate more reasonable and effective management and protection strategies, and promote ecological civilization construction and sustainable development.
[0106] The above is a schematic scheme of a method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network in this embodiment. It should be noted that the technical scheme of the high-precision feature extraction system for hyperspectral tree species based on the improved BP neural network and the technical scheme of the high-precision feature extraction method for hyperspectral tree species based on the improved BP neural network belong to the same concept. For details not described in detail in the technical scheme of the high-precision feature extraction system for hyperspectral tree species based on the improved BP neural network in this embodiment, please refer to the description of the technical scheme of the high-precision feature extraction method for hyperspectral tree species based on the improved BP neural network.
[0107] The high-precision feature extraction system for high-spectral tree species based on the improved BP neural network in this embodiment includes:
[0108] Collection module, used to acquire hyperspectral data and perform preprocessing;
[0109] The feature extraction module is used to improve the BP neural network structure, including the input layer, hidden layer and output layer, to extract features from the pre-processed hyperspectral data. In each layer of the network, the data is nonlinearly transformed through the activation function, the input data is mapped to a high-dimensional space, and the network parameters are optimized through the back propagation algorithm;
[0110] A feature fusion module is used to fuse features extracted from different levels based on feature extraction to obtain fused feature representation;
[0111] The recognition module is used to optimize and evaluate the classification model, input the fused feature vector into the classification model, and obtain the tree species classification and recognition results.
[0112] This embodiment also provides an electronic device suitable for extracting high-precision features of hyperspectral tree species based on an improved BP neural network, including:
[0113] Memory and processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the high-precision feature extraction method of high-spectral tree species based on improved BP neural network as proposed in the above embodiment.
[0114] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network as proposed in the above embodiment is implemented.
[0115] The storage medium proposed in this embodiment and the method for realizing high-precision feature extraction of hyperspectral tree species based on improved BP neural network proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0116] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ReadOnly, Memory, ROM), random access memory (RandomAccess Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.
[0117] Example 2
[0118] Referring to Table 1-2, an embodiment of the present invention provides a method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network. In order to verify its beneficial effects, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0119] As shown in Table 1, the experiment number is used to identify different experiments, the feature fusion method lists the feature fusion method used in each experiment, the cross-validation score (accuracy) represents the average performance of the model in cross-validation, the data enhancement effect describes the impact of data enhancement on model performance, and the model interpretation credibility represents the degree of trust in the model interpretation results. These experimental results can evaluate the impact of different optimization methods on model performance and select the best optimization solution.
[0120] Table 1: Model optimization experimental data
[0121]
[0122] The method of the present invention is implemented to extract and fuse high-precision features of hyperspectral tree species by improving the BP neural network structure, and finally obtains tree species classification and recognition results, which are verified by comparing with other schemes, as shown in Table 2.
[0123] Table 2: Experimental comparison data
[0124] Experimental Project Method of the present invention Traditional methods Response time(s) 1.46 2.87 Feature extraction accuracy (%) 92.4 82.6 Classification accuracy (%) 93.7 80.1 Real-time performance improvement rate (%) 22.4 9.5
[0125] It can be seen from the experimental data that the method of the present invention is significantly superior to the traditional method in terms of processing speed and accuracy, indicating that the present invention can realize rapid processing and analysis of hyperspectral image data, extract more discriminative and representative features, and has faster processing speed and real-time performance.
[0126] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A high-precision feature extraction method for hyperspectral tree species based on improved BP neural network, characterized in that: include: Acquire hyperspectral data and perform preprocessing; Improve the BP neural network structure, including input layer, hidden layer and output layer, to extract features from pre-processed hyperspectral data. In each layer of the network, the data is nonlinearly transformed through the activation function, the input data is mapped into a high-dimensional space, and the network parameters are optimized through the back propagation algorithm. Based on the feature extraction, the features extracted from different levels are fused to obtain a fused feature vector; The classification model is optimized and evaluated, and the fused feature vector is input into the classification model to obtain tree species classification and recognition results.
2. The high-precision feature extraction method for hyperspectral tree species based on improved BP neural network as claimed in claim 1, characterized in that: Acquiring the hyperspectral data and performing preprocessing includes: Collect hyperspectral image data of different tree species, including infrared, visible light and near-infrared bands; Preprocessing the hyperspectral data includes removing noise, correcting inconsistencies between bands, and removing atmospheric scattering; The preprocessed data is divided into a training set, a validation set, and a test set, each sample in the training set is labeled with a corresponding tree species category, and the hyperspectral image data is converted into a tensor format required for network input; The training set is subjected to data enhancement, and the enhanced data is loaded into the model for training and verification.
3. The high-precision feature extraction method for hyperspectral tree species based on improved BP neural network according to claim 1 or 2, characterized in that: The improved BP neural network structure includes: Determine the number of neurons in the input layer according to the hyperspectral data, wherein the number of neurons in the input layer corresponds to the number of bands in the hyperspectral data, and extract features through a hidden layer; Select an activation function and an output layer structure. The number of neurons in the output layer should correspond to the number of tree species to be classified, and the softmax function is used as the activation function of the output layer; Optimize the network structure, adjust the number and size of hidden layers, select through cross-validation, add regularized Dropout layers, and evaluate through different activation functions combined with experimental results; Initialize the parameters and update the network weight parameters through the optimizer.
4. The high-precision feature extraction method for hyperspectral tree species based on improved BP neural network as claimed in claim 3 is characterized in that: The feature extraction comprises: The preprocessed hyperspectral image data is input into the improved neural network and the data is sent into the input layer, where each neuron corresponds to a band of the hyperspectral data; Through the back propagation algorithm, the error between the output layer and the target value is calculated according to the loss function, and the weight parameters of the network are updated layer by layer through back propagation. The data is passed to the hidden layer layer by layer, and the output of each hidden layer is obtained through the ReLU or LeakyReLU activation function, which is expressed as: The y =f x (a y *I y +c) Among them, O y represents the hidden layer output, f x represents the activation function, α y represents the hidden layer weight, I y represents the hidden layer input, γ represents the hidden layer bias; Hyperspectral data are passed through the neural network layer by layer, and activation functions are applied to each hidden layer to finally obtain the feature representation of the output layer.
5. The method for extracting high-precision features of hyperspectral tree species based on improved BP neural network as claimed in claim 4, characterized in that: The feature fusion includes: Through the feature extraction, each layer of the neural network outputs a set of feature representations; Feature fusion is performed through feature concatenation, where features extracted at different levels are concatenated according to channels or feature dimensions to form a longer feature vector, and the fused feature vector is normalized.
6. The high-precision feature extraction method for hyperspectral tree species based on improved BP neural network as claimed in claim 5, characterized in that: The tree species classification and identification results include: The classification model is trained using the training set, and the model parameters are optimized through repeated iterations, and the hyperparameters in the training process are tuned, including the learning rate, the regularization coefficient, and the network structure. The best hyperparameter combination is selected through a cross-validation method to obtain a trained classification model; Use the test set to evaluate the trained classification model and calculate the classification accuracy, recall rate and F1 score indicators; Analyze the classification results of the classification model and optimize the model or adjust the algorithm based on the analysis results; The feature vector after the feature fusion is input into the optimized classification model for tree species classification and identification to obtain a tree species classification and identification result.
7. The method for extracting high-precision features of hyperspectral tree species based on improved BP neural network as claimed in claim 6, characterized in that: The model optimization includes: Performing hyperparameter tuning on the classification model, adjusting the learning rate according to the classification verification result of the classification model on the verification set, and determining the optimal learning rate through a learning rate decay strategy or grid search; By adjusting the value of the regularization parameter and the number of nodes in the hidden layer, the network structure is adjusted, and the optimal regularization parameter is determined through cross-validation; The training set is data augmented and divided into K subsets. Each subset is used as a validation set in turn, and the remaining K-1 subsets are used as training sets. The classification model is evaluated through multiple cross-validation.
8. A high-precision feature extraction system for hyperspectral tree species based on improved BP neural network, characterized in that: include, Collection module, used to acquire hyperspectral data and perform preprocessing; The feature extraction module is used to improve the BP neural network structure, including the input layer, hidden layer and output layer, to extract features from the pre-processed hyperspectral data. In each layer of the network, the data is nonlinearly transformed through the activation function, the input data is mapped to a high-dimensional space, and the network parameters are optimized through the back propagation algorithm; A feature fusion module is used to fuse the features extracted from different levels based on the feature extraction to obtain a fused feature vector; The identification module is used to optimize and evaluate the classification model, input the fused feature vector into the classification model, and obtain tree species classification and identification results.
9. An electronic device, comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the high-precision feature extraction method for high-spectral tree species based on improved BP neural network as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the method for extracting high-precision features of hyperspectral tree species based on an improved BP neural network as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Transformer fault type diagnosis method combining two machine learning methods
CN113822417A
Water quality monitoring method and system based on optimized BP neural network, and medium
CN116359159A
AU2020102885A4
Cited By
Underlying surface information fusion snow depth inversion method and system based on SAR (Synthetic Aperture Radar) image
CN119903116A
Leaf area index estimation method and system based on dynamic feature weighting
CN120510204A
A method and system for estimating leaf area index based on dynamic feature weighting
CN120510204B
Hyperspectral tree identification method and system
CN120564055A
